mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Add show_name and untargetable to npc_types fixes #637
Note the bodytype hack is still there since I was having issues with some npcs still showing names
This commit is contained in:
@@ -375,6 +375,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, const glm::vec4& position, int if
|
||||
CalcBonuses();
|
||||
raid_target = d->raid_target;
|
||||
ignore_despawn = d->ignore_despawn;
|
||||
m_targetable = !d->untargetable;
|
||||
}
|
||||
|
||||
NPC::~NPC()
|
||||
@@ -1906,6 +1907,7 @@ void NPC::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho)
|
||||
ns->spawn.is_npc = 1;
|
||||
UpdateActiveLight();
|
||||
ns->spawn.light = GetActiveLightType();
|
||||
ns->spawn.show_name = NPCTypedata->show_name;
|
||||
}
|
||||
|
||||
void NPC::PetOnSpawn(NewSpawn_Struct* ns)
|
||||
|
||||
Reference in New Issue
Block a user