Esempio n. 1
0
    public int CalculateBlockGainedByEffect(int baseBlockGain, LivingEntity caster)
    {
        Debug.Log("CombatLogic.CalculateBlockGainedByEffect() callled for " + caster.name);

        int valueReturned = baseBlockGain;

        Debug.Log("Base block gain value: " + valueReturned);

        valueReturned += EntityLogic.GetTotalDexterity(caster);
        Debug.Log("Block gain value after dexterity added: " + valueReturned);

        Debug.Log("Final block gain value calculated: " + valueReturned);
        return(valueReturned);
    }