forked from devsam/core
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2e578e485 |
@@ -9,7 +9,7 @@ class che_오두미도 extends \sammo\BaseNation{
|
||||
protected $name = '오두미도';
|
||||
protected $info = '';
|
||||
static $pros = '쌀수입↑ 인구↑';
|
||||
static $cons = '기술↓ 수성↓ 내정↓';
|
||||
static $cons = '기술↓ 수성↓ 농상↓';
|
||||
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
|
||||
@@ -40,4 +40,4 @@ class che_오두미도 extends \sammo\BaseNation{
|
||||
return $amount;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class che_유가 extends \sammo\BaseNation{
|
||||
|
||||
protected $name = '유가';
|
||||
protected $info = '';
|
||||
static $pros = '내정↑ 민심↑';
|
||||
static $pros = '농상↑ 민심↑';
|
||||
static $cons = '쌀수입↓';
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
|
||||
@@ -31,4 +31,4 @@ class che_유가 extends \sammo\BaseNation{
|
||||
|
||||
return $amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class che_음양가 extends \sammo\BaseNation{
|
||||
|
||||
protected $name = '음양가';
|
||||
protected $info = '';
|
||||
static $pros = '내정↑ 인구↑';
|
||||
static $pros = '농상↑ 인구↑';
|
||||
static $cons = '기술↓ 전략↓';
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
|
||||
@@ -39,4 +39,4 @@ class che_음양가 extends \sammo\BaseNation{
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ class che_종횡가 extends \sammo\BaseNation{
|
||||
protected $name = '종횡가';
|
||||
protected $info = '';
|
||||
static $pros = '전략↑ 수성↑';
|
||||
static $cons = '금수입↓ 내정↓';
|
||||
static $cons = '금수입↓ 농상↓';
|
||||
|
||||
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
|
||||
if($turnType == '수비' || $turnType == '성벽'){
|
||||
@@ -42,4 +42,4 @@ class che_종횡가 extends \sammo\BaseNation{
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,16 +67,12 @@ class RaiseInvader extends \sammo\Event\Action
|
||||
|
||||
foreach ($db->queryAllLists('SELECT capital, nation from nation WHERE capital in %li', $cities) as $row) {
|
||||
[$oldCapital, $nation] = $row;
|
||||
$capitalCandidates = $db->queryFirstColumn('SELECT city from city WHERE nation = %i AND city != %i', $nation, $oldCapital);
|
||||
$capitalCandidates = $db->queryFirstColumn('SELECT from city WHERE nation = %i AND city != %i', $nation, $oldCapital);
|
||||
if (!$capitalCandidates) {
|
||||
$disabledInvaderCity->add($oldCapital);
|
||||
continue;
|
||||
}
|
||||
|
||||
do {
|
||||
$newCapital = $rng->choice($capitalCandidates);
|
||||
} while(in_array($newCapital, $cities);
|
||||
|
||||
$newCapital = $rng->choice($capitalCandidates);
|
||||
$db->update('nation', ['capital' => $newCapital], 'nation=%i', $nation);
|
||||
$db->update('general', ['city' => $newCapital], 'nation=%i and city=%i', $nation, $oldCapital);
|
||||
}
|
||||
|
||||
@@ -318,7 +318,6 @@ class GameConstBase
|
||||
'che_치안강화',
|
||||
'che_정착장려',
|
||||
'che_주민선정',
|
||||
'che_물자조달',
|
||||
],
|
||||
'군사' => [
|
||||
'che_징병',
|
||||
@@ -349,6 +348,7 @@ class GameConstBase
|
||||
'국가' => [
|
||||
'che_증여',
|
||||
'che_헌납',
|
||||
'che_물자조달',
|
||||
'che_하야',
|
||||
'che_거병',
|
||||
'che_건국',
|
||||
|
||||
Reference in New Issue
Block a user