성인 연령(14세??)를 GameConst로 정의
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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[] = [
|
||||
|
||||
@@ -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>등장</>했습니다."]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user