Rename coord args in summonNPC() and constructors to clarify purpose

This makes it clearer that the real coords aren't set until the first
call to updateNPCPosition().
This commit is contained in:
2023-09-10 19:47:42 +02:00
committed by gsemaj
parent ba20f5a401
commit 2924a27eb4
3 changed files with 11 additions and 12 deletions

View File

@@ -106,11 +106,11 @@ struct CombatNPC : public BaseNPC, public ICombatant {
std::unordered_map<int, Buff*> buffs = {};
CombatNPC(int x, int y, int z, int angle, uint64_t iID, int t, int id, int maxHP)
CombatNPC(int spawnX, int spawnY, int spawnZ, int angle, uint64_t iID, int t, int id, int maxHP)
: BaseNPC(angle, iID, t, id), maxHealth(maxHP) {
spawnX = x;
spawnY = y;
spawnZ = z;
this->spawnX = spawnX;
this->spawnY = spawnY;
this->spawnZ = spawnZ;
kind = EntityKind::COMBAT_NPC;