forked from devsam/core
집합장 때문에 총 기술치가 깎이는 버그 수정
This commit is contained in:
@@ -962,7 +962,7 @@ function updateNationState() {
|
||||
$history = array();
|
||||
$admin = $gameStor->getValues(['year', 'month', 'fiction', 'startyear', 'show_img_level', 'turnterm']);
|
||||
|
||||
$query = "select nation,name,level from nation";
|
||||
$query = "select nation,name,level,gennum,tech from nation";
|
||||
$nationresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$nationcount = MYDB_num_rows($nationresult);
|
||||
|
||||
@@ -1048,6 +1048,11 @@ function updateNationState() {
|
||||
]);
|
||||
$troopID = $db->insertId();
|
||||
|
||||
$db->update('nation', [
|
||||
'gennum'=>$nation['gennum']+1,
|
||||
'totaltech'=>Util::valueFit($nation['gennum']+1, GameConst::$initialNationGenLimit) * $nation['tech'],
|
||||
], 'nation=%i', $nation['nation']);
|
||||
|
||||
$command = EncodeCommand(0, 0, 0, 26); //집합
|
||||
$db->update('general', [
|
||||
'troop'=>$troopID,
|
||||
|
||||
Reference in New Issue
Block a user