feat: 전투 시뮬레이터에 시드 값 입력 가능
- 시드 값 입력시 반복 횟수는 1회로 고정 - 스킬 성공 여부는 동일하나, 실제 수치가 조금 다른 경우가 관측 이유는 추후 확인 - 히든 버프는 아직 미 반영
This commit is contained in:
@@ -84,6 +84,7 @@ type BattleInfo = {
|
||||
year: number,
|
||||
month: number,
|
||||
repeatCnt: number,
|
||||
seed?: string,
|
||||
};
|
||||
|
||||
type ExportedGeneralInfo = {
|
||||
@@ -638,6 +639,12 @@ $(function ($) {
|
||||
const defenderCity = battleData.defenderCity;
|
||||
const defenderNation = battleData.defenderNation;
|
||||
|
||||
const seed = battleData.seed;
|
||||
|
||||
if(seed){
|
||||
$('#seed').val(seed);
|
||||
}
|
||||
|
||||
$('#year').val(battleData.year);
|
||||
$('#month').val(battleData.month);
|
||||
$('#repeat_cnt').val(battleData.repeatCnt);
|
||||
@@ -712,6 +719,8 @@ $(function ($) {
|
||||
const month = parseInt(unwrap_any<string>($('#month').val()));
|
||||
const repeatCnt = parseInt(unwrap_any<string>($('#repeat_cnt').val()));
|
||||
|
||||
const seed = unwrap_any<string>($('#seed').val());
|
||||
|
||||
return {
|
||||
attackerGeneral: attackerGeneral,
|
||||
attackerCity: attackerCity,
|
||||
@@ -724,6 +733,8 @@ $(function ($) {
|
||||
year: year,
|
||||
month: month,
|
||||
repeatCnt: repeatCnt,
|
||||
|
||||
seed,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user