예제 #1
0
    private static void HealthDamage(IDamageable defender, Chakra attackerChakra)
    {
        Chakra defenderChakra = defender.GetChakra();
        float damage = ChakraAttackValue(attackerChakra, defenderChakra)
            - defenderChakra.DefencePower;

        if (damage < 1.0f)
            damage = 1.0f;

        defender.Damage(damage);
    }