내특을 int에서 string으로 변경

This commit is contained in:
2018-09-03 02:07:41 +09:00
parent dd5feb0e2c
commit e7ae2ab441
24 changed files with 133 additions and 126 deletions
+14 -1
View File
@@ -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);