public static AbilityBlock operator -(AbilityBlock a, AbilityBlock b) { AbilityBlock toReturn = new AbilityBlock(); toReturn.costs = a.costs - b.costs; toReturn.cooldown = a.cooldown - b.cooldown; toReturn.power = a.power - b.power; return(toReturn); }
//TODO: Set this up in a nice way public void RegenerateStats(Monster m) { //I am losing my f*****g mind targeting = baseTargeting.ShallowCopy(); stats = baseStats; Ability ability = this; connections.OnRegenerateAbilityStats.BlendInvoke(m.connections?.OnRegenerateAbilityStats, ref targeting, ref stats, ref ability); }
//public AlignmentInfo Alignment { get; private set; } public StatBlock(AlignmentType alignment) { this.Abilities = new AbilityBlock(); //this.Alignment = AlignmentInfo.GetAlignment(alignment); }
public virtual void OnRegenerateAbilityStats(ref Targeting targeting, ref AbilityBlock abilityBlock, ref Ability ability) { }