mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 11:38:29 +00:00
opening additional merc slots
This commit is contained in:
+1
-1
Submodule submodules/websocketpp updated: b9aeec6eaf...4dfe1be74e
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user