Ejemplo n.º 1
0
        public static void Calc(NpcInfo npc)
        {
            AttrCalculateUtility.ResetBaseProperty(npc);
            AttrCalculateUtility.RefixAttrByEquipment(npc);
            AttrCalculateUtility.RefixAttrByImpact(npc);

            int hpMax = npc.GetActualProperty().HpMax;

            npc.GetActualProperty().SetHpMax(Operate_Type.OT_Absolute, (int)(npc.HpMaxCoefficient * hpMax));
        }
        public static void Calc(UserInfo user)
        {
            AttrCalculateUtility.ResetBaseProperty(user);
            AttrCalculateUtility.RefixAttrByEquipment(user);
            AttrCalculateUtility.RefixAttrByLegacy(user);
            AttrCalculateUtility.RefixAttrByXSoul(user);
            AttrCalculateUtility.RefixFightingScoreByPropertyWithOutPartner(user);
            AttrCalculateUtility.RefixAttrByPartner(user);
            AttrCalculateUtility.RefixFightingScoreByProperty(user);
            AttrCalculateUtility.RefixAttrByImpact(user);

            int hpMax = user.GetActualProperty().HpMax;

            user.GetActualProperty().SetHpMax(Operate_Type.OT_Absolute, (int)(user.HpMaxCoefficient * hpMax));
            int mpMax = user.GetActualProperty().EnergyMax;

            user.GetActualProperty().SetEnergyMax(Operate_Type.OT_Absolute, (int)(user.EnergyMaxCoefficient * mpMax));
        }