루미큐브·다빈치 코드·마작 차례 시간 '무제한' 옵션: 무제한이면 타이머·시간 초과 없음(연결 끊김 처리는 그대로)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1065,8 +1065,8 @@ function Options({ value: o, onChange }: OptionsProps<MahjongOptions>) {
|
||||
<Field label="대국 길이" help="동풍전 약 25분, 반장전 약 50분">
|
||||
<Seg label="대국 길이" value={o.length} options={[['tonpuu', '동풍전'], ['hanchan', '반장전']]} onChange={(length) => set({ length })} />
|
||||
</Field>
|
||||
<Field label="타패 제한 시간">
|
||||
<Seg label="타패 제한 시간" value={o.turnSeconds} options={[[10, '10초'], [15, '15초'], [20, '20초'], [30, '30초'], [60, '60초']]} onChange={(turnSeconds) => set({ turnSeconds })} />
|
||||
<Field label="타패 제한 시간" help={o.turnSeconds === 0 ? '무제한이면 울기·론 응답도 시간 없이 기다려요.' : undefined}>
|
||||
<Seg label="타패 제한 시간" value={o.turnSeconds} options={[[10, '10초'], [15, '15초'], [20, '20초'], [30, '30초'], [60, '60초'], [0, '무제한']]} onChange={(turnSeconds) => set({ turnSeconds })} />
|
||||
</Field>
|
||||
<Field label="초보 모드 허용" help="켜면 각자 대기패·역 힌트를 켜고 끌 수 있어요.">
|
||||
<Seg label="초보 모드 허용" value={o.beginnerMode} options={onOff} onChange={(beginnerMode) => set({ beginnerMode })} />
|
||||
@@ -1138,12 +1138,16 @@ function Options({ value: o, onChange }: OptionsProps<MahjongOptions>) {
|
||||
<Field label="연풍패 머리 부수">
|
||||
<Seg label="연풍패 머리 부수" value={o.renpuuPairFu} options={[[2, '2부'], [4, '4부']]} onChange={(renpuuPairFu) => set({ renpuuPairFu })} />
|
||||
</Field>
|
||||
<Field label="울기·론 응답 시간">
|
||||
<Seg label="울기·론 응답 시간" value={o.claimSeconds} options={[[5, '5초'], [8, '8초'], [12, '12초'], [20, '20초']]} onChange={(claimSeconds) => set({ claimSeconds })} />
|
||||
</Field>
|
||||
<Field label="개인 예비 시간" help="타패 시간을 넘기면 깎이고, 매 국 5초씩 다시 채워져요.">
|
||||
<Seg label="개인 예비 시간" value={o.timeBankSeconds} options={[[0, '없음'], [30, '30초'], [60, '60초'], [120, '120초']]} onChange={(timeBankSeconds) => set({ timeBankSeconds })} />
|
||||
</Field>
|
||||
{o.turnSeconds !== 0 && (
|
||||
<>
|
||||
<Field label="울기·론 응답 시간">
|
||||
<Seg label="울기·론 응답 시간" value={o.claimSeconds} options={[[5, '5초'], [8, '8초'], [12, '12초'], [20, '20초']]} onChange={(claimSeconds) => set({ claimSeconds })} />
|
||||
</Field>
|
||||
<Field label="개인 예비 시간" help="타패 시간을 넘기면 깎이고, 매 국 5초씩 다시 채워져요.">
|
||||
<Seg label="개인 예비 시간" value={o.timeBankSeconds} options={[[0, '없음'], [30, '30초'], [60, '60초'], [120, '120초']]} onChange={(timeBankSeconds) => set({ timeBankSeconds })} />
|
||||
</Field>
|
||||
</>
|
||||
)}
|
||||
<Field label="(3인) 쯔모 지불">
|
||||
<Seg label="3인 쯔모 지불" value={o.sanmaTsumo} options={[['tsumoLoss', '쯔모손'], ['northBisection', '북가 몫 반씩']]} onChange={(sanmaTsumo) => set({ sanmaTsumo })} />
|
||||
</Field>
|
||||
@@ -1165,7 +1169,7 @@ function optionsSummary(o: MahjongOptions): string {
|
||||
if (o.kuitan) parts.push('쿠이탕');
|
||||
if (o.doubleRon === 'headBump') parts.push('머리튀기');
|
||||
if (o.beginnerMode) parts.push('초보 모드');
|
||||
parts.push(`${o.turnSeconds}초`);
|
||||
parts.push(o.turnSeconds === 0 ? '시간 무제한' : `${o.turnSeconds}초`);
|
||||
return parts.join(' · ');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user