public TileMustRestOn(string name, RenderType renderType, Material material, int textureX, int textureY, int x8th, int y8th, int restOnX, int restOnY, Tile[] restOns, bool drop) : base(name, renderType, material, textureX, textureY) { this.x8th = x8th; this.y8th = y8th; this.restOnX = restOnX; this.restOnY = restOnY; this.restOns = restOns; this.drop = drop; }
public ItemStack(Tile tile, int count) : this(Item.itemTile, count, tile.index) { }
public bool setTile(int x, int y, Tile tile, World.TileDepth tileDepth) { return tile == null ? false : setTile(x, y, tile.index, tileDepth); }
public TileMustRestOn(string name, RenderType renderType, Material material, int textureX, int textureY, int x8th, int y8th, int restOnX, int restOnY, Tile restOn, bool drop) : this(name, renderType, material, textureX, textureY, x8th, y8th, restOnX, restOnY, new Tile[] { restOn }, drop) { }
public int getPower(Tile.Material material) { return Game.instance.inventory.applyMiningPowerModifier(powers[(int)material]); }