코드 정리. 버그 수정. 접경 디버프 반영

This commit is contained in:
2018-10-02 02:27:29 +09:00
parent 6a49887ad7
commit e975a8106f
7 changed files with 12 additions and 3 deletions
@@ -9,4 +9,5 @@ class che_농지개간 extends che_상업투자{
static $statKey = 'intel'; static $statKey = 'intel';
static $actionKey = '농업'; static $actionKey = '농업';
static $actionName = '농지 개간'; static $actionName = '농지 개간';
static $debuffFront = 0.5;
} }
@@ -18,11 +18,12 @@ use function sammo\uniqueItemEx;
use function sammo\getGeneralLeadership; use function sammo\getGeneralLeadership;
class che_상업투자 extends GeneralCommand{ class che_상업투자 extends Command\GeneralCommand{
static $cityKey = 'comm'; static $cityKey = 'comm';
static $statKey = 'intel'; static $statKey = 'intel';
static $actionKey = '상업'; static $actionKey = '상업';
static $actionName = '상업 투자'; static $actionName = '상업 투자';
static $debuffFront = 0.5;
protected function init(){ protected function init(){
@@ -131,6 +132,10 @@ class che_상업투자 extends GeneralCommand{
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp); $exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded); $ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
if($this->city['front'] == 1 && $this->nation['capital'] != $this->city['city']){
$score *= static::$debuffFront;
}
//NOTE: 내정량 상승시 초과 가능? //NOTE: 내정량 상승시 초과 가능?
$cityUpdated = [ $cityUpdated = [
static::$cityKey => Util::valueFit( static::$cityKey => Util::valueFit(
@@ -9,4 +9,5 @@ class che_성벽보수 extends che_상업투자{
static $statKey = 'power'; static $statKey = 'power';
static $actionKey = '성벽'; static $actionKey = '성벽';
static $actionName = '성벽 보수'; static $actionName = '성벽 보수';
static $debuffFront = 0.25;
} }
@@ -9,4 +9,5 @@ class che_수비강화 extends che_상업투자{
static $statKey = 'power'; static $statKey = 'power';
static $actionKey = '수비'; static $actionKey = '수비';
static $actionName = '수비 강화'; static $actionName = '수비 강화';
static $debuffFront = 0.5;
} }
@@ -18,7 +18,7 @@ use function sammo\uniqueItemEx;
use function sammo\getGeneralLeadership; use function sammo\getGeneralLeadership;
class che_상업투자 extends GeneralCommand{ class che_정착장려 extends Command\GeneralCommand{
static $cityKey = 'pop'; static $cityKey = 'pop';
static $statKey = 'leader'; static $statKey = 'leader';
static $actionKey = '인구'; static $actionKey = '인구';
@@ -18,7 +18,7 @@ use function sammo\uniqueItemEx;
use function sammo\getGeneralLeadership; use function sammo\getGeneralLeadership;
class che_주민선정 extends GeneralCommand{ class che_주민선정 extends Command\GeneralCommand{
static $cityKey = 'trust'; static $cityKey = 'trust';
static $statKey = 'leader'; static $statKey = 'leader';
static $actionKey = '민심'; static $actionKey = '민심';
@@ -9,4 +9,5 @@ class che_치안강화 extends che_상업투자{
static $statKey = 'power'; static $statKey = 'power';
static $actionKey = '치안'; static $actionKey = '치안';
static $actionName = '치안 강화'; static $actionName = '치안 강화';
static $debuffFront = 1;
} }