feat: 턴 시간 변경을 직관적인 동작으로 재 설계

- '다다음턴' 부터 시간을 00:00 ~ 59:59까지 랜덤하게
This commit is contained in:
2023-12-25 07:51:54 +00:00
parent 61d99a3043
commit 8e3551cb11
5 changed files with 17 additions and 98 deletions
+2 -9
View File
@@ -111,7 +111,7 @@
</div>
<div class="a-right">
<small class="form-text text-muted"
> 시간이 , 랜덤하게 바뀝니다. (필요 포인트가 피보나치식으로 증가합니다)<br /><span style="color: white"
>다음턴부터 시간이 랜덤하게 바뀝니다. (필요 포인트가 피보나치식으로 증가합니다)<br /><span style="color: white"
>필요 포인트: {{ inheritActionCost.resetTurnTime }}</span
></small
>
@@ -458,14 +458,7 @@ async function tryResestTurnTime(){
return;
}
const { minTurnTime, maxTurnTime } = await SammoAPI.InheritAction.CalcResetTurnTimeRange();
//YYYY-MM-DD hh:mm:ss 에서 hh:mm:ss 까지만 보여줄 예정
const textMinTurnTime = minTurnTime.substring(11, 19);
const textMaxTurnTime = maxTurnTime.substring(11, 19);
const msg = `${cost} 포인트로 턴을 초기화 하시겠습니까?\n${textMinTurnTime} ~ ${textMaxTurnTime} 사이의 시간으로 초기화 됩니다.`;
const msg = `${cost} 포인트로 턴을 초기화 하시겠습니까?\n다다음턴부터 무작위 시간으로 초기화 됩니다.`;
if (!confirm(msg)) {
return;
}
-5
View File
@@ -174,11 +174,6 @@ const apiRealPath = {
BuyRandomUnique: PUT as APICallT<undefined>,
ResetSpecialWar: PUT as APICallT<undefined>,
ResetTurnTime: PUT as APICallT<undefined>,
CalcResetTurnTimeRange: GET as APICallT<undefined, {
result: true,
minTurnTime: string,
maxTurnTime: string,
}>,
SetNextSpecialWar: PUT as APICallT<{
type: string;
}>,