Util::range 추가

This commit is contained in:
2020-04-09 02:07:50 +09:00
parent d540cd0a77
commit 09d28eff90
18 changed files with 77 additions and 43 deletions
+2 -2
View File
@@ -255,12 +255,12 @@ class che_원조 extends Command\NationCommand{
<?php endforeach; ?>
</select>
국고 <select class='formInput' name="amountList[]" class="amountList" size='1' style='color:white;background-color:black;'>
<?php foreach(range(0, $currentNationLevel) as $nationLevel): ?>
<?php foreach(Util::range($currentNationLevel+1) as $nationLevel): ?>
<option value='<?=$nationLevel*GameConst::$coefAidAmount?>'><?=$nationLevel*GameConst::$coefAidAmount?></option>
<?php endforeach; ?>
</select>
병량 <select class='formInput' name="amountList[]" class="amountList" size='1' style='color:white;background-color:black;'>
<?php foreach(range(0, $currentNationLevel) as $nationLevel): ?>
<?php foreach(Util::range($currentNationLevel+1) as $nationLevel): ?>
<option value='<?=$nationLevel*GameConst::$coefAidAmount?>'><?=$nationLevel*GameConst::$coefAidAmount?></option>
<?php endforeach; ?>
</select>