public function healAtHospital($healCost) { $success = ConnectionFactory::updateTableRowGenericBasic("users", array('health' => $this->health_max), array('bank_balance' => -1 * $healCost), array('id' => $this->id)); if ($success) { $this->bank_balance -= $healCost; $this->health = $this->health_max; } return $success; }