범용성을 목적으로 LazyVarUpdater를 분리

This commit is contained in:
2018-09-02 17:25:04 +09:00
parent e7ed58ea2b
commit 0a888b0d0e
4 changed files with 83 additions and 81 deletions
+1 -4
View File
@@ -971,10 +971,7 @@ class WarUnitGeneral extends WarUnit{
* @param \MeekroDB $db
*/
function applyDB($db):bool{
$updateVals = [];
foreach(array_keys($this->updatedVar) as $key){
$updateVals[$key] = $this->raw[$key];
}
$updateVals = $this->getUpdatedValues();
if(!$updateVals){
return false;