// Decompiled with JetBrains decompiler // Type: Terraria.GameContent.Generation.ActionPlaceStatue // Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null // MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83 // Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe using Microsoft.Xna.Framework; using Terraria.DataStructures; using Terraria.WorldBuilding; namespace Terraria.GameContent.Generation { public class ActionPlaceStatue : GenAction { private int _statueIndex; public ActionPlaceStatue(int index = -1) => this._statueIndex = index; public override bool Apply(Point origin, int x, int y, params object[] args) { Point16 point16 = this._statueIndex != -1 ? WorldGen.statueList[this._statueIndex] : WorldGen.statueList[GenBase._random.Next(2, WorldGen.statueList.Length)]; WorldGen.PlaceTile(x, y, (int) point16.X, true, style: ((int) point16.Y)); return this.UnitApply(origin, x, y, args); } } }