Пример #1
0
        // Token: 0x060036CF RID: 14031 RVA: 0x000F38C0 File Offset: 0x000F1AC0
        public static int ComputeBuffHealValue(int value1, int value2, int applyerBuff_HealMul, int targetBuff_HealReceiveMul)
        {
            Fix64 baseHeal = (Fix64)((long)(value1 * value2)) * BattleFormula.d10000;
            Fix64 value3   = BattleFormula.ComputeHealFinalValue(baseHeal, applyerBuff_HealMul, targetBuff_HealReceiveMul);

            return((int)((long)Fix64.Round(value3)));
        }
Пример #2
0
        // Token: 0x060036CC RID: 14028 RVA: 0x000F36FC File Offset: 0x000F18FC
        public static Fix64 ComputeHealValue(BattleProperty attackerProperty, BattleProperty targetProperty, int skillPower, bool isPercent, bool useAttackAsMagic)
        {
            Fix64 baseHeal;

            if (isPercent)
            {
                baseHeal = (Fix64)((long)targetProperty.HealthPointMax) * (Fix64)((long)skillPower) * BattleFormula.d100;
            }
            else
            {
                int num = attackerProperty.Magic;
                if (useAttackAsMagic)
                {
                    num = attackerProperty.Attack;
                }
                baseHeal = (Fix64)((long)num) * (Fix64.One + (Fix64)((long)skillPower) * BattleFormula.d100);
            }
            return(BattleFormula.ComputeHealFinalValue(baseHeal, attackerProperty.Buff_HealMul, targetProperty.Buff_HealReceiveMul));
        }