Exemple #1
0
    public override double GetMinCost()
    {
        DamageEffectDescription desc = new DamageEffectDescription(heal);

        desc.amount = 1;
        return(desc.PowerLevel());
    }
Exemple #2
0
    public override IEffectDescription Generate()
    {
        DamageEffectDescription desc = new DamageEffectDescription(heal);

        // Find the bounds of damage amounds
        int max = ProceduralUtils.GetUpperBound(desc, ref desc.amount, MIN_DAMAGE, MAX_DAMAGE, maxAllocatedBudget);
        int min = ProceduralUtils.GetLowerBound(desc, ref desc.amount, MIN_DAMAGE, max, minAllocatedBudget);

        Assert.IsTrue(max >= min);
        desc.amount = random.Next(min, max + 1);

        return(desc);
    }