public function __construct($name) { parent::__construct($name); // randomly put this ship under repair $this->underRepair = mt_rand(1, 100) < 30; }
public function __construct($name) { parent::__construct($name); $this->underRepair = mt_rand(1, 100) < 30; }