mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Added npc_types.assistradius, defaults to npc_types.aggroradius if set to 0
This commit is contained in:
@@ -1046,6 +1046,7 @@ const NPCType* ZoneDatabase::GetNPCType (uint32 id) {
|
||||
"npc_types.hp_regen_rate,"
|
||||
"npc_types.mana_regen_rate,"
|
||||
"npc_types.aggroradius,"
|
||||
"npc_types.assistradius,"
|
||||
"npc_types.bodytype,"
|
||||
"npc_types.npc_faction_id,"
|
||||
"npc_types.face,"
|
||||
@@ -1145,6 +1146,9 @@ const NPCType* ZoneDatabase::GetNPCType (uint32 id) {
|
||||
// set defaultvalue for aggroradius
|
||||
if (tmpNPCType->aggroradius <= 0)
|
||||
tmpNPCType->aggroradius = 70;
|
||||
tmpNPCType->assistradius = (int32)atoi(row[r++]);
|
||||
if (tmpNPCType->assistradius <= 0)
|
||||
tmpNPCType->assistradius = tmpNPCType->aggroradius;
|
||||
|
||||
if (row[r] && strlen(row[r]))
|
||||
tmpNPCType->bodytype = (uint8)atoi(row[r]);
|
||||
|
||||
Reference in New Issue
Block a user