Esempio n. 1
0
function buildItemKey($itm)
{
    $key = $itm['typeName'] . ($itm['singleton'] == 2 ? ' (Copy)' : '');
    $key .= '|' . ($itm['quantityDropped'] > 0 ? 'dropped' : 'destroyed');
    if (!isset($itm['flagName'])) {
        $itm['flagName'] = Info::getFlagName($itm['flag']);
    }
    $key .= '|' . $itm['flagName'];
    if ($itm['groupID'] == 649) {
        $key .= microtime() . rand(0, 10000);
    }
    return $key;
}
Esempio n. 2
0
function buildItemKey($itm)
{
    $key = $itm["typeName"] . ($itm["singleton"] == 2 ? " (Copy)" : "");
    $key .= "|" . ($itm["qtyDropped"] > 0 ? "dropped" : "destroyed");
    if (!isset($itm["flagName"])) {
        $itm["flagName"] = Info::getFlagName($itm["flag"]);
    }
    $key .= "|" . $itm["flagName"];
    if ($itm["groupID"] == 649) {
        $key .= microtime() . rand(0, 10000);
    }
    return $key;
}