diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..01ec88be6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "*.ipp": "cpp" + } +} \ No newline at end of file diff --git a/zone/npc.cpp b/zone/npc.cpp index 7995ed5f3..c498dcef6 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -66,64 +66,64 @@ extern EntityList entity_list; NPC::NPC(const NPCType *npc_type_data, Spawn2 *in_respawn, const glm::vec4 &position, GravityBehavior iflymode, bool IsCorpse) : Mob( - npc_type_data->name, - npc_type_data->lastname, - npc_type_data->max_hp, - npc_type_data->max_hp, - npc_type_data->gender, - npc_type_data->race, - npc_type_data->class_, - (bodyType) npc_type_data->bodytype, - npc_type_data->deity, - npc_type_data->level, - npc_type_data->npc_id, - npc_type_data->size, - npc_type_data->runspeed, - position, - npc_type_data->light, // innate_light - npc_type_data->texture, - npc_type_data->helmtexture, - npc_type_data->AC, - npc_type_data->ATK, - npc_type_data->STR, - npc_type_data->STA, - npc_type_data->DEX, - npc_type_data->AGI, - npc_type_data->INT, - npc_type_data->WIS, - npc_type_data->CHA, - npc_type_data->haircolor, - npc_type_data->beardcolor, - npc_type_data->eyecolor1, - npc_type_data->eyecolor2, - npc_type_data->hairstyle, - npc_type_data->luclinface, - npc_type_data->beard, - npc_type_data->drakkin_heritage, - npc_type_data->drakkin_tattoo, - npc_type_data->drakkin_details, - npc_type_data->armor_tint, - 0, - npc_type_data->see_invis, // pass see_invis/see_ivu flags to mob constructor - npc_type_data->see_invis_undead, - npc_type_data->see_hide, - npc_type_data->see_improved_hide, - npc_type_data->hp_regen, - npc_type_data->mana_regen, - npc_type_data->qglobal, - npc_type_data->maxlevel, - npc_type_data->scalerate, - npc_type_data->armtexture, - npc_type_data->bracertexture, - npc_type_data->handtexture, - npc_type_data->legtexture, - npc_type_data->feettexture, - npc_type_data->use_model, - npc_type_data->always_aggro, - npc_type_data->hp_regen_per_second, - npc_type_data->heroic_strikethrough, - npc_type_data->keeps_sold_items -), + npc_type_data->name, + npc_type_data->lastname, + npc_type_data->max_hp, + npc_type_data->max_hp, + npc_type_data->gender, + npc_type_data->race, + npc_type_data->class_, + (bodyType) npc_type_data->bodytype, + npc_type_data->deity, + npc_type_data->level, + npc_type_data->npc_id, + npc_type_data->size, + npc_type_data->runspeed, + position, + npc_type_data->light, // innate_light + npc_type_data->texture, + npc_type_data->helmtexture, + npc_type_data->AC, + npc_type_data->ATK, + npc_type_data->STR, + npc_type_data->STA, + npc_type_data->DEX, + npc_type_data->AGI, + npc_type_data->INT, + npc_type_data->WIS, + npc_type_data->CHA, + npc_type_data->haircolor, + npc_type_data->beardcolor, + npc_type_data->eyecolor1, + npc_type_data->eyecolor2, + npc_type_data->hairstyle, + npc_type_data->luclinface, + npc_type_data->beard, + npc_type_data->drakkin_heritage, + npc_type_data->drakkin_tattoo, + npc_type_data->drakkin_details, + npc_type_data->armor_tint, + 0, + npc_type_data->see_invis, // pass see_invis/see_ivu flags to mob constructor + npc_type_data->see_invis_undead, + npc_type_data->see_hide, + npc_type_data->see_improved_hide, + npc_type_data->hp_regen, + npc_type_data->mana_regen, + npc_type_data->qglobal, + npc_type_data->maxlevel, + npc_type_data->scalerate, + npc_type_data->armtexture, + npc_type_data->bracertexture, + npc_type_data->handtexture, + npc_type_data->legtexture, + npc_type_data->feettexture, + npc_type_data->use_model, + npc_type_data->always_aggro, + npc_type_data->heroic_strikethrough, + npc_type_data->keeps_sold_items, + npc_type_data->hp_regen_per_second + ), attacked_timer(CombatEventTimer_expire), swarm_timer(100), classattack_timer(1000),