コード例 #1
0
        /// <summary>
        /// after block is accounted.
        /// bool represents if they are still alive.
        /// For use by essence of steel status too.
        /// </summary>
        public bool ApplyDamage(int amount, EffectSet ef, CardInstance ci, List <string> history)
        {
            HP -= amount;
            //this is for any damage type.
            TakeDamage?.Invoke(ef, amount, ci);
            history.Add($"{Name} took {amount} dmg");

            return(true);
        }
コード例 #2
0
 public void PlayerDamage()
 {
     TakeDamage?.Invoke();
 }
コード例 #3
0
 public static void TakeDamageAction(float amount)
 {
     TakeDamage?.Invoke(amount);
 }