Example #1
0
 private function giveTools(PlayerInventory $inv, $rank)
 {
     $inv->getHolder()->setHealth(20);
     $inv->remove(Item::get(Item::SNOWBALL));
     $inv->addItem(...$this->config->playerItems);
     // TODO support shops
     $inv->addItem(new Snowball(0, Settings::easter_getSnowballCount($rank)));
 }