내특을 int에서 string으로 변경
This commit is contained in:
+14
-1
@@ -76,7 +76,7 @@ function displayCharInfo(?int $type):string{
|
||||
]);
|
||||
}
|
||||
|
||||
function displaySpecialInfo(?int $type):string{
|
||||
function displaySpecialWarInfo(?int $type):string{
|
||||
$info = getSpecialInfo($type);
|
||||
$text = getGenSpecial($type);
|
||||
|
||||
@@ -88,6 +88,19 @@ function displaySpecialInfo(?int $type):string{
|
||||
]);
|
||||
}
|
||||
|
||||
function displaySpecialDomesticInfo(?string $type):string{
|
||||
$class = getGeneralSpecialDomesticClass($type);
|
||||
$info = $class::$info;
|
||||
$name = $class::$name;
|
||||
|
||||
$templates = new \League\Plates\Engine(__dir__.'/templates');
|
||||
|
||||
return $templates->render('tooltip', [
|
||||
'text'=>$name,
|
||||
'info'=>$info,
|
||||
]);
|
||||
}
|
||||
|
||||
function displayItemInfo(?int $type):string{
|
||||
$info = getItemInfo($type);
|
||||
$text = getItemName($type);
|
||||
|
||||
Reference in New Issue
Block a user