커스텀 필요한 항목들 모두 커스텀 가능하도록 수정.

This commit is contained in:
kimyu
2026-09-10 23:05:17 +09:00
parent 1b99e3961d
commit a505b8a28b
8 changed files with 1201 additions and 232 deletions

View File

@@ -46,14 +46,15 @@ export class Chessman {
/**
* 무인도 상태에서의 주사위 처리.
* - escape: 6(또는 escapeOn)으로 탈출 → 이후 정상 이동
* - escape: escapeOn(기본 6)이 한 면이라도 나오면 탈출 → 이후 정상 이동
* - wait: 턴 소모 후 대기 (turnsLeft 0이면 자동 해제, 이번 턴은 이동 없음)
* - free: 이미 무인도 아님
*/
resolveIslandRoll(roll: number): 'escape' | 'wait' | 'free' {
resolveIslandRoll(roll: number, faces?: number[]): 'escape' | 'wait' | 'free' {
if (!this.island) return 'free';
if (roll === this.island.escapeOn) {
const values = faces && faces.length > 0 ? faces : [roll];
if (values.some((value) => value === this.island!.escapeOn)) {
this.island = null;
return 'escape';
}