mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Have modify NPC stat AC/AGI recache AC
This commit is contained in:
parent
9aba993888
commit
2c6e11b464
@ -1959,10 +1959,10 @@ void NPC::ModifyNPCStat(const char *identifier, const char *newValue)
|
|||||||
id[i] = std::tolower(id[i]);
|
id[i] = std::tolower(id[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(id == "ac") { AC = atoi(val.c_str()); return; }
|
if(id == "ac") { AC = atoi(val.c_str()); CalcAC(); return; }
|
||||||
else if(id == "str") { STR = atoi(val.c_str()); return; }
|
else if(id == "str") { STR = atoi(val.c_str()); return; }
|
||||||
else if(id == "sta") { STA = atoi(val.c_str()); return; }
|
else if(id == "sta") { STA = atoi(val.c_str()); return; }
|
||||||
else if(id == "agi") { AGI = atoi(val.c_str()); return; }
|
else if(id == "agi") { AGI = atoi(val.c_str()); CalcAC(); return; }
|
||||||
else if(id == "dex") { DEX = atoi(val.c_str()); return; }
|
else if(id == "dex") { DEX = atoi(val.c_str()); return; }
|
||||||
else if(id == "wis") { WIS = atoi(val.c_str()); CalcMaxMana(); return; }
|
else if(id == "wis") { WIS = atoi(val.c_str()); CalcMaxMana(); return; }
|
||||||
else if(id == "int" || id == "_int") { INT = atoi(val.c_str()); CalcMaxMana(); return; }
|
else if(id == "int" || id == "_int") { INT = atoi(val.c_str()); CalcMaxMana(); return; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user