除了充盈都做完了
This commit is contained in:
41
Assets/Mods/Basic/Characters/CombatBuffs/Mage/Haste.cs
Normal file
41
Assets/Mods/Basic/Characters/CombatBuffs/Mage/Haste.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Continentis.MainGame;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Combat;
|
||||
using SLSFramework.General;
|
||||
using SLSFramework.UModAssistance;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Buffs
|
||||
{
|
||||
public class Haste : CharacterCombatBuffBase
|
||||
{
|
||||
public Haste()
|
||||
{
|
||||
Initialize(BuffType.Focusing, BuffDispelLevel.Strong);
|
||||
|
||||
this.contentSubmodule = new ContentSubmodule(this);
|
||||
|
||||
this.iconSubmodule = new IconSubmodule(this);
|
||||
|
||||
this.eventSubmodule = new EventSubmodule(this);
|
||||
this.eventSubmodule.onRoundEnd.Add("Haste", new PrioritizedAction(() =>
|
||||
{
|
||||
CardData whimsyData = ModManager.GetData<CardData>("CardData_Basic_Whimsy");
|
||||
CardInstance.GenerateCardInstance(whimsyData, attachedCharacter.team, "Hand");
|
||||
}));
|
||||
}
|
||||
|
||||
public override bool OnBuffApply(out CharacterCombatBuffBase existingBuff)
|
||||
{
|
||||
MainGameManager.Instance.basePrefabs.GenerateInfoText(contentSubmodule.displayName, attachedCharacter.characterView);
|
||||
|
||||
if (FocusingCheck(out existingBuff))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user