mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 18:12:43 +00:00
[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:
parent
d904db0e52
commit
8107ed52e1
22
zone/npc.cpp
22
zone/npc.cpp
@ -2771,6 +2771,28 @@ float NPC::GetNPCStat(const char *identifier)
|
|||||||
else if (id == "npc_spells_effects_id") {
|
else if (id == "npc_spells_effects_id") {
|
||||||
return 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() {
|
void NPC::LevelScale() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user