mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-20 05:22:26 +00:00
opening additional merc slots
This commit is contained in:
parent
6fb5a102f5
commit
8eafc8bc7d
@ -1 +1 @@
|
|||||||
Subproject commit b9aeec6eaf3d5610503439b4fae3581d9aff08e8
|
Subproject commit 4dfe1be74e684acca19ac1cf96cce0df9eac2a2d
|
||||||
@ -5611,6 +5611,17 @@ uint8 Client::GetNumberOfMercenaries()
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Client::GetFirstFreeMercSlot()
|
||||||
|
{
|
||||||
|
int max_slots = std::min(RuleI(Mercs, MaxMercSlots), MAXMERCS);
|
||||||
|
for (int slot_id = 0; slot_id < max_slots; slot_id++) {
|
||||||
|
if (m_mercinfo[slot_id].mercid == 0) {
|
||||||
|
return slot_id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
void Merc::SetMercData( uint32 template_id ) {
|
void Merc::SetMercData( uint32 template_id ) {
|
||||||
|
|
||||||
MercTemplate* merc_template = zone->GetMercTemplate(template_id);
|
MercTemplate* merc_template = zone->GetMercTemplate(template_id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user