Definition at line 135 of file Wiring.cs.
136 {
138 for (
int num =
_numMechs - 1; num >= 0; num--)
139 {
144 {
146 }
147 else
148 {
150 if (tile == null)
151 {
153 }
154 else
155 {
156 if (tile.active() && tile.type == 144)
157 {
158 if (tile.frameY == 0)
159 {
161 }
162 else
163 {
164 int num4 = tile.frameX / 18;
166 {
167 case 0:
169 break;
170 case 1:
172 break;
173 case 2:
175 break;
176 case 3:
178 break;
179 case 4:
181 break;
182 }
184 {
187 }
188 }
189 }
191 {
192 if (tile.active() && tile.type == 144)
193 {
194 tile.frameY = 0;
195 NetMessage.SendTileSquare(-1,
_mechX[num],
_mechY[num]);
196 }
197 if (tile.active() && tile.type == 411)
198 {
199 int num5 = tile.frameX % 36 / 18;
200 int num6 = tile.frameY % 36 / 18;
204 if (Main.tile[
num7,
num8].frameX >= 36)
205 {
207 }
209 {
211 {
213 {
216 {
218 }
219 }
220 }
221 }
222 NetMessage.SendTileSquare(-1,
num7,
num8, 2, 2);
223 }
225 {
229 }
231 }
232 }
233 }
234 }
235 }
static double IEEERemainder(double x, double y)
static void SetCurrentUser(int plr=-1)
static void TripWire(int left, int top, int width, int height)
References Terraria.Wiring._mechTime, Terraria.Wiring._mechX, Terraria.Wiring._mechY, Terraria.Wiring._numMechs, Terraria.Tile.active(), Terraria.Tile.frameY, System.Math.IEEERemainder(), Terraria.WorldGen.InWorld(), Terraria.NetMessage.SendTileSquare(), Terraria.Wiring.SetCurrentUser(), Terraria.Main.tile, Terraria.Wiring.TripWire(), and Terraria.Tile.type.
Referenced by Terraria.WorldGen.UpdateWorld().