game: 내정 1% 감소 후, 세율 반영하도록 변경

This commit is contained in:
2022-03-23 20:26:07 +09:00
parent 65f2836379
commit 98f48441c9
+5 -5
View File
@@ -10,8 +10,6 @@ function processSpring() {
$db = DB::db(); $db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env'); $gameStor = KVStorage::getStorage($db, 'game_env');
//인구 증가
popIncrease();
// 1월엔 무조건 내정 1% 감소 // 1월엔 무조건 내정 1% 감소
$db->update('city',[ $db->update('city',[
'dead'=>0, 'dead'=>0,
@@ -22,6 +20,9 @@ function processSpring() {
'wall'=>$db->sqleval('wall * 0.99'), 'wall'=>$db->sqleval('wall * 0.99'),
],true); ],true);
//인구 증가
popIncrease();
// > 10000 유지비 3%, > 1000 유지비 1% // > 10000 유지비 3%, > 1000 유지비 1%
// 유지비 1% // 유지비 1%
$db->update('general', [ $db->update('general', [
@@ -290,9 +291,6 @@ function getWarGoldIncome(string $nationType, array $cityList){
function processFall() { function processFall() {
$db = DB::db(); $db = DB::db();
//인구 증가
popIncrease();
// 7월엔 무조건 내정 1% 감소 // 7월엔 무조건 내정 1% 감소
$db->update('city',[ $db->update('city',[
'dead'=>0, 'dead'=>0,
@@ -303,6 +301,8 @@ function processFall() {
'wall'=>$db->sqleval('wall * 0.99'), 'wall'=>$db->sqleval('wall * 0.99'),
],true); ],true);
//인구 증가
popIncrease();
// > 10000 유지비 3%, > 1000 유지비 1% // > 10000 유지비 3%, > 1000 유지비 1%
// 유지비 1% // 유지비 1%