아이템에 consumable 개념 추가, GameConstBase에 아이템 준비
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user