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_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; } } }