예제 #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;
 }
예제 #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;
        }
예제 #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);
        }
예제 #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);
        }