289
289
function onRoundWinnerDeclared()
291
291
Base::$base->winner = getTeam(Base::$base->pieces[1]);
294
294
$win_gain_exp = getSetting("SCORE_EXP");
296
296
if ((Base::$base->game_mode == 2) || (Base::$base->game_mode == 3))
298
298
$obj = Item::$items[rand(0, count(Item::$items) - 1)];
300
300
con("0xff99ffTeam ".Base::$base->winner." won the round 0xRESETT[ ".$win_gain_exp->value." exp, ".$obj." ]");
302
302
if (count(Base::$base->winner->players) > 0)
304
304
foreach (Base::$base->winner->players as $p)
308
308
$player_record = getRecord($p->log);
311
311
playerGainExp($p, $player_record, $win_gain_exp->value);
315
315
if (!$player_record->bag->itemExists($obj))