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

This commit is contained in:
2019-10-06 01:45:50 +09:00
parent 969306822f
commit c48b0c17ba
14 changed files with 41 additions and 795 deletions
-18
View File
@@ -99,7 +99,6 @@ function getNationType(?string $type) {
$nationClass = buildNationTypeClass($type);
$text = $nationClass->getName();
$text = join(' ', StringUtil::splitString($text));
$cache[$type] = $text;
return $text;
}
@@ -629,23 +628,6 @@ function isConsumable(?string $item) : bool{
return $itemClass->isConsumable();
}
function getItemInfo(?string $item):?array{
if($item === null){
return ['-', null];
}
$itemClass = buildItemClass($item);
return [$itemClass->getName(), $itemClass->getInfo()];
}
function getItemCost(?string $item) : int {
if($item === null){
return 0;
}
$itemClass = buildItemClass($item);
return $itemClass->getCost();
}
function getNameColor(int $npcType):?string{
if($npcType >= 2){
return 'cyan';