Exemple #1
0
    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);
    }
Exemple #3
0
        //public AlignmentInfo Alignment { get; private set; }

        public StatBlock(AlignmentType alignment)
        {
            this.Abilities = new AbilityBlock();
            //this.Alignment = AlignmentInfo.GetAlignment(alignment);
        }
Exemple #4
0
 public virtual void OnRegenerateAbilityStats(ref Targeting targeting, ref AbilityBlock abilityBlock, ref Ability ability)
 {
 }