전투 특기 클래스 추가,

This commit is contained in:
2018-09-17 03:31:36 +09:00
parent 6eb67b1a3c
commit b79045eddb
34 changed files with 487 additions and 41 deletions
+5 -4
View File
@@ -76,14 +76,15 @@ function displayCharInfo(?int $type):string{
]);
}
function displaySpecialWarInfo(?int $type):string{
$info = getSpecialInfo($type);
$text = getGenSpecial($type);
function displaySpecialWarInfo(?string $type):string{
$class = getGeneralSpecialWarClass($type);
$info = $class::$info;
$name = $class::$name;
$templates = new \League\Plates\Engine(__dir__.'/templates');
return $templates->render('tooltip', [
'text'=>$text,
'text'=>$name,
'info'=>$info,
]);
}