버그 수정
This commit is contained in:
+2
-2
@@ -1223,8 +1223,8 @@ function addAge() {
|
||||
if($admin['year'] >= $admin['startyear']+3) {
|
||||
foreach($db->query('SELECT no,name,nation,leadership,strength,intel from general where specage<=age and special=%s', GameConst::$defaultSpecialDomestic) as $general){
|
||||
$special = SpecialityConst::pickSpecialDomestic($general);
|
||||
$specialClass = getGeneralSpecialDomesticClass($special);
|
||||
$specialText = $specialClass::$name;
|
||||
$specialClass = buildGeneralSpecialDomesticClass($special);
|
||||
$specialText = $specialClass->getName();
|
||||
$db->update('general', [
|
||||
'special'=>$special
|
||||
], 'no=%i',$general['no']);
|
||||
|
||||
@@ -13,7 +13,7 @@ function getCharacterList(){
|
||||
$infoText = [];
|
||||
foreach(GameConst::$allPersonality as $personalityID){
|
||||
$class = buildPersonalityClass($personalityID);
|
||||
$infoText[$personalityID] = [$class->getName(), $class::$info];
|
||||
$infoText[$personalityID] = [$class->getName(), $class->getInfo()];
|
||||
}
|
||||
return $infoText;
|
||||
}
|
||||
|
||||
@@ -93,9 +93,9 @@ function displaySpecialWarInfo(?string $type):string{
|
||||
}
|
||||
|
||||
function displaySpecialDomesticInfo(?string $type):string{
|
||||
$class = getGeneralSpecialDomesticClass($type);
|
||||
$info = $class::$info;
|
||||
$name = $class::$name;
|
||||
$class = buildGeneralSpecialDomesticClass($type);
|
||||
$info = $class->getInfo();
|
||||
$name = $class->getName();
|
||||
|
||||
$templates = new \League\Plates\Engine(__dir__.'/templates');
|
||||
|
||||
|
||||
@@ -129,8 +129,8 @@ class che_건국 extends Command\GeneralCommand{
|
||||
|
||||
$logger = $general->getLogger();
|
||||
|
||||
$nationTypeClass = getNationTypeClass($nationType);
|
||||
$nationTypeName = $nationTypeClass::$name;
|
||||
$nationTypeClass = buildNationTypeClass($nationType);
|
||||
$nationTypeName = $nationTypeClass->getName();
|
||||
|
||||
|
||||
$logger->pushGeneralActionLog("<D><b>{$nationName}</></>{$josaUl} 건국하였습니다. <1>$date</>");
|
||||
@@ -216,9 +216,9 @@ class che_건국 extends Command\GeneralCommand{
|
||||
$form[] = '현재 도시에서 나라를 세웁니다. 중, 소도시에서만 가능합니다.<br><br>';
|
||||
|
||||
foreach(GameConst::$availableNationType as $nationType){
|
||||
$nationClass = getNationTypeClass($nationType);
|
||||
$nationClass = buildNationTypeClass($nationType);
|
||||
|
||||
[$name, $pros, $cons] = [$nationClass::$name, $nationClass::$pros, $nationClass::$cons];
|
||||
[$name, $pros, $cons] = [$nationClass->getName(), $nationClass::$pros, $nationClass::$cons];
|
||||
$form[] = "- $name : <span style='color:cyan;'>{$pros}</span> <span style='color:magenta;'>{$cons}</span><br>";
|
||||
|
||||
}
|
||||
@@ -240,9 +240,9 @@ EOT;
|
||||
성향 : <select class='formInput' name='nationType' id='nationType' size='1'>
|
||||
EOT;
|
||||
foreach(GameConst::$availableNationType as $nationType){
|
||||
$nationClass = getNationTypeClass($nationType);
|
||||
$nationClass = buildNationTypeClass($nationType);
|
||||
|
||||
$name = $nationClass::$name;
|
||||
$name = $nationClass->getName();
|
||||
$form[] = "<option value='{$nationType}' style=background-color:black;color:white;>{$name}</option>";
|
||||
|
||||
}
|
||||
|
||||
+3
-3
@@ -38,9 +38,9 @@ var specialInfo =
|
||||
<?php
|
||||
$specialAll = [];
|
||||
foreach (GameConst::$availableSpecialDomestic as $id) {
|
||||
$domesticClass = getGeneralSpecialDomesticClass($id);
|
||||
$name = $domesticClass::$name;
|
||||
$info = $domesticClass::$info;
|
||||
$domesticClass = buildGeneralSpecialDomesticClass($id);
|
||||
$name = $domesticClass->getName();
|
||||
$info = $domesticClass->getInfo();
|
||||
$specialAll[$name] = $info;
|
||||
}
|
||||
foreach (SpecialityConst::WAR as $id=>$values) {
|
||||
|
||||
Reference in New Issue
Block a user