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; }
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; }
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); }
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); }