mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 11:31:30 +00:00
Add petnaming type 5 (`s ward)
This commit is contained in:
parent
7621bf47c8
commit
0968ce0d60
@ -304,6 +304,7 @@ void Mob::MakePoweredPet(uint16 spell_id, const char* pettype, int16 petpower,
|
|||||||
// 2 - `s Warder
|
// 2 - `s Warder
|
||||||
// 3 - Random name if client, `s pet for others
|
// 3 - Random name if client, `s pet for others
|
||||||
// 4 - Keep DB name
|
// 4 - Keep DB name
|
||||||
|
// 5 - `s ward
|
||||||
|
|
||||||
|
|
||||||
if (petname != nullptr) {
|
if (petname != nullptr) {
|
||||||
@ -325,6 +326,10 @@ void Mob::MakePoweredPet(uint16 spell_id, const char* pettype, int16 petpower,
|
|||||||
// Keep the DB name
|
// Keep the DB name
|
||||||
} else if (record.petnaming == 3 && IsClient()) {
|
} else if (record.petnaming == 3 && IsClient()) {
|
||||||
strcpy(npc_type->name, GetRandPetName());
|
strcpy(npc_type->name, GetRandPetName());
|
||||||
|
} else if (record.petnaming == 5 && IsClient()) {
|
||||||
|
strcpy(npc_type->name, this->GetName());
|
||||||
|
npc_type->name[24] = '\0';
|
||||||
|
strcat(npc_type->name, "`s_ward");
|
||||||
} else {
|
} else {
|
||||||
strcpy(npc_type->name, this->GetCleanName());
|
strcpy(npc_type->name, this->GetCleanName());
|
||||||
npc_type->name[25] = '\0';
|
npc_type->name[25] = '\0';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user