diff --git a/twe/sammo/GameConst.php b/twe/sammo/GameConst.php index 7755a211..b92888cb 100644 --- a/twe/sammo/GameConst.php +++ b/twe/sammo/GameConst.php @@ -67,5 +67,7 @@ class GameConst{ /** @var int 최저 병량(긴급시) */ public static $minNationalRice = 0; /** @var float 군량 매매시 세율*/ - public static $taxrate = 0.01; + public static $taxrate = 0.01; + /** @var float 성인 연령 */ + public static $adultAge = 14; } \ No newline at end of file diff --git a/twe/sammo/Scenario.php b/twe/sammo/Scenario.php index b5afb8f7..6507699c 100644 --- a/twe/sammo/Scenario.php +++ b/twe/sammo/Scenario.php @@ -316,7 +316,7 @@ class Scenario{ $remainGenerals = $this->buildGenerals($env); foreach($remainGenerals as $birth=>$actions){ - $targetYear = $birth + 14;//FIXME: 14가 어디서 튀어나왔나? + $targetYear = $birth + \sammo\GameConst::$adultAge; $actions[] = ['DeleteEvent']; $this->events[] = [ diff --git a/twe/sammo/Scenario/NPC.php b/twe/sammo/Scenario/NPC.php index 5059fc47..89fa34ce 100644 --- a/twe/sammo/Scenario/NPC.php +++ b/twe/sammo/Scenario/NPC.php @@ -79,7 +79,7 @@ class NPC{ $db = DB::db(); - if($age == 14 && $month == 1){//FIXME: 14가 어디서 튀어나왔나? + if($age == \sammo\GameConst::$adultAge && $month == 1){//FIXME: 14가 어디서 튀어나왔나? \sammo\pushHistory(["●1월:$name(이)가 성인이 되어 등장했습니다."]); }