버그 수정
This commit is contained in:
@@ -105,6 +105,11 @@ class che_거병 extends Command\GeneralCommand{
|
|||||||
$diplomacyInit = [];
|
$diplomacyInit = [];
|
||||||
foreach(getAllNationStaticInfo() as $destNation){
|
foreach(getAllNationStaticInfo() as $destNation){
|
||||||
$destNationID = $destNation['nation'];
|
$destNationID = $destNation['nation'];
|
||||||
|
|
||||||
|
if($nationID == $destNationID){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$diplomacyInit[] = [
|
$diplomacyInit[] = [
|
||||||
'me'=>$destNationID,
|
'me'=>$destNationID,
|
||||||
'you'=>$nationID,
|
'you'=>$nationID,
|
||||||
|
|||||||
@@ -1239,10 +1239,10 @@ class GeneralAI{
|
|||||||
|
|
||||||
if($nation['rice'] < 2000){
|
if($nation['rice'] < 2000){
|
||||||
if(($genType & self::t통솔장) && $general->getVar('rice') > $baseArmRice){
|
if(($genType & self::t통솔장) && $general->getVar('rice') > $baseArmRice){
|
||||||
return ['che_헌납', ['isGold'=>false, 'amount'=>($general->getVar('rice') - $baseArmRice) / 2]];
|
return ['che_헌납', ['isGold'=>false, 'amount'=>Util::toInt(($general->getVar('rice') - $baseArmRice) / 2)]];
|
||||||
}
|
}
|
||||||
else if(!($genType & self::t통솔장)){
|
else if(!($genType & self::t통솔장)){
|
||||||
return ['che_헌납', ['isGold'=>false, 'amount'=>$general->getVar('rice') / 2]];
|
return ['che_헌납', ['isGold'=>false, 'amount'=>Util::toInt($general->getVar('rice') / 2)]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user