Exemple #1
0
 public static bool OpenChest(GameScreen gs, TileBlock b)
 {
     Item i = GameScreen.Items[ItemId.Gold].Clone();
     i.addToStack(ScreenManager.Rand.Next(6, 24));
     b.setTile(TileBlock.OPEN_CHEST);
     gs.TileMap.dropItem(i, gs.Player);
     return true;
 }
Exemple #2
0
        public static bool WallHeal(GameScreen gs, TileBlock b)
        {
            if (gs.Player.Stats.HpPercent != 1) {
                gs.Player.heal((int) (gs.Player.Stats.MaxHp * 0.1));
                b.setTile(TileBlock.EMPTYMAGIC_WALL);
            }

            return true;
        }
Exemple #3
0
        public static bool OpenChest(GameScreen gs, TileBlock b)
        {
            Item i = GameScreen.Items[ItemId.Gold].Clone();

            i.addToStack(ScreenManager.Rand.Next(6, 24));
            b.setTile(TileBlock.OPEN_CHEST);
            gs.TileMap.dropItem(i, gs.Player);
            return(true);
        }
Exemple #4
0
        public static bool WallHeal(GameScreen gs, TileBlock b)
        {
            if (gs.Player.Stats.HpPercent != 1)
            {
                gs.Player.heal((int)(gs.Player.Stats.MaxHp * 0.1));
                b.setTile(TileBlock.EMPTYMAGIC_WALL);
            }

            return(true);
        }