버그 수정
This commit is contained in:
@@ -51,7 +51,7 @@ class che_전투태세 extends Command\GeneralCommand{
|
||||
}
|
||||
|
||||
public function getCost():array{
|
||||
$crew = $this->getVar('crew');
|
||||
$crew = $this->generalObj->getVar('crew');
|
||||
$techCost = getTechCost($this->nation['tech']);
|
||||
return [Util::round($crew / 100 * 3 * $techCost), 0];
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class RaiseInvader extends \sammo\Event\Action{
|
||||
order by rand() limit 1', $nation, $oldCapital);
|
||||
$db->update('nation', ['capital'=>$newCapital], 'nation=%i', $nation);
|
||||
|
||||
$db->update('general', ['city'=>$newCapital], 'nation=%i and city=%i', $nation, $city);
|
||||
$db->update('general', ['city'=>$newCapital], 'nation=%i and city=%i', $nation, $oldCapital);
|
||||
}
|
||||
|
||||
$generals = [];
|
||||
|
||||
@@ -10,7 +10,10 @@ class Scenario{
|
||||
private $iconPath = '.';
|
||||
private $data;
|
||||
|
||||
/** @var int */
|
||||
private $year;
|
||||
|
||||
/** @var string */
|
||||
private $title;
|
||||
|
||||
private $history;
|
||||
|
||||
@@ -104,7 +104,7 @@ class SpecialityConst{
|
||||
}
|
||||
|
||||
$invWar = [];
|
||||
foreach(static::War as $key=>$val){
|
||||
foreach(static::WAR as $key=>$val){
|
||||
$nameKey = $val[0];
|
||||
$val[0] = $key;
|
||||
$invWar[$nameKey] = $val;
|
||||
|
||||
Reference in New Issue
Block a user