전투 특기 클래스 추가,
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user