성인 연령(14세??)를 GameConst로 정의

This commit is contained in:
2018-03-29 00:57:10 +09:00
parent 9392d6f043
commit 79d74b1ed1
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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[] = [
+1 -1
View File
@@ -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(["<C>●</>1월:<Y>$name</>(이)가 성인이 되어 <S>등장</>했습니다."]);
}