정장, 선정 커맨드 문제로 명성,계급 반영 위치 이동
This commit is contained in:
@@ -79,6 +79,10 @@ class che_기술연구 extends che_상업투자{
|
|||||||
|
|
||||||
$score *= CriticalScoreEx($pick);
|
$score *= CriticalScoreEx($pick);
|
||||||
$score = Util::round($score);
|
$score = Util::round($score);
|
||||||
|
|
||||||
|
$exp = $score * 0.7;
|
||||||
|
$ded = $score * 1.0;
|
||||||
|
|
||||||
$scoreText = number_format($score, 0);
|
$scoreText = number_format($score, 0);
|
||||||
|
|
||||||
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
||||||
@@ -92,8 +96,6 @@ class che_기술연구 extends che_상업투자{
|
|||||||
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
||||||
}
|
}
|
||||||
|
|
||||||
$exp = $score * 0.7;
|
|
||||||
$ded = $score * 1.0;
|
|
||||||
|
|
||||||
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
||||||
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
||||||
|
|||||||
@@ -106,6 +106,10 @@ class che_상업투자 extends BaseCommand{
|
|||||||
|
|
||||||
$score *= CriticalScoreEx($pick);
|
$score *= CriticalScoreEx($pick);
|
||||||
$score = Util::round($score);
|
$score = Util::round($score);
|
||||||
|
|
||||||
|
$exp = $score * 0.7;
|
||||||
|
$ded = $score * 1.0;
|
||||||
|
|
||||||
$scoreText = number_format($score, 0);
|
$scoreText = number_format($score, 0);
|
||||||
|
|
||||||
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
||||||
@@ -119,9 +123,6 @@ class che_상업투자 extends BaseCommand{
|
|||||||
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
||||||
}
|
}
|
||||||
|
|
||||||
$exp = $score * 0.7;
|
|
||||||
$ded = $score * 1.0;
|
|
||||||
|
|
||||||
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
||||||
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
||||||
|
|
||||||
|
|||||||
@@ -48,13 +48,7 @@ class che_상업투자 extends BaseCommand{
|
|||||||
protected function calcBaseScore():float{
|
protected function calcBaseScore():float{
|
||||||
$general = $this->generalObj;
|
$general = $this->generalObj;
|
||||||
|
|
||||||
if(static::$statKey == 'intel'){
|
if(static::$statKey == 'leader'){
|
||||||
$score = getGeneralIntel($general->getRaw(), true, true, true, false);
|
|
||||||
}
|
|
||||||
else if(static::$statKey == 'power'){
|
|
||||||
$score = getGeneralPower($general->getRaw(), true, true, true, false);
|
|
||||||
}
|
|
||||||
else if(static::$statKey == 'leader'){
|
|
||||||
$score = getGeneralLeadership($general->getRaw(), true, true, true, false);
|
$score = getGeneralLeadership($general->getRaw(), true, true, true, false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -99,21 +93,26 @@ class che_상업투자 extends BaseCommand{
|
|||||||
|
|
||||||
$score *= CriticalScoreEx($pick);
|
$score *= CriticalScoreEx($pick);
|
||||||
$score = Util::round($score);
|
$score = Util::round($score);
|
||||||
|
|
||||||
|
$exp = $score * 0.7;
|
||||||
|
$ded = $score * 1.0;
|
||||||
|
|
||||||
|
$score *= 10;
|
||||||
|
|
||||||
$scoreText = number_format($score, 0);
|
$scoreText = number_format($score, 0);
|
||||||
|
|
||||||
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
||||||
if($pick == 'fail'){
|
if($pick == 'fail'){
|
||||||
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} <span class='ev_failed'>실패</span>하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} <span class='ev_failed'>실패</span>하여 주민이 <C>$scoreText</>명 증가했습니다. <1>$date</>");
|
||||||
}
|
}
|
||||||
else if($pick == 'success'){
|
else if($pick == 'success'){
|
||||||
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} <S>성공</>하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} <S>성공</>하여 주민이 <C>$scoreText</>명 증가했습니다. <1>$date</>");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 주민이 <C>$scoreText</>명 증가했습니다. <1>$date</>");
|
||||||
}
|
}
|
||||||
|
|
||||||
$exp = $score * 0.7;
|
|
||||||
$ded = $score * 1.0;
|
|
||||||
|
|
||||||
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
||||||
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ class che_주민선정 extends BaseCommand{
|
|||||||
throw new \sammo\MustNotBeReachedException();
|
throw new \sammo\MustNotBeReachedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$score /= 10;
|
|
||||||
$score *= getDomesticExpLevelBonus($general['explevel']);
|
$score *= getDomesticExpLevelBonus($general['explevel']);
|
||||||
$score *= Util::randRange(0.8, 1.2);
|
$score *= Util::randRange(0.8, 1.2);
|
||||||
$score = $general->onCalcDomestic(static::$actionKey, 'score', $score);
|
$score = $general->onCalcDomestic(static::$actionKey, 'score', $score);
|
||||||
@@ -94,6 +93,12 @@ class che_주민선정 extends BaseCommand{
|
|||||||
$date = substr($general->getVar('turntime'),11,5);
|
$date = substr($general->getVar('turntime'),11,5);
|
||||||
|
|
||||||
$score *= CriticalScoreEx($pick);
|
$score *= CriticalScoreEx($pick);
|
||||||
|
|
||||||
|
$exp = $score * 0.7;
|
||||||
|
$ded = $score * 1.0;
|
||||||
|
|
||||||
|
$score /= 10;
|
||||||
|
|
||||||
$scoreText = number_format($score, 1);
|
$scoreText = number_format($score, 1);
|
||||||
|
|
||||||
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
$josaUl = JosaUtil::pick(static::$actionName, '을');
|
||||||
@@ -107,9 +112,6 @@ class che_주민선정 extends BaseCommand{
|
|||||||
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
$logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 <C>$scoreText</> 상승했습니다. <1>$date</>");
|
||||||
}
|
}
|
||||||
|
|
||||||
$exp = $score * 0.7;
|
|
||||||
$ded = $score * 1.0;
|
|
||||||
|
|
||||||
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
|
||||||
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user