Beispiel #1
0
 public void Execute(EventResults result, Game game, EventContext context)
 {
     Room targetRoom = game.GetRoomById(roomId);
     if (context.CurrentCharacter.CurrentRoom.Priority < targetRoom.Priority)
         throw new Exception("Can only move from a higher priority room to a lower one.");
     context.CurrentCharacter.CurrentRoom = targetRoom;
 }