webpack: dynamic js build on update
This commit is contained in:
@@ -169,7 +169,7 @@ class che_강행 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/defaultSelectCityByMap.js'
|
||||
'dist_js/defaultSelectCityByMap.js'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ class che_건국 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/colorSelect.js'
|
||||
'dist_js/colorSelect.js'
|
||||
];
|
||||
}
|
||||
|
||||
@@ -216,14 +216,14 @@ class che_건국 extends Command\GeneralCommand
|
||||
foreach(GetNationColors() as $color){
|
||||
$colorUsed[$color] = 0;
|
||||
}
|
||||
|
||||
|
||||
foreach(getAllNationStaticInfo() as $nation){
|
||||
if($nation['level'] <= 0){
|
||||
continue;
|
||||
}
|
||||
$colorUsed[$nation['color']]++;
|
||||
}
|
||||
|
||||
|
||||
$colorUsedCnt = 0;
|
||||
foreach($colorUsed as $color=>$used){
|
||||
if($used){
|
||||
@@ -231,7 +231,7 @@ class che_건국 extends Command\GeneralCommand
|
||||
}
|
||||
$colorUsedCnt += 1;
|
||||
}
|
||||
|
||||
|
||||
//색깔이 다 쓰였으면 그냥 모두 허용
|
||||
if($colorUsedCnt === count($colorUsed)){
|
||||
foreach(array_keys($colorUsed) as $color){
|
||||
|
||||
@@ -177,7 +177,7 @@ class che_이동 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/defaultSelectCityByMap.js'
|
||||
'dist_js/defaultSelectCityByMap.js'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ class che_징병 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/recruitCrewForm.js'
|
||||
'dist_js/recruitCrewForm.js'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ class che_첩보 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/defaultSelectCityByMap.js'
|
||||
'dist_js/defaultSelectCityByMap.js'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ class che_출병 extends Command\GeneralCommand
|
||||
ConstraintHelper::ReqGeneralRice($reqRice),
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected function initWithArg()
|
||||
@@ -199,7 +199,7 @@ class che_출병 extends Command\GeneralCommand
|
||||
else{
|
||||
$logger->pushGeneralActionLog("가까운 경로에 적군 도시가 없습니다. <G><b>{$defenderCityName}</b></>{$josaRo} 이동합니다. <1>$date</>");
|
||||
}
|
||||
|
||||
|
||||
$this->alternative = new che_이동($general, $this->env, ['destCityID' => $defenderCityID]);
|
||||
return false;
|
||||
}
|
||||
@@ -239,7 +239,7 @@ class che_출병 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/defaultSelectCityByMap.js'
|
||||
'dist_js/defaultSelectCityByMap.js'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class che_화계 extends Command\GeneralCommand
|
||||
$general = $this->generalObj;
|
||||
|
||||
$this->setCity();
|
||||
|
||||
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
|
||||
@@ -118,7 +118,7 @@ class che_화계 extends Command\GeneralCommand
|
||||
ConstraintHelper::ReqGeneralRice($reqRice),
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected function initWithArg()
|
||||
@@ -335,7 +335,7 @@ class che_화계 extends Command\GeneralCommand
|
||||
public function getJSFiles(): array
|
||||
{
|
||||
return [
|
||||
'js/defaultSelectCityByMap.js'
|
||||
'dist_js/defaultSelectCityByMap.js'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user