버그 수정

This commit is contained in:
2019-04-21 12:11:01 +09:00
parent b4b6f5a1f7
commit cf1f023379
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class GeneralAI{
public function __construct(General $general){
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$this->env = $gameStor->getValues(['startyear','year','month','turnterm','killturn','scenario','gold_rate','rice_rate']);
$this->env = $gameStor->getValues(['startyear','year','month','turnterm','killturn','scenario','gold_rate','rice_rate', 'develcost']);
$this->baseDevelCost = $this->env['develcost'] * 12;
$this->general = $general;
if($general->getRawCity() === null){
@@ -1051,7 +1051,7 @@ class GeneralAI{
break;
case '이동': //이동
$paths = array_keys(CityConst::byID($city['city'])::$path);
$paths = array_keys(CityConst::byID($city['city'])->path);
$command = 'che_이동';
$arg = ['destCityID'=>Util::choiceRandom($paths)];
break;