턴 버그 수정, 아이템 관련 구 코드 수정

This commit is contained in:
2019-10-06 01:45:50 +09:00
parent 44f0e78086
commit 2006845ff7
14 changed files with 41 additions and 795 deletions
+10 -1
View File
@@ -101,8 +101,17 @@ class General implements iAction{
][$short]($this->getVar('turntime'));
}
function setItem(string $itemKey='item', ?string $itemCode){
if($itemCode === null){
$this->deleteItem($itemKey);
}
$this->setVar($itemKey, $itemCode);
$this->itemObjs[$itemKey] = buildItemClass($itemCode);
}
function deleteItem(string $itemKey='item'){
$this->setVar($itemKey, 0);
$this->setVar($itemKey, 'None');
$this->itemObjs[$itemKey] = new ActionItem\None();
}