mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Core/Conditions
* rewritten and moved to its own class, should be easier to expand in the future * add missing sources and types from TrinityCore * implement conditions on Areatrigger and Loot containers * implement reverse lookups (e.g. a spell is a conditional for something else) * general beautification pass .. should be more legible in general NOTE: * texts have been changed, so the existing translation for esES ist gone * selecting and describing condition targets is still wonky
This commit is contained in:
@@ -371,10 +371,8 @@ class ItemList extends BaseType
|
||||
$costArr['restock'] = $entries['restock'];
|
||||
|
||||
if ($entries['event'])
|
||||
{
|
||||
$this->jsGlobals[Type::WORLDEVENT][$entries['event']] = $entries['event'];
|
||||
$costArr['condition'][0][$this->id][] = [[CND_ACTIVE_EVENT, $entries['event']]];
|
||||
}
|
||||
if (Conditions::extendListviewRow($costArr, Conditions::SRC_NONE, $this->id, [Conditions::ACTIVE_EVENT, $entries['event']]))
|
||||
$this->jsGlobals[Type::WORLDEVENT][$entries['event']] = $entries['event'];
|
||||
|
||||
if ($currency || $tokens) // fill idx:3 if required
|
||||
$costArr['cost'][] = $currency;
|
||||
|
||||
Reference in New Issue
Block a user