범용성을 목적으로 LazyVarUpdater를 분리
This commit is contained in:
1 parent
e7ed58ea2b
commit
0a888b0d0e
4 files changed
+83
-81
No files matched your search
@@ -137,10 +137,7 @@ class WarUnitCity extends WarUnit{
|
||||
|
||||
|
||||
function applyDB($db):bool{
|
||||
$updateVals = [];
|
||||
foreach(array_keys($this->updatedVar) as $key){
|
||||
$updateVals[$key] = $this->raw[$key];
|
||||
}
|
||||
$updateVals = $this->getUpdatedValues();
|
||||
|
||||
if(!$updateVals){
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user