턴 버그 수정, 아이템 관련 구 코드 수정
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user