Util::range 추가
This commit is contained in:
@@ -132,7 +132,7 @@ class che_거병 extends Command\GeneralCommand{
|
||||
|
||||
$turnRows = [];
|
||||
foreach([12, 11] as $chiefLevel){
|
||||
foreach(range(0, GameConst::$maxChiefTurn - 1) as $turnIdx){
|
||||
foreach(Util::range(GameConst::$maxChiefTurn) as $turnIdx){
|
||||
$turnRows[] = [
|
||||
'nation_id'=>$nationID,
|
||||
'level'=>$chiefLevel,
|
||||
|
||||
@@ -275,12 +275,12 @@ class che_불가침제의 extends Command\NationCommand{
|
||||
<?php endforeach; ?>
|
||||
</select>에게
|
||||
<select class='formInput' name="year" id="year" size='1' style='color:white;background-color:black;'>
|
||||
<?php foreach(range($currYear+1, $currYear+20) as $formYear): ?>
|
||||
<?php foreach(Util::range($currYear+1, $currYear+20+1) as $formYear): ?>
|
||||
<option value='<?=$formYear?>'><?=$formYear?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>년
|
||||
<select class='formInput' name="month" id="month" size='1' style='color:white;background-color:black;'>
|
||||
<?php foreach(range(1, 12) as $formMonth): ?>
|
||||
<?php foreach(Util::range(1, 12+1) as $formMonth): ?>
|
||||
<option value='<?=$formMonth?>'><?=$formMonth?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>월 전까지
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user