mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 19:52:26 +00:00
Fix formula for mana
There were errors in the old formula for wis/int values over 201.
This commit is contained in:
parent
6f73278cf8
commit
9cc73f2b4a
@ -610,14 +610,13 @@ int32 Client::CalcBaseMana()
|
|||||||
case 'I':
|
case 'I':
|
||||||
WisInt = GetINT();
|
WisInt = GetINT();
|
||||||
if (ClientVersion() >= EQEmu::versions::ClientVersion::SoF && RuleB(Character, SoDClientUseSoDHPManaEnd)) {
|
if (ClientVersion() >= EQEmu::versions::ClientVersion::SoF && RuleB(Character, SoDClientUseSoDHPManaEnd)) {
|
||||||
|
ConvertedWisInt = WisInt;
|
||||||
|
int over200 = WisInt;
|
||||||
if (WisInt > 100) {
|
if (WisInt > 100) {
|
||||||
ConvertedWisInt = (((WisInt - 100) * 5 / 2) + 100);
|
if (WisInt > 200) {
|
||||||
if (WisInt > 201) {
|
over200 = (WisInt - 200) / -2 + WisInt;
|
||||||
ConvertedWisInt -= ((WisInt - 201) * 5 / 4);
|
|
||||||
}
|
}
|
||||||
}
|
ConvertedWisInt = (3 * over200 - 300) / 2 + over200;
|
||||||
else {
|
|
||||||
ConvertedWisInt = WisInt;
|
|
||||||
}
|
}
|
||||||
auto base_data = database.GetBaseData(GetLevel(), GetClass());
|
auto base_data = database.GetBaseData(GetLevel(), GetClass());
|
||||||
if (base_data) {
|
if (base_data) {
|
||||||
@ -643,14 +642,13 @@ int32 Client::CalcBaseMana()
|
|||||||
case 'W':
|
case 'W':
|
||||||
WisInt = GetWIS();
|
WisInt = GetWIS();
|
||||||
if (ClientVersion() >= EQEmu::versions::ClientVersion::SoF && RuleB(Character, SoDClientUseSoDHPManaEnd)) {
|
if (ClientVersion() >= EQEmu::versions::ClientVersion::SoF && RuleB(Character, SoDClientUseSoDHPManaEnd)) {
|
||||||
|
ConvertedWisInt = WisInt;
|
||||||
|
int over200 = WisInt;
|
||||||
if (WisInt > 100) {
|
if (WisInt > 100) {
|
||||||
ConvertedWisInt = (((WisInt - 100) * 5 / 2) + 100);
|
if (WisInt > 200) {
|
||||||
if (WisInt > 201) {
|
over200 = (WisInt - 200) / -2 + WisInt;
|
||||||
ConvertedWisInt -= ((WisInt - 201) * 5 / 4);
|
|
||||||
}
|
}
|
||||||
}
|
ConvertedWisInt = (3 * over200 - 300) / 2 + over200;
|
||||||
else {
|
|
||||||
ConvertedWisInt = WisInt;
|
|
||||||
}
|
}
|
||||||
auto base_data = database.GetBaseData(GetLevel(), GetClass());
|
auto base_data = database.GetBaseData(GetLevel(), GetClass());
|
||||||
if (base_data) {
|
if (base_data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user