보상 기준 변경, 버그 수정
This commit is contained in:
+9
-1
@@ -332,7 +332,15 @@ function refreshMailboxList(obj){
|
|||||||
generalList = {};
|
generalList = {};
|
||||||
|
|
||||||
|
|
||||||
|
obj.nation.sort(function(lhs, rhs){
|
||||||
|
if(lhs.mailbox == myNation.mailbox){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if(rhs.mailbox == myNation.mailbox){
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return lhs.mailbox - rhs.mailbox;
|
||||||
|
})
|
||||||
|
|
||||||
$.each(obj.nation, function(){
|
$.each(obj.nation, function(){
|
||||||
var nation = this;
|
var nation = this;
|
||||||
|
|||||||
@@ -89,9 +89,7 @@ class che_상업투자 extends Command\GeneralCommand{
|
|||||||
|
|
||||||
|
|
||||||
public function getCompensationStyle():?int{
|
public function getCompensationStyle():?int{
|
||||||
$develCost = $this->env['develcost'];
|
return $this->generalObj->onCalcDomestic(static::$actionKey, 'score', 100)<=>100;
|
||||||
$reqGold = $this->getCost()[0];
|
|
||||||
return $develCost <=>$reqGold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPreReqTurn():int{
|
public function getPreReqTurn():int{
|
||||||
|
|||||||
@@ -87,9 +87,7 @@ class che_정착장려 extends Command\GeneralCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getCompensationStyle():?int{
|
public function getCompensationStyle():?int{
|
||||||
$develCost = $this->env['develcost'] * 2;
|
return 100<=>$this->generalObj->onCalcDomestic(static::$actionKey, 'score', 100);
|
||||||
$reqGold = $this->getCost()[1];
|
|
||||||
return $develCost <=>$reqGold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPreReqTurn():int{
|
public function getPreReqTurn():int{
|
||||||
|
|||||||
@@ -87,9 +87,7 @@ class che_주민선정 extends Command\GeneralCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getCompensationStyle():?int{
|
public function getCompensationStyle():?int{
|
||||||
$develCost = $this->env['develcost'] * 2;
|
return 100<=>$this->generalObj->onCalcDomestic(static::$actionKey, 'score', 100);
|
||||||
$reqGold = $this->getCost()[1];
|
|
||||||
return $develCost <=>$reqGold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPreReqTurn():int{
|
public function getPreReqTurn():int{
|
||||||
|
|||||||
Reference in New Issue
Block a user