아이템 코드를 String으로 바꾸었으므로 연동 대상 또한 변경

This commit is contained in:
2019-06-09 22:50:39 +09:00
parent 8699a43a22
commit 59c0c6cfb8
19 changed files with 315 additions and 605 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ use \sammo\General;
use \sammo\GeneralTrigger;
use function sammo\isConsumable;
use function sammo\getItemInfo;
use function sammo\getItemCost2;
use function sammo\getItemCost;
//XXX:임시용!
class che_Dummy extends \sammo\BaseItem{
@@ -32,11 +32,11 @@ class che_Dummy extends \sammo\BaseItem{
return $this->_consumable;
}
public function __construct(int $itemCode)
public function __construct(string $itemCode)
{
$this->_id = $itemCode;
[$this->_name, $this->_info] = getItemInfo($itemCode);
$this->_cost = getItemCost2($itemCode);
$this->_cost = getItemCost($itemCode);
$this->_consumable = isConsumable($itemCode);
}
}