Ejemplo n.º 1
0
 public override void OpenIfMarked()
 {
     if (Story.CastleChests[ChestArrayIndex][TheEvent.ChestID] == 1)
     {
         TheEvent.SetOpenTilesOnMap(Map);
     }
 }
Ejemplo n.º 2
0
        public override void OpenIfMarked()
        {
            var chests = ChestArray();

            if (chests[TheEvent.ChestID] != 0)
            {
                TheEvent.SetOpenTilesOnMap(Map);
            }
        }
Ejemplo n.º 3
0
        public override async Task <bool> Open()
        {
            await TextArea.PrintLine();

            await TextArea.PrintLine();

            if (TheEvent.Closed)
            {
                await TextArea.PrintLine("you see yellow guard");

                await TextArea.PrintLine("armor in the bottom.");

                PlayOpenChestSound();
                TheEvent.SetOpenTilesOnMap(GameState.Map);

                await GameControl.WaitAsync(GameState.GameSpeed.CastleOpenChestSoundTime);
            }
            else
            {
                await TextArea.PrintLine("box open already.");
            }

            return(true);
        }