아이템 속성이 동적으로 변경되어 static 제거

This commit is contained in:
2019-10-04 14:30:45 +09:00
parent 9181cbfee5
commit 07328847f4
101 changed files with 323 additions and 404 deletions
+8 -8
View File
@@ -7,13 +7,13 @@ use \sammo\General;
class BaseItem implements iAction{
use \sammo\DefaultAction;
protected static $id = 0;
protected static $name = '-';
protected static $info = '';
protected static $cost = null;
protected static $consumable = false;
protected static $buyable = false;
protected static $reqSecu = 0;
protected $id = 0;
protected $name = '-';
protected $info = '';
protected $cost = null;
protected $consumable = false;
protected $buyable = false;
protected $reqSecu = 0;
function getID(){
return $this->id;
@@ -36,7 +36,7 @@ class BaseItem implements iAction{
}
function getReqSecu(){
return static::$reqSecu;
return $this->reqSecu;
}
function isValidTurnItem(string $actionType, string $command):bool{