public function getGoods($use_dynamic_RR_prices = true) { /** * Returns array containing buyable stuff for teams in their coach corner. * * Setting $use_dynamic_RR_prices forces non-doubled RR prices. **/ // Setup correct $rules for when calling $race->getGoods() which uses the $rules['max_*'] entries. global $rules; setupGlobalVars(T_SETUP_GLOBAL_VARS__LOAD_LEAGUE_SETTINGS, array('lid' => $this->f_lid)); // Load correct $rules for league. $race = new Race($this->f_race_id); return $race->getGoods($use_dynamic_RR_prices ? $this->doubleRRprice() : false); }