Added events and mountains to the game flow class.
parent
9f136525a0
commit
4d0f4a7589
|
@ -6,6 +6,8 @@ import { HuntPhase } from '../phases/hunt';
|
|||
import { HandleSetup as SetupPhase } from '../phases/setup';
|
||||
import { travelPhase as TravelPhase } from '../phases/travel';
|
||||
import { ActionPhase } from '../phases/action';
|
||||
import { EventPhase } from './gameEvents';
|
||||
import { MountainPhase } from '../phases/mountain';
|
||||
|
||||
class GameFlow {
|
||||
|
||||
|
@ -41,9 +43,11 @@ class GameFlow {
|
|||
break;
|
||||
case PHASE_ENUM.EVENT:
|
||||
// Handle random events that can occur
|
||||
await EventPhase.handleRandomEvent(gameState);
|
||||
break;
|
||||
case PHASE_ENUM.MOUNTAIN:
|
||||
// Handle mountain traversal challenges
|
||||
await MountainPhase.handleMountain(gameState);
|
||||
break;
|
||||
case PHASE_ENUM.DEATH:
|
||||
// Check if conditions leading to the player's death have been met
|
||||
|
|
Loading…
Reference in New Issue