mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 07:32:40 +00:00
Implement Rule Zone:GlobalLootMultiplier (Default 1) - Sets Global Loot drop multiplier for database based drops, useful for double, triple loot etc.
This commit is contained in:
parent
fe21564659
commit
ef16522473
@ -258,6 +258,7 @@ RULE_BOOL(Zone, EnableLoggedOffReplenishments, true)
|
|||||||
RULE_INT(Zone, MinOfflineTimeToReplenishments, 21600) // 21600 seconds is 6 Hours
|
RULE_INT(Zone, MinOfflineTimeToReplenishments, 21600) // 21600 seconds is 6 Hours
|
||||||
RULE_BOOL(Zone, UseZoneController, true) // Enables the ability to use persistent quest based zone controllers (zone_controller.pl/lua)
|
RULE_BOOL(Zone, UseZoneController, true) // Enables the ability to use persistent quest based zone controllers (zone_controller.pl/lua)
|
||||||
RULE_BOOL(Zone, EnableZoneControllerGlobals, false) // Enables the ability to use quest globals with the zone controller NPC
|
RULE_BOOL(Zone, EnableZoneControllerGlobals, false) // Enables the ability to use quest globals with the zone controller NPC
|
||||||
|
RULE_INT(Zone, GlobalLootMultiplier, 1) // Sets Global Loot drop multiplier for database based drops, useful for double, triple loot etc.
|
||||||
RULE_CATEGORY_END()
|
RULE_CATEGORY_END()
|
||||||
|
|
||||||
RULE_CATEGORY(Map)
|
RULE_CATEGORY(Map)
|
||||||
|
|||||||
@ -80,10 +80,11 @@ void ZoneDatabase::AddLootTableToNPC(NPC* npc,uint32 loottable_id, ItemList* ite
|
|||||||
|
|
||||||
*copper = cash;
|
*copper = cash;
|
||||||
}
|
}
|
||||||
|
uint32 global_loot_multiplier = RuleI(Zone, GlobalLootMultiplier);
|
||||||
|
|
||||||
// Do items
|
// Do items
|
||||||
for (uint32 i=0; i<lts->NumEntries; i++) {
|
for (uint32 i=0; i<lts->NumEntries; i++) {
|
||||||
for (uint32 k = 1; k <= lts->Entries[i].multiplier; k++) {
|
for (uint32 k = 1; k <= (lts->Entries[i].multiplier * global_loot_multiplier); k++) {
|
||||||
uint8 droplimit = lts->Entries[i].droplimit;
|
uint8 droplimit = lts->Entries[i].droplimit;
|
||||||
uint8 mindrop = lts->Entries[i].mindrop;
|
uint8 mindrop = lts->Entries[i].mindrop;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user