mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Bug Fix] NPC Constructor was passing hp_regen_per_second out of order to Mob(). (#2681)
This commit is contained in:
parent
7e7485be77
commit
8fc665a3c1
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.ipp": "cpp"
|
||||
}
|
||||
}
|
||||
116
zone/npc.cpp
116
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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user