CODE
if( array_key_exists($mid, $monster_trophies) && ($always_trophy || (mt_rand(1, 10) == 1)) ) {
$loot = array('loottype' => 'trophy', 'id' => $monster_trophies[$mid], 'name' => $HV->get_item_name($monster_trophies[$mid]));
$HV->Player->itemcount_inc($loot['id'], 1);
return $loot;
} else {
return loottable_random($qualityboost, $increase_drops ? 50 : 0, $increase_drops ? 1000 : 0, 0, $itemtype);
}