setReadOnly(); $userID = Session::getUserID(); $generalID = $session->generalID; $db = DB::db(); $gameStor = KVStorage::getStorage($db, 'game_env'); $gameStor->cacheValues(['turntime', 'opentime', 'autorun_user', 'npcmode']); $clock = GameClock::fromStorage($gameStor); $nowTick = $clock->nowTick(); $me = General::createObjFromDB($generalID, null, GeneralQueryMode::FullWithAccessLog); $myset = $me->getVar('myset'); if ($myset > 0) { $submit = 'button'; } else { $submit = 'hidden'; } $lastRefresh = $db->queryFirstField( 'SELECT %b FROM %b WHERE %b = %i', GeneralAccessLogColumn::lastRefresh->value, TableName::generalAccessLog->value, GeneralAccessLogColumn::generalID->value, $generalID ); $nextChange = $me->getAuxVar('next_change'); if (!is_int($nextChange)) { $nextChange = null; } $nextChangeDisplay = $nextChange === null ? null : $clock->formatTick($nextChange); increaseRefresh("내정보", 1); if ($gameStor->turntime <= $gameStor->opentime) { $targetTime = $me->getAuxVar('prestart_delete_after'); if (!is_int($targetTime)) { $targetTime = addTurn( $lastRefresh === null ? $nowTick : Util::toInt($lastRefresh), $gameStor->turnterm, GameConst::$minTurnDieOnPrestart ); $me->setAuxVar('prestart_delete_after', $targetTime); $me->applyDB($db); } $targetTimeDisplay = $clock->formatTick($targetTime); //서버 가오픈시 할 수 있는 행동 if ($me->getNPCType() == 0 && $me->getNationID() == 0) { $showDieOnPrestartBtn = true; if ($targetTime <= $nowTick) { $availableDieOnPrestart = true; } } if ($me->getNationID() == 0) { $showBuildNationCandidateBtn = true; } } $use_treatment = $me->getAuxVar('use_treatment') ?? 10; $use_auto_nation_turn = $me->getAuxVar('use_auto_nation_turn') ?? 1; $changeDefence999Train = -3; $changeDefence999Atmos = -6; $changeDefence999Train = $me->onCalcDomestic('changeDefenceTrain', "train999", $changeDefence999Train); $changeDefence999Atmos = $me->onCalcDomestic('changeDefenceTrain', "atmos999", $changeDefence999Atmos); ?>