Tefa
2019-07-12, 12:35 AM
حل مشكلة ان قلب الاكونت بيبقي 0 لما تقلع حته من الاصتف او تلبس حته من الاصتف
اعمل سيرش علي
public void CalculateHPBonus()
و بدله ب ده
public void CalculateHPBonus()
{
// if ((int)Account.State >= 3) return;
switch (Entity.Class)
{
case 11: Entity.MaxHitpoints = (uint)(StatHP * 1.05F); break;
case 12: Entity.MaxHitpoints = (uint)(StatHP * 1.08F); break;
case 13: Entity.MaxHitpoints = (uint)(StatHP * 1.10F); break;
case 14: Entity.MaxHitpoints = (uint)(StatHP * 1.12F); break;
case 15: Entity.MaxHitpoints = (uint)(StatHP * 1.15F); break;
default: Entity.MaxHitpoints = (uint)StatHP; break;
}
Entity.MaxHitpoints += Entity.ItemHP;
Entity.MaxHitpoints += Entity.Intensification;
Entity.Hitpoints = Math.Min(Entity.Hitpoints, Entity.MaxHitpoints);
}
اعمل سيرش علي
public void CalculateHPBonus()
و بدله ب ده
public void CalculateHPBonus()
{
// if ((int)Account.State >= 3) return;
switch (Entity.Class)
{
case 11: Entity.MaxHitpoints = (uint)(StatHP * 1.05F); break;
case 12: Entity.MaxHitpoints = (uint)(StatHP * 1.08F); break;
case 13: Entity.MaxHitpoints = (uint)(StatHP * 1.10F); break;
case 14: Entity.MaxHitpoints = (uint)(StatHP * 1.12F); break;
case 15: Entity.MaxHitpoints = (uint)(StatHP * 1.15F); break;
default: Entity.MaxHitpoints = (uint)StatHP; break;
}
Entity.MaxHitpoints += Entity.ItemHP;
Entity.MaxHitpoints += Entity.Intensification;
Entity.Hitpoints = Math.Min(Entity.Hitpoints, Entity.MaxHitpoints);
}