환약 사용 여부가 안보이는 버그 수정
This commit is contained in:
+5
-5
@@ -78,11 +78,11 @@ var availableDieImmediately = <?=$availableDieImmediately?'true':'false'?>;
|
|||||||
∞<span style='color:orange'>개막직전 남는자리가 있을경우 랜덤하게 참여합니다.</span><br><br>
|
∞<span style='color:orange'>개막직전 남는자리가 있을경우 랜덤하게 참여합니다.</span><br><br>
|
||||||
|
|
||||||
환약 사용 【<select id='use_treatment' name='use_treatment'>
|
환약 사용 【<select id='use_treatment' name='use_treatment'>
|
||||||
<option value=10 <?=$use_treatment==10?"selected":""; ?>>경상</option>
|
<option value=10 <?=($use_treatment==10)?"selected":""; ?>>경상</option>
|
||||||
<option value=20 <?=$use_treatment==21?"selected":""; ?>>중상</option>
|
<option value=21 <?=($use_treatment==21)?"selected":""; ?>>중상</option>
|
||||||
<option value=40 <?=$use_treatment==41?"selected":""; ?>>심각</option>
|
<option value=41 <?=($use_treatment==41)?"selected":""; ?>>심각</option>
|
||||||
<option value=60 <?=$use_treatment==61?"selected":""; ?>>위독</option>
|
<option value=61 <?=($use_treatment==61)?"selected":""; ?>>위독</option>
|
||||||
<option value=100 <?=$use_treatment==100?"selected":""; ?>>사용안함</option>
|
<option value=100 <?=($use_treatment==100)?"selected":""; ?>>사용안함</option>
|
||||||
</select>】<br>
|
</select>】<br>
|
||||||
∞<span style='color:orange'>부상을 입었을 때 환약을 사용하는 기준입니다.</span><br><br>
|
∞<span style='color:orange'>부상을 입었을 때 환약을 사용하는 기준입니다.</span><br><br>
|
||||||
<?php if(($gameStor->autorun_user['options']['chief'])??false) : ?>
|
<?php if(($gameStor->autorun_user['options']['chief'])??false) : ?>
|
||||||
|
|||||||
@@ -52,12 +52,12 @@ if($defence_train != $me->getVar('defence_train')){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$me->setAuxVar('use_treatment', Util::valueFit($use_treatment, 10, 100));
|
||||||
|
|
||||||
if($use_auto_nation_turn != $me->getAuxVar('use_auto_nation_turn')){
|
if($use_auto_nation_turn != $me->getAuxVar('use_auto_nation_turn')){
|
||||||
$me->setAuxVar('use_auto_nation_turn', $use_auto_nation_turn);
|
$me->setAuxVar('use_auto_nation_turn', $use_auto_nation_turn);
|
||||||
}
|
}
|
||||||
|
|
||||||
$me->setAuxVar('use_treatment', Util::valueFit($use_treatment, 10, 100));
|
|
||||||
|
|
||||||
if($me->getVar('tnmt') != $tnmt){
|
if($me->getVar('tnmt') != $tnmt){
|
||||||
$me->setVar('tnmt', $tnmt);
|
$me->setVar('tnmt', $tnmt);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ trait LazyVarUpdater{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function unpackAux(){
|
function unpackAux(){
|
||||||
if(($this->raw['auxVar']??null) === null){
|
if(!key_exists('auxVar', $this->raw)){
|
||||||
if(!key_exists('aux', $this->raw)){
|
if(!key_exists('aux', $this->raw)){
|
||||||
throw new \RuntimeException('aux is not set');
|
throw new \RuntimeException('aux is not set');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user