mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
[Expansion] Content Filtering Adjustments (#1910)
* Change default expansion values for ALL to -1 from 0 * Adjust content_filter_criteria * Refactor content filtering logic * Allow flag strings to also just be empty instead of null * Formatting * Editor oops
This commit is contained in:
+3
-4
@@ -1255,9 +1255,8 @@ void Zone::ReloadStaticData() {
|
||||
);
|
||||
} // if that fails, try the file name, then load defaults
|
||||
|
||||
content_service.SetExpansionContext();
|
||||
content_service.SetExpansionContext()->ReloadContentFlags();
|
||||
|
||||
ZoneStore::LoadContentFlags();
|
||||
|
||||
LogInfo("Zone Static Data Reloaded");
|
||||
}
|
||||
@@ -2749,7 +2748,7 @@ uint32 Zone::GetCurrencyID(uint32 item_id)
|
||||
if (!item_id) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
for (const auto& alternate_currency : AlternateCurrencies) {
|
||||
if (item_id == alternate_currency.item_id) {
|
||||
return alternate_currency.id;
|
||||
@@ -2772,4 +2771,4 @@ uint32 Zone::GetCurrencyItemID(uint32 currency_id)
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user