mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Loot/Errors
* gracefully handle loot referencing nonexistent items
This commit is contained in:
@@ -308,6 +308,12 @@ class Loot
|
|||||||
|
|
||||||
if (empty($loot['reference'])) // regular drop
|
if (empty($loot['reference'])) // regular drop
|
||||||
{
|
{
|
||||||
|
if (!isset($foo[$loot['content']]))
|
||||||
|
{
|
||||||
|
trigger_error('Item #'.$loot['content'].' referenced by loot does not exist!', E_USER_WARNING);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!User::isInGroup(U_GROUP_EMPLOYEE))
|
if (!User::isInGroup(U_GROUP_EMPLOYEE))
|
||||||
{
|
{
|
||||||
if (!isset($this->results[$loot['content']]))
|
if (!isset($this->results[$loot['content']]))
|
||||||
|
|||||||
Reference in New Issue
Block a user