Beispiel #1
0
        protected override bool SetSkillEffectValues(CharacterStats player, Stats enemy)
        {
            shard = Buff.AddBuff <SoulShard>(player);
            if (soulShardCost > shard.Stacks)
            {
                Console.WriteLine($"Not enough {shard.Name} to use skill.\n");
                return(false);
            }

            int damage = Power(player, enemy);

            SkillEffectValues = new EffectValues(damage, source: this);

            return(true);
        }
Beispiel #2
0
        protected override int Power(CharacterStats player, Stats enemy)
        {
            shard = Buff.AddBuff <SoulShard>(player);

            return(Math.Max(0, player.Attack * attackModifier + shard.Stacks * shardModifier - enemy.Armour));
        }
Beispiel #3
0
 public override void Refresh()
 {
     shard = new SoulShard();
     base.Refresh();
 }
Beispiel #4
0
 protected override void SkillEffect(CharacterStats player, Stats enemy)
 {
     shard = Buff.AddBuff <SoulShard>(player);
     shard.SetStacks(); // Add one stack
     shard.WriteStacks();
 }