[API] GetNPCStat can now return default stat values. (#2048)

* [API] GetNPCStat return default stat values.

* [API] GetNPCStat can now return default stat values.
This commit is contained in:
KayenEQ 2022-03-11 09:10:52 -05:00 committed by GitHub
parent d904db0e52
commit 8107ed52e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2771,6 +2771,28 @@ float NPC::GetNPCStat(const char *identifier)
else if (id == "npc_spells_effects_id") {
return npc_spells_effects_id;
}
//default values
else if (id == "default_ac") {
return default_ac;
}
else if (id == "default_min_dmg") {
return default_min_dmg;
}
else if (id == "default_max_dmg") {
return default_max_dmg;
}
else if (id == "default_attack_delay") {
return default_attack_delay;
}
else if (id == "default_accuracy_rating") {
return default_accuracy_rating;
}
else if (id == "default_avoidance_rating") {
return default_avoidance_rating;
}
else if (id == "default_atk") {
return default_atk;
}
}
void NPC::LevelScale() {