Adjustment for exp / sp tempfix.

This commit is contained in:
MobiusDevelopment
2022-11-01 22:07:52 +00:00
parent 1630e43276
commit dcd57756db

View File

@@ -159,8 +159,26 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
}
_weaponEnchant = set.getInt("weaponEnchant", 0);
_exp = set.getDouble("exp", 0) / 10000; // TODO: Tempfix until XMLs are updated.
_sp = set.getDouble("sp", 0) / 10000; // TODO: Tempfix until XMLs are updated.
_exp = set.getDouble("exp", 0);
// TODO: Tempfix until XMLs are updated.
if (_exp > 0)
{
_exp /= 10000;
if (_exp == 0)
{
_exp = 1;
}
}
_sp = set.getDouble("sp", 0);
// TODO: Tempfix until XMLs are updated.
if (_sp > 0)
{
_sp /= 10000;
if (_sp == 0)
{
_sp = 1;
}
}
_raidPoints = set.getDouble("raidPoints", 0);
_unique = set.getBoolean("unique", false);
_attackable = set.getBoolean("attackable", true);