시나리오마다 별도로 스탯 제한치를 설정 가능하도록 변경

This commit is contained in:
2018-05-21 05:10:44 +09:00
parent 2c3e577c4e
commit bf233f7552
16 changed files with 176 additions and 193 deletions
+4 -1
View File
@@ -127,8 +127,9 @@ class ResetHelper{
}
$scenarioObj = new Scenario($scenario, false);
$startyear = $scenarioObj->getYear()??GameConst::$defaultStartYear;
$scenarioObj->buildConf();
$startyear = $scenarioObj->getYear()??GameConst::$defaultStartYear;
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
@@ -160,6 +161,8 @@ class ResetHelper{
$killturn = 4800 / $turnterm;
if($npcmode == 1) { $killturn = intdiv($killturn, 3); }
$env = [
'scenario'=>$scenario,
'scenario_text'=>$scenarioObj->getTitle(),