아이템에 consumable 개념 추가, GameConstBase에 아이템 준비

This commit is contained in:
Hide_D committed 2019-05-13 03:17:48 +09:00
1 parent 8c163515db
commit ac0f6c6b6c
8 files changed
+51

No files matched your search

+5
View File
@@ -12,6 +12,7 @@ class BaseItem implements iAction{
protected static $info = '';
protected static $cost = null;
protected static $consumable = false;
protected static $buyable = false;
function getID(){
return $this->id;
@@ -29,6 +30,10 @@ class BaseItem implements iAction{
return $this->consumable;
}
function isBuyable(){
return $this->buyable;
}
function isValidTurnItem(string $actionType, string $command):bool{
return false;
}