terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
WorldGen.cs
Go to the documentation of this file.
1using System;
10using Terraria.Audio;
12using Terraria.Enums;
20using Terraria.ID;
21using Terraria.IO;
23using Terraria.Map;
29
30namespace Terraria
31{
32 // Token: 0x02000471 RID: 1137
33 public class WorldGen
34 {
35 // Token: 0x170005FA RID: 1530
36 // (get) Token: 0x06002C3C RID: 11324 RVA: 0x001B7B30 File Offset: 0x001B5D30
37 public static UnifiedRandom genRand
38 {
39 get
40 {
41 /*
42An exception occurred when decompiling this method (06002C3C)
43
44ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Utilities.UnifiedRandom Terraria.WorldGen::get_genRand()
45
46 ---> System.Exception: Basic block has to end with unconditional control flow.
47{
48 IL_0006:
49 brtrue(IL_0000, ldc.i4:bool(1))
50}
51
52 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
53 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
54 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
55 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
57 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
58 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
59 --- End of inner exception stack trace ---
60 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
61 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
62*/;
63 }
64 }
65
66 // Token: 0x06002C3D RID: 11325 RVA: 0x001B7B48 File Offset: 0x001B5D48
67 public static void SetupStatueList()
68 {
69 }
70
71 // Token: 0x06002C3E RID: 11326 RVA: 0x001B7C74 File Offset: 0x001B5E74
72 public static void PlaceStatueTrap(int x, int y)
73 {
74 if (!true)
75 {
76 }
77 Tile tile;
78 bool flag = tile.active();
79 }
80
81 // Token: 0x06002C3F RID: 11327 RVA: 0x001B7C8C File Offset: 0x001B5E8C
83 {
84 }
85
86 // Token: 0x06002C40 RID: 11328 RVA: 0x001B7C9C File Offset: 0x001B5E9C
88 {
89 }
90
91 // Token: 0x06002C41 RID: 11329 RVA: 0x000021DB File Offset: 0x000003DB
93 {
94 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
95 }
96
97 // Token: 0x06002C42 RID: 11330 RVA: 0x000021DB File Offset: 0x000003DB
99 {
100 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
101 }
102
103 // Token: 0x06002C43 RID: 11331 RVA: 0x000021DB File Offset: 0x000003DB
105 {
106 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
107 }
108
109 // Token: 0x06002C44 RID: 11332 RVA: 0x000021DB File Offset: 0x000003DB
110 private static IEntitySource GetProjectileSource_PlayerOrWires(int x, int y, bool fromWiring, Player player)
111 {
112 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
113 }
114
115 // Token: 0x06002C45 RID: 11333 RVA: 0x001B7CAC File Offset: 0x001B5EAC
116 public static bool EmptyLiquid(int x, int y)
117 {
118 /*
119An exception occurred when decompiling this method (06002C45)
120
121ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::EmptyLiquid(System.Int32,System.Int32)
122
123 ---> System.Exception: Basic block has to end with unconditional control flow.
124{
125 IL_0049:
126 call:void(Liquid::AddWater, ldc.i4:int32(42179336), ldloc:int32(x))
127}
128
129 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
130 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
131 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
132 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
133 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
134 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
135 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
136 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
137 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
138 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
139 --- End of inner exception stack trace ---
140 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
141 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
142*/;
143 }
144
145 // Token: 0x06002C46 RID: 11334 RVA: 0x001B7D14 File Offset: 0x001B5F14
146 public static bool PlaceLiquid(int x, int y, byte liquidType, byte amount)
147 {
148 if (!true)
149 {
150 }
151 long num = 0L;
152 bool flag = WorldGen.InWorld(0, x, (int)num);
153 if (!flag)
154 {
155 }
156 Tile tile;
157 bool isLoaded = tile.IsLoaded;
158 if (!flag)
159 {
160 }
161 if (flag)
162 {
163 if (!flag)
164 {
165 }
166 if (!flag)
167 {
168 return;
169 }
170 }
171 if (!flag)
172 {
173 }
174 int num2 = 1;
175 WorldGen.SquareTileFrame(0, x, num2 != 0);
176 if (!flag)
177 {
178 }
179 if (flag)
180 {
181 if (!flag)
182 {
183 }
184 NetMessage.sendWater(0, x);
185 return false;
186 }
187 }
188
189 // Token: 0x06002C47 RID: 11335 RVA: 0x001B7D9C File Offset: 0x001B5F9C
190 public static void PlayLiquidChangeSound(TileChangeType eventType, int x, int y, int count = 1)
191 {
192 }
193
194 // Token: 0x06002C48 RID: 11336 RVA: 0x001B7DBC File Offset: 0x001B5FBC
195 public static TileChangeType GetLiquidChangeType(int liquidType, int otherLiquidType)
196 {
197 /*
198An exception occurred when decompiling this method (06002C48)
199
200ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.ID.TileChangeType Terraria.WorldGen::GetLiquidChangeType(System.Int32,System.Int32)
201
202 ---> System.Exception: Basic block has to end with unconditional control flow.
203{
204 IL_0006:
205 brtrue(IL_0000, ldloc:int32[exp:bool](liquidType))
206}
207
208 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
209 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
210 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
211 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
212 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
213 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
214 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
215 --- End of inner exception stack trace ---
216 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
217 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
218*/;
219 }
220
221 // Token: 0x06002C49 RID: 11337 RVA: 0x001B7DD4 File Offset: 0x001B5FD4
222 public static bool MoveTownNPC(int x, int y, int n)
223 {
224 int num = 1;
225 if (num == 0)
226 {
227 }
228 bool flag = WorldGen.StartRoomCheck(0, x);
229 if (num == 0)
230 {
231 }
232 bool flag2 = WorldGen.RoomNeeds(0);
233 if (!false)
234 {
235 }
236 if (!false)
237 {
238 }
239 string textValue = Language.GetTextValue("TownNPCHousingFailureReasons.TooCloseToWorldEdge");
240 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
241 {
242 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
243 {
244 }
245 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
246 {
247 }
248 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" != null)
249 {
250 return false;
251 }
252 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
253 {
254 }
255 if ("TownNPCHousingFailureReasons.RoomHasAStinkbug" == null)
256 {
257 goto IL_013C;
258 }
259 string textValue2 = Language.GetTextValue("TownNPCHousingFailureReasons.RoomHasAnEchoStinkbug");
260 if ("TownNPCHousingFailureReasons.RoomHasAnEchoStinkbug" == null)
261 {
262 return false;
263 }
264 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
265 {
266 }
267 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" != null)
268 {
269 return false;
270 }
271 string textValue3 = Language.GetTextValue("Game.HouseLightSource");
272 if (textValue3 == null || textValue3 != null)
273 {
274 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
275 {
276 }
277 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
278 {
279 string textValue4 = Language.GetTextValue("Game.HouseDoor");
280 if (textValue4 != null && textValue4 == null)
281 {
282 goto IL_0196;
283 }
284 }
285 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
286 {
287 }
288 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
289 {
290 string textValue5 = Language.GetTextValue("Game.HouseTable");
291 if (textValue5 != null && textValue5 == null)
292 {
293 goto IL_0196;
294 }
295 }
296 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
297 {
298 }
299 if (!false)
300 {
301 string textValue6 = Language.GetTextValue("Game.HouseChair");
302 if (textValue6 != null && textValue6 == null)
303 {
304 goto IL_0196;
305 }
306 }
307 string text2;
308 string text = "Game.HouseMissing_" + text2;
309 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
310 {
311 goto IL_011A;
312 }
313 goto IL_011A;
314 }
315 IL_0196:
316 throw new ArrayTypeMismatchException();
317 }
318 IL_011A:
319 int num2 = 255;
320 int num3 = 240;
321 int num4 = 20;
322 string text3;
323 Main.NewText(text3, (byte)num2, (byte)num3, (byte)num4);
324 IL_013C:
325 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
326 {
327 }
328 if ("TownNPCHousingFailureReasons.TooCloseToWorldEdge" == null)
329 {
330 }
331 return false;
332 }
333
334 // Token: 0x06002C4A RID: 11338 RVA: 0x001B7F7C File Offset: 0x001B617C
335 public static void moveRoom(int x, int y, int n)
336 {
337 if (!true)
338 {
339 }
341 }
342
343 // Token: 0x06002C4B RID: 11339 RVA: 0x001B7FA4 File Offset: 0x001B61A4
344 public static bool IsNPCEvictable(int n)
345 {
346 if (!true)
347 {
348 }
350 bool flag;
351 return flag;
352 }
353
354 // Token: 0x06002C4C RID: 11340 RVA: 0x001B7FC4 File Offset: 0x001B61C4
355 public static void kickOut(int n)
356 {
357 if (!true)
358 {
359 }
361 }
362
363 // Token: 0x06002C4D RID: 11341 RVA: 0x001B7FE4 File Offset: 0x001B61E4
364 public static bool IsThereASpawnablePrioritizedTownNPC(int x, int y, bool canSpawnNewTownNPC)
365 {
366 int num = 1;
367 if (num == 0)
368 {
369 }
371 if (num == 0)
372 {
373 }
374 return NPC.AnyNPCs(43143168);
375 }
376
377 // Token: 0x06002C4E RID: 11342 RVA: 0x001B8050 File Offset: 0x001B6250
378 public static bool IsThereASpawnablePrioritizedTownNPC_Old(int x, int y)
379 {
380 int num = 1;
381 if (num == 0)
382 {
383 }
385 if (num == 0)
386 {
387 }
388 bool flag2 = NPC.AnyNPCs(43143168);
389 long num2 = 0L;
390 bool flag3 = NPC.AnyNPCs(-1073741824);
393 bool flag6 = NPC.AnyNPCs((int)num2);
394 bool flag7;
395 return flag7;
396 }
397
398 // Token: 0x06002C4F RID: 11343 RVA: 0x001B80B0 File Offset: 0x001B62B0
399 public static bool CheckSpecialTownNPCSpawningConditions(int type)
400 {
401 /*
402An exception occurred when decompiling this method (06002C4F)
403
404ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::CheckSpecialTownNPCSpawningConditions(System.Int32)
405
406 ---> System.Exception: Basic block has to end with unconditional control flow.
407{
408 IL_000B:
409 stloc:bool(var_2_11, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_1)))
410}
411
412 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
413 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
414 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
415 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
416 --- End of inner exception stack trace ---
417 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
418 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
419*/;
420 }
421
422 // Token: 0x06002C50 RID: 11344 RVA: 0x001B80D8 File Offset: 0x001B62D8
423 public static void UnspawnTravelNPC()
424 {
425 int num = 1;
426 if (num == 0)
427 {
428 }
429 if (num == 0 || num == 0)
430 {
431 }
432 }
433
434 // Token: 0x06002C51 RID: 11345 RVA: 0x001B8164 File Offset: 0x001B6364
435 public static void SpawnTravelNPC()
436 {
437 if (!true)
438 {
439 }
440 }
441
442 // Token: 0x06002C52 RID: 11346 RVA: 0x001B83AC File Offset: 0x001B65AC
443 public static TownNPCSpawnResult SpawnTownNPC(int x, int y)
444 {
445 int num = 1;
446 if (num == 0)
447 {
448 }
449 Tile tile;
450 ushort wall = tile.wall;
451 int num2;
452 if (num != 0)
453 {
454 if (num == 0)
455 {
456 }
457 num2 = 1;
458 }
459 if (num == 0)
460 {
461 }
462 if (num != 0)
463 {
464 if (num == 0)
465 {
466 }
467 bool flag = WorldGen.StartRoomCheck(0, x);
468 if (num == 0)
469 {
470 }
471 bool flag2 = WorldGen.RoomNeeds(0);
472 if (num == 0)
473 {
474 }
476 if (num == 0)
477 {
478 }
479 if (num2 == 0)
480 {
481 }
482 if (!true)
483 {
484 }
485 long num4 = 0L;
486 if (num2 != 0 || num2 == 0)
487 {
488 }
489 if (num4 != 0L)
490 {
491 WorldGen.ScoreRoom(0, x);
492 int num5 = 1;
493 if (num5 == 0)
494 {
495 }
497 if (!false)
498 {
499 }
500 if (num5 == 0)
501 {
502 }
503 if (num5 == 0)
504 {
505 }
507 }
508 }
509 if (false)
510 {
511 int num5;
512 if (num5 == 0)
513 {
514 }
515 if (num5 == 0)
516 {
517 }
518 int num6 = 1;
519 int num3;
521 if (num5 == 0)
522 {
523 }
524 long num4;
526 if (!false)
527 {
528 }
529 int num7 = 8;
530 int num8 = 8;
531 int num9 = 32;
532 if (!false)
533 {
534 }
535 if (false)
536 {
537 if (num8 == 0)
538 {
539 }
540 if (num8 == 0 || num8 == 0)
541 {
542 }
543 }
545 if (num8 == 0)
546 {
547 }
548 if (num7 != 0)
549 {
550 return TownNPCSpawnResult.Blocked;
551 }
552 if (num7 == 0)
553 {
554 return TownNPCSpawnResult.Blocked;
555 }
556 if (num3 == 0)
557 {
558 }
559 if (num3 == 0)
560 {
561 string text;
562 string textValue = Language.GetTextValue("Announcement.HasArrived", text);
563 if (num3 == 0)
564 {
565 }
566 int num10 = 50;
567 int num11 = 125;
568 int num12 = 255;
569 Main.NewText(textValue, (byte)num10, (byte)num11, (byte)num12);
570 }
571 if (num3 == 0)
572 {
573 }
574 bool netHost = Main.NetHost;
575 if (num3 == 0)
576 {
577 }
579 if (networkText != null && networkText == null)
580 {
581 throw new ArrayTypeMismatchException();
582 }
585 if (!true)
586 {
587 }
588 if (!false)
589 {
590 }
591 if (false)
592 {
593 }
594 if (!false)
595 {
596 }
597 Tile tile2;
598 bool flag5 = tile2.nactive();
599 if (!false)
600 {
601 }
602 long num13 = 0L;
603 long num14 = 0L;
604 Tile tile3;
605 ushort type = tile3.type;
606 if (!false)
607 {
608 }
609 bool flag6 = Collision.SolidTiles(42168472, (int)num14, num9, (int)num13);
610 int num15 = 8;
611 if (num15 == 0)
612 {
613 }
614 int num16;
615 if (num15 != 0)
616 {
617 if (num15 == 0)
618 {
619 }
620 num16 = 32640;
621 }
622 if (num16 == 0)
623 {
624 }
625 if (num16 == 0)
626 {
627 }
628 if (num16 == 0)
629 {
630 }
631 if (num16 == 0)
632 {
633 }
634 if (num16 == 0)
635 {
636 }
637 if (num16 == 0)
638 {
639 }
640 if (num16 == 0)
641 {
642 }
643 if (num16 == 0)
644 {
645 }
647 }
648 return TownNPCSpawnResult.Blocked;
649 }
650
651 // Token: 0x06002C53 RID: 11347 RVA: 0x001B85C4 File Offset: 0x001B67C4
652 private static int FindAHomelessNPC()
653 {
654 /*
655An exception occurred when decompiling this method (06002C53)
656
657ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::FindAHomelessNPC()
658
659 ---> System.Exception: Basic block has to end with unconditional control flow.
660{
661 IL_0007:
662 stloc:bool(var_2_11, call:bool(WorldGen::CheckSpecialTownNPCSpawningConditions, ldc.i4:int32(43143168)))
663}
664
665 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
666 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
667 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
668 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
669 --- End of inner exception stack trace ---
670 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
671 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
672*/;
673 }
674
675 // Token: 0x06002C54 RID: 11348 RVA: 0x001B85E4 File Offset: 0x001B67E4
676 private static bool IsRoomConsideredAlreadyOccupied(int spawnTileX, int spawnTileY, int npcTypeToSpawn)
677 {
678 if (!true)
679 {
680 return;
681 }
682 }
683
684 // Token: 0x06002C55 RID: 11349 RVA: 0x001B8600 File Offset: 0x001B6800
686 {
687 int num = 1;
688 if (num == 0)
689 {
690 }
691 if (num != 0)
692 {
693 if (num == 0)
694 {
695 }
696 if (num == 0)
697 {
698 }
699 if (num == 0)
700 {
701 }
702 }
703 if (num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0)
704 {
706 }
707 if (num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0)
708 {
710 return;
711 }
712 }
713
714 // Token: 0x06002C56 RID: 11350 RVA: 0x001B86A8 File Offset: 0x001B68A8
715 public static bool RoomNeeds(int npcType)
716 {
717 /*
718An exception occurred when decompiling this method (06002C56)
719
720ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::RoomNeeds(System.Int32)
721
722 ---> System.Exception: Basic block has to end with unconditional control flow.
723{
724 IL_0069:
725 brtrue(IL_0000, ldloc:int32[exp:bool](var_6_2A))
726}
727
728 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
729 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
730 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
731 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
732 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
733 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
734 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
735 --- End of inner exception stack trace ---
736 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
737 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
738*/;
739 }
740
741 // Token: 0x06002C57 RID: 11351 RVA: 0x001B8724 File Offset: 0x001B6924
742 public static void QuickFindHome(int npc)
743 {
744 if (!true)
745 {
746 }
747 int num = 1;
748 if (num == 0)
749 {
750 }
751 if (num == 0)
752 {
753 }
754 if (num == 0)
755 {
756 }
757 }
758
759 // Token: 0x06002C58 RID: 11352 RVA: 0x001B8794 File Offset: 0x001B6994
760 private static bool IsRoomConsideredOccupiedForNPCIndex(int npc)
761 {
762 int num = 1;
763 if (num == 0)
764 {
765 }
766 if (num == 0 || num == 0 || num != 0)
767 {
768 return;
769 }
770 if (num == 0)
771 {
772 }
773 if (num == 0)
774 {
775 return;
776 }
777 }
778
779 // Token: 0x06002C59 RID: 11353 RVA: 0x001B87BC File Offset: 0x001B69BC
780 private static bool ScoreRoom_IsThisRoomOccupiedBySomeone(int ignoreNPC = -1, int npcTypeAsking = -1)
781 {
782 if (!true)
783 {
784 return;
785 }
786 }
787
788 // Token: 0x06002C5A RID: 11354 RVA: 0x001B87D8 File Offset: 0x001B69D8
789 public static void CountTileTypesInArea(int[] tileTypeCounts, int startX, int endX, int startY, int endY)
790 {
791 int num = 1;
792 if (num == 0)
793 {
794 }
795 Tile tile;
796 bool flag = tile.active();
797 if (num == 0)
798 {
799 }
800 Tile tile2;
801 ushort type = tile2.type;
802 }
803
804 // Token: 0x06002C5B RID: 11355 RVA: 0x001B87FC File Offset: 0x001B69FC
806 {
807 int num;
808 return num;
809 }
810
811 // Token: 0x06002C5C RID: 11356 RVA: 0x001B8810 File Offset: 0x001B6A10
812 public static void ScoreRoom(int ignoreNPC = -1, int npcTypeAskingToScoreRoom = -1)
813 {
814 if (!true)
815 {
816 }
818 }
819
820 // Token: 0x06002C5D RID: 11357 RVA: 0x001B894C File Offset: 0x001B6B4C
821 public static void Housing_GetTestedRoomBounds([Out] int startX, [Out] int endX, [Out] int startY, [Out] int endY)
822 {
823 int num = 1;
824 if (num == 0)
825 {
826 }
827 endY.m_value = num;
828 int num2 = 5;
830 if (num2 == 0)
831 {
832 }
834 int num3 = 5;
836 if (num3 == 0)
837 {
838 }
839 }
840
841 // Token: 0x06002C5E RID: 11358 RVA: 0x001B8984 File Offset: 0x001B6B84
842 private static bool ScoreRoom_CanBeHomeSpot(int x, int y)
843 {
844 if (!true)
845 {
846 }
847 Tile tile;
848 bool flag = tile.active();
849 return true;
850 }
851
852 // Token: 0x06002C5F RID: 11359 RVA: 0x001B89A0 File Offset: 0x001B6BA0
853 private static bool Housing_CheckIfIsCeiling(int i, int j)
854 {
855 int num = 1;
856 if (num == 0)
857 {
858 }
859 if (num == 0)
860 {
861 return;
862 }
863 }
864
865 // Token: 0x06002C60 RID: 11360 RVA: 0x001B89B8 File Offset: 0x001B6BB8
866 private static bool Housing_CheckIfInRoom(int i, int j)
867 {
868 int num = 1;
869 if (num == 0)
870 {
871 }
872 if (num == 0)
873 {
874 }
875 if (num == 0)
876 {
877 return;
878 }
879 }
880
881 // Token: 0x06002C61 RID: 11361 RVA: 0x001B89D4 File Offset: 0x001B6BD4
882 public static bool StartRoomCheck(int x, int y)
883 {
884 int num = 1;
885 if (num == 0)
886 {
887 }
888 if (num == 0)
889 {
890 }
891 return false;
892 }
893
894 // Token: 0x06002C62 RID: 11362 RVA: 0x001B8A38 File Offset: 0x001B6C38
895 public static void CheckRoom(int x, int y)
896 {
897 if (!true)
898 {
899 }
900 }
901
902 // Token: 0x06002C63 RID: 11363 RVA: 0x001B8AA8 File Offset: 0x001B6CA8
903 public static void dropMeteor()
904 {
905 int num = 1;
906 if (num == 0)
907 {
908 }
910 if (num == 0)
911 {
912 }
913 if (num != 0)
914 {
915 if (num == 0)
916 {
917 }
918 if (num != 0)
919 {
920 if (num == 0)
921 {
922 }
923 if (num != 0)
924 {
925 return;
926 }
927 long num2 = 16505L;
928 long num3 = 32752L;
929 if (num2 == 0L)
930 {
931 }
932 if (num2 == 0L)
933 {
934 }
935 if (num3 == 0L)
936 {
937 }
938 Tile tile;
939 bool flag = tile.active();
940 Tile tile2;
941 ushort type = tile2.type;
942 return;
943 }
944 }
945 }
946
947 // Token: 0x06002C64 RID: 11364 RVA: 0x001B8BC0 File Offset: 0x001B6DC0
948 public static bool meteor(int i, int j, bool ignorePlayers = false)
949 {
950 /*
951An exception occurred when decompiling this method (06002C64)
952
953ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::meteor(System.Int32,System.Int32,System.Boolean)
954
955 ---> System.Exception: Basic block has to end with unconditional control flow.
956{
957 IL_02CD:
958 stloc:bool(var_113_2D5, callgetter:bool(Main::get_NetHost))
959 stloc:bool(var_119_2F1, callgetter:bool(Main::get_LogicHost))
960}
961
962 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
963 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
964 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
965 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
966 --- End of inner exception stack trace ---
967 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
968 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
969*/;
970 }
971
972 // Token: 0x06002C65 RID: 11365 RVA: 0x001B8EC8 File Offset: 0x001B70C8
973 public static void setWorldSize()
974 {
975 int num = 1;
976 if (num == 0)
977 {
978 }
979 int num2 = 34079;
980 if (num2 == 0)
981 {
982 }
983 if (num == 0)
984 {
985 }
986 if (num2 == 0)
987 {
988 }
989 }
990
991 // Token: 0x06002C66 RID: 11366 RVA: 0x001B8EF8 File Offset: 0x001B70F8
992 public static int GetWorldSize()
993 {
994 /*
995An exception occurred when decompiling this method (06002C66)
996
997ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::GetWorldSize()
998
999 ---> System.Exception: Basic block has to end with unconditional control flow.
1000{
1001 IL_0003:
1002 brtrue(IL_0000, ldc.i4:int32[exp:bool](4201))
1003}
1004
1005 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1006 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1007 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1008 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1009 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1010 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1011 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1012 --- End of inner exception stack trace ---
1013 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1014 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1015*/;
1016 }
1017
1018 // Token: 0x06002C67 RID: 11367 RVA: 0x001B8F10 File Offset: 0x001B7110
1019 public static void worldGenCallback(object threadContext)
1020 {
1021 int num = 1;
1022 if (num == 0)
1023 {
1024 }
1026 if (num == 0)
1027 {
1028 }
1031 if (threadContext != null)
1032 {
1033 }
1034 }
1035
1036 // Token: 0x06002C68 RID: 11368 RVA: 0x001B8FB0 File Offset: 0x001B71B0
1037 public static void CreateNewWorld([Optional] GenerationProgress progress)
1038 {
1039 if (!true)
1040 {
1041 }
1042 if (!true)
1043 {
1044 }
1045 }
1046
1047 // Token: 0x06002C69 RID: 11369 RVA: 0x001B8FC8 File Offset: 0x001B71C8
1048 public static void JustQuit()
1049 {
1050 int num = 1;
1051 if (num == 0)
1052 {
1053 }
1054 Main.menuMode = 10;
1055 Main.gameMenu = true;
1057 if (num == 0)
1058 {
1059 }
1065 int myPlayer = Main.myPlayer;
1067 Main.menuMode = 0;
1068 }
1069
1070 // Token: 0x06002C6A RID: 11370 RVA: 0x001B904C File Offset: 0x001B724C
1071 private static void ShutDownServer()
1072 {
1073 }
1074
1075 // Token: 0x06002C6B RID: 11371 RVA: 0x001B9068 File Offset: 0x001B7268
1076 private static void WaitForFileSync()
1077 {
1078 string textValue = Language.GetTextValue("Mobile.FileSyncInProgress");
1079 }
1080
1081 // Token: 0x06002C6C RID: 11372 RVA: 0x001B909C File Offset: 0x001B729C
1082 public static void SaveAndQuitCallBack(object threadContext)
1083 {
1084 if (threadContext != null)
1085 {
1086 return;
1087 }
1090 }
1091
1092 // Token: 0x06002C6D RID: 11373 RVA: 0x001B91BC File Offset: 0x001B73BC
1094 {
1095 if (true)
1096 {
1097 if (localUserContext == null)
1098 {
1099 return;
1100 }
1101 }
1102 else if (localUserContext != null)
1103 {
1104 }
1105 }
1106
1107 // Token: 0x06002C6E RID: 11374 RVA: 0x001B91D8 File Offset: 0x001B73D8
1108 public static void SaveAndQuit()
1109 {
1110 if (!true)
1111 {
1112 }
1113 Main.Quitting = true;
1114 if (!true)
1115 {
1116 }
1117 }
1118
1119 // Token: 0x06002C6F RID: 11375 RVA: 0x001B91F4 File Offset: 0x001B73F4
1120 public static void RenameWorld(WorldFileData data, string newName, [Optional] Action<string> callback)
1121 {
1122 }
1123
1124 // Token: 0x06002C70 RID: 11376 RVA: 0x001B9204 File Offset: 0x001B7404
1125 public static void RenameWorldCallBack(object threadContext)
1126 {
1127 if (threadContext != null)
1128 {
1129 }
1130 }
1131
1132 // Token: 0x06002C71 RID: 11377 RVA: 0x001B9270 File Offset: 0x001B7470
1133 public static void playWorldCallBack(object threadContext)
1134 {
1135 int num = 1;
1136 if (num == 0)
1137 {
1138 }
1139 if (num == 0)
1140 {
1141 }
1142 long ticks = DateTime.Now.Ticks;
1143 int myPlayer = Main.myPlayer;
1144 int num2 = 1;
1146 if (num2 == 0)
1147 {
1148 }
1149 WorldFile.LoadWorld(true);
1150 if (num2 == 0)
1151 {
1152 if (num2 == 0)
1153 {
1154 }
1155 return;
1156 }
1157 if (num2 == 0)
1158 {
1159 }
1160 WorldFile.LoadWorld(true);
1161 if (num2 == 0)
1162 {
1163 if (num2 == 0)
1164 {
1165 }
1166 return;
1167 }
1168 string text = Main.worldPathName + ".bak";
1169 if (num2 == 0)
1170 {
1171 }
1172 if (num2 == 0)
1173 {
1174 }
1175 if (num2 == 0)
1176 {
1177 }
1178 bool flag;
1179 if (flag)
1180 {
1181 if (ticks == 0L)
1182 {
1183 string textValue = Language.GetTextValue("Error.LoadFailedNoBackup");
1184 if (num2 == 0)
1185 {
1186 }
1188 return;
1189 }
1190 string worldPathName = Main.worldPathName;
1191 string text2 = Main.worldPathName + ".bad";
1192 if (num2 == 0)
1193 {
1194 }
1195 int num3 = 1;
1196 FileUtilities.Copy(worldPathName, text2, true, num3 != 0);
1197 string text3 = Main.worldPathName + ".bak";
1199 int num4 = 1;
1201 FileUtilities.Delete(Main.worldPathName + ".bak", true);
1202 if (num2 == 0)
1203 {
1204 }
1205 WorldFile.LoadWorld(true);
1206 if (num2 == 0)
1207 {
1208 if (num2 == 0)
1209 {
1210 }
1211 return;
1212 }
1213 if (num2 == 0)
1214 {
1215 }
1216 WorldFile.LoadWorld(true);
1217 if (num2 != 0)
1218 {
1220 string text4 = Main.worldPathName + ".bak";
1221 if (num2 == 0)
1222 {
1223 }
1224 int num5 = 1;
1226 string text5 = Main.worldPathName + ".bad";
1228 int num6 = 1;
1230 FileUtilities.Delete(Main.worldPathName + ".bad", true);
1231 string textValue2 = Language.GetTextValue("Error.LoadFailed");
1232 if (num2 == 0)
1233 {
1234 }
1237 return;
1238 }
1239 if (num2 == 0)
1240 {
1241 }
1242 bool mapEnabled = Main.mapEnabled;
1243 Main.Map.Load();
1246 bool loadMapLock = Main.loadMapLock;
1248 int mapSectionsLeft = Main.sectionManager.mapSectionsLeft;
1250 if (num2 == 0)
1251 {
1252 }
1253 Thread.Sleep(0);
1255 return;
1256 }
1257 else
1258 {
1259 if (".bad" != null)
1260 {
1261 return;
1262 }
1263 Main.menuMode = 201;
1264 return;
1265 }
1266 }
1267
1268 // Token: 0x06002C72 RID: 11378 RVA: 0x001B9508 File Offset: 0x001B7708
1269 public static void JoinLocalWorld()
1270 {
1271 if (!true)
1272 {
1273 }
1274 }
1275
1276 // Token: 0x06002C73 RID: 11379 RVA: 0x001B951C File Offset: 0x001B771C
1277 public static void joinLocalWorldCallBack(object threadContext)
1278 {
1279 if (threadContext != null)
1280 {
1281 return;
1282 }
1283 long ticks = DateTime.Now.Ticks;
1284 long num = 0L;
1285 int num2 = 1;
1286 bool mapEnabled = Main.mapEnabled;
1287 Main.Map.Allocate((int)ticks, (int)num);
1288 Main.Map.Load();
1289 bool loadMapLock = Main.loadMapLock;
1291 int mapSectionsLeft = Main.sectionManager.mapSectionsLeft;
1293 if (num2 == 0)
1294 {
1295 }
1296 Thread.Sleep(0);
1298 }
1299
1300 // Token: 0x06002C74 RID: 11380 RVA: 0x001B95B8 File Offset: 0x001B77B8
1301 public static void FinaliseOnMainThread(object threadContext)
1302 {
1303 long num;
1304 if (threadContext != null)
1305 {
1306 num = 0L;
1307 return;
1308 }
1310 int num2 = 1;
1311 bool gameMenu = Main.gameMenu;
1312 WaterfallManager waterfallManager;
1313 waterfallManager.Reset();
1314 Main.gameMenu = false;
1315 if (num2 != 0)
1316 {
1317 }
1318 }
1319
1320 // Token: 0x06002C75 RID: 11381 RVA: 0x001B9658 File Offset: 0x001B7858
1321 public static void playWorld()
1322 {
1324 }
1325
1326 // Token: 0x06002C76 RID: 11382 RVA: 0x001B9670 File Offset: 0x001B7870
1327 public static void saveAndPlayCallBack(object threadContext)
1328 {
1329 if (!true)
1330 {
1331 }
1332 if (!true)
1333 {
1334 }
1336 }
1337
1338 // Token: 0x06002C77 RID: 11383 RVA: 0x001B968C File Offset: 0x001B788C
1339 public static void saveAndPlay()
1340 {
1341 if (!true)
1342 {
1343 }
1344 }
1345
1346 // Token: 0x06002C78 RID: 11384 RVA: 0x001B96A0 File Offset: 0x001B78A0
1348 {
1349 if (threadContext != null)
1350 {
1351 bool gameMenu = Main.gameMenu;
1353 bool flag = Main.SaveSettings();
1354 if (Main.ActivePlayerFileData != null)
1355 {
1357 if (player != null)
1358 {
1359 if (player == null)
1360 {
1361 }
1362 int num = 1;
1363 if (player == null)
1364 {
1365 }
1367 if (num == 0)
1368 {
1369 }
1370 long num2 = 0L;
1371 long num3 = 0L;
1373 }
1374 }
1375 }
1377 }
1378
1379 // Token: 0x06002C79 RID: 11385 RVA: 0x001B9720 File Offset: 0x001B7920
1380 public static void saveToonWhilePlaying()
1381 {
1382 if (!true)
1383 {
1384 }
1385 }
1386
1387 // Token: 0x06002C7A RID: 11386 RVA: 0x001B9734 File Offset: 0x001B7934
1388 public static void serverLoadWorldCallBack()
1389 {
1390 if (!true)
1391 {
1392 }
1393 if (!true)
1394 {
1395 }
1396 long ticks = DateTime.Now.Ticks;
1397 WorldFile.LoadWorld(true);
1398 WorldFile.LoadWorld(true);
1399 string text = Main.worldPathName + ".bak";
1400 bool flag;
1401 if (flag)
1402 {
1403 string worldPathName = Main.worldPathName;
1404 long num = 0L;
1405 string text2 = worldPathName + ".bak";
1407 FileUtilities.Copy(text2, worldPathName2, num != 0L, true);
1408 string text3 = Main.worldPathName + ".bak";
1409 WorldFile.LoadWorld(true);
1410 WorldFile.LoadWorld(true);
1411 return;
1412 }
1413 string textValue = Language.GetTextValue("Error.LoadFailedNoBackup");
1415 }
1416
1417 // Token: 0x06002C7B RID: 11387 RVA: 0x001B982C File Offset: 0x001B7A2C
1419 {
1420 if (!true)
1421 {
1422 }
1424 return managedThread;
1425 }
1426
1427 // Token: 0x06002C7C RID: 11388 RVA: 0x001B9840 File Offset: 0x001B7A40
1428 private static void SetWorldSizeOnMainThread(object data)
1429 {
1430 if (!true)
1431 {
1432 }
1434 int num = 150;
1435 if (num == 0)
1436 {
1437 }
1438 if (num == 0)
1439 {
1440 }
1441 bool logicHost = Main.LogicHost;
1442 if (num == 0)
1443 {
1444 }
1445 if (num == 0)
1446 {
1447 }
1448 WorldMap map = Main.Map;
1449 }
1450
1451 // Token: 0x06002C7D RID: 11389 RVA: 0x001B9884 File Offset: 0x001B7A84
1452 public static void clearWorld()
1453 {
1454 int num = 1;
1455 if (num == 0)
1456 {
1457 }
1459 if (num == 0)
1460 {
1461 }
1462 if (num == 0)
1463 {
1464 }
1466 Main.mapDelay = 2;
1467 Main.waterStyle = 0;
1468 Main.ResetWindCounter(true);
1472 TileEntity.Clear();
1473 Main.checkXMas();
1476 Wiring.ClearAll();
1477 bool mapReady = Main.mapReady;
1478 }
1479
1480 // Token: 0x06002C7E RID: 11390 RVA: 0x001B9A18 File Offset: 0x001B7C18
1481 public static void setBG(int bg, int style)
1482 {
1483 }
1484
1485 // Token: 0x06002C7F RID: 11391 RVA: 0x001B9AB8 File Offset: 0x001B7CB8
1486 private static void SetForestBGSet(int style, int[] mountainSet, int[] treeSet)
1487 {
1488 }
1489
1490 // Token: 0x06002C80 RID: 11392 RVA: 0x001B9AE0 File Offset: 0x001B7CE0
1491 public static void RandomizeWeather()
1492 {
1493 if (!true)
1494 {
1495 }
1496 int num = WorldGen.genRand.Next(10, 200);
1497 int num2 = WorldGen.genRand.Next(10, 401);
1498 }
1499
1500 // Token: 0x06002C81 RID: 11393 RVA: 0x001B9B1C File Offset: 0x001B7D1C
1501 public static void RandomizeMoonState(UnifiedRandom random, bool garenteeNewStyle = false)
1502 {
1503 if (!true)
1504 {
1505 }
1506 int num = random.Next(9);
1507 }
1508
1509 // Token: 0x06002C82 RID: 11394 RVA: 0x001B9B38 File Offset: 0x001B7D38
1510 public static void RandomizeBackgroundBasedOnPlayer(UnifiedRandom random, Player player)
1511 {
1512 bool zoneGlowshroom = player.ZoneGlowshroom;
1513 if (!true)
1514 {
1515 }
1516 if (!true)
1517 {
1518 }
1519 int num = random.Next(4);
1520 WorldGen.setBG(8, num);
1521 }
1522
1523 // Token: 0x06002C83 RID: 11395 RVA: 0x001B9C9C File Offset: 0x001B7E9C
1524 public static void RandomizeBackgrounds(UnifiedRandom random)
1525 {
1526 if (!true)
1527 {
1528 }
1529 int num = WorldGen.RollRandomForestBGStyle(random);
1532 }
1533
1534 // Token: 0x06002C84 RID: 11396 RVA: 0x001B9DAC File Offset: 0x001B7FAC
1535 private static int RollRandomForestBGStyle(UnifiedRandom random)
1536 {
1537 int num;
1538 if (num == 0)
1539 {
1540 int num2;
1541 if (num2 == 0)
1542 {
1543 }
1544 int num3;
1545 return num3;
1546 }
1547 int num4;
1548 return num4;
1549 }
1550
1551 // Token: 0x06002C85 RID: 11397 RVA: 0x001B9DF0 File Offset: 0x001B7FF0
1552 public static bool IsBackgroundConsideredTheSame(int oldBG, int newBG)
1553 {
1554 }
1555
1556 // Token: 0x06002C86 RID: 11398 RVA: 0x001B9E00 File Offset: 0x001B8000
1557 public static void RandomizeTreeStyle()
1558 {
1559 long num;
1560 if (true)
1561 {
1563 num = 32752L;
1565 int num2 = 6;
1566 int num3 = genRand2.Next(num2);
1568 int num4 = 6;
1569 int num5 = genRand3.Next(num4);
1570 if (num == 0L)
1571 {
1572 }
1573 if (num == 0L)
1574 {
1575 }
1576 while (num != 0L)
1577 {
1578 }
1579 return;
1580 }
1581 if (num == 0L)
1582 {
1583 }
1584 int num6 = 4200;
1585 if (num6 == 0)
1586 {
1587 }
1588 if (num6 == 0)
1589 {
1590 }
1592 int num8;
1593 long num9;
1594 int num7 = genRand4.Next(num8, (int)num9);
1595 int num10 = WorldGen.genRand.Next(num8, (int)num9);
1597 int num11 = 6;
1598 int num12 = genRand5.Next(num11);
1600 int num13 = 6;
1601 int num14 = genRand6.Next(num13);
1603 int num15 = 6;
1604 int num16 = genRand7.Next(num15);
1606 int num17 = 6;
1607 int num18 = genRand8.Next(num17);
1608 }
1609
1610 // Token: 0x06002C87 RID: 11399 RVA: 0x001BA014 File Offset: 0x001B8214
1611 public static void RandomizeCaveBackgrounds()
1612 {
1613 long num2;
1614 if (true)
1615 {
1617 int num = WorldGen.genRand.Next(8);
1619 num2 = 0L;
1620 int num3 = genRand2.Next(8);
1621 return;
1622 }
1623 if (4200 == 0)
1624 {
1625 }
1626 if (4200 == 0)
1627 {
1628 }
1629 int num4 = WorldGen.genRand.Next(8, (int)num2);
1630 int num5 = WorldGen.genRand.Next(8, (int)num2);
1631 int num6 = WorldGen.genRand.Next(8);
1632 int num7 = WorldGen.genRand.Next(8);
1633 int num8 = WorldGen.genRand.Next(8);
1634 int num9 = WorldGen.genRand.Next(8);
1635 }
1636
1637 // Token: 0x06002C88 RID: 11400 RVA: 0x001BA194 File Offset: 0x001B8394
1638 private static void ResetGenerator()
1639 {
1640 int num = 1;
1641 if (num == 0)
1642 {
1643 }
1644 if (num == 0)
1645 {
1646 }
1647 if (!true)
1648 {
1649 }
1650 }
1651
1652 // Token: 0x06002C89 RID: 11401 RVA: 0x001BA1AC File Offset: 0x001B83AC
1653 public static bool mayanTrap(int x2, int y2)
1654 {
1655 int num = 1;
1656 if (num == 0)
1657 {
1658 }
1660 int num2 = 3;
1661 int num3 = genRand.Next(num2);
1662 if (num == 0)
1663 {
1664 }
1665 bool flag = WorldGen.SolidOrSlopedTile(0, x2);
1666 if (num == 0)
1667 {
1668 }
1669 if (num == 0)
1670 {
1671 }
1672 Tile tile;
1673 ushort type = tile.type;
1674 if (num == 0)
1675 {
1676 }
1677 Tile tile2;
1678 ushort type2 = tile2.type;
1679 if (num == 0)
1680 {
1681 }
1682 Tile tile3;
1683 byte liquid = tile3.liquid;
1684 if (num == 0)
1685 {
1686 }
1687 Tile tile4;
1688 bool flag2 = tile4.lava();
1689 if (num == 0)
1690 {
1691 }
1692 Tile tile5;
1693 bool flag3 = tile5.nactive();
1694 if (num == 0)
1695 {
1696 }
1697 Tile tile6;
1698 bool flag4 = tile6.nactive();
1699 if (num == 0)
1700 {
1701 }
1702 Tile tile7;
1703 bool flag5 = tile7.nactive();
1704 if (num == 0)
1705 {
1706 }
1707 Tile tile8;
1708 bool flag6 = tile8.nactive();
1709 if (num == 0)
1710 {
1711 }
1712 Tile tile9;
1713 bool flag7 = tile9.nactive();
1714 if (num == 0)
1715 {
1716 }
1717 Tile tile10;
1718 bool flag8 = tile10.nactive();
1719 if (num == 0)
1720 {
1721 }
1722 Tile tile11;
1723 bool flag9 = tile11.nactive();
1724 if (num == 0)
1725 {
1726 }
1727 Tile tile12;
1728 bool flag10 = tile12.nactive();
1729 if (num == 0)
1730 {
1731 }
1732 Tile tile13;
1733 bool flag11 = tile13.nactive();
1734 if (num == 0)
1735 {
1736 }
1737 Tile tile14;
1738 ushort type3 = tile14.type;
1739 if (num == 0)
1740 {
1741 }
1742 Tile tile15;
1743 ushort type4 = tile15.type;
1744 if (num == 0)
1745 {
1746 }
1747 Tile tile16;
1748 ushort type5 = tile16.type;
1749 long num4;
1750 if (num3 != 0)
1751 {
1752 num4 = 0L;
1753 if (num == 0)
1754 {
1755 }
1757 }
1759 int num5 = 3;
1760 int num6 = genRand2.Next(num5);
1761 int num7 = 5;
1762 bool flag13 = WorldGen.InWorld((int)num4, num3, num7);
1763 return WorldGen.SolidOrSlopedTile((int)num4, num3);
1764 }
1765
1766 // Token: 0x06002C8A RID: 11402 RVA: 0x001BA7E0 File Offset: 0x001B89E0
1767 public static bool placeLavaTrap(int x, int y)
1768 {
1769 int num = 1;
1770 if (num == 0)
1771 {
1772 }
1773 Tile tile;
1774 bool flag = tile.active();
1775 if (num == 0)
1776 {
1777 }
1778 Tile tile2;
1779 byte liquid = tile2.liquid;
1780 if (num == 0)
1781 {
1782 }
1783 Tile tile3;
1784 bool flag2 = tile3.lava();
1785 if (num == 0)
1786 {
1787 }
1788 Tile tile4;
1789 bool flag3 = tile4.lava();
1790 if (num == 0)
1791 {
1792 }
1793 Tile tile5;
1794 bool flag4 = tile5.active();
1795 if (num == 0)
1796 {
1797 }
1798 Tile tile6;
1799 byte liquid2 = tile6.liquid;
1800 Tile tile7;
1801 bool flag5 = tile7.active();
1802 Tile tile8;
1803 ushort type = tile8.type;
1804 Tile tile9;
1805 ushort type2 = tile9.type;
1806 Tile tile10;
1807 bool flag6 = tile10.active();
1808 Tile tile11;
1809 ushort type3 = tile11.type;
1810 Tile tile12;
1811 ushort type4 = tile12.type;
1812 Tile tile13;
1813 return tile13.wire();
1814 }
1815
1816 // Token: 0x06002C8B RID: 11403 RVA: 0x001BA94C File Offset: 0x001B8B4C
1817 public static bool IsTileNearby(int x, int y, int type, int distance)
1818 {
1819 return 1073741824 != 0;
1820 }
1821
1822 // Token: 0x06002C8C RID: 11404 RVA: 0x001BA970 File Offset: 0x001B8B70
1823 private static bool placeTNTBarrel(int x, int y)
1824 {
1825 int num = 1;
1826 if (num == 0)
1827 {
1828 }
1829 Tile tile;
1830 bool flag = tile.active();
1831 if (num == 0)
1832 {
1833 }
1834 if (num == 0)
1835 {
1836 }
1837 Tile tile2;
1838 bool flag2 = tile2.shimmer();
1839 if (num == 0)
1840 {
1841 }
1842 bool flag3;
1843 return flag3;
1844 }
1845
1846 // Token: 0x06002C8D RID: 11405 RVA: 0x001BA9A4 File Offset: 0x001B8BA4
1847 public static bool placeTrap(int x2, int y2, int type = -1)
1848 {
1849 if (!true)
1850 {
1851 }
1852 long num = 16473L;
1853 if (num == 0L)
1854 {
1855 }
1856 if (num == 0L || num == 0L)
1857 {
1858 }
1859 if (num == 0L)
1860 {
1861 }
1862 long num2 = 0L;
1863 bool flag = WorldGen.SolidTile(0, x2, num2 != 0L);
1864 if (num == 0L)
1865 {
1866 }
1867 int num3 = 70;
1868 int num4 = 20;
1869 bool flag2 = WorldGen.IsTileNearby(0, 42189464, num3, num4);
1870 Tile tile;
1871 ushort wall = tile.wall;
1872 Tile tile2;
1873 byte liquid = tile2.liquid;
1874 Tile tile3;
1875 return tile3.lava();
1876 }
1877
1878 // Token: 0x06002C8E RID: 11406 RVA: 0x001BB0C4 File Offset: 0x001B92C4
1879 public static int countWires(int x, int y, int size)
1880 {
1881 /*
1882An exception occurred when decompiling this method (06002C8E)
1883
1884ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::countWires(System.Int32,System.Int32,System.Int32)
1885
1886 ---> System.Exception: Basic block has to end with unconditional control flow.
1887{
1888 IL_0019:
1889 stloc:bool(var_5_20, call:bool(Tile::wire, ldloc:Tile[exp:valuetype Terraria.Tile&](var_4)))
1890 stloc:bool(var_7_29, call:bool(Tile::wire2, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6)))
1891 stloc:bool(var_9_32, call:bool(Tile::wire3, ldloc:Tile[exp:valuetype Terraria.Tile&](var_8)))
1892 stloc:bool(var_11_3B, call:bool(Tile::wire4, ldloc:Tile[exp:valuetype Terraria.Tile&](var_10)))
1893}
1894
1895 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1896 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1897 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1898 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1899 --- End of inner exception stack trace ---
1900 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1901 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1902*/;
1903 }
1904
1905 // Token: 0x06002C8F RID: 11407 RVA: 0x001BB110 File Offset: 0x001B9310
1906 public static int countTiles(int x, int y, bool jungle = false, bool lavaOk = false)
1907 {
1908 if (!true)
1909 {
1910 }
1911 WorldGen.nextCount(0, x, y != 0, jungle);
1912 return 0;
1913 }
1914
1915 // Token: 0x06002C90 RID: 11408 RVA: 0x001BB12C File Offset: 0x001B932C
1916 public static void nextCount(int x, int y, bool jungle = false, bool lavaOk = false)
1917 {
1918 int num = 1;
1919 if (num == 0)
1920 {
1921 }
1923 if (num == 0)
1924 {
1925 }
1926 }
1927
1928 // Token: 0x06002C91 RID: 11409 RVA: 0x001BB184 File Offset: 0x001B9384
1929 public static int countDirtTiles(int x, int y)
1930 {
1931 if (!true)
1932 {
1933 }
1934 WorldGen.nextDirtCount(0, x);
1935 return 0;
1936 }
1937
1938 // Token: 0x06002C92 RID: 11410 RVA: 0x001BB19C File Offset: 0x001B939C
1939 public static void nextDirtCount(int x, int y)
1940 {
1941 int num = 1;
1942 if (num == 0)
1943 {
1944 }
1946 if (num == 0)
1947 {
1948 }
1949 }
1950
1951 // Token: 0x06002C93 RID: 11411 RVA: 0x001BB2BC File Offset: 0x001B94BC
1952 public static bool InWorld(int x, int y, int fluff = 0)
1953 {
1954 /*
1955An exception occurred when decompiling this method (06002C93)
1956
1957ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::InWorld(System.Int32,System.Int32,System.Int32)
1958
1959 ---> System.Exception: Basic block has to end with unconditional control flow.
1960{
1961 IL_0000:
1962 brtrue(IL_0000, ldc.i4:bool(1))
1963}
1964
1965 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1966 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1967 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1968 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1969 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1970 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1971 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1972 --- End of inner exception stack trace ---
1973 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1974 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1975*/;
1976 }
1977
1978 // Token: 0x06002C94 RID: 11412 RVA: 0x001BB2D0 File Offset: 0x001B94D0
1979 public static void gemCave(int x, int y)
1980 {
1981 int num = 1;
1982 if (num == 0)
1983 {
1984 }
1985 long num2 = 0L;
1986 long num3 = 0L;
1987 int num4 = WorldGen.countTiles(x, y, num2 != 0L, num3 != 0L);
1988 if (num == 0)
1989 {
1990 }
1991 }
1992
1993 // Token: 0x06002C95 RID: 11413 RVA: 0x001BB340 File Offset: 0x001B9540
1994 public static int randGem()
1995 {
1996 while (!true)
1997 {
1998 }
2000 int num = 6;
2001 return genRand.Next(num);
2002 }
2003
2004 // Token: 0x06002C96 RID: 11414 RVA: 0x001BB360 File Offset: 0x001B9560
2005 public static ushort randGemTile()
2006 {
2007 /*
2008An exception occurred when decompiling this method (06002C96)
2009
2010ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt16 Terraria.WorldGen::randGemTile()
2011
2012 ---> System.Exception: Basic block has to end with unconditional control flow.
2013{
2014 IL_0014:
2015 stloc:int32(var_0_19, call:int32(WorldGen::randGem))
2016}
2017
2018 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2019 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2020 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2021 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2022 --- End of inner exception stack trace ---
2023 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2024 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2025*/;
2026 }
2027
2028 // Token: 0x06002C97 RID: 11415 RVA: 0x001BB388 File Offset: 0x001B9588
2029 public static void randMoss(bool justNeon = false)
2030 {
2031 if (!true)
2032 {
2033 }
2035 int num = WorldGen.genRand.Next(5);
2036 int num2 = WorldGen.genRand.Next(5);
2037 int num3 = WorldGen.genRand.Next(5);
2038 }
2039
2040 // Token: 0x06002C98 RID: 11416 RVA: 0x001BB3D0 File Offset: 0x001B95D0
2041 public static void neonMossBiome(int i, int j, int maxY = 99999)
2042 {
2043 if (!true)
2044 {
2045 }
2046 double num = WorldGen.genRand.NextDouble();
2047 double num2 = WorldGen.genRand.NextDouble();
2048 long num3 = 16368L;
2049 if (num3 == 0L)
2050 {
2051 }
2053 double num4 = vector2D.Length();
2054 if (num3 == 0L)
2055 {
2056 }
2058 int num5 = 60;
2059 int num6 = 80;
2060 int num7 = genRand.Next(num5, num6);
2062 int num8 = 30;
2063 int num9 = 40;
2064 int num10 = genRand2.Next(num8, num9);
2065 if (32752 == 0)
2066 {
2067 }
2068 }
2069
2070 // Token: 0x06002C99 RID: 11417 RVA: 0x001BB4F8 File Offset: 0x001B96F8
2071 public static void setMoss(int x, int y)
2072 {
2073 if (!true)
2074 {
2075 }
2076 }
2077
2078 // Token: 0x06002C9A RID: 11418 RVA: 0x001BB510 File Offset: 0x001B9710
2080 {
2081 if (!true)
2082 {
2083 }
2084 long num = 0L;
2085 int num3;
2086 int num2 = Math.Min(num3, (int)num);
2087 int num5;
2088 int num6;
2089 int num4 = WorldGen.FillWallHolesInColumn(num5, 43143168, num6);
2090 }
2091
2092 // Token: 0x06002C9B RID: 11419 RVA: 0x001BB53C File Offset: 0x001B973C
2093 private static int FillWallHolesInColumn(int x, int startY, int endY)
2094 {
2095 /*
2096An exception occurred when decompiling this method (06002C9B)
2097
2098ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::FillWallHolesInColumn(System.Int32,System.Int32,System.Int32)
2099
2100 ---> System.Exception: Basic block has to end with unconditional control flow.
2101{
2102 IL_0003:
2103 stloc:int32(var_0_04, ldc.i4:int32(2))
2104 stloc:int32(var_1_0C, call:int32(Math::Max, ldloc:int32(x), ldloc:int32(var_0_04)))
2105 stloc:int32(var_2_14, call:int32(Math::Min, ldloc:int32(startY), ldloc:int32(var_0_04)))
2106 stloc:uint16(var_4_1B, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
2107 stloc:int32(var_5_22, ldc.i4:int32(150))
2108 stloc:bool(var_6_31, call:bool(WorldGen::FillWallHolesInSpot, ldc.i4:int32(1073741824), ldloc:int32(var_1_0C), ldloc:int32(var_5_22)))
2109}
2110
2111 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2112 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2113 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2114 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2115 --- End of inner exception stack trace ---
2116 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2117 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2118*/;
2119 }
2120
2121 // Token: 0x06002C9C RID: 11420 RVA: 0x001BB580 File Offset: 0x001B9780
2122 private static bool FillWallHolesInSpot(int originX, int originY, int maxWallsThreshold)
2123 {
2124 int num = 2;
2125 bool flag = WorldGen.InWorld(0, originX, num);
2126 return false;
2127 }
2128
2129 // Token: 0x06002C9D RID: 11421 RVA: 0x001BB600 File Offset: 0x001B9800
2130 public static void tileCountAndDestroy()
2131 {
2132 if (!true)
2133 {
2134 }
2135 int num = 10;
2136 int num2 = 10;
2137 Tile tile;
2138 bool flag = tile.active();
2139 int num3 = WorldGen.tileCounter(num, num2);
2141 }
2142
2143 // Token: 0x06002C9E RID: 11422 RVA: 0x001BB630 File Offset: 0x001B9830
2144 public static int tileCounter(int x, int y)
2145 {
2146 if (!true)
2147 {
2148 }
2149 Tile tile;
2150 ushort tileSeachUID = tile.TileSeachUID;
2151 return 0;
2152 }
2153
2154 // Token: 0x06002C9F RID: 11423 RVA: 0x001BB658 File Offset: 0x001B9858
2155 public static void tileCounterNext(int x, int y)
2156 {
2157 int num = 1;
2158 if (num == 0)
2159 {
2160 }
2161 if (num == 0)
2162 {
2163 }
2164 Tile tile;
2165 ushort tileSeachUID = tile.TileSeachUID;
2170 }
2171
2172 // Token: 0x06002CA0 RID: 11424 RVA: 0x001BB694 File Offset: 0x001B9894
2173 public static void tileCounterKill()
2174 {
2175 long num = 0L;
2176 Tile tile;
2177 tile.active(num != 0L);
2178 }
2179
2180 // Token: 0x06002CA1 RID: 11425 RVA: 0x001BB6AC File Offset: 0x001B98AC
2181 private static void AddGenerationPass(string name, WorldGenLegacyMethod method)
2182 {
2183 if (!true)
2184 {
2185 }
2186 }
2187
2188 // Token: 0x06002CA2 RID: 11426 RVA: 0x001BB6BC File Offset: 0x001B98BC
2189 private static void AddGenerationPass(GenPass pass)
2190 {
2191 if (!true)
2192 {
2193 }
2194 }
2195
2196 // Token: 0x06002CA3 RID: 11427 RVA: 0x001BB6CC File Offset: 0x001B98CC
2197 private static void AddGenerationPass(string name, double weight, WorldGenLegacyMethod method)
2198 {
2199 if (!true)
2200 {
2201 }
2202 }
2203
2204 // Token: 0x06002CA4 RID: 11428 RVA: 0x001BB6DC File Offset: 0x001B98DC
2205 public static bool checkUnderground(int x, int y)
2206 {
2207 /*
2208An exception occurred when decompiling this method (06002CA4)
2209
2210ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::checkUnderground(System.Int32,System.Int32)
2211
2212 ---> System.Exception: Basic block has to end with unconditional control flow.
2213{
2214 IL_0031:
2215 stloc:uint16(var_8_3B, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6)))
2216}
2217
2218 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2219 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2220 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2221 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2222 --- End of inner exception stack trace ---
2223 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2224 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2225*/;
2226 }
2227
2228 // Token: 0x06002CA5 RID: 11429 RVA: 0x001BB72C File Offset: 0x001B992C
2229 public static int GetNextJungleChestItem()
2230 {
2231 int num = 1;
2232 if (num == 0)
2233 {
2234 }
2235 if (num == 0)
2236 {
2237 }
2239 int num2 = 50;
2240 if (genRand.Next(num2) == 0)
2241 {
2242 int num3;
2243 return num3;
2244 }
2245 if (num == 0)
2246 {
2247 }
2249 int num4 = 15;
2250 int num6;
2251 if (genRand2.Next(num4) != 0)
2252 {
2253 if (num == 0)
2254 {
2255 }
2257 int num5 = 20;
2258 int num3 = genRand3.Next(num5);
2259 num6 = 3017;
2260 return num3;
2261 }
2262 int num7 = 2292;
2263 if (num6 == 0)
2264 {
2265 }
2266 return num7;
2267 }
2268
2269 // Token: 0x06002CA6 RID: 11430 RVA: 0x001BB7A0 File Offset: 0x001B99A0
2270 private static void ScanTileColumnAndRemoveClumps(int x)
2271 {
2272 if (!true)
2273 {
2274 }
2275 Tile tile;
2276 bool flag = tile.active();
2277 Tile tile2;
2278 ushort type = tile2.type;
2279 Tile tile3;
2280 ushort type2 = tile3.type;
2281 }
2282
2283 // Token: 0x06002CA7 RID: 11431 RVA: 0x001BB7E4 File Offset: 0x001B99E4
2284 public static void OreHelper(int X, int Y)
2285 {
2286 if (!true)
2287 {
2288 }
2289 Tile tile;
2290 ushort type = tile.type;
2291 }
2292
2293 // Token: 0x06002CA8 RID: 11432 RVA: 0x001BB800 File Offset: 0x001B9A00
2294 public static bool StonePatch(int X, int Y)
2295 {
2296 /*
2297An exception occurred when decompiling this method (06002CA8)
2298
2299ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::StonePatch(System.Int32,System.Int32)
2300
2301 ---> System.Exception: Basic block has to end with unconditional control flow.
2302{
2303 IL_0218:
2304 stloc:uint16(var_81_222, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_80)))
2305 stloc:int32(var_83_228, ldc.i4:int32(1))
2306 call:void(WorldGen::SquareTileFrame, ldc.i4:int32(0), ldc.i4:int32(0), ldloc:int32[exp:bool](var_83_228))
2307 stloc:float64(var_86_240, call:float64(UnifiedRandom::NextDouble, callgetter:UnifiedRandom(WorldGen::get_genRand)))
2308 stloc:float64(var_87_24C, call:float64(UnifiedRandom::NextDouble, callgetter:UnifiedRandom(WorldGen::get_genRand)))
2309 stloc:bool(var_92_258, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_91)))
2310 stloc:uint16(var_94_261, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_93)))
2311 stloc:uint16(var_96_26A, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_95)))
2312 stloc:uint16(var_98_273, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_97)))
2313 stloc:uint16(var_100_27C, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_99)))
2314 stloc:uint16(var_102_285, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_101)))
2315 stloc:uint16(var_104_28E, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_103)))
2316}
2317
2318 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2319 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2320 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2321 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2322 --- End of inner exception stack trace ---
2323 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2324 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2325*/;
2326 }
2327
2328 // Token: 0x06002CA9 RID: 11433 RVA: 0x001BBAA0 File Offset: 0x001B9CA0
2329 public static bool ShellPile(int X, int Y)
2330 {
2331 /*
2332An exception occurred when decompiling this method (06002CA9)
2333
2334ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ShellPile(System.Int32,System.Int32)
2335
2336 ---> System.Exception: Basic block has to end with unconditional control flow.
2337{
2338 IL_00E2:
2339 stloc:bool(var_45_FC, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_44)))
2340 stloc:bool(var_52_118, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_51)))
2341 stloc:bool(var_59_131, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_58)))
2342 stloc:int64(var_63_141, ldc.i4:int64(0))
2343 stloc:int32(var_64_144, ldc.i4:int32(1))
2344 call:void(WorldGen::SquareTileFrame, ldc.i4:int32(0), ldloc:int64[exp:int32](var_63_141), ldloc:int32[exp:bool](var_64_144))
2345 stloc:float64(var_67_15D, call:float64(UnifiedRandom::NextDouble, callgetter:UnifiedRandom(WorldGen::get_genRand)))
2346 stloc:float64(var_68_169, call:float64(UnifiedRandom::NextDouble, callgetter:UnifiedRandom(WorldGen::get_genRand)))
2347}
2348
2349 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2350 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2351 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2352 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2353 --- End of inner exception stack trace ---
2354 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2355 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2356*/;
2357 }
2358
2359 // Token: 0x06002CAA RID: 11434 RVA: 0x001BBC1C File Offset: 0x001B9E1C
2360 public static bool MarblePileWithStatues(int X, int Y)
2361 {
2362 int num = 1;
2363 if (num == 0)
2364 {
2365 }
2366 long num2 = 0L;
2367 bool flag = WorldGen.SolidTile(0, X, num2 != 0L);
2368 if (num == 0)
2369 {
2370 }
2371 if (num == 0)
2372 {
2373 }
2374 Tile tile;
2375 ushort type = tile.type;
2376 if (num == 0)
2377 {
2378 }
2379 Tile tile2;
2380 ushort type2 = tile2.type;
2381 if (num == 0)
2382 {
2383 }
2384 Tile tile3;
2385 ushort wall = tile3.wall;
2386 if (num == 0)
2387 {
2388 }
2389 int num3 = 32640;
2390 Tile tile4;
2391 bool flag2 = tile4.active();
2392 Tile tile5;
2393 ushort type3 = tile5.type;
2394 Tile tile6;
2395 ushort type4 = tile6.type;
2396 double num4 = WorldGen.genRand.NextDouble();
2397 double num5 = WorldGen.genRand.NextDouble();
2399 int num6 = 2;
2400 int num7 = 4;
2401 int num8 = genRand.Next(num6, num7);
2403 int num9 = 10;
2404 int num10 = genRand2.Next(num9);
2405 if (num3 == 0)
2406 {
2407 }
2409 int num11 = 3;
2410 int num12 = 6;
2411 int num13 = genRand3.Next(num11, num12);
2413 int num14 = 70;
2414 int num15 = 91;
2415 int num16 = genRand4.Next(num14, num15);
2417 double num17 = vector2D.Length();
2418 double num18 = WorldGen.genRand.NextDouble();
2419 double num19 = WorldGen.genRand.NextDouble();
2420 Tile tile7;
2421 bool flag3 = tile7.active();
2422 int num20 = 1;
2424 double num21 = WorldGen.genRand.NextDouble();
2425 double num22 = WorldGen.genRand.NextDouble();
2426 int num23 = 32768;
2427 if (num23 == 0)
2428 {
2429 }
2431 int num24 = 5;
2432 if (genRand5.Next(num24) == 0)
2433 {
2434 if (num23 == 0)
2435 {
2436 }
2437 Tile tile8;
2438 bool flag4 = tile8.active();
2439 while (num23 != 0)
2440 {
2441 }
2442 if (num23 == 0)
2443 {
2444 }
2445 Tile tile9;
2446 bool flag5 = tile9.active();
2447 if (num23 == 0)
2448 {
2449 }
2450 int num25 = 26;
2451 bool flag6 = WorldGen.Statue(0, X, (byte)num25);
2452 return;
2453 }
2454 }
2455
2456 // Token: 0x06002CAB RID: 11435 RVA: 0x001BBDE4 File Offset: 0x001B9FE4
2457 public static bool Statue(int x, int y, byte paint)
2458 {
2459 /*
2460An exception occurred when decompiling this method (06002CAB)
2461
2462ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::Statue(System.Int32,System.Int32,System.Byte)
2463
2464 ---> System.Exception: Basic block has to end with unconditional control flow.
2465{
2466 IL_0003:
2467 stloc:UnifiedRandom(var_0_08, callgetter:UnifiedRandom(WorldGen::get_genRand))
2468 stloc:int32(var_1_0A, ldc.i4:int32(2))
2469 stloc:int32(var_2_13, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_0_08), ldloc:int32(var_1_0A), ldloc:int32(y)))
2470 stloc:bool(var_4_1A, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
2471 call:void(Tile::color, ldloc:Tile[exp:valuetype Terraria.Tile&](var_7), ldloc:int32[exp:uint8](y))
2472}
2473
2474 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2475 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2476 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2477 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2478 --- End of inner exception stack trace ---
2479 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2480 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2481*/;
2482 }
2483
2484 // Token: 0x06002CAC RID: 11436 RVA: 0x001BBE20 File Offset: 0x001BA020
2485 public static bool OrePatch(int X, int Y)
2486 {
2487 /*
2488An exception occurred when decompiling this method (06002CAC)
2489
2490ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::OrePatch(System.Int32,System.Int32)
2491
2492 ---> System.Exception: Basic block has to end with unconditional control flow.
2493{
2494 IL_02C1:
2495 stloc:float64(var_89_2CB, call:float64(UnifiedRandom::NextDouble, callgetter:UnifiedRandom(WorldGen::get_genRand)))
2496 stloc:float64(var_90_2D7, call:float64(UnifiedRandom::NextDouble, callgetter:UnifiedRandom(WorldGen::get_genRand)))
2497 stloc:bool(var_95_2E3, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_94)))
2498 stloc:uint16(var_97_2EC, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_96)))
2499 stloc:uint16(var_99_2F5, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_98)))
2500 stloc:uint16(var_101_2FE, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_100)))
2501 stloc:uint16(var_103_307, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_102)))
2502}
2503
2504 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2505 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2506 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2507 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2508 --- End of inner exception stack trace ---
2509 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2510 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2511*/;
2512 }
2513
2514 // Token: 0x06002CAD RID: 11437 RVA: 0x001BC138 File Offset: 0x001BA338
2515 public static bool PlaceOasis(int X, int Y)
2516 {
2517 /*
2518An exception occurred when decompiling this method (06002CAD)
2519
2520ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::PlaceOasis(System.Int32,System.Int32)
2521
2522 ---> System.Exception: Basic block has to end with unconditional control flow.
2523{
2524 IL_01F7:
2525 stloc:int32(var_97_1F8, ldc.i4:int32(1))
2526 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_96), ldloc:int32[exp:bool](var_97_1F8))
2527 stloc:int32(var_98_205, ldc.i4:int32(53))
2528 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_96), ldloc:int32[exp:uint16](var_98_205))
2529 stloc:int32(var_101_214, ldc.i4:int32(1))
2530 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_100), ldloc:int32[exp:bool](var_101_214))
2531 stloc:int32(var_102_221, ldc.i4:int32(53))
2532 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_100), ldloc:int32[exp:uint16](var_102_221))
2533}
2534
2535 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2536 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
2537 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
2538 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
2539 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2540 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2541 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2542 --- End of inner exception stack trace ---
2543 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2544 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2545*/;
2546 }
2547
2548 // Token: 0x06002CAE RID: 11438 RVA: 0x001BC374 File Offset: 0x001BA574
2549 public static bool BiomeTileCheck(int x, int y)
2550 {
2551 /*
2552An exception occurred when decompiling this method (06002CAE)
2553
2554ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::BiomeTileCheck(System.Int32,System.Int32)
2555
2556 ---> System.Exception: Basic block has to end with unconditional control flow.
2557{
2558 IL_0003:
2559 stloc:int64(var_1_06, ldc.i4:int64(0))
2560 stloc:bool(var_2_13, call:bool(WorldGen::InWorld, ldc.i4:int32(0), ldc.i4:int32(1073741824), ldloc:int64[exp:int32](var_1_06)))
2561}
2562
2563 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2564 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2565 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2566 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2567 --- End of inner exception stack trace ---
2568 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2569 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2570*/;
2571 }
2572
2573 // Token: 0x170005FB RID: 1531
2574 // (get) Token: 0x06002CAF RID: 11439 RVA: 0x001BC39C File Offset: 0x001BA59C
2575 public static double oceanLevel
2576 {
2577 get
2578 {
2579 /*
2580An exception occurred when decompiling this method (06002CAF)
2581
2582ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double Terraria.WorldGen::get_oceanLevel()
2583
2584 ---> System.Exception: Basic block has to end with unconditional control flow.
2585{
2586 IL_0000:
2587 brtrue(IL_0000, ldc.i4:bool(1))
2588}
2589
2590 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2591 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
2592 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
2593 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
2594 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2595 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2596 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2597 --- End of inner exception stack trace ---
2598 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2599 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2600*/;
2601 }
2602 }
2603
2604 // Token: 0x06002CB0 RID: 11440 RVA: 0x001BC3AC File Offset: 0x001BA5AC
2605 public static bool oceanDepths(int x, int y)
2606 {
2607 int num = 1;
2608 if (num == 0)
2609 {
2610 }
2612 if (num == 0)
2613 {
2614 return;
2615 }
2616 }
2617
2618 // Token: 0x06002CB1 RID: 11441 RVA: 0x001BC3CC File Offset: 0x001BA5CC
2619 public static void UpdateDesertHiveBounds(int x, int y)
2620 {
2621 if (!true)
2622 {
2623 }
2624 if (!true)
2625 {
2626 }
2627 if (!true)
2628 {
2629 }
2630 if (!true)
2631 {
2632 }
2633 }
2634
2635 // Token: 0x06002CB2 RID: 11442 RVA: 0x001BC3E8 File Offset: 0x001BA5E8
2636 public static bool ValidateTypes()
2637 {
2638 /*
2639An exception occurred when decompiling this method (06002CB2)
2640
2641ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ValidateTypes()
2642
2643 ---> System.Exception: Basic block has to end with unconditional control flow.
2644{
2645 IL_000C:
2646 stloc:uint16(var_4_12, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
2647 call:void(Debug::LogError, ldloc:string[exp:object](var_6))
2648}
2649
2650 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2651 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2652 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2653 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2654 --- End of inner exception stack trace ---
2655 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2656 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2657*/;
2658 }
2659
2660 // Token: 0x06002CB3 RID: 11443 RVA: 0x001BC418 File Offset: 0x001BA618
2661 public static void GenerateWorld(int seed, [Optional] GenerationProgress customProgressObject)
2662 {
2663 int num = 1;
2664 if (num == 0)
2665 {
2666 }
2667 if (num == 0)
2668 {
2669 }
2670 int num2 = 50212;
2671 if (num2 == 0)
2672 {
2673 }
2674 if (num2 == 0)
2675 {
2676 }
2677 if (num2 == 0)
2678 {
2679 }
2680 }
2681
2682 // Token: 0x06002CB4 RID: 11444 RVA: 0x001BC518 File Offset: 0x001BA718
2683 private static Point GetAdjustedFloorPosition(int x, int y)
2684 {
2685 int num;
2686 do
2687 {
2688 num = 1;
2689 if (num == 0)
2690 {
2691 }
2692 int spawnTileY = Main.spawnTileY;
2693 if (num == 0)
2694 {
2695 }
2696 while (num == 0)
2697 {
2698 }
2699 }
2700 while (num != 0);
2701 return 43143168;
2702 }
2703
2704 // Token: 0x06002CB5 RID: 11445 RVA: 0x001BC554 File Offset: 0x001BA754
2705 private static void Scan3By3(int topLeftX, int topLeftY, [Out] bool isEmpty, [Out] bool hasFloor)
2706 {
2707 int num = 1;
2708 isEmpty.m_value = num != 0;
2709 if (num == 0)
2710 {
2711 }
2712 long num2 = 0L;
2713 bool flag = WorldGen.SolidTile(43143168, topLeftY, num2 != 0L);
2714 }
2715
2716 // Token: 0x06002CB6 RID: 11446 RVA: 0x001BC5A4 File Offset: 0x001BA7A4
2717 private static void FinishTenthAnniversaryWorld()
2718 {
2719 int num = 1;
2720 if (num == 0)
2721 {
2722 }
2723 if (num == 0)
2724 {
2725 if (num == 0)
2726 {
2727 }
2728 int num2 = 2;
2729 int num3 = 1;
2731 }
2732 if (num == 0)
2733 {
2734 }
2735 int num4 = 24;
2736 int num5 = 24;
2737 WorldGen.PaintTheDungeon((byte)num4, (byte)num5);
2738 int num6 = 12;
2739 int num7 = 12;
2740 WorldGen.PaintTheLivingTrees((byte)num6, (byte)num7);
2741 int num8 = 10;
2742 int num9 = 5;
2743 WorldGen.PaintTheTemple((byte)num8, (byte)num9);
2744 int num10 = 12;
2745 int num11 = 12;
2746 WorldGen.PaintTheClouds((byte)num10, (byte)num11);
2747 WorldGen.PaintTheSand(7, (byte)num11);
2748 int num12 = 12;
2749 int num13 = 12;
2750 WorldGen.PaintThePyramids((byte)num12, (byte)num13);
2751 if (num == 0)
2752 {
2753 }
2756 if (num == 0)
2757 {
2758 if (num == 0)
2759 {
2760 }
2761 if (num == 0)
2762 {
2763 }
2765 int num14 = 4;
2766 if (genRand.Next(num14) == 0)
2767 {
2768 int num15 = 665;
2769 Tile tile;
2770 tile.type = (ushort)num15;
2771 int num16 = 665;
2772 Tile tile2;
2773 tile2.type = (ushort)num16;
2774 int num17 = 665;
2775 Tile tile3;
2776 tile3.type = (ushort)num17;
2777 }
2778 return;
2779 }
2781 }
2782
2783 // Token: 0x06002CB7 RID: 11447 RVA: 0x001BC698 File Offset: 0x001BA898
2784 private static void PaintTheMushrooms()
2785 {
2786 if (!true)
2787 {
2788 }
2790 int num = 1;
2791 int num2 = 13;
2792 int num3 = genRand.Next(num, num2);
2794 int num4 = 5;
2795 int num5 = 31;
2796 int num6 = genRand2.Next(num4, num5);
2798 int num7 = 2;
2799 if (genRand3.Next(num7) == 0)
2800 {
2802 int num8 = 5;
2803 int num9 = 16;
2804 int num10 = genRand4.Next(num8, num9);
2805 }
2806 Tile tile;
2807 bool flag = tile.active();
2808 }
2809
2810 // Token: 0x06002CB8 RID: 11448 RVA: 0x001BC764 File Offset: 0x001BA964
2811 private static void PaintTheTrees()
2812 {
2813 int num = 1;
2814 if (num == 0)
2815 {
2816 }
2817 int num2;
2818 long num3;
2819 if (num != 0)
2820 {
2821 num2 = 32768;
2822 num3 = 32752L;
2823 return;
2824 }
2825 if (num3 == 0L)
2826 {
2827 }
2829 int num4 = 1;
2830 int num5 = 13;
2831 int num6 = genRand.Next(num4, num5);
2832 if (num3 == 0L)
2833 {
2834 }
2835 if (num3 == 0L)
2836 {
2837 }
2838 if (num2 == 0)
2839 {
2840 }
2841 Tile tile;
2842 bool flag = tile.active();
2843 }
2844
2845 // Token: 0x06002CB9 RID: 11449 RVA: 0x001BC7C0 File Offset: 0x001BA9C0
2846 private static void PaintTheSand(byte tilePaintColor, byte wallPaintColor)
2847 {
2848 int num = 1;
2849 if (num == 0)
2850 {
2851 }
2852 if (num == 0)
2853 {
2854 }
2855 Tile tile;
2856 bool flag = tile.active();
2857 Tile tile2;
2858 ushort type = tile2.type;
2859 Tile tile3;
2860 ushort type2 = tile3.type;
2861 Tile tile4;
2862 ushort type3 = tile4.type;
2863 Tile tile5;
2864 ushort type4 = tile5.type;
2865 Tile tile6;
2867 Tile tile7;
2868 ushort type5 = tile7.type;
2869 Tile tile8;
2870 ushort type6 = tile8.type;
2871 Tile tile9;
2872 ushort type7 = tile9.type;
2873 Tile tile10;
2874 ushort type8 = tile10.type;
2875 Tile tile11;
2877 Tile tile12;
2878 ushort type9 = tile12.type;
2879 Tile tile13;
2881 Tile tile14;
2882 ushort type10 = tile14.type;
2883 Tile tile15;
2885 ushort wall = tile15.wall;
2886 }
2887
2888 // Token: 0x06002CBA RID: 11450 RVA: 0x001BC874 File Offset: 0x001BAA74
2889 private static void PaintThePurityGrass(byte tilePaintColor, byte wallPaintColor)
2890 {
2891 }
2892
2893 // Token: 0x06002CBB RID: 11451 RVA: 0x001BC8C0 File Offset: 0x001BAAC0
2894 private static void PaintThePyramids(byte tilePaintColor, byte wallPaintColor)
2895 {
2896 int num = 1;
2897 if (num == 0)
2898 {
2899 }
2900 if (num == 0)
2901 {
2902 }
2903 Tile tile;
2904 bool flag = tile.active();
2905 }
2906
2907 // Token: 0x06002CBC RID: 11452 RVA: 0x001BC8E4 File Offset: 0x001BAAE4
2908 private static void PaintTheTemple(byte tilePaintColor, byte wallPaintColor)
2909 {
2910 int num = 1;
2911 if (num == 0)
2912 {
2913 }
2914 if (num == 0)
2915 {
2916 }
2917 Tile tile;
2918 bool flag = tile.active();
2919 }
2920
2921 // Token: 0x06002CBD RID: 11453 RVA: 0x001BC908 File Offset: 0x001BAB08
2922 private static void PaintTheClouds(byte tilePaintColor, byte wallPaintColor)
2923 {
2924 int num = 1;
2925 if (num == 0)
2926 {
2927 }
2928 if (num == 0)
2929 {
2930 }
2931 Tile tile;
2932 bool flag = tile.active();
2933 }
2934
2935 // Token: 0x06002CBE RID: 11454 RVA: 0x001BC92C File Offset: 0x001BAB2C
2936 private static void PaintTheDungeon(byte tilePaintColor, byte wallPaintColor)
2937 {
2938 int num = 1;
2939 if (num == 0)
2940 {
2941 }
2942 if (num == 0)
2943 {
2944 }
2945 Tile tile;
2946 bool flag = tile.active();
2947 }
2948
2949 // Token: 0x06002CBF RID: 11455 RVA: 0x001BC950 File Offset: 0x001BAB50
2951 {
2952 int num = 1;
2953 long num2 = 0L;
2954 if (num == 0)
2955 {
2956 }
2957 long num3 = 0L;
2958 if (num == 0)
2959 {
2960 }
2961 long num4 = 0L;
2962 Tile tile;
2963 bool flag = tile.active();
2964 WorldGen.GetVineTop((int)num2, (int)num3, (int)num3, (int)num4);
2965 Tile tile2;
2966 ushort type = tile2.type;
2967 }
2968
2969 // Token: 0x06002CC0 RID: 11456 RVA: 0x001BC998 File Offset: 0x001BAB98
2970 private static void ConvertSkyIslands(int convertType, bool growTrees)
2971 {
2972 int num = 1;
2973 if (num == 0)
2974 {
2975 }
2976 if (num == 0)
2977 {
2978 }
2979 Tile tile;
2980 bool flag = tile.active();
2981 }
2982
2983 // Token: 0x06002CC1 RID: 11457 RVA: 0x001BCA20 File Offset: 0x001BAC20
2984 private static void ImproveAllChestContents()
2985 {
2986 int num = 1;
2987 if (num == 0)
2988 {
2989 }
2990 if (num == 0)
2991 {
2992 }
2993 }
2994
2995 // Token: 0x06002CC2 RID: 11458 RVA: 0x001BCA40 File Offset: 0x001BAC40
2996 private static void GiveItemGoodPrefixes(Item item)
2997 {
2998 bool accessory = item.accessory;
2999 if (!accessory || !accessory)
3000 {
3001 }
3002 bool melee = item.melee;
3003 if (!melee || !melee)
3004 {
3005 }
3006 bool ranged = item.ranged;
3007 if (!ranged || !ranged)
3008 {
3009 }
3010 bool magic = item.magic;
3011 if (!magic || !magic)
3012 {
3013 }
3014 bool summon = item.summon;
3015 if (summon)
3016 {
3017 if (!summon)
3018 {
3019 }
3020 return;
3021 }
3022 }
3023
3024 // Token: 0x06002CC3 RID: 11459 RVA: 0x001BCA94 File Offset: 0x001BAC94
3025 private static void PrefixItemFromOptions(Item item, int[] options)
3026 {
3027 byte prefix = item.prefix;
3028 bool flag = item.Prefix(options);
3029 bool flag2 = item.Prefix(-1073741824);
3030 byte prefix2 = item.prefix;
3031 bool flag3 = item.Prefix((int)prefix);
3032 }
3033
3034 // Token: 0x06002CC4 RID: 11460 RVA: 0x001BCAD0 File Offset: 0x001BACD0
3035 private static void NotTheBees()
3036 {
3037 if (!true)
3038 {
3039 }
3040 long num = 0L;
3041 long num2 = 0L;
3043 int num3 = 3;
3044 int num4 = genRand.Next(num3);
3046 int num5 = 3;
3047 int num6 = genRand2.Next(num5);
3049 int num7 = 3;
3050 int num8 = genRand3.Next(num7);
3052 int num9 = 3;
3053 int num10 = genRand4.Next(num9);
3054 Tile tile;
3055 ushort type = tile.type;
3056 bool flag = WorldGen.SolidOrSlopedTile((int)num, (int)num2);
3057 }
3058
3059 // Token: 0x06002CC5 RID: 11461 RVA: 0x001BCC2C File Offset: 0x001BAE2C
3060 private static void FinishNotTheBees()
3061 {
3062 int num = 1;
3063 if (num == 0)
3064 {
3065 }
3066 if (num != 0)
3067 {
3068 if (num == 0)
3069 {
3070 }
3071 if (num == 0)
3072 {
3073 }
3074 Tile tile;
3075 bool flag = tile.active();
3076 Tile tile2;
3077 ushort type = tile2.type;
3078 return;
3079 }
3080 }
3081
3082 // Token: 0x06002CC6 RID: 11462 RVA: 0x001BCF84 File Offset: 0x001BB184
3083 private static void FinishGetGoodWorld()
3084 {
3085 int num = 1;
3086 if (num == 0)
3087 {
3088 }
3089 if (num == 0)
3090 {
3091 }
3092 Tile tile;
3093 bool flag = tile.active();
3094 Tile tile2;
3095 ushort type = tile2.type;
3096 }
3097
3098 // Token: 0x06002CC7 RID: 11463 RVA: 0x001BD254 File Offset: 0x001BB454
3099 private static void FinishNoTraps()
3100 {
3101 int num = 1;
3102 if (num == 0)
3103 {
3104 }
3105 int num2 = 50;
3106 if (num == 0)
3107 {
3108 }
3109 int num3 = 50;
3110 if (num == 0)
3111 {
3112 }
3114 int num4 = 5;
3115 if (genRand.Next(num4) == 0)
3116 {
3117 int num5 = 665;
3118 Tile tile;
3119 tile.type = (ushort)num5;
3120 int num6 = 665;
3121 tile.type = (ushort)num6;
3122 int num7 = 665;
3123 tile.type = (ushort)num7;
3124 int num8 = 665;
3125 tile.type = (ushort)num8;
3126 }
3127 Tile tile2;
3128 bool flag = tile2.active();
3129 Tile tile3;
3130 ushort type = tile3.type;
3131 Tile tile4;
3132 bool flag2 = tile4.wire();
3133 long num9 = 0L;
3134 Tile tile5;
3135 ushort type2 = tile5.type;
3137 int num10 = 9;
3138 int num11 = genRand2.Next((int)num9, num10);
3140 int num12 = 9;
3141 int num13 = genRand3.Next((int)num9, num12);
3142 Tile tile6;
3143 ushort type3 = tile6.type;
3144 Tile tile7;
3145 ushort type4 = tile7.type;
3146 Tile tile8;
3147 ushort type5 = tile8.type;
3148 Tile tile9;
3149 ushort type6 = tile9.type;
3150 Tile tile10;
3151 ushort type7 = tile10.type;
3152 long num14 = 0L;
3153 bool flag3 = WorldGen.SolidTile(num3, num2, num14 != 0L);
3154 int num15 = 141;
3155 Tile tile11;
3156 tile11.type = (ushort)num15;
3157 long num16 = 0L;
3158 tile11.frameY = (short)num16;
3159 long num17 = 0L;
3160 tile11.frameX = (short)num17;
3161 long num18 = 0L;
3162 tile11.slope((byte)num18);
3163 long num19 = 0L;
3164 tile11.halfBrick(num19 != 0L);
3165 int num20 = 1;
3166 long num21 = 0L;
3167 WorldGen.TileFrame(0, (int)num19, num20 != 0, num21 != 0L);
3168 Tile tile12;
3169 ushort type8 = tile12.type;
3170 }
3171
3172 // Token: 0x06002CC8 RID: 11464 RVA: 0x001BD534 File Offset: 0x001BB734
3173 private static void FinishDrunkGen()
3174 {
3175 int num = 1;
3176 if (num == 0)
3177 {
3178 }
3180 int num2 = 13;
3181 int num3 = 25;
3182 int num4 = genRand.Next(num2, num3);
3183 if (num == 0)
3184 {
3185 }
3186 if (num == 0)
3187 {
3188 }
3189 Tile tile;
3190 bool flag = tile.active();
3191 Tile tile2;
3192 ushort type = tile2.type;
3193 Tile tile3;
3194 ushort type2 = tile3.type;
3196 int num5 = 13;
3197 int num6 = 15;
3198 int num7 = genRand2.Next(num5, num6);
3200 int num8 = 2;
3201 if (genRand3.Next(num8) == 0)
3202 {
3204 int num9 = 23;
3205 int num10 = 25;
3206 int num11 = genRand4.Next(num9, num10);
3207 }
3208 Tile tile4;
3209 ushort type3 = tile4.type;
3211 int num12 = 15;
3212 int num13 = 19;
3213 int num14 = genRand5.Next(num12, num13);
3214 Tile tile5;
3215 ushort type4 = tile5.type;
3217 int num15 = 19;
3218 int num16 = 23;
3219 int num17 = genRand6.Next(num15, num16);
3220 }
3221
3222 // Token: 0x06002CC9 RID: 11465 RVA: 0x001BD720 File Offset: 0x001BB920
3223 private static void FinishRemixWorld()
3224 {
3225 int num = 1;
3226 int num2 = 25;
3227 if (num == 0)
3228 {
3229 }
3230 if (num == 0)
3231 {
3232 }
3233 long num3 = 0L;
3234 long num4 = 0L;
3235 long num5 = 0L;
3236 long num6 = 0L;
3237 WorldGen.KillTile(num2, (int)num3, num4 != 0L, num5 != 0L, num6 != 0L);
3238 int num7 = 1;
3239 Tile tile;
3240 tile.lava(num7 != 0);
3241 ushort type = tile.type;
3242 long num8 = 0L;
3243 long num9 = 0L;
3244 long num10 = 0L;
3245 long num11 = 0L;
3246 WorldGen.KillTile(num2, (int)num8, num9 != 0L, num10 != 0L, num11 != 0L);
3247 long num12 = 0L;
3248 long num13 = 0L;
3249 long num14 = 0L;
3250 WorldGen.TileFrame(num2, (int)num12, num13 != 0L, num14 != 0L);
3252 int num15 = 3;
3253 int num16 = genRand.Next(num15);
3255 int num17 = 3;
3256 int num18 = genRand2.Next(num15, num17);
3257 }
3258
3259 // Token: 0x06002CCA RID: 11466 RVA: 0x001BDB68 File Offset: 0x001BBD68
3260 public static bool IsItATrap(Tile tile)
3261 {
3262 int num = 1;
3263 if (num == 0)
3264 {
3265 }
3266 if (num != 0)
3267 {
3268 return;
3269 }
3270 }
3271
3272 // Token: 0x06002CCB RID: 11467 RVA: 0x001BDB84 File Offset: 0x001BBD84
3273 public static bool IsItATrigger(Tile tile)
3274 {
3275 int num = 1;
3276 if (num == 0)
3277 {
3278 }
3279 if (num != 0)
3280 {
3281 return;
3282 }
3283 }
3284
3285 // Token: 0x06002CCC RID: 11468 RVA: 0x001BDBA0 File Offset: 0x001BBDA0
3286 public static void ClearAllBrokenTraps()
3287 {
3288 int num = 1;
3289 if (num == 0)
3290 {
3291 }
3292 if (num == 0)
3293 {
3294 }
3295 Tile tile;
3296 bool flag = tile.wire();
3297 }
3298
3299 // Token: 0x06002CCD RID: 11469 RVA: 0x000021DB File Offset: 0x000003DB
3301 {
3302 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
3303 }
3304
3305 // Token: 0x06002CCE RID: 11470 RVA: 0x001BDBC8 File Offset: 0x001BBDC8
3306 private static double TuneOceanDepth(int count, double depth, bool floridaStyle = false)
3307 {
3308 /*
3309An exception occurred when decompiling this method (06002CCE)
3310
3311ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double Terraria.WorldGen::TuneOceanDepth(System.Int32,System.Double,System.Boolean)
3312
3313 ---> System.Exception: Basic block has to end with unconditional control flow.
3314{
3315 Block_0:
3316 stloc:int32(var_0_0E, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3317 stloc:int32(var_1_1D, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3318 stloc:int32(var_2_2C, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3319 stloc:int32(var_3_3B, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3320 stloc:int32(var_4_4A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3321 stloc:int32(var_5_5A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3322 stloc:int32(var_6_6A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3323 stloc:int32(var_7_7A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3324 stloc:int32(var_8_8A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3325 stloc:int32(var_9_9A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3326 stloc:int32(var_10_AA, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3327 stloc:int32(var_11_BA, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3328 stloc:int32(var_12_CA, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3329 stloc:int32(var_13_DA, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3330 stloc:int32(var_14_EA, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3331 stloc:int32(var_15_FA, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3332 stloc:int32(var_16_10A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3333 stloc:int32(var_17_11A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3334 stloc:int32(var_18_12A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3335 stloc:int32(var_19_13A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3336 stloc:int32(var_20_14A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3337 stloc:int32(var_21_15A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3338 stloc:int32(var_22_16A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3339 stloc:int32(var_23_17A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3340 stloc:int32(var_24_18A, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldc.i4:int32(10), ldc.i4:int32(20)))
3341}
3342
3343 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
3344 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
3345 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
3346 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
3347 --- End of inner exception stack trace ---
3348 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
3349 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
3350*/;
3351 }
3352
3353 // Token: 0x06002CCF RID: 11471 RVA: 0x001BDD60 File Offset: 0x001BBF60
3355 {
3356 if (!true)
3357 {
3358 }
3359 }
3360
3361 // Token: 0x06002CD0 RID: 11472 RVA: 0x000021DB File Offset: 0x000003DB
3362 public static void ConsumePostGenActions(StructureMap structures)
3363 {
3364 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
3365 }
3366
3367 // Token: 0x06002CD1 RID: 11473 RVA: 0x001BDD70 File Offset: 0x001BBF70
3369 {
3370 /*
3371An exception occurred when decompiling this method (06002CD1)
3372
3373ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Point Terraria.WorldGen::RandomRectanglePoint(Microsoft.Xna.Framework.Rectangle)
3374
3375 ---> System.Exception: Basic block has to end with unconditional control flow.
3376{
3377 IL_0003:
3378 stloc:UnifiedRandom(var_0_08, callgetter:UnifiedRandom(WorldGen::get_genRand))
3379 stloc:UnifiedRandom(var_2_0E, callgetter:UnifiedRandom(WorldGen::get_genRand))
3380}
3381
3382 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
3383 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
3384 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
3385 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
3386 --- End of inner exception stack trace ---
3387 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
3388 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
3389*/;
3390 }
3391
3392 // Token: 0x06002CD2 RID: 11474 RVA: 0x001BDD8C File Offset: 0x001BBF8C
3393 public static Point RandomRectanglePoint(int x, int y, int width, int height)
3394 {
3395 /*
3396An exception occurred when decompiling this method (06002CD2)
3397
3398ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Point Terraria.WorldGen::RandomRectanglePoint(System.Int32,System.Int32,System.Int32,System.Int32)
3399
3400 ---> System.Exception: Basic block has to end with unconditional control flow.
3401{
3402 IL_0003:
3403 stloc:int32(var_0_0F, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldloc:int32(x), ldloc:int32(y)))
3404 stloc:int32(var_1_1C, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldloc:int32(x), ldloc:int32(y)))
3405}
3406
3407 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
3408 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
3409 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
3410 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
3411 --- End of inner exception stack trace ---
3412 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
3413 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
3414*/;
3415 }
3416
3417 // Token: 0x06002CD3 RID: 11475 RVA: 0x001BDDB8 File Offset: 0x001BBFB8
3418 public static Point RandomWorldPoint(int padding)
3419 {
3420 if (!true)
3421 {
3422 }
3423 Point point;
3424 return point;
3425 }
3426
3427 // Token: 0x06002CD4 RID: 11476 RVA: 0x001BDDCC File Offset: 0x001BBFCC
3428 public static Point RandomWorldPoint(int top = 0, int right = 0, int bottom = 0, int left = 0)
3429 {
3430 /*
3431An exception occurred when decompiling this method (06002CD4)
3432
3433ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Point Terraria.WorldGen::RandomWorldPoint(System.Int32,System.Int32,System.Int32,System.Int32)
3434
3435 ---> System.Exception: Basic block has to end with unconditional control flow.
3436{
3437 IL_0003:
3438 stloc:int32(var_0_0F, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldloc:int32(bottom), ldloc:int32(right)))
3439 stloc:int32(var_1_1C, call:int32(UnifiedRandom::Next, callgetter:UnifiedRandom(WorldGen::get_genRand), ldloc:int32(bottom), ldloc:int32(right)))
3440}
3441
3442 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
3443 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
3444 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
3445 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
3446 --- End of inner exception stack trace ---
3447 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
3448 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
3449*/;
3450 }
3451
3452 // Token: 0x06002CD5 RID: 11477 RVA: 0x001BDDF8 File Offset: 0x001BBFF8
3453 public static bool GrowPalmTree(int i, int y)
3454 {
3455 int num = 1;
3456 if (num == 0)
3457 {
3458 }
3459 long num2 = 0L;
3460 bool flag = WorldGen.InWorld(0, i, (int)num2);
3461 if (num == 0)
3462 {
3463 }
3464 Tile tile;
3465 ushort type = tile.type;
3466 if (num == 0)
3467 {
3468 }
3469 Tile tile2;
3470 return tile2.IsLoaded;
3471 }
3472
3473 // Token: 0x06002CD6 RID: 11478 RVA: 0x001BDFB0 File Offset: 0x001BC1B0
3474 public static bool IsPalmOasisTree(int x)
3475 {
3476 if (!true)
3477 {
3478 return;
3479 }
3480 }
3481
3482 // Token: 0x06002CD7 RID: 11479 RVA: 0x001BDFC4 File Offset: 0x001BC1C4
3483 public static bool GrowEpicTree(int i, int y)
3484 {
3485 int num = 1;
3486 if (num == 0)
3487 {
3488 }
3489 Tile tile;
3490 ushort type = tile.type;
3491 if (num == 0)
3492 {
3493 }
3494 Tile tile2;
3495 bool flag = tile2.active();
3496 if (num == 0)
3497 {
3498 }
3499 Tile tile3;
3500 bool flag2 = tile3.halfBrick();
3501 if (num == 0)
3502 {
3503 }
3504 Tile tile4;
3505 byte b = tile4.slope();
3506 if (num == 0)
3507 {
3508 }
3509 Tile tile5;
3510 ushort type2 = tile5.type;
3511 if (num == 0)
3512 {
3513 }
3514 Tile tile6;
3515 ushort wall = tile6.wall;
3516 if (num == 0)
3517 {
3518 }
3519 Tile tile7;
3520 byte liquid = tile7.liquid;
3521 if (num == 0)
3522 {
3523 }
3524 Tile tile8;
3525 bool flag3 = tile8.active();
3526 if (num == 0)
3527 {
3528 }
3529 Tile tile9;
3530 ushort type3 = tile9.type;
3531 if (num == 0)
3532 {
3533 }
3534 Tile tile10;
3535 ushort type4 = tile10.type;
3536 if (num == 0)
3537 {
3538 }
3539 Tile tile11;
3540 ushort type5 = tile11.type;
3541 if (num == 0)
3542 {
3543 }
3544 Tile tile12;
3545 ushort type6 = tile12.type;
3546 if (num == 0)
3547 {
3548 }
3549 Tile tile13;
3550 bool flag4 = tile13.active();
3551 if (num == 0)
3552 {
3553 }
3554 Tile tile14;
3555 ushort type7 = tile14.type;
3556 if (num == 0)
3557 {
3558 }
3559 Tile tile15;
3560 ushort type8 = tile15.type;
3561 if (num == 0)
3562 {
3563 }
3564 Tile tile16;
3565 ushort type9 = tile16.type;
3566 if (num == 0)
3567 {
3568 }
3569 long num2 = 0L;
3570 long num3 = 0L;
3571 Tile tile17;
3572 ushort type10 = tile17.type;
3573 if (num == 0)
3574 {
3575 }
3576 int num4 = 20;
3577 bool flag5 = WorldGen.EmptyTileCheck(0, (int)num3, 0, (int)num2, num4);
3578 if (num == 0)
3579 {
3580 }
3582 int num5 = 20;
3583 int num6 = 30;
3584 int num7 = genRand.Next(num5, num6);
3586 int num8 = 3;
3587 int num9 = 7;
3588 int num10 = genRand2.Next(num8, num9);
3589 if (!false)
3590 {
3591 }
3593 int num11 = 3;
3594 int num12 = genRand3.Next(num11);
3596 int num13 = 3;
3597 int num14 = genRand4.Next(num13);
3599 int num15 = 10;
3600 int num16 = genRand5.Next(num15);
3601 if (!false)
3602 {
3603 }
3605 int num17 = 10;
3606 int num18 = genRand6.Next(num17);
3607 int num28;
3608 if (num14 == 0)
3609 {
3610 if (num14 != 0)
3611 {
3612 if (num14 != 0 || num14 != 0 || num14 != 0)
3613 {
3614 goto IL_0317;
3615 }
3616 if (num14 == 0)
3617 {
3618 if (num14 != 0)
3619 {
3620 goto IL_02A8;
3621 }
3622 if (num14 != 0)
3623 {
3624 }
3625 }
3626 }
3627 if (!false)
3628 {
3629 }
3630 int num19 = 1;
3631 Tile tile18;
3632 tile18.active(num19 != 0);
3633 int num20 = 5;
3634 tile18.type = (ushort)num20;
3635 if (!false)
3636 {
3637 }
3639 int num21 = 3;
3640 int num22 = genRand7.Next(num21);
3642 int num23 = 3;
3643 int num24 = genRand8.Next(num23);
3644 if (num22 == 0 || num22 != 0)
3645 {
3646 }
3647 IL_02A8:
3648 if (!false)
3649 {
3650 }
3651 int num25 = 1;
3652 Tile tile19;
3653 tile19.active(num25 != 0);
3654 int num26 = 5;
3655 tile19.type = (ushort)num26;
3656 if (!false)
3657 {
3658 }
3660 int num27 = 3;
3663 int num29 = 3;
3664 int num30 = genRand10.Next(num29);
3665 if (num28 == 0 || num28 != 0)
3666 {
3667 }
3668 }
3669 IL_0317:
3670 if (!false)
3671 {
3672 }
3674 int num31 = 3;
3675 int num32 = genRand11.Next(num31);
3676 Tile tile20;
3677 bool flag6 = tile20.active();
3678 Tile tile21;
3679 bool flag7 = tile21.halfBrick();
3680 Tile tile22;
3681 byte b2 = tile22.slope();
3682 long num33 = 0L;
3683 Tile tile23;
3684 bool flag8 = tile23.active();
3685 Tile tile24;
3686 bool flag9 = tile24.halfBrick();
3687 Tile tile25;
3688 byte b3 = tile25.slope();
3689 long num34 = 0L;
3690 int num35 = 2;
3691 if (num28 != 0)
3692 {
3693 if (num34 == 0L)
3694 {
3695 }
3696 int num36 = 1;
3697 Tile tile26;
3698 tile26.active(num36 != 0);
3699 int num37 = 5;
3700 tile26.type = (ushort)num37;
3701 if (num34 == 0L)
3702 {
3703 }
3705 int num38 = 3;
3706 if (genRand12.Next(num38) == 0)
3707 {
3708 }
3709 }
3710 if (num34 == 0L)
3711 {
3712 }
3713 int num39 = 1;
3714 Tile tile27;
3715 tile27.active(num39 != 0);
3716 int num40 = 5;
3717 tile27.type = (ushort)num40;
3718 if (num34 == 0L)
3719 {
3720 }
3722 int num41 = 3;
3723 if (genRand13.Next(num41) == 0)
3724 {
3725 }
3726 if (num34 == 0L)
3727 {
3728 }
3730 int num42 = 3;
3731 int num43 = genRand14.Next(num42);
3732 if (num33 != 0L)
3733 {
3734 if (num34 == 0L)
3735 {
3736 }
3737 if (num43 != 0)
3738 {
3739 goto IL_051F;
3740 }
3741 long num44 = 0L;
3742 Tile tile28;
3743 tile28.frameX = (short)num44;
3744 }
3745 if (num34 == 0L)
3746 {
3747 }
3748 int num47;
3749 if (num43 == 0)
3750 {
3751 int num45 = 88;
3752 Tile tile29;
3753 tile29.frameX = (short)num45;
3754 if (num34 == 0L)
3755 {
3756 }
3757 if (num43 == 0)
3758 {
3759 int num46 = 66;
3760 Tile tile30;
3761 tile30.frameX = (short)num46;
3762 if (num34 == 0L)
3763 {
3764 }
3765 Tile tile31;
3766 ushort type11 = tile31.type;
3767 if (num34 == 0L)
3768 {
3769 }
3770 Tile tile32;
3771 ushort type12 = tile32.type;
3772 if (num34 == 0L)
3773 {
3774 }
3775 Tile tile33;
3776 ushort type13 = tile33.type;
3777 if (num34 == 0L)
3778 {
3779 }
3780 Tile tile34;
3781 ushort type14 = tile34.type;
3782 if (num34 == 0L)
3783 {
3784 }
3785 Tile tile35;
3786 ushort type15 = tile35.type;
3787 if (num34 == 0L)
3788 {
3789 }
3790 Tile tile36;
3791 ushort type16 = tile36.type;
3792 if (num34 == 0L)
3793 {
3794 }
3795 Tile tile37;
3796 ushort type17 = tile37.type;
3797 if (num34 == 0L)
3798 {
3799 }
3800 Tile tile38;
3801 ushort type18 = tile38.type;
3802 num47 = 1;
3803 }
3804 }
3805 IL_051F:
3806 if (num47 == 0)
3807 {
3808 }
3810 int num48 = 13;
3811 int num49 = genRand15.Next(num48);
3812 if (num35 == 0)
3813 {
3814 }
3815 if (num49 != 0)
3816 {
3817 if (num35 == 0)
3818 {
3819 }
3821 int num50 = 3;
3822 if (genRand16.Next(num50) != 0)
3823 {
3824 goto IL_0595;
3825 }
3826 }
3827 if (num35 == 0)
3828 {
3829 }
3831 int num51 = 3;
3832 int num52;
3833 long num53;
3834 if (genRand17.Next(num51) == 0)
3835 {
3836 num52 = 220;
3837 num53 = 0L;
3838 }
3839 IL_0595:
3840 if (!false)
3841 {
3842 }
3843 WorldGen.RangeFrame(0, num52, (int)num53, 0);
3844 if (!false)
3845 {
3846 }
3847 bool netHost = Main.NetHost;
3848 if (!false)
3849 {
3850 return;
3851 }
3852 }
3853
3854 // Token: 0x06002CD8 RID: 11480 RVA: 0x001BE588 File Offset: 0x001BC788
3855 public static bool Pyramid(int i, int j)
3856 {
3857 int num = 1;
3858 if (num == 0)
3859 {
3860 }
3861 Tile tile;
3862 ushort type = tile.type;
3863 if (num == 0)
3864 {
3865 }
3866 Tile tile2;
3867 ushort wall = tile2.wall;
3868 if (num == 0)
3869 {
3870 }
3872 int num2 = 7;
3873 long num3 = 0L;
3874 int num4 = genRand.Next((int)num3, num2);
3876 int num5 = 9;
3877 int num6 = 13;
3878 int num7 = genRand2.Next(num5, num6);
3880 int num8 = 75;
3881 int num9 = 125;
3882 int num10 = genRand3.Next(num8, num9);
3883 if (num == 0)
3884 {
3885 }
3886 int num11 = 151;
3887 Tile tile3;
3888 tile3.type = (ushort)num11;
3889 int num12 = 1;
3890 tile3.active(num12 != 0);
3891 long num13 = 0L;
3892 tile3.halfBrick(num13 != 0L);
3893 long num14 = 0L;
3894 tile3.slope((byte)num14);
3895 if (num == 0)
3896 {
3897 }
3898 Tile tile4;
3899 ushort type2 = tile4.type;
3900 if (num == 0)
3901 {
3902 }
3903 int num15 = 34;
3904 Tile tile5;
3905 tile5.wall = (ushort)num15;
3906 if (num == 0)
3907 {
3908 }
3909 int num16 = 1;
3910 WorldGen.SquareWallFrame(43143168, num4, num16 != 0);
3911 if (num == 0)
3912 {
3913 }
3915 int num17 = 2;
3916 int num18 = genRand4.Next(num17);
3917 if (num18 == 0)
3918 {
3919 }
3921 int num19 = 5;
3922 int num20 = 8;
3923 int num21 = genRand5.Next(num19, num20);
3925 int num22 = 20;
3926 int num23 = 30;
3927 int num24 = genRand6.Next(num22, num23);
3928 if (num18 == 0)
3929 {
3930 }
3931 Tile tile6;
3932 ushort type3 = tile6.type;
3933 Tile tile7;
3934 ushort type4 = tile7.type;
3935 int num25 = 34;
3936 Tile tile8;
3937 tile8.wall = (ushort)num25;
3938 int num26 = 34;
3939 Tile tile9;
3940 tile9.wall = (ushort)num26;
3941 long num27 = 0L;
3942 tile9.active(num27 != 0L);
3943 int num28 = 53;
3944 tile9.type = (ushort)num28;
3945 int num29 = 1;
3946 tile9.active(num29 != 0);
3947 long num30 = 0L;
3948 tile9.halfBrick(num30 != 0L);
3949 long num31 = 0L;
3950 tile9.slope((byte)num31);
3951 if (!true)
3952 {
3953 }
3954 long num32 = 0L;
3955 Tile tile10;
3956 tile10.active(num32 != 0L);
3957 long num33 = 0L;
3958 int num39;
3959 if (num33 != 0L)
3960 {
3961 if (num33 == 0L)
3962 {
3963 }
3965 if (num33 == 0L)
3966 {
3967 }
3969 int num34 = 7;
3970 int num35 = 13;
3971 int num36 = genRand8.Next(num34, num35);
3973 int num37 = 23;
3974 int num38 = 28;
3976 if (num33 == 0L)
3977 {
3978 }
3979 long num40 = 0L;
3980 Tile tile11;
3981 tile11.active(num40 != 0L);
3982 }
3983 if (num33 == 0L)
3984 {
3985 }
3987 if (num33 == 0L)
3988 {
3989 }
3991 int num41 = 3;
3992 if (genRand11.Next(num41) == 0)
3993 {
3994 if (num33 == 0L)
3995 {
3996 }
3998 int num42 = 3;
3999 int num43 = genRand12.Next(num42);
4000 }
4001 if (num33 == 0L)
4002 {
4003 }
4004 int num44 = 1;
4005 long num45 = 0L;
4006 long num46 = 0L;
4007 long num47 = 0L;
4008 bool flag = WorldGen.AddBuriedChest(0, 43143168, 0, num45 != 0L, num44, num46 != 0L, (ushort)num47);
4010 int num48 = 1;
4011 int num49 = 10;
4012 int num50 = genRand13.Next(num48, num49);
4013 if (!false)
4014 {
4015 }
4018 int num52 = 16;
4019 int num53 = 19;
4020 int num54 = genRand14.Next(num52, num53);
4021 int num55 = 1;
4022 int num56 = 185;
4023 return WorldGen.PlaceSmallPile(num51, 0, num54, num55, (ushort)num56);
4024 }
4025
4026 // Token: 0x06002CD9 RID: 11481 RVA: 0x001BEAD4 File Offset: 0x001BCCD4
4027 public static bool GrowLivingTree(int i, int j, bool patch = false)
4028 {
4030 int num89;
4031 do
4032 {
4033 int num = 2000;
4034 long num2 = 0L;
4035 bool flag = WorldGen.SolidTile(0, num, num2 != 0L);
4036 if (!flag)
4037 {
4038 }
4039 Tile tile;
4040 bool flag2 = tile.active();
4041 if (!flag)
4042 {
4043 }
4044 Tile tile2;
4045 ushort type = tile2.type;
4046 if (!flag)
4047 {
4048 }
4049 Tile tile3;
4050 ushort type2 = tile3.type;
4051 if (!flag)
4052 {
4053 }
4054 Tile tile4;
4055 ushort type3 = tile4.type;
4056 if (!flag)
4057 {
4058 }
4059 Tile tile5;
4060 ushort type4 = tile5.type;
4061 if (!flag)
4062 {
4063 }
4064 Tile tile6;
4065 ushort type5 = tile6.type;
4067 int num3 = 2;
4068 int num4 = 3;
4069 int num5 = genRand.Next(num3, num4);
4071 int num6 = 2;
4072 int num7 = 3;
4073 int num8 = genRand2.Next(num6, num7);
4075 int num9 = 5;
4076 if (genRand3.Next(num9) == 0)
4077 {
4079 int num10 = 2;
4080 if (genRand4.Next(num10) != 0)
4081 {
4082 }
4083 }
4085 int num11 = 1;
4086 int num12 = 3;
4087 int num13 = genRand5.Next(num11, num12);
4089 int num14 = 1;
4090 int num15 = 3;
4091 int num16 = genRand6.Next(num14, num15);
4094 int num18 = 2;
4095 int num19 = genRand7.Next(num18);
4097 int num20 = 5;
4098 int num21 = 15;
4099 int num22 = genRand8.Next(num20, num21);
4101 int num23 = 5;
4102 int num24 = 15;
4103 int num25 = genRand9.Next(num23, num24);
4105 int num26 = 5;
4106 int num27 = genRand10.Next(num26);
4108 int num28 = 5;
4109 int num29 = genRand11.Next(num28);
4111 int num30 = 2;
4112 int num31 = genRand12.Next(num30);
4114 int num32 = 2;
4115 int num33 = genRand13.Next(num32);
4116 int num34 = 191;
4117 Tile tile7;
4118 tile7.type = (ushort)num34;
4119 int num35 = 1;
4120 tile7.active(num35 != 0);
4121 long num36 = 0L;
4122 tile7.halfBrick(num36 != 0L);
4123 if (!false)
4124 {
4125 }
4127 int num37 = 20;
4128 int num38 = 30;
4129 int num39 = genRand14.Next(num37, num38);
4130 if (num39 == 0)
4131 {
4132 }
4133 int num40 = 191;
4134 Tile tile8;
4135 tile8.type = (ushort)num40;
4136 int num41 = 1;
4137 tile8.active(num41 != 0);
4138 long num42 = 0L;
4139 tile8.halfBrick(num42 != 0L);
4141 int num43 = 3;
4142 int num44 = 5;
4143 int num45 = genRand15.Next(num43, num44);
4144 if (num39 == 0)
4145 {
4146 }
4147 int num46 = 191;
4148 Tile tile9;
4149 tile9.type = (ushort)num46;
4150 int num47 = 1;
4151 tile9.active(num47 != 0);
4152 long num48 = 0L;
4153 tile9.halfBrick(num48 != 0L);
4154 if (num39 == 0)
4155 {
4156 }
4158 int num49 = 10;
4159 if (genRand16.Next(num49) != 0)
4160 {
4161 }
4162 if (-1073741824 == 0)
4163 {
4164 }
4166 int num50 = 2;
4167 if (genRand17.Next(num50) != 0)
4168 {
4169 }
4170 if (-1073741824 == 0)
4171 {
4172 }
4174 int num51 = 2;
4175 int num54;
4176 if (genRand18.Next(num51) == 0)
4177 {
4178 if (-1073741824 == 0)
4179 {
4180 }
4182 int num52 = 2;
4183 int num53 = 5;
4186 int num55 = 2;
4187 int num56 = genRand20.Next(num55);
4188 int num57 = 191;
4189 Tile tile10;
4190 tile10.type = (ushort)num57;
4191 int num58 = 1;
4192 tile10.active(num58 != 0);
4193 long num59 = 0L;
4194 tile10.halfBrick(num59 != 0L);
4195 if (num56 != 0)
4196 {
4197 }
4198 int num60 = 191;
4199 Tile tile11;
4200 tile11.type = (ushort)num60;
4201 int num61 = 1;
4202 tile11.active(num61 != 0);
4203 long num62 = 0L;
4204 tile11.halfBrick(num62 != 0L);
4205 }
4206 Tile tile12;
4207 bool flag3 = tile12.active();
4208 long num63 = 0L;
4209 Tile tile13;
4210 ushort type6 = tile13.type;
4211 long num64 = 0L;
4212 int num65 = WorldGen.genRand.Next((int)num63, num54);
4213 long num66 = 0L;
4214 long num67 = 0L;
4215 int num68 = 191;
4216 Tile tile14;
4217 tile14.type = (ushort)num68;
4218 int num69 = 1;
4219 tile14.active(num69 != 0);
4220 long num70 = 0L;
4221 tile14.halfBrick(num70 != 0L);
4222 if (num64 == 0L)
4223 {
4224 goto IL_057F;
4225 }
4226 if (num66 == 0L)
4227 {
4228 }
4229 if (num67 != 0L)
4230 {
4231 goto IL_057F;
4232 }
4234 int num71 = 2;
4235 long num72 = 0L;
4236 if (genRand21.Next(num71) != 0)
4237 {
4238 goto IL_057F;
4239 }
4240 int num73 = WorldGen.genRand.Next(num71, (int)num72);
4242 int num74 = 3;
4243 int num75 = 5;
4244 int num76 = genRand22.Next(num74, num75);
4246 int num77 = 3;
4247 int num78 = 5;
4248 int num79 = genRand23.Next(num77, num78);
4249 if (!false)
4250 {
4251 }
4252 int num80 = 191;
4253 Tile tile15;
4254 tile15.type = (ushort)num80;
4255 int num81 = 1;
4256 tile15.active(num81 != 0);
4257 long num82 = 0L;
4258 tile15.halfBrick(num82 != 0L);
4259 if (!false)
4260 {
4261 }
4262 if (!false)
4263 {
4264 }
4266 int num83 = 5;
4267 if (genRand24.Next(num83) == 0)
4268 {
4269 if (!false)
4270 {
4271 }
4273 int num84 = 2;
4274 int num85 = genRand25.Next(num84);
4275 int num86 = 191;
4276 Tile tile16;
4277 tile16.type = (ushort)num86;
4278 int num87 = 1;
4279 tile16.active(num87 != 0);
4280 long num88 = 0L;
4281 tile16.halfBrick(num88 != 0L);
4282 }
4284 num89 = 3;
4285 }
4286 while (genRand26.Next(num89) != 0);
4288 int num90 = 2;
4289 int num91 = 4;
4290 int num92 = genRand27.Next(num90, num91);
4292 int num93 = 2;
4293 int num94 = genRand28.Next(num93);
4294 int num95 = 191;
4295 Tile tile17;
4296 tile17.type = (ushort)num95;
4297 int num96 = 1;
4298 tile17.active(num96 != 0);
4299 long num97 = 0L;
4300 tile17.halfBrick(num97 != 0L);
4301 if (!true)
4302 {
4303 }
4305 int num98 = 6;
4306 int num99 = genRand29.Next((int)num97, num98);
4308 int num100 = 6;
4309 int num101 = genRand30.Next((int)num97, num100);
4310 int num102 = 1;
4311 int num103 = 1;
4312 IL_057F:
4313 if (num103 == 0)
4314 {
4315 }
4317 int num104 = 4;
4318 if (genRand31.Next(num104) == 0)
4319 {
4320 if (num103 == 0)
4321 {
4322 }
4324 int num105 = 2;
4325 int num106 = genRand32.Next(num105);
4326 int num107 = 191;
4327 Tile tile18;
4328 tile18.type = (ushort)num107;
4329 int num108 = 1;
4330 tile18.active(num108 != 0);
4331 long num109 = 0L;
4332 tile18.halfBrick(num109 != 0L);
4333 }
4334 long num110 = 32752L;
4336 int num111 = 1;
4337 int num112 = 6;
4339 long num114 = 0L;
4340 bool flag4 = WorldGen.SolidTile(num102, 0, num114 != 0L);
4341 if (num110 == 0L)
4342 {
4343 }
4344 int num115 = 191;
4345 Tile tile19;
4346 tile19.type = (ushort)num115;
4347 int num116 = 1;
4348 tile19.active(num116 != 0);
4349 long num117 = 0L;
4350 long num118 = 0L;
4351 tile19.halfBrick(num117 != 0L);
4353 int num119 = 2;
4354 int num120 = genRand34.Next(num119, (int)num118);
4355 int num121 = WorldGen.genRand.Next(num119, (int)num118);
4356 Tile tile20;
4357 ushort wall = tile20.wall;
4358 Tile tile21;
4359 ushort wall2 = tile21.wall;
4360 Tile tile22;
4361 bool flag5 = tile22.active();
4362 if (num110 == 0L)
4363 {
4364 }
4366 int num122 = 3;
4367 int num123;
4368 if (genRand35.Next(num122) != 0)
4369 {
4370 if (!flag5)
4371 {
4372 }
4374 num123 = 3;
4375 int num124 = genRand36.Next(num123);
4376 }
4377 if (num103 != 0)
4378 {
4379 }
4380 if (!flag5)
4381 {
4382 }
4384 int num125 = 2;
4387 int num127 = 5;
4388 int num128 = 8;
4391 int num130 = 6;
4392 int num131 = 12;
4395 int num133 = 5;
4396 int num134 = genRand40.Next(num133);
4397 if (!false)
4398 {
4399 }
4400 Tile tile23;
4401 ushort type7 = tile23.type;
4402 if (false)
4403 {
4405 double num135 = vector2D.Length();
4406 }
4408 int num136 = 30;
4409 if (genRand41.Next(num136) == 0)
4410 {
4411 Tile tile24;
4412 bool flag6 = tile24.active();
4413 Tile tile25;
4414 bool flag7 = tile25.active();
4415 Tile tile26;
4416 ushort type8 = tile26.type;
4418 int num137 = 50;
4419 int num138 = 52;
4421 }
4423 int num140 = 15;
4424 if (genRand43.Next(num140) == 0)
4425 {
4426 Tile tile27;
4427 bool flag8 = tile27.active();
4428 Tile tile28;
4429 bool flag9 = tile28.active();
4430 Tile tile29;
4431 ushort type9 = tile29.type;
4433 int num141 = 2;
4434 int num142 = genRand44.Next(num141);
4436 if (num142 != 0)
4437 {
4438 int num143 = 2;
4439 int num144 = genRand45.Next(num143);
4440 if (!false)
4441 {
4442 }
4444 int num145 = 59;
4445 int num146 = 62;
4447 }
4448 bool flag10;
4449 return flag10;
4450 }
4451 return false;
4452 }
4453
4454 // Token: 0x06002CDA RID: 11482 RVA: 0x001BF440 File Offset: 0x001BD640
4455 public static bool GrowDungeonTree(int i, int j, bool patch = false)
4456 {
4457 /*
4458An exception occurred when decompiling this method (06002CDA)
4459
4460ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GrowDungeonTree(System.Int32,System.Int32,System.Boolean)
4461
4462 ---> System.Exception: Basic block has to end with unconditional control flow.
4463{
4464 IL_07F6:
4465 stloc:int64(var_243_7F7, ldc.i4:int64(0))
4466 call:void(WorldGen::GrowDungeonTree_MakePassage, ldc.i4:int32(0), ldloc:int32(var_241), ldloc:int64[exp:int32](var_242), ldloc:int64[exp:int32](var_236), ldloc:int64[exp:bool](var_243_7F7))
4467}
4468
4469 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
4470 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
4471 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
4472 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
4473 --- End of inner exception stack trace ---
4474 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
4475 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
4476*/;
4477 }
4478
4479 // Token: 0x06002CDB RID: 11483 RVA: 0x001BFC58 File Offset: 0x001BDE58
4480 private static bool GrowLivingTree_HorizontalTunnel(int i, int j)
4481 {
4482 int num = 1;
4483 if (num == 0)
4484 {
4485 }
4487 int num2 = 2;
4488 int num3 = genRand.Next(num2);
4489 long num4 = 0L;
4490 if (num == 0)
4491 {
4492 }
4493 int num5 = 10;
4494 bool flag = WorldGen.InWorld(0, i, num5);
4495 if (num4 == 0L)
4496 {
4497 }
4498 if (num4 == 0L)
4499 {
4500 }
4501 Tile tile;
4502 ushort wall = tile.wall;
4503 if (num4 == 0L)
4504 {
4505 }
4506 Tile tile2;
4507 ushort type = tile2.type;
4508 Tile tile3;
4509 ushort type2 = tile3.type;
4510 Tile tile4;
4511 return tile4.active();
4512 }
4513
4514 // Token: 0x06002CDC RID: 11484 RVA: 0x001BFF28 File Offset: 0x001BE128
4515 private static void GrowDungeonTree_MakePassage(int j, int W, int minl, int minr, bool noSecretRoom = false)
4516 {
4518 int num = 5;
4519 int num2 = 16;
4520 int num3 = genRand.Next(num, num2);
4521 if (!true)
4522 {
4523 }
4524 Tile tile;
4525 ushort type = tile.type;
4526 Tile tile2;
4527 ushort type2 = tile2.type;
4528 Tile tile3;
4529 ushort type3 = tile3.type;
4530 Tile tile4;
4531 ushort type4 = tile4.type;
4532 Tile tile5;
4533 ushort type5 = tile5.type;
4534 Tile tile6;
4535 ushort type6 = tile6.type;
4536 Tile tile7;
4537 ushort type7 = tile7.type;
4538 Tile tile8;
4539 ushort type8 = tile8.type;
4540 Tile tile9;
4541 ushort type9 = tile9.type;
4542 Tile tile10;
4543 ushort type10 = tile10.type;
4544 long num4 = 0L;
4545 Tile tile11;
4546 tile11.active(num4 != 0L);
4547 Tile tile12;
4548 ushort wall = tile12.wall;
4549 int num5 = 244;
4550 Tile tile13;
4551 tile13.wall = (ushort)num5;
4552 Tile tile14;
4553 ushort wall2 = tile14.wall;
4554 Tile tile15;
4555 ushort wall3 = tile15.wall;
4556 int num6 = 244;
4557 Tile tile16;
4558 tile16.wall = (ushort)num6;
4559 Tile tile17;
4560 ushort wall4 = tile17.wall;
4561 Tile tile18;
4562 ushort wall5 = tile18.wall;
4563 int num7 = 244;
4564 Tile tile19;
4565 tile19.wall = (ushort)num7;
4566 long num8 = 0L;
4567 Tile tile20;
4568 tile20.active(num8 != 0L);
4569 }
4570
4571 // Token: 0x06002CDD RID: 11485 RVA: 0x001C0234 File Offset: 0x001BE434
4572 private static void GrowLivingTree_MakePassage(int j, int W, int minl, int minr, bool noSecretRoom = false)
4573 {
4575 int num = 400;
4576 int num2 = 700;
4577 int num3 = genRand.Next(num, num2);
4579 int num4 = 5;
4580 int num5 = 16;
4581 int num6 = genRand2.Next(num4, num5);
4582 Tile tile;
4583 bool flag = tile.active();
4584 Tile tile2;
4585 ushort wall = tile2.wall;
4586 Tile tile3;
4587 bool flag2 = tile3.active();
4588 Tile tile4;
4589 ushort wall2 = tile4.wall;
4590 Tile tile5;
4591 ushort wall3 = tile5.wall;
4592 Tile tile6;
4593 ushort type = tile6.type;
4594 Tile tile7;
4595 ushort type2 = tile7.type;
4596 Tile tile8;
4597 ushort type3 = tile8.type;
4598 Tile tile9;
4599 ushort type4 = tile9.type;
4600 Tile tile10;
4601 ushort type5 = tile10.type;
4602 Tile tile11;
4603 ushort type6 = tile11.type;
4604 Tile tile12;
4605 ushort type7 = tile12.type;
4606 Tile tile13;
4607 ushort type8 = tile13.type;
4608 Tile tile14;
4609 ushort type9 = tile14.type;
4610 Tile tile15;
4611 ushort type10 = tile15.type;
4612 long num7 = 0L;
4613 Tile tile16;
4614 tile16.active(num7 != 0L);
4615 Tile tile17;
4616 ushort wall4 = tile17.wall;
4617 int num8 = 244;
4618 Tile tile18;
4619 tile18.wall = (ushort)num8;
4620 Tile tile19;
4621 ushort wall5 = tile19.wall;
4622 Tile tile20;
4623 ushort wall6 = tile20.wall;
4624 int num9 = 244;
4625 Tile tile21;
4626 tile21.wall = (ushort)num9;
4627 Tile tile22;
4628 ushort wall7 = tile22.wall;
4629 Tile tile23;
4630 ushort wall8 = tile23.wall;
4631 int num10 = 244;
4632 Tile tile24;
4633 tile24.wall = (ushort)num10;
4634 long num11 = 0L;
4635 Tile tile25;
4636 tile25.active(num11 != 0L);
4637 }
4638
4639 // Token: 0x06002CDE RID: 11486 RVA: 0x001C0578 File Offset: 0x001BE778
4640 private static void GrowLivingTreePassageRoom(int minl, int minr, int Y)
4641 {
4642 if (!true)
4643 {
4644 }
4646 int num = 2;
4647 int num2 = genRand.Next(num);
4648 int num3 = 1;
4649 if (num2 == 0)
4650 {
4651 }
4653 int num4 = 15;
4654 int num5 = 30;
4655 int num6 = genRand2.Next(num4, num5);
4656 if (num2 == 0)
4657 {
4658 }
4659 Tile tile;
4660 ushort wall = tile.wall;
4661 if (num2 == 0)
4662 {
4663 }
4664 Tile tile2;
4665 bool flag = tile2.active();
4666 if (num2 == 0)
4667 {
4668 }
4669 if (num3 == 0)
4670 {
4671 }
4672 if (num3 == 0)
4673 {
4674 }
4675 }
4676
4677 // Token: 0x06002CDF RID: 11487 RVA: 0x001C08D0 File Offset: 0x001BEAD0
4678 public static void TreeGrowFXCheck(int x, int y)
4679 {
4680 int num = 1;
4681 if (num == 0)
4682 {
4683 }
4684 int num2 = 1;
4685 if (num == 0)
4686 {
4687 }
4688 Tile tile;
4689 bool flag = tile.active();
4690 if (num == 0)
4691 {
4692 }
4693 if (num != 0)
4694 {
4695 }
4696 if (num == 0)
4697 {
4698 }
4699 Tile tile2;
4700 bool flag2 = tile2.active();
4701 if (num == 0)
4702 {
4703 }
4704 if (num != 0)
4705 {
4706 return;
4707 }
4708 if (num == 0)
4709 {
4710 }
4711 if (num == 0)
4712 {
4713 }
4714 bool netHost = Main.NetHost;
4715 if (num == 0)
4716 {
4717 }
4718 if (num == 0)
4719 {
4720 }
4721 bool logicHost = Main.LogicHost;
4722 if (num == 0)
4723 {
4724 }
4725 long num3 = 0L;
4726 WorldGen.TreeGrowFX(x, y, num2, 0, num3 != 0L);
4727 }
4728
4729 // Token: 0x06002CE0 RID: 11488 RVA: 0x001C0940 File Offset: 0x001BEB40
4730 public static void GetTreeLeaf(int x, Tile topTile, Tile t, int treeHeight, [Out] int treeFrame, [Out] int passStyle)
4731 {
4732 int num = 1;
4733 passStyle.m_value = num;
4734 }
4735
4736 // Token: 0x06002CE1 RID: 11489 RVA: 0x001C09F4 File Offset: 0x001BEBF4
4737 public static void TreeGrowFX(int x, int y, int height, int treeGore, bool hitTree = false)
4738 {
4739 if (!true)
4740 {
4741 }
4742 WorldGen.TreeGrowFX_AshShake(x, y, height, treeGore != 0);
4743 }
4744
4745 // Token: 0x06002CE2 RID: 11490 RVA: 0x001C0A44 File Offset: 0x001BEC44
4746 private static void TreeGrowFX_AshShake(int x, int y, int height, bool hitTree = false)
4747 {
4748 if (!true)
4749 {
4750 }
4751 int num = 5;
4752 int num2 = 10;
4753 if (num == 0)
4754 {
4755 }
4756 int num3;
4757 if (num3 != 0)
4758 {
4759 if (num == 0)
4760 {
4761 }
4762 if (num == 0)
4763 {
4764 }
4765 if (num2 == 0)
4766 {
4767 }
4768 }
4769 int num4;
4770 int num6;
4771 if (num4 != 0)
4772 {
4773 if (num2 == 0)
4774 {
4775 }
4776 Dust dust;
4777 float x2 = dust.velocity.X;
4778 float y2 = dust.velocity.Y;
4779 int num5;
4780 if (num5 == 0)
4781 {
4782 num6 = 1;
4783 dust.noGravity = num6 != 0;
4784 }
4785 if (num6 == 0)
4786 {
4787 }
4788 }
4789 if (num6 == 0)
4790 {
4791 }
4792 if (num6 == 0)
4793 {
4794 }
4795 if (num2 == 0)
4796 {
4797 }
4798 if (!true)
4799 {
4800 }
4801 Gore gore;
4802 float x3 = gore.velocity.X;
4803 float y3 = gore.velocity.Y;
4806 }
4807
4808 // Token: 0x06002CE3 RID: 11491 RVA: 0x001C0B38 File Offset: 0x001BED38
4809 public static bool IsTileALeafyTreeTop(int i, int j)
4810 {
4811 int num = 1;
4812 bool flag = Framing.GetTileSafely(0, i).active();
4813 if (num == 0)
4814 {
4815 }
4816 if (num != 0)
4817 {
4818 return;
4819 }
4820 }
4821
4822 // Token: 0x06002CE4 RID: 11492 RVA: 0x001C0B60 File Offset: 0x001BED60
4823 public static bool IsTileTypeFitForTree(ushort type)
4824 {
4825 }
4826
4827 // Token: 0x06002CE5 RID: 11493 RVA: 0x001C0B80 File Offset: 0x001BED80
4828 public static bool GrowTree(int i, int y)
4829 {
4830 int num = 1;
4831 if (num == 0)
4832 {
4833 }
4834 Tile tile;
4835 ushort type = tile.type;
4836 if (num == 0)
4837 {
4838 }
4839 Tile tile2;
4840 byte liquid = tile2.liquid;
4841 if (num == 0)
4842 {
4843 }
4844 Tile tile3;
4845 byte liquid2 = tile3.liquid;
4846 if (num == 0)
4847 {
4848 }
4849 Tile tile4;
4850 byte liquid3 = tile4.liquid;
4851 if (num == 0)
4852 {
4853 }
4854 int num7;
4855 int num8;
4856 if (num != 0)
4857 {
4858 if (num == 0)
4859 {
4860 }
4861 Tile tile5;
4862 bool flag = tile5.nactive();
4863 if (num == 0)
4864 {
4865 }
4866 Tile tile6;
4867 bool flag2 = tile6.halfBrick();
4868 if (num == 0)
4869 {
4870 }
4871 Tile tile7;
4872 byte b = tile7.slope();
4873 if (num == 0)
4874 {
4875 }
4876 Tile tile8;
4878 Tile tile9;
4879 ushort wall = tile9.wall;
4880 Tile tile10;
4881 ushort wall2 = tile10.wall;
4883 if (!false)
4884 {
4885 }
4886 Tile tile11;
4887 bool flag5 = tile11.active();
4888 if (!false)
4889 {
4890 }
4891 Tile tile12;
4893 if (!false)
4894 {
4895 }
4896 Tile tile13;
4897 bool flag7 = tile13.active();
4898 if (!false)
4899 {
4900 }
4901 Tile tile14;
4903 if (!false)
4904 {
4905 }
4906 Tile tile15;
4907 TileColorCache tileColorCache = tile15.BlockColorAndCoating();
4908 if (i == 0)
4909 {
4910 if (tileColorCache == null)
4911 {
4912 }
4914 int num2 = 1;
4915 int num3 = 13;
4916 int num4 = genRand.Next(num2, num3);
4917 }
4918 if (tileColorCache == null)
4919 {
4920 }
4922 int num5 = 5;
4923 int num6 = 17;
4925 Tile tile16;
4926 ushort type2 = tile16.type;
4927 num8 = 4;
4928 long num9 = 0L;
4929 Tile tile17;
4930 ushort type3 = tile17.type;
4931 if (num8 == 0)
4932 {
4933 }
4934 int num10 = 20;
4935 bool flag9 = WorldGen.EmptyTileCheck(0, (int)num9, num6, 0, num10);
4936 if (num8 == 0)
4937 {
4938 }
4939 int num11 = 20;
4940 return WorldGen.EmptyTileCheck(0, (int)num9, num6, 0, num11);
4941 }
4942 if (num8 == 0)
4943 {
4944 }
4946 int num12 = 3;
4947 int num13 = genRand3.Next(num12);
4949 int num14 = 3;
4950 int num15 = genRand4.Next(num14);
4952 int num16 = 10;
4953 int num17 = genRand5.Next(num16);
4954 if (!false)
4955 {
4956 }
4958 int num18 = 10;
4959 int num19 = genRand6.Next(num18);
4960 if (num15 == 0)
4961 {
4962 if (num15 != 0)
4963 {
4964 if (num15 != 0 || num15 != 0 || num15 != 0)
4965 {
4966 goto IL_0360;
4967 }
4968 if (num15 == 0)
4969 {
4970 if (num15 != 0)
4971 {
4972 goto IL_02F1;
4973 }
4974 if (num15 != 0)
4975 {
4976 }
4977 }
4978 }
4979 if (!false)
4980 {
4981 }
4982 int num20 = 1;
4983 Tile tile18;
4984 tile18.active(num20 != 0);
4985 int num21 = 5;
4986 tile18.type = (ushort)num21;
4987 if (!false)
4988 {
4989 }
4991 int num22 = 3;
4992 int num23 = genRand7.Next(num22);
4994 int num24 = 3;
4995 int num25 = genRand8.Next(num24);
4996 if ((!false && num23 != 0) || num23 == 0)
4997 {
4998 }
4999 IL_02F1:
5000 if (!false)
5001 {
5002 }
5003 int num26 = 1;
5004 Tile tile19;
5005 tile19.active(num26 != 0);
5006 int num27 = 5;
5007 tile19.type = (ushort)num27;
5008 if (!false)
5009 {
5010 }
5012 int num28 = 3;
5013 int num29 = genRand9.Next(num28);
5015 int num30 = 3;
5016 int num31 = genRand10.Next(num30);
5017 if ((!false && num29 != 0) || num29 == 0)
5018 {
5019 }
5020 }
5021 IL_0360:
5022 if (!false)
5023 {
5024 }
5026 int num32 = 3;
5027 int num33 = genRand11.Next(num32);
5028 Tile tile20;
5029 bool flag10 = tile20.nactive();
5030 Tile tile21;
5031 bool flag11 = tile21.halfBrick();
5032 Tile tile22;
5033 byte b2 = tile22.slope();
5034 Tile tile23;
5035 bool flag12 = tile23.nactive();
5036 Tile tile24;
5037 bool flag13 = tile24.halfBrick();
5038 Tile tile25;
5039 byte b3 = tile25.slope();
5040 int num34 = 3;
5041 int num35 = 2;
5042 if (num33 != 0)
5043 {
5044 if (num35 == 0)
5045 {
5046 }
5047 int num36 = 1;
5048 Tile tile26;
5049 tile26.active(num36 != 0);
5050 int num37 = 5;
5051 tile26.type = (ushort)num37;
5052 if (num35 == 0)
5053 {
5054 }
5056 int num38 = 3;
5057 if (genRand12.Next(num38) == 0)
5058 {
5059 }
5060 }
5061 if (num35 == 0)
5062 {
5063 }
5064 int num39 = 1;
5065 Tile tile27;
5066 tile27.active(num39 != 0);
5067 int num40 = 5;
5068 tile27.type = (ushort)num40;
5069 if (num35 == 0)
5070 {
5071 }
5073 int num41 = 3;
5074 if (genRand13.Next(num41) == 0)
5075 {
5076 }
5077 if (num35 == 0)
5078 {
5079 }
5081 int num42 = 3;
5082 int num43 = genRand14.Next(num42);
5083 if (num7 != 0)
5084 {
5085 if (num35 == 0)
5086 {
5087 }
5088 if (num43 != 0)
5089 {
5090 goto IL_04F4;
5091 }
5092 long num44 = 0L;
5093 Tile tile28;
5094 tile28.frameX = (short)num44;
5095 }
5096 if (num35 == 0)
5097 {
5098 }
5099 if (num43 == 0)
5100 {
5101 int num45 = 88;
5102 Tile tile29;
5103 tile29.frameX = (short)num45;
5104 if (num35 == 0)
5105 {
5106 }
5107 if (num43 == 0)
5108 {
5109 int num46 = 66;
5110 Tile tile30;
5111 tile30.frameX = (short)num46;
5112 if (num35 == 0)
5113 {
5114 }
5115 Tile tile31;
5116 ushort type4 = tile31.type;
5117 if (num34 == 0)
5118 {
5119 }
5121 }
5122 }
5123 IL_04F4:
5124 if (!false)
5125 {
5126 }
5128 int num47 = 13;
5129 int num48 = genRand15.Next(num47);
5130 if (num34 == 0)
5131 {
5132 }
5133 if (num34 == 0)
5134 {
5135 }
5137 int num49 = 3;
5138 int num51;
5139 if (genRand16.Next(num49) == 0)
5140 {
5141 if (num34 == 0)
5142 {
5143 }
5145 int num50 = 3;
5146 if (genRand17.Next(num50) == 0)
5147 {
5148 num51 = 220;
5149 }
5150 }
5151 if (!false)
5152 {
5153 }
5154 long num52;
5155 WorldGen.RangeFrame(0, num51, (int)num52, 0);
5156 if (!false)
5157 {
5158 }
5159 bool netHost = Main.NetHost;
5160 if (!false)
5161 {
5162 }
5163 Tile tile32;
5164 ushort type5 = tile32.type;
5165 if (num34 == 0)
5166 {
5167 }
5169 }
5170
5171 // Token: 0x06002CE6 RID: 11494 RVA: 0x001C1124 File Offset: 0x001BF324
5172 public static bool DefaultTreeWallTest(int wallType)
5173 {
5174 if (!true)
5175 {
5176 return;
5177 }
5178 }
5179
5180 // Token: 0x06002CE7 RID: 11495 RVA: 0x001C1138 File Offset: 0x001BF338
5181 public static bool GemTreeWallTest(int wallType)
5182 {
5183 /*
5184An exception occurred when decompiling this method (06002CE7)
5185
5186ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GemTreeWallTest(System.Int32)
5187
5188 ---> System.Exception: Basic block has to end with unconditional control flow.
5189{
5190 IL_0003:
5191 stloc:bool(var_0_09, call:bool(WorldGen::DefaultTreeWallTest, ldc.i4:int32(0)))
5192}
5193
5194 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
5195 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
5196 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
5197 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
5198 --- End of inner exception stack trace ---
5199 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
5200 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
5201*/;
5202 }
5203
5204 // Token: 0x06002CE8 RID: 11496 RVA: 0x001C1154 File Offset: 0x001BF354
5205 public static bool GemTreeGroundTest(int tileType)
5206 {
5207 if (!true)
5208 {
5209 return;
5210 }
5211 }
5212
5213 // Token: 0x06002CE9 RID: 11497 RVA: 0x001C1168 File Offset: 0x001BF368
5214 public static bool VanityTreeGroundTest(int tileType)
5215 {
5216 if (!true)
5217 {
5218 return;
5219 }
5220 }
5221
5222 // Token: 0x06002CEA RID: 11498 RVA: 0x001C117C File Offset: 0x001BF37C
5223 public static bool AshTreeGroundTest(int tileType)
5224 {
5225 }
5226
5227 // Token: 0x06002CEB RID: 11499 RVA: 0x001C118C File Offset: 0x001BF38C
5228 public static bool TryGrowingTreeByType(int treeTileType, int checkedX, int checkedY)
5229 {
5230 int num = 1;
5231 if (num == 0)
5232 {
5233 }
5234 int value = num.m_value;
5235 if (num == 0)
5236 {
5237 }
5238 if (num == 0)
5239 {
5240 }
5241 if (num == 0)
5242 {
5243 }
5244 if (num == 0)
5245 {
5246 }
5247 if (num == 0)
5248 {
5249 }
5250 if (num == 0)
5251 {
5252 }
5254 }
5255
5256 // Token: 0x06002CEC RID: 11500 RVA: 0x001C1200 File Offset: 0x001BF400
5257 public static bool GrowTreeWithSettings(int checkedX, int checkedY, WorldGen.GrowTreeSettings settings)
5258 {
5259 int num = 1;
5260 if (num == 0)
5261 {
5262 }
5263 Tile tile;
5264 ushort type = tile.type;
5265 if (num == 0)
5266 {
5267 }
5268 Tile tile2;
5269 byte liquid = tile2.liquid;
5270 if (num == 0)
5271 {
5272 }
5273 Tile tile3;
5274 byte liquid2 = tile3.liquid;
5275 if (num == 0)
5276 {
5277 }
5278 Tile tile4;
5279 byte liquid3 = tile4.liquid;
5280 if (num == 0)
5281 {
5282 }
5283 Tile tile5;
5284 bool flag = tile5.nactive();
5285 if (num == 0)
5286 {
5287 }
5288 Tile tile6;
5289 ushort wall = tile6.wall;
5290 if (num == 0)
5291 {
5292 }
5293 Tile tile7;
5294 bool flag2 = tile7.active();
5295 if (num == 0)
5296 {
5297 }
5298 Tile tile8;
5299 ushort type2 = tile8.type;
5300 if (num == 0)
5301 {
5302 }
5303 Tile tile9;
5304 bool flag3 = tile9.active();
5305 if (num == 0)
5306 {
5307 }
5308 Tile tile10;
5309 ushort type3 = tile10.type;
5310 if (num == 0)
5311 {
5312 }
5313 long num2 = 0L;
5314 Tile tile11;
5315 TileColorCache tileColorCache = tile11.BlockColorAndCoating();
5316 int num4;
5317 if (num != 0)
5318 {
5320 long num3 = 0L;
5321 num4 = genRand.Next((int)num2, checkedX);
5322 int num5 = 20;
5323 bool flag4 = WorldGen.EmptyTileCheck(num4, (int)num2, checkedX, (int)num3, num5);
5324 if (num4 == 0)
5325 {
5326 }
5328 int num6 = 3;
5329 int num7 = genRand2.Next(num6);
5331 int num8 = 3;
5332 int num9 = genRand3.Next(num8);
5334 int num10 = 10;
5335 int num11 = genRand4.Next(num10);
5337 int num12 = 10;
5338 int num13 = genRand5.Next(num12);
5339 int num14 = 1;
5340 Tile tile12;
5341 tile12.active(num14 != 0);
5343 int num15 = 3;
5344 int num16 = genRand6.Next(num15);
5346 int num17 = 3;
5347 int num18 = genRand7.Next(num17);
5348 if (num16 == 0 || num16 != 0)
5349 {
5350 }
5351 int num19 = 1;
5352 Tile tile13;
5353 tile13.active(num19 != 0);
5355 int num20 = 3;
5356 int num21 = genRand8.Next(num20);
5358 int num22 = 3;
5359 int num23 = genRand9.Next(num22);
5360 if (num21 == 0 || num21 != 0)
5361 {
5362 }
5363 Tile tile14;
5364 bool flag5 = tile14.nactive();
5365 Tile tile15;
5366 bool flag6 = tile15.halfBrick();
5367 Tile tile16;
5368 byte b = tile16.slope();
5369 Tile tile17;
5370 ushort type4 = tile17.type;
5371 if (num4 == 0)
5372 {
5373 }
5375 }
5377 int num24 = 1;
5378 int num25 = 13;
5379 int num26 = genRand10.Next(num24, num25);
5380 if (num26 != 0)
5381 {
5382 int num27 = 1;
5383 Tile tile18;
5384 tile18.active(num27 != 0);
5386 int num28 = 3;
5387 if (genRand11.Next(num28) == 0)
5388 {
5389 }
5390 }
5392 int num29 = 3;
5393 int num30 = genRand12.Next(num29);
5394 if (num30 == 0)
5395 {
5396 int num31 = 88;
5397 Tile tile19;
5398 tile19.frameX = (short)num31;
5399 if (num26 != 0)
5400 {
5401 if (num30 != 0)
5402 {
5403 goto IL_03ED;
5404 }
5405 long num32 = 0L;
5406 Tile tile20;
5407 tile20.frameX = (short)num32;
5408 }
5409 long num33;
5410 if (num33 != 0L && num30 == 0)
5411 {
5412 int num34 = 66;
5413 Tile tile21;
5414 tile21.frameX = (short)num34;
5415 int num35 = 88;
5416 tile21.frameX = (short)num35;
5417 int num36 = 88;
5418 tile21.frameX = (short)num36;
5419 Tile tile22;
5420 ushort type5 = tile22.type;
5421 if (num4 == 0)
5422 {
5423 }
5425 }
5426 }
5427 IL_03ED:
5429 int num37 = 13;
5430 int num38 = genRand13.Next(num37);
5431 if (num4 == 0)
5432 {
5433 }
5434 long num39 = 0L;
5435 if (num38 != 0)
5436 {
5437 if (num4 == 0)
5438 {
5439 }
5441 int num40 = 3;
5442 if (genRand14.Next(num40) != 0)
5443 {
5444 goto IL_0462;
5445 }
5446 }
5447 if (num4 == 0)
5448 {
5449 }
5451 int num41 = 3;
5452 int num42;
5453 long num43;
5454 if (genRand15.Next(num41) == 0)
5455 {
5456 num42 = 220;
5457 num43 = 0L;
5458 }
5459 IL_0462:
5460 WorldGen.RangeFrame(0, num42, (int)num43, (int)num39);
5461 if (!false)
5462 {
5463 }
5464 bool netHost = Main.NetHost;
5465 if (!false)
5466 {
5467 goto IL_047E;
5468 }
5469 goto IL_047E;
5470 IL_047E:;
5471 }
5472
5473 // Token: 0x06002CED RID: 11501 RVA: 0x001C169C File Offset: 0x001BF89C
5474 public static void GrowUndergroundTree(int i, int y)
5475 {
5476 int num = 1;
5477 if (num == 0)
5478 {
5479 }
5480 Tile tile;
5481 ushort type = tile.type;
5482 if (num == 0)
5483 {
5484 }
5485 Tile tile2;
5486 bool flag = tile2.nactive();
5487 if (num == 0)
5488 {
5489 }
5490 Tile tile3;
5491 bool flag2 = tile3.halfBrick();
5492 if (num == 0)
5493 {
5494 }
5495 Tile tile4;
5496 byte b = tile4.slope();
5497 if (num == 0)
5498 {
5499 }
5500 Tile tile5;
5501 ushort type2 = tile5.type;
5502 if (num == 0)
5503 {
5504 }
5505 Tile tile6;
5506 bool flag3 = tile6.active();
5507 if (num == 0)
5508 {
5509 }
5510 Tile tile7;
5511 ushort type3 = tile7.type;
5512 if (num == 0)
5513 {
5514 }
5515 Tile tile8;
5516 bool flag4 = tile8.active();
5517 if (num == 0)
5518 {
5519 }
5520 Tile tile9;
5521 ushort type4 = tile9.type;
5522 if (num == 0)
5523 {
5524 }
5526 int num2 = 5;
5527 int num3 = 15;
5528 int num4 = genRand.Next(num2, num3);
5529 long num5 = 0L;
5530 long num6 = 0L;
5531 Tile tile10;
5532 ushort type5 = tile10.type;
5533 int num7 = 20;
5534 bool flag5 = WorldGen.EmptyTileCheck(43143168, (int)num6, y, (int)num5, num7);
5536 int num8 = 3;
5537 int num9 = genRand2.Next(num8);
5539 int num10 = 3;
5540 int num11 = genRand3.Next(num10);
5542 int num12 = 10;
5543 int num13 = genRand4.Next(num12);
5545 int num14 = 10;
5546 int num15 = genRand5.Next(num14);
5547 }
5548
5549 // Token: 0x06002CEE RID: 11502 RVA: 0x001C1C00 File Offset: 0x001BFE00
5550 public static bool GrowShroom(int i, int y)
5551 {
5552 /*
5553An exception occurred when decompiling this method (06002CEE)
5554
5555ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GrowShroom(System.Int32,System.Int32)
5556
5557 ---> System.Exception: Basic block has to end with unconditional control flow.
5558{
5559 IL_015F:
5560 stloc:UnifiedRandom(var_59_164, callgetter:UnifiedRandom(WorldGen::get_genRand))
5561 stloc:int32(var_60_167, ldc.i4:int32(3))
5562 stloc:int32(var_62_175, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_59_164), ldloc:int32(var_60_167)))
5563 stloc:int64(var_63_178, ldc.i4:int64(0))
5564 stloc:int32(var_65_17C, ldc.i4:int32(36))
5565 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_64), ldloc:int32[exp:int16](var_65_17C))
5566 stloc:int64(var_66_188, ldc.i4:int64(0))
5567 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_64), ldloc:int32[exp:int16](var_65_17C))
5568 call:void(WorldGen::RangeFrame, ldc.i4:int32(0), ldloc:int32(var_65_17C), ldloc:int64[exp:int32](var_66_188), ldloc:int64[exp:int32](var_63_178))
5569 stloc:bool(var_68_1A7, callgetter:bool(Main::get_NetHost))
5570}
5571
5572 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
5573 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
5574 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
5575 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
5576 --- End of inner exception stack trace ---
5577 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
5578 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
5579*/;
5580 }
5581
5582 // Token: 0x06002CEF RID: 11503 RVA: 0x001C1DB8 File Offset: 0x001BFFB8
5583 public static void AddTrees(bool undergroundOnly = false)
5584 {
5585 int num = 1;
5586 if (num == 0)
5587 {
5588 }
5589 double num2 = WorldGen.genRand.NextDouble();
5590 double num3 = WorldGen.genRand.NextDouble();
5591 if (num == 0)
5592 {
5593 }
5594 double num4 = WorldGen.genRand.NextDouble();
5595 }
5596
5597 // Token: 0x06002CF0 RID: 11504 RVA: 0x001C1EE0 File Offset: 0x001C00E0
5598 public static void ExplodeMine(int i, int j, bool fromWiring)
5599 {
5600 if (!true)
5601 {
5602 }
5603 Tile tile;
5604 ushort type = tile.type;
5605 if (!true)
5606 {
5607 }
5608 long num = 0L;
5609 long num2 = 0L;
5610 WorldGen.KillTile(i, j, num != 0L, num2 != 0L, true);
5611 if (!true)
5612 {
5613 }
5616 int myPlayer = Main.myPlayer;
5617 }
5618
5619 // Token: 0x06002CF1 RID: 11505 RVA: 0x001C1F2C File Offset: 0x001C012C
5620 public static bool EmptyTileCheck(int startX, int endX, int startY, int endY, int ignoreID = -1)
5621 {
5622 long num = 0L;
5623 Tile tile;
5624 bool flag = tile.active();
5625 Tile tile2;
5626 ushort type = tile2.type;
5627 Tile tile3;
5628 ushort type2 = tile3.type;
5629 if (num != 0L)
5630 {
5631 Tile tile4;
5632 ushort type3 = tile4.type;
5633 Tile tile5;
5634 ushort type4 = tile5.type;
5635 return;
5636 }
5637 }
5638
5639 // Token: 0x06002CF2 RID: 11506 RVA: 0x001C1F7C File Offset: 0x001C017C
5640 public static void StartHardmode()
5641 {
5642 if (!true)
5643 {
5644 }
5646 if (!true)
5647 {
5648 }
5649 }
5650
5651 // Token: 0x06002CF3 RID: 11507 RVA: 0x001C1F9C File Offset: 0x001C019C
5652 public static void TryProtectingSpawnedItems()
5653 {
5654 if (!true)
5655 {
5656 }
5657 }
5658
5659 // Token: 0x06002CF4 RID: 11508 RVA: 0x001C1FB4 File Offset: 0x001C01B4
5661 {
5662 int num = 1;
5663 if (num == 0 || num == 0)
5664 {
5665 return;
5666 }
5667 }
5668
5669 // Token: 0x06002CF5 RID: 11509 RVA: 0x001C1FCC File Offset: 0x001C01CC
5670 public static void UndoSpawnedItemProtection()
5671 {
5672 if (!true)
5673 {
5674 }
5675 }
5676
5677 // Token: 0x06002CF6 RID: 11510 RVA: 0x001C1FE4 File Offset: 0x001C01E4
5678 public static void smCallBack(object threadContext)
5679 {
5680 if (!true)
5681 {
5682 }
5684 }
5685
5686 // Token: 0x06002CF7 RID: 11511 RVA: 0x001C22E0 File Offset: 0x001C04E0
5687 private static void FinaliseHardModeOnMainThread(object data)
5688 {
5689 if (!true)
5690 {
5691 }
5693 bool netHost = Main.NetHost;
5695 bool netHost2 = Main.NetHost;
5698 }
5699
5700 // Token: 0x06002CF8 RID: 11512 RVA: 0x001C231C File Offset: 0x001C051C
5701 public static bool PlaceDoor(int i, int j, int type, int style = 0)
5702 {
5703 int num = 1;
5704 if (num == 0)
5705 {
5706 }
5707 Tile tile;
5708 bool flag = tile.nactive();
5709 if (num == 0)
5710 {
5711 }
5712 long num2 = 0L;
5713 Tile tile2;
5714 ushort type2 = tile2.type;
5715 if (num != 0)
5716 {
5717 if (num == 0)
5718 {
5719 }
5720 long num3 = 0L;
5721 bool flag2 = WorldGen.SolidTile(0, (int)num2, num3 != 0L);
5722 if (num == 0)
5723 {
5724 }
5725 int num4 = 1;
5726 Tile tile3;
5727 tile3.active(num4 != 0);
5728 int num5 = 10;
5729 tile3.type = (ushort)num5;
5730 int num6 = 36409;
5731 tile3.frameY = (short)type;
5732 if (num6 == 0)
5733 {
5734 }
5736 int num7 = 3;
5737 int num8 = genRand.Next(num7);
5738 int num9 = 1;
5739 Tile tile4;
5740 tile4.active(num9 != 0);
5741 int num10 = 10;
5742 tile4.type = (ushort)num10;
5743 tile4.frameY = (short)num10;
5745 int num11 = 3;
5746 int num12 = genRand2.Next(num11);
5747 int num13 = 1;
5748 Tile tile5;
5749 tile5.active(num13 != 0);
5750 int num14 = 10;
5751 tile5.type = (ushort)num14;
5752 tile5.frameY = (short)num14;
5754 int num15 = 3;
5755 int num16 = genRand3.Next(num15);
5756 return;
5757 }
5758 }
5759
5760 // Token: 0x06002CF9 RID: 11513 RVA: 0x001C241C File Offset: 0x001C061C
5761 public static bool CloseDoor(int i, int j, bool forced = false)
5762 {
5763 /*
5764An exception occurred when decompiling this method (06002CF9)
5765
5766ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::CloseDoor(System.Int32,System.Int32,System.Boolean)
5767
5768 ---> System.Exception: Basic block has to end with unconditional control flow.
5769{
5770 IL_007B:
5771 stloc:int64(var_19_7C, ldc.i4:int64(0))
5772 stloc:int64(var_20_7F, ldc.i4:int64(0))
5773 call:void(WorldGen::TileFrame, ldloc:int16[exp:int32](var_2_0B), ldloc:int32(var_10_2E), ldloc:int64[exp:bool](var_19_7C), ldloc:int64[exp:bool](var_20_7F))
5774}
5775
5776 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
5777 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
5778 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
5779 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
5780 --- End of inner exception stack trace ---
5781 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
5782 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
5783*/;
5784 }
5785
5786 // Token: 0x06002CFA RID: 11514 RVA: 0x001C24BC File Offset: 0x001C06BC
5787 public static bool AddLifeCrystal(int i, int j)
5788 {
5789 /*
5790An exception occurred when decompiling this method (06002CFA)
5791
5792ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::AddLifeCrystal(System.Int32,System.Int32)
5793
5794 ---> System.Exception: Basic block has to end with unconditional control flow.
5795{
5796 IL_0064:
5797 stloc:int32(var_32_65, ldc.i4:int32(1))
5798 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_31), ldloc:int32[exp:bool](var_32_65))
5799 stloc:int32(var_33_72, ldc.i4:int32(12))
5800 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_31), ldloc:int32[exp:uint16](var_33_72))
5801 stloc:int64(var_34_7E, ldc.i4:int64(0))
5802 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_31), ldloc:int64[exp:int16](var_34_7E))
5803 stloc:int64(var_35_8A, ldc.i4:int64(0))
5804 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_31), ldloc:int64[exp:int16](var_35_8A))
5805 stloc:int32(var_37_96, ldc.i4:int32(1))
5806 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_36), ldloc:int32[exp:bool](var_37_96))
5807 stloc:int32(var_38_A3, ldc.i4:int32(12))
5808 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_36), ldloc:int32[exp:uint16](var_38_A3))
5809 stloc:int32(var_39_B0, ldc.i4:int32(18))
5810 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_36), ldloc:int32[exp:int16](var_39_B0))
5811 stloc:int64(var_40_BC, ldc.i4:int64(0))
5812 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_36), ldloc:int64[exp:int16](var_40_BC))
5813 stloc:int32(var_42_C8, ldc.i4:int32(1))
5814 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_41), ldloc:int32[exp:bool](var_42_C8))
5815 stloc:int32(var_43_D5, ldc.i4:int32(12))
5816 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_41), ldloc:int32[exp:uint16](var_43_D5))
5817 stloc:int64(var_44_E1, ldc.i4:int64(0))
5818 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_41), ldloc:int64[exp:int16](var_44_E1))
5819 stloc:int32(var_45_EE, ldc.i4:int32(18))
5820 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_41), ldloc:int32[exp:int16](var_45_EE))
5821 stloc:int32(var_47_FA, ldc.i4:int32(1))
5822 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_46), ldloc:int32[exp:bool](var_47_FA))
5823 stloc:int32(var_48_107, ldc.i4:int32(12))
5824 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_46), ldloc:int32[exp:uint16](var_48_107))
5825 stloc:int32(var_49_114, ldc.i4:int32(18))
5826 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_46), ldloc:int32[exp:int16](var_49_114))
5827 stloc:int32(var_50_121, ldc.i4:int32(18))
5828 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_46), ldloc:int32[exp:int16](var_50_121))
5829}
5830
5831 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
5832 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
5833 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
5834 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
5835 --- End of inner exception stack trace ---
5836 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
5837 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
5838*/;
5839 }
5840
5841 // Token: 0x06002CFB RID: 11515 RVA: 0x001C25F8 File Offset: 0x001C07F8
5842 public static void AddShadowOrb(int x, int y)
5843 {
5844 if (!true)
5845 {
5846 }
5847 int num = 1;
5848 Tile tile;
5849 tile.active(num != 0);
5850 int num2 = 31;
5851 tile.type = (ushort)num2;
5852 long num3 = 0L;
5853 tile.frameY = (short)num3;
5854 int num4 = 1;
5855 Tile tile2;
5856 tile2.active(num4 != 0);
5857 int num5 = 31;
5858 tile2.type = (ushort)num5;
5859 tile2.frameX = (short)num5;
5860 long num6 = 0L;
5861 tile2.frameY = (short)num6;
5862 int num7 = 1;
5863 Tile tile3;
5864 tile3.active(num7 != 0);
5865 int num8 = 31;
5866 tile3.type = (ushort)num8;
5867 int num9 = 18;
5868 tile3.frameY = (short)num9;
5869 int num10 = 1;
5870 Tile tile4;
5871 tile4.active(num10 != 0);
5872 int num11 = 31;
5873 tile4.type = (ushort)num11;
5874 tile4.frameX = (short)num11;
5875 int num12 = 18;
5876 tile4.frameY = (short)num12;
5877 }
5878
5879 // Token: 0x06002CFC RID: 11516 RVA: 0x001C26C4 File Offset: 0x001C08C4
5880 public static void AddHellHouses()
5881 {
5882 int num = 1;
5883 if (num == 0)
5884 {
5885 }
5886 long num2 = 32752L;
5887 if (num == 0)
5888 {
5889 }
5890 if (num == 0)
5891 {
5892 }
5893 if (num2 != 0L)
5894 {
5895 return;
5896 }
5897 if (num2 == 0L)
5898 {
5899 }
5900 if (num == 0 || num == 0)
5901 {
5902 }
5903 if (num == 0)
5904 {
5905 }
5906 if (num2 != 0L || num2 == 0L)
5907 {
5908 }
5909 Tile tile;
5910 bool flag = tile.active();
5911 Tile tile2;
5912 byte liquid = tile2.liquid;
5913 }
5914
5915 // Token: 0x06002CFD RID: 11517 RVA: 0x001C2F04 File Offset: 0x001C1104
5916 public static void HellFort(int i, int j, ushort tileType = 75, byte wallType = 14)
5917 {
5918 int num = WorldGen.genRand.Next(43143168, (int)tileType);
5919 int num2 = WorldGen.genRand.Next(43143168, (int)tileType);
5920 int num3 = WorldGen.genRand.Next(43143168, (int)tileType);
5921 int num4 = WorldGen.genRand.Next(43143168, (int)tileType);
5922 int num5 = WorldGen.genRand.Next(43143168, (int)tileType);
5923 int num6 = WorldGen.genRand.Next(43143168, (int)tileType);
5925 int num7 = 6;
5926 int num8 = 12;
5927 int num9 = genRand.Next(num7, num8);
5928 wallType.m_value = (byte)j;
5930 int num10 = 6;
5931 int num11 = 12;
5932 int num12 = genRand2.Next(num10, num11);
5933 i.m_value = j;
5935 int num13 = 6;
5936 int num14 = 12;
5937 int num15 = genRand3.Next(num13, num14);
5939 int num16 = 3;
5940 if (genRand4.Next(num16) != 0)
5941 {
5942 }
5944 int num17 = 10;
5945 int num18 = genRand5.Next(num17);
5947 int num19 = 2;
5948 if (genRand6.Next(num19) != 0)
5949 {
5950 }
5951 }
5952
5953 // Token: 0x06002CFE RID: 11518 RVA: 0x001C34D4 File Offset: 0x001C16D4
5954 public static void HellHouse(int i, int j, byte type = 76, byte wall = 13)
5955 {
5956 int num = 1;
5957 if (num == 0)
5958 {
5959 }
5961 int num2 = 8;
5962 int num3 = 20;
5963 int num4 = genRand.Next(num2, num3);
5965 int num5 = 1;
5966 int num6 = 3;
5967 int num7 = genRand2.Next(num5, num6);
5969 int num8 = 4;
5970 int num9 = 13;
5971 int num10 = genRand3.Next(num8, num9);
5972 if (num == 0)
5973 {
5974 }
5976 int num11 = 5;
5977 int num12 = 9;
5978 int num13 = genRand4.Next(num11, num12);
5979 WorldGen.HellRoom(i, j, num4, num13, type, wall);
5980 if (num == 0)
5981 {
5982 }
5984 int num14 = 5;
5985 int num15 = 9;
5986 int num16 = genRand5.Next(num14, num15);
5987 WorldGen.HellRoom(i, j, num4, num16, type, wall);
5988 if (num == 0)
5989 {
5990 }
5991 Tile tile;
5992 bool flag = tile.active();
5993 Tile tile2;
5994 ushort type2 = tile2.type;
5995 Tile tile3;
5996 ushort type3 = tile3.type;
5997 Tile tile4;
5998 ushort wall2 = tile4.wall;
5999 Tile tile5;
6000 ushort wall3 = tile5.wall;
6001 }
6002
6003 // Token: 0x06002CFF RID: 11519 RVA: 0x001C36F8 File Offset: 0x001C18F8
6004 public static void HellRoom(int i, int j, int width, int height, byte type = 76, byte wall = 13)
6005 {
6006 int num = 1;
6007 if (num == 0)
6008 {
6009 }
6010 if (num == 0)
6011 {
6012 }
6013 int num2 = 1;
6014 Tile tile;
6015 tile.active(num2 != 0);
6016 tile.type = (ushort)type;
6017 long num3 = 0L;
6018 tile.liquid = (byte)num3;
6019 long num4 = 0L;
6020 tile.lava(num4 != 0L);
6021 }
6022
6023 // Token: 0x06002D00 RID: 11520 RVA: 0x001C3774 File Offset: 0x001C1974
6024 public static void templeCleaner(int x, int y)
6025 {
6026 int num = 1;
6027 if (num == 0)
6028 {
6029 }
6030 Tile tile;
6031 bool flag = tile.active();
6032 if (num == 0)
6033 {
6034 }
6035 Tile tile2;
6036 ushort type = tile2.type;
6037 }
6038
6039 // Token: 0x06002D01 RID: 11521 RVA: 0x001C3868 File Offset: 0x001C1A68
6041 {
6042 /*
6043An exception occurred when decompiling this method (06002D01)
6044
6045ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Utilities.Vector2D Terraria.WorldGen::templePather(ReLogic.Utilities.Vector2D,System.Int32,System.Int32)
6046
6047 ---> System.Exception: Basic block has to end with unconditional control flow.
6048{
6049 IL_0038:
6050 stloc:int64(var_10_39, ldc.i4:int64(0))
6051 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_9), ldloc:int64[exp:bool](var_10_39))
6052 stloc:int32(var_11_46, ldc.i4:int32(87))
6053 callsetter:uint16(Tile::set_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_9), ldloc:int32[exp:uint16](var_11_46))
6054}
6055
6056 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6057 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6058 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6059 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6060 --- End of inner exception stack trace ---
6061 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6062 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6063*/;
6064 }
6065
6066 // Token: 0x06002D02 RID: 11522 RVA: 0x001C38C8 File Offset: 0x001C1AC8
6067 public static void outerTempled(int x, int y)
6068 {
6069 if (!true)
6070 {
6071 }
6072 Tile tile;
6073 bool flag = tile.active();
6074 Tile tile2;
6075 ushort type = tile2.type;
6076 Tile tile3;
6077 ushort wall = tile3.wall;
6078 Tile tile4;
6079 bool flag2 = tile4.active();
6080 Tile tile5;
6081 ushort wall2 = tile5.wall;
6082 }
6083
6084 // Token: 0x06002D03 RID: 11523 RVA: 0x001C3944 File Offset: 0x001C1B44
6085 public static void makeTemple(int x, int y)
6086 {
6088 int num = 32768;
6089 if (num == 0)
6090 {
6091 }
6093 int num2 = 2;
6094 int num3 = genRand2.Next(num2);
6095 if (num == 0)
6096 {
6097 }
6099 int num4 = 1;
6100 int num5 = 3;
6101 int num6 = genRand3.Next(num4, num5);
6103 int num7 = 25;
6104 int num8 = 50;
6105 int num9 = genRand4.Next(num7, num8);
6107 int num10 = 20;
6108 int num11 = 35;
6109 int num12 = genRand5.Next(num10, num11);
6111 int num13 = 55;
6112 int num14 = 65;
6113 int num15 = genRand6.Next(num13, num14);
6115 int num16 = 45;
6116 int num17 = 50;
6117 if (genRand7.Next(num16, num17) == 0)
6118 {
6119 }
6121 int num18 = 5;
6122 int num19 = 10;
6123 int num20 = genRand8.Next(num18, num19);
6124 }
6125
6126 // Token: 0x06002D04 RID: 11524 RVA: 0x001C45AC File Offset: 0x001C27AC
6127 public static void templePart2()
6128 {
6129 if (!true)
6130 {
6131 }
6133 int num = WorldGen.genRand.Next(1073741824, 43143168);
6134 int num2 = WorldGen.genRand.Next(1073741824, 43143168);
6135 Tile tile;
6136 ushort wall = tile.wall;
6137 Tile tile2;
6138 bool flag = tile2.active();
6139 bool flag2 = WorldGen.mayanTrap(num, num2);
6140 }
6141
6142 // Token: 0x06002D05 RID: 11525 RVA: 0x001C48FC File Offset: 0x001C2AFC
6143 public static bool nearPicture(int x, int y)
6144 {
6145 /*
6146An exception occurred when decompiling this method (06002D05)
6147
6148ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::nearPicture(System.Int32,System.Int32)
6149
6150 ---> System.Exception: Basic block has to end with unconditional control flow.
6151{
6152 IL_0003:
6153 stloc:bool(var_1_09, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
6154}
6155
6156 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6157 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6158 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6159 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6160 --- End of inner exception stack trace ---
6161 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6162 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6163*/;
6164 }
6165
6166 // Token: 0x06002D06 RID: 11526 RVA: 0x001C4918 File Offset: 0x001C2B18
6167 public static bool nearPicture2(int x, int y)
6168 {
6169 /*
6170An exception occurred when decompiling this method (06002D06)
6171
6172ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::nearPicture2(System.Int32,System.Int32)
6173
6174 ---> System.Exception: Basic block has to end with unconditional control flow.
6175{
6176 IL_0083:
6177 stloc:uint16(var_25_8A, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_24)))
6178}
6179
6180 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6181 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6182 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6183 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6184 --- End of inner exception stack trace ---
6185 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6186 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6187*/;
6188 }
6189
6190 // Token: 0x06002D07 RID: 11527 RVA: 0x001C49B8 File Offset: 0x001C2BB8
6191 private static void ShimmerCleanUp()
6192 {
6193 int num = 1;
6194 if (num == 0)
6195 {
6196 }
6198 if (num == 0)
6199 {
6200 }
6201 Tile tile;
6202 ushort type = tile.type;
6203 }
6204
6205 // Token: 0x06002D08 RID: 11528 RVA: 0x001C4B54 File Offset: 0x001C2D54
6206 public static void ShimmerRemoveWater()
6207 {
6208 int num = 1;
6209 if (num == 0)
6210 {
6211 }
6212 if (num != 0)
6213 {
6214 if (num == 0)
6215 {
6216 }
6217 if (num == 0)
6218 {
6219 }
6220 long num2 = 0L;
6221 bool flag = WorldGen.InWorld(0, 43143168, (int)num2);
6222 if (num == 0)
6223 {
6224 }
6225 Tile tile;
6226 bool flag2 = tile.shimmer();
6227 }
6228 }
6229
6230 // Token: 0x06002D09 RID: 11529 RVA: 0x001C4B9C File Offset: 0x001C2D9C
6231 public static bool ShimmerMakeBiome(int X, int Y)
6232 {
6233 /*
6234An exception occurred when decompiling this method (06002D09)
6235
6236ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ShimmerMakeBiome(System.Int32,System.Int32)
6237
6238 ---> System.Exception: Basic block has to end with unconditional control flow.
6239{
6240 IL_054F:
6241 stloc:uint16(var_154_556, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_153)))
6242}
6243
6244 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6245 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6246 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6247 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6248 --- End of inner exception stack trace ---
6249 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6250 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6251*/;
6252 }
6253
6254 // Token: 0x06002D0A RID: 11530 RVA: 0x001C5104 File Offset: 0x001C3304
6255 private static void ShimmerMakeBiomeOpening(int direction, int X, int Y, int caveOpenningSize)
6256 {
6257 if (!true)
6258 {
6259 }
6260 long num = 0L;
6261 bool flag = WorldGen.SolidTile(caveOpenningSize, X, num != 0L);
6262 long num2 = 0L;
6263 bool flag2 = WorldGen.SolidTile(0, X, num2 != 0L);
6264 long num3 = 0L;
6265 bool flag3 = WorldGen.SolidTile(0, X, num3 != 0L);
6266 long num4 = 0L;
6267 Tile tile;
6268 tile.active(num4 != 0L);
6269 }
6270
6271 // Token: 0x06002D0B RID: 11531 RVA: 0x001C51B8 File Offset: 0x001C33B8
6272 private static void Shimminate()
6273 {
6274 int num = 1;
6275 if (num == 0)
6276 {
6277 }
6278 if (num == 0)
6279 {
6280 }
6281 int num2 = 1;
6282 Tile tile;
6283 tile.shimmer(num2 != 0);
6284 int num3 = 255;
6285 tile.liquid = (byte)num3;
6286 ushort type = tile.type;
6287 if (num == 0)
6288 {
6289 }
6290 long num4 = 0L;
6291 long num5 = 0L;
6292 long num6 = 0L;
6293 WorldGen.KillTile(0, 0, num4 != 0L, num5 != 0L, num6 != 0L);
6294 }
6295
6296 // Token: 0x06002D0C RID: 11532 RVA: 0x001C522C File Offset: 0x001C342C
6297 public static void Shimmerator(int x, int y, bool jungle = false, bool lavaOk = false)
6298 {
6299 int num = 1;
6300 if (num == 0)
6301 {
6302 }
6304 if (num == 0)
6305 {
6306 }
6308 }
6309
6310 // Token: 0x06002D0D RID: 11533 RVA: 0x001C5250 File Offset: 0x001C3450
6311 public static void ShimmeratorNext(int x, int y)
6312 {
6313 int num = 1;
6314 if (num == 0)
6315 {
6316 }
6318 if (num == 0)
6319 {
6320 }
6321 }
6322
6323 // Token: 0x06002D0E RID: 11534 RVA: 0x001C52CC File Offset: 0x001C34CC
6324 public static void MakeDungeon(int x, int y)
6325 {
6326 int num = 1;
6327 if (num == 0)
6328 {
6329 }
6330 if (num == 0)
6331 {
6332 }
6334 int num2 = 3;
6335 int num3 = genRand.Next(num2);
6337 int num4 = 3;
6338 int num5 = genRand2.Next(num4);
6339 }
6340
6341 // Token: 0x06002D0F RID: 11535 RVA: 0x001C63D8 File Offset: 0x001C45D8
6342 private static void MakeDungeon_Traps(int failCount, int failMax, int numAdd)
6343 {
6344 if (!true)
6345 {
6346 }
6347 int num = WorldGen.genRand.Next(failMax, numAdd);
6350 }
6351
6352 // Token: 0x06002D10 RID: 11536 RVA: 0x001C641C File Offset: 0x001C461C
6353 private static void MakeDungeon_Lights(ushort tileType, int failCount, int failMax, int numAdd, int[] roomWall)
6354 {
6356 int num = 7;
6357 int num2 = genRand.Next(num);
6359 int num3 = 7;
6360 int num4 = genRand2.Next(num3);
6362 int num5 = 7;
6363 int num6 = genRand3.Next(num5);
6364 }
6365
6366 // Token: 0x06002D11 RID: 11537 RVA: 0x001C67BC File Offset: 0x001C49BC
6367 private static double MakeDungeon_Banners(int[] roomWall, double count)
6368 {
6369 /*
6370An exception occurred when decompiling this method (06002D11)
6371
6372ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double Terraria.WorldGen::MakeDungeon_Banners(System.Int32[],System.Double)
6373
6374 ---> System.Exception: Basic block has to end with unconditional control flow.
6375{
6376 IL_0008:
6377 stloc:UnifiedRandom(var_1_0D, callgetter:UnifiedRandom(WorldGen::get_genRand))
6378 stloc:UnifiedRandom(var_3_13, callgetter:UnifiedRandom(WorldGen::get_genRand))
6379 stloc:uint16(var_6_1B, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_5)))
6380 stloc:bool(var_8_24, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_7)))
6381 stloc:int64(var_9_27, ldc.i4:int64(0))
6382 stloc:bool(var_10_33, call:bool(WorldGen::SolidTile, ldloc:int32(var_2), ldloc:int32(var_4), ldloc:int64[exp:bool](var_9_27)))
6383 stloc:uint16(var_12_3C, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11)))
6384 stloc:uint16(var_14_45, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_13)))
6385 stloc:bool(var_16_4E, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_15)))
6386 stloc:bool(var_18_57, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_17)))
6387 stloc:bool(var_20_60, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19)))
6388 stloc:bool(var_23_6C, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_21)))
6389 stloc:bool(var_26_78, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_24)))
6390 stloc:uint16(var_29_84, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_27)))
6391 stloc:uint16(var_32_90, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_30)))
6392 stloc:uint16(var_34_99, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_33)))
6393 stloc:uint16(var_36_A2, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_35)))
6394 stloc:uint16(var_39_AF, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_38)))
6395 stloc:UnifiedRandom(var_40_B6, callgetter:UnifiedRandom(WorldGen::get_genRand))
6396 stloc:int32(var_41_B9, ldc.i4:int32(2))
6397 stloc:int32(var_42_C4, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_40_B6), ldloc:int32(var_41_B9)))
6398}
6399
6400 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6401 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6402 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6403 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6404 --- End of inner exception stack trace ---
6405 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6406 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6407*/;
6408 }
6409
6410 // Token: 0x06002D12 RID: 11538 RVA: 0x001C6890 File Offset: 0x001C4A90
6411 private static double MakeDungeon_Pictures(int[] roomWall, double count)
6412 {
6413 /*
6414An exception occurred when decompiling this method (06002D12)
6415
6416ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double Terraria.WorldGen::MakeDungeon_Pictures(System.Int32[],System.Double)
6417
6418 ---> System.Exception: Basic block has to end with unconditional control flow.
6419{
6420 IL_00E4:
6421 stloc:UnifiedRandom(var_51_E9, callgetter:UnifiedRandom(WorldGen::get_genRand))
6422 stloc:int32(var_52_EC, ldc.i4:int32(3))
6423 stloc:int32(var_53_F7, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_51_E9), ldloc:int32(var_52_EC)))
6424 stloc:uint16(var_55_100, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_54)))
6425 stloc:UnifiedRandom(var_56_107, callgetter:UnifiedRandom(WorldGen::get_genRand))
6426 stloc:int32(var_57_10A, ldc.i4:int32(3))
6427 stloc:int32(var_58_115, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_56_107), ldloc:int32(var_57_10A)))
6428 stloc:bool(var_59_11E, call:bool(WorldGen::nearPicture2, ldloc:int32(var_1), ldloc:int32(var_3)))
6429 stloc:PaintingEntry(var_60_125, call:PaintingEntry(WorldGen::RandPictureTile))
6430 stloc:uint16(var_62_12E, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_61)))
6431 stloc:PaintingEntry(var_63_135, call:PaintingEntry(WorldGen::RandBonePicture))
6432 stloc:bool(var_64_13E, call:bool(WorldGen::nearPicture, ldloc:int32(var_1), ldloc:int32(var_3)))
6433 stloc:PaintingEntry(var_66_145, call:PaintingEntry(WorldGen::RandPictureTile))
6434 stloc:uint16(var_68_14E, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_67)))
6435 stloc:PaintingEntry(var_69_155, call:PaintingEntry(WorldGen::RandBonePicture))
6436 stloc:bool(var_71_15E, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_70)))
6437 stloc:bool(var_75_16A, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_74)))
6438 stloc:bool(var_77_173, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_76)))
6439 stloc:bool(var_79_17C, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_78)))
6440 stloc:bool(var_81_185, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_80)))
6441 stloc:bool(var_83_18E, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_82)))
6442 stloc:bool(var_85_197, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_84)))
6443 stloc:PaintingEntry(var_86_19E, call:PaintingEntry(WorldGen::RandPictureTile))
6444 stloc:uint16(var_88_1A7, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_87)))
6445 stloc:PaintingEntry(var_89_1AE, call:PaintingEntry(WorldGen::RandBonePicture))
6446 stloc:bool(var_90_1B7, call:bool(WorldGen::nearPicture, ldloc:int32(var_1), ldloc:int32(var_3)))
6447 stloc:bool(var_94_1C3, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_93)))
6448 stloc:bool(var_96_1CC, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_95)))
6449 stloc:bool(var_98_1D5, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_97)))
6450 stloc:bool(var_100_1DE, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_99)))
6451 stloc:bool(var_102_1E7, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_101)))
6452 stloc:bool(var_104_1F0, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_103)))
6453 stloc:PaintingEntry(var_105_1F7, call:PaintingEntry(WorldGen::RandPictureTile))
6454 stloc:uint16(var_107_200, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_106)))
6455 stloc:PaintingEntry(var_108_207, call:PaintingEntry(WorldGen::RandBonePicture))
6456 stloc:bool(var_109_210, call:bool(WorldGen::nearPicture, ldloc:int32(var_1), ldloc:int32(var_3)))
6457 stloc:PaintingEntry(var_111_217, call:PaintingEntry(WorldGen::RandPictureTile))
6458 stloc:uint16(var_113_220, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_112)))
6459 stloc:PaintingEntry(var_114_227, call:PaintingEntry(WorldGen::RandBonePicture))
6460 stloc:bool(var_116_230, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_115)))
6461 stloc:bool(var_120_23C, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_119)))
6462 stloc:bool(var_122_245, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_121)))
6463 stloc:bool(var_124_24E, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_123)))
6464 stloc:bool(var_126_257, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_125)))
6465 stloc:bool(var_128_260, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_127)))
6466 stloc:bool(var_130_269, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_129)))
6467 stloc:PaintingEntry(var_131_270, call:PaintingEntry(WorldGen::RandPictureTile))
6468 stloc:uint16(var_133_279, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_132)))
6469 stloc:PaintingEntry(var_134_280, call:PaintingEntry(WorldGen::RandBonePicture))
6470 stloc:bool(var_135_289, call:bool(WorldGen::nearPicture, ldloc:int32(var_1), ldloc:int32(var_3)))
6471 stloc:bool(var_139_295, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_138)))
6472 stloc:bool(var_141_29E, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_140)))
6473 stloc:bool(var_143_2A7, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_142)))
6474 stloc:bool(var_145_2B0, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_144)))
6475 stloc:bool(var_147_2B9, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_146)))
6476 stloc:bool(var_149_2C2, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_148)))
6477 stloc:PaintingEntry(var_150_2C9, call:PaintingEntry(WorldGen::RandPictureTile))
6478 stloc:uint16(var_152_2D2, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_151)))
6479 stloc:PaintingEntry(var_153_2D9, call:PaintingEntry(WorldGen::RandBonePicture))
6480 stloc:bool(var_154_2E2, call:bool(WorldGen::nearPicture, ldloc:int32(var_1), ldloc:int32(var_3)))
6481}
6482
6483 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6484 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6485 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6486 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6487 --- End of inner exception stack trace ---
6488 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6489 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6490*/;
6491 }
6492
6493 // Token: 0x06002D13 RID: 11539 RVA: 0x001C6B80 File Offset: 0x001C4D80
6494 private static double MakeDungeon_GroundFurniture(int wallType)
6495 {
6496 int num14;
6497 int num23;
6498 int num25;
6499 long num27;
6500 for (;;)
6501 {
6502 if (!true)
6503 {
6504 }
6505 long num = 32752L;
6506 long num2 = -2147483647L;
6507 if (num == 0L)
6508 {
6509 }
6511 if (num2 == 0L)
6512 {
6513 }
6515 if (num2 == 0L)
6516 {
6517 }
6518 Tile tile;
6519 ushort wall = tile.wall;
6520 long num3 = 0L;
6521 Tile tile2;
6522 bool flag = tile2.active();
6523 int num5;
6524 int num4 = WorldGen.genRand.Next((int)num3, num5);
6526 Tile tile3;
6527 ushort wall2 = tile3.wall;
6528 long num6 = 0L;
6529 Tile tile4;
6530 bool flag2 = tile4.active();
6531 long num7 = 0L;
6532 bool flag3 = WorldGen.SolidTile(num4, (int)num6, num7 != 0L);
6534 long num8 = 0L;
6535 Tile tile5;
6536 bool flag4 = tile5.active();
6537 long num9 = 0L;
6538 bool flag5 = WorldGen.SolidTile(num4, (int)num8, num9 != 0L);
6539 long num10 = 0L;
6540 Tile tile6;
6541 bool flag6 = tile6.active();
6542 long num11 = 0L;
6543 bool flag7 = WorldGen.SolidTile(num4, (int)num10, num11 != 0L);
6544 Tile tile7;
6545 bool flag8 = tile7.active();
6546 long num12 = 0L;
6547 Tile tile8;
6548 ushort wall3 = tile8.wall;
6549 long num13 = 0L;
6550 bool flag9 = WorldGen.SolidTile(num4, (int)num12, num13 != 0L);
6551 Tile tile9;
6552 ushort type = tile9.type;
6553 num14 = 5;
6554 int num15 = 30;
6555 if (num15 == 0)
6556 {
6557 }
6558 Tile tile10;
6559 ushort wall4 = tile10.wall;
6560 if (num15 == 0)
6561 {
6562 }
6563 Tile tile11;
6564 ushort wall5 = tile11.wall;
6565 int num16 = 15;
6566 if (num16 == 0)
6567 {
6568 }
6570 int num17 = 13;
6571 int num18 = genRand4.Next(num17);
6572 if (num16 == 0)
6573 {
6574 }
6576 int num19 = 4;
6577 int num20 = genRand5.Next(num19);
6578 if (num20 != 0)
6579 {
6580 if (num16 == 0)
6581 {
6582 }
6584 int num21 = 13;
6585 int num22 = genRand6.Next(num21);
6586 }
6587 num23 = 2;
6588 int num24 = 1;
6589 if (num24 == 0)
6590 {
6591 }
6592 Tile tile12;
6593 bool flag10 = tile12.active();
6594 num25 = 10;
6595 if (num24 == 0)
6596 {
6597 }
6598 if (num24 == 0)
6599 {
6600 }
6601 Tile tile13;
6602 bool flag11 = tile13.active();
6603 if (num24 == 0)
6604 {
6605 }
6606 Tile tile14;
6607 bool flag12 = tile14.active();
6608 if (num24 == 0)
6609 {
6610 }
6611 if (num24 == 0)
6612 {
6613 }
6614 Tile tile15;
6615 bool flag13 = tile15.active();
6616 if (num24 == 0)
6617 {
6618 }
6619 Tile tile16;
6620 short frameX = tile16.frameX;
6621 Tile tile17;
6622 short frameX2 = tile17.frameX;
6623 Tile tile18;
6624 bool flag14 = tile18.active();
6626 int num26 = 2;
6627 if (genRand7.Next(num26) == 0)
6628 {
6629 break;
6630 }
6631 Tile tile19;
6632 ushort type2 = tile19.type;
6633 num27 = 0L;
6634 Tile tile20;
6635 ushort type3 = tile20.type;
6636 Tile tile21;
6637 bool flag15 = tile21.active();
6639 int num28 = 2;
6640 int num29 = genRand8.Next(num28);
6641 if (num24 == 0)
6642 {
6643 }
6644 if (num29 != 0)
6645 {
6646 goto Block_2;
6647 }
6648 Tile tile22;
6649 bool flag16 = tile22.active();
6650 if (42190112.0 == null)
6651 {
6652 }
6653 if (42190112.0 == null)
6654 {
6655 }
6656 Tile tile23;
6657 bool flag17 = tile23.active();
6658 if (42190112.0 == null)
6659 {
6660 }
6661 Tile tile24;
6662 short frameX3 = tile24.frameX;
6663 Tile tile25;
6664 short frameX4 = tile25.frameX;
6666 int num30 = 2;
6667 if (genRand9.Next(num30) == 0)
6668 {
6669 goto Block_3;
6670 }
6671 }
6672 Tile tile26;
6673 bool flag18 = tile26.active();
6675 int num31 = 5;
6676 int num32 = genRand10.Next(num31);
6677 Tile tile27;
6678 ushort type4 = tile27.type;
6679 Tile tile28;
6680 ushort type5 = tile28.type;
6681 int num33 = 49;
6682 int num34 = 1;
6683 long num35 = 0L;
6684 long num36 = 0L;
6685 bool flag19 = WorldGen.PlaceTile(num14, num25, num33, num34 != 0, num35 != 0L, num23, (int)num36);
6686 return 42190112.0;
6687 Block_2:
6688 Tile tile29;
6689 bool flag20 = tile29.active();
6690 return 42190112.0;
6691 Block_3:
6692 Tile tile30;
6693 bool flag21 = tile30.active();
6695 int num37 = 5;
6696 int num38 = genRand11.Next(num37);
6697 Tile tile31;
6698 ushort type6 = tile31.type;
6699 int num39 = 33;
6700 int num40 = 1;
6701 long num41 = 0L;
6702 int num42;
6703 int num43;
6704 bool flag22 = WorldGen.PlaceTile(num42, num43, num39, num40 != 0, num41 != 0L, num23, (int)num27);
6705 Tile tile32;
6706 ushort type7 = tile32.type;
6707 int num44 = 49;
6708 int num45 = 1;
6709 long num46 = 0L;
6710 long num47 = 0L;
6711 bool flag23 = WorldGen.PlaceTile(num42, num43, num44, num45 != 0, num46 != 0L, num23, (int)num47);
6712 return 42190112.0;
6713 }
6714
6715 // Token: 0x06002D14 RID: 11540 RVA: 0x001C7070 File Offset: 0x001C5270
6717 {
6718 if (!true)
6719 {
6720 }
6721 if (WorldGen.genRand.Next(2) != 0)
6722 {
6723 return 241;
6724 }
6725 if (!true)
6726 {
6727 }
6728 if (WorldGen.genRand.Next(2) != 0)
6729 {
6730 return 240;
6731 }
6732 return 240;
6733 }
6734
6735 // Token: 0x06002D15 RID: 11541 RVA: 0x001C70C8 File Offset: 0x001C52C8
6737 {
6738 /*
6739An exception occurred when decompiling this method (06002D15)
6740
6741ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Generation.PaintingEntry Terraria.WorldGen::RandHellPicture()
6742
6743 ---> System.Exception: Basic block has to end with unconditional control flow.
6744{
6745 IL_006C:
6746 stloc:UnifiedRandom(var_13_71, callgetter:UnifiedRandom(WorldGen::get_genRand))
6747 stloc:int32(var_14_74, ldc.i4:int32(3))
6748 stloc:int32(var_15_7F, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_13_71), ldloc:int32(var_14_74)))
6749}
6750
6751 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6752 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6753 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6754 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6755 --- End of inner exception stack trace ---
6756 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6757 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6758*/;
6759 }
6760
6761 // Token: 0x06002D16 RID: 11542 RVA: 0x001C715C File Offset: 0x001C535C
6763 {
6764 /*
6765An exception occurred when decompiling this method (06002D16)
6766
6767ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Generation.PaintingEntry Terraria.WorldGen::RandHousePictureDesert()
6768
6769 ---> System.Exception: Basic block has to end with unconditional control flow.
6770{
6771 IL_0034:
6772 stloc:UnifiedRandom(var_7_39, callgetter:UnifiedRandom(WorldGen::get_genRand))
6773 stloc:int32(var_8_3C, ldc.i4:int32(6))
6774 stloc:int32(var_9_47, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_7_39), ldloc:int32(var_8_3C)))
6775}
6776
6777 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6778 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6779 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6780 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6781 --- End of inner exception stack trace ---
6782 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6783 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6784*/;
6785 }
6786
6787 // Token: 0x06002D17 RID: 11543 RVA: 0x001C71BC File Offset: 0x001C53BC
6789 {
6790 int num = 1;
6791 if (num == 0)
6792 {
6793 }
6795 int num2 = 4;
6796 int num3 = genRand.Next(num2);
6797 if (num == 0)
6798 {
6799 }
6801 int num4 = 2;
6802 if (genRand2.Next(num4) != 0)
6803 {
6804 if (num == 0)
6805 {
6806 }
6808 int num5 = 3;
6809 int num6 = genRand3.Next(num5);
6810 }
6811 if (num == 0)
6812 {
6813 }
6815 int num7 = 9;
6816 if (genRand4.Next(num7) == 0)
6817 {
6818 if (num == 0)
6819 {
6820 }
6822 int num8 = 3;
6823 if (genRand5.Next(num8) == 0)
6824 {
6825 return;
6826 }
6827 if (num == 0)
6828 {
6829 }
6831 int num9 = 9;
6832 int num10 = genRand6.Next(num9);
6833 }
6834 if (num == 0)
6835 {
6836 }
6838 int num11 = 15;
6839 int num12 = genRand7.Next(num11);
6840 if (246 == 0)
6841 {
6842 }
6844 int num13 = 4;
6845 int num14 = genRand8.Next(num13);
6846 }
6847
6848 // Token: 0x06002D18 RID: 11544 RVA: 0x001C72B0 File Offset: 0x001C54B0
6850 {
6851 /*
6852An exception occurred when decompiling this method (06002D18)
6853
6854ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Generation.PaintingEntry Terraria.WorldGen::RandPictureTile()
6855
6856 ---> System.Exception: Basic block has to end with unconditional control flow.
6857{
6858 IL_004A:
6859 stloc:UnifiedRandom(var_9_4F, callgetter:UnifiedRandom(WorldGen::get_genRand))
6860 stloc:int32(var_10_52, ldc.i4:int32(7))
6861 stloc:int32(var_11_5D, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_9_4F), ldloc:int32(var_10_52)))
6862}
6863
6864 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
6865 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
6866 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
6867 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
6868 --- End of inner exception stack trace ---
6869 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
6870 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
6871*/;
6872 }
6873
6874 // Token: 0x06002D19 RID: 11545 RVA: 0x001C7324 File Offset: 0x001C5524
6875 public static void DungeonStairs(int i, int j, ushort tileType, int wallType)
6876 {
6878 int num = 5;
6879 int num2 = 9;
6880 int num3 = genRand.Next(num, num2);
6882 int num4 = 10;
6883 int num5 = 30;
6884 int num6 = genRand2.Next(num4, num5);
6885 int num7 = 399;
6886 if (num7 == 0)
6887 {
6888 }
6890 int num8 = 3;
6891 int num9 = genRand3.Next(num8);
6892 if (num7 == 0)
6893 {
6894 }
6896 if (num9 != 0)
6897 {
6898 int num10 = 200;
6899 long num11 = 0L;
6900 int num12 = genRand4.Next((int)num11, num10);
6901 return;
6902 }
6903 if (num7 == 0)
6904 {
6905 }
6907 int num13;
6908 if (num13 != 0)
6909 {
6910 int num14 = 6;
6911 int num15 = genRand5.Next(num14);
6913 int num16 = 6;
6914 int num17 = genRand6.Next(num16);
6916 int num18 = 6;
6917 int num19 = genRand7.Next(num18);
6919 int num20 = 6;
6920 if (genRand8.Next(num20) == 0)
6921 {
6922 }
6923 return;
6924 }
6925 }
6926
6927 // Token: 0x06002D1A RID: 11546 RVA: 0x001C752C File Offset: 0x001C572C
6928 public static bool PlaceSandTrap(int i, int j)
6929 {
6930 int num = 1;
6931 if (num == 0)
6932 {
6933 }
6934 Tile tile;
6935 bool flag = tile.active();
6936 if (num == 0)
6937 {
6938 }
6940 if (num == 0)
6941 {
6942 }
6943 Tile tile2;
6944 ushort type = tile2.type;
6945 if (num != 0)
6946 {
6947 if (num == 0)
6948 {
6949 }
6950 Tile tile3;
6951 bool flag2 = tile3.halfBrick();
6952 if (num == 0)
6953 {
6954 }
6955 Tile tile4;
6956 bool flag3 = tile4.topSlope();
6957 }
6958 if (num == 0)
6959 {
6960 }
6961 Tile tile5;
6962 ushort type2 = tile5.type;
6963 if (num == 0)
6964 {
6965 }
6966 Tile tile6;
6967 ushort type3 = tile6.type;
6968 if (num == 0)
6969 {
6970 }
6971 Tile tile7;
6972 ushort type4 = tile7.type;
6973 if (num == 0)
6974 {
6975 }
6976 Tile tile8;
6977 ushort wall = tile8.wall;
6978 if (num == 0)
6979 {
6980 }
6981 Tile tile9;
6982 ushort wall2 = tile9.wall;
6983 if (num == 0)
6984 {
6985 }
6987 int num2 = 6;
6988 int num3 = 12;
6989 int num4 = genRand.Next(num2, num3);
6991 int num5 = 6;
6992 int num6 = 14;
6993 int num7 = genRand2.Next(num5, num6);
6994 if (num == 0)
6995 {
6996 }
6997 Tile tile10;
6998 ushort type5 = tile10.type;
6999 if (num == 0)
7000 {
7001 }
7002 Tile tile11;
7003 return tile11.active();
7004 }
7005
7006 // Token: 0x06002D1B RID: 11547 RVA: 0x001C78A0 File Offset: 0x001C5AA0
7007 public static bool DungeonPitTrap(int i, int j, ushort tileType, int wallType)
7008 {
7009 if (!true)
7010 {
7011 }
7013 int num = 8;
7014 int num2 = 19;
7015 int num3 = genRand.Next(num, num2);
7017 int num4 = 19;
7018 int num5 = 46;
7019 int num6 = genRand2.Next(num4, num5);
7021 int num7 = 6;
7022 int num8 = 10;
7023 int num9 = genRand3.Next(num7, num8);
7025 int num10 = 6;
7026 int num11 = 10;
7027 int num12 = genRand4.Next(num10, num11);
7028 Tile tile;
7029 ushort wall = tile.wall;
7030 Tile tile2;
7031 bool flag = tile2.active();
7032 Tile tile3;
7033 bool flag2 = tile3.active();
7034 bool flag3;
7035 return flag3;
7036 }
7037
7038 // Token: 0x06002D1C RID: 11548 RVA: 0x001C7A04 File Offset: 0x001C5C04
7039 public static void DungeonHalls(int i, int j, ushort tileType, int wallType, bool forceX = false)
7040 {
7041 if (!true)
7042 {
7043 }
7044 int num = 1;
7045 if (num == 0)
7046 {
7047 }
7048 if (num == 0)
7049 {
7050 }
7052 int num2 = 4;
7053 int num3 = 6;
7054 int num4 = genRand.Next(num2, num3);
7055 int num5;
7056 if (!true)
7057 {
7058 num5 = 1;
7059 }
7060 if (num5 == 0)
7061 {
7062 }
7064 int num6 = 35;
7065 int num7 = 80;
7066 int num8 = genRand2.Next(num6, num7);
7068 int num9 = 6;
7069 int num10 = genRand3.Next(num9);
7070 if (num5 == 0)
7071 {
7072 }
7073 if (!true)
7074 {
7075 }
7076 }
7077
7078 // Token: 0x06002D1D RID: 11549 RVA: 0x001C7F0C File Offset: 0x001C610C
7079 public static void DungeonRoom(int i, int j, ushort tileType, int wallType)
7080 {
7081 if (!true)
7082 {
7083 }
7085 int num = 15;
7086 int num2 = 30;
7087 int num3 = genRand.Next(num, num2);
7089 int num4 = 11;
7090 int num5 = genRand2.Next(num, num4);
7092 int num6 = 11;
7093 int num7 = genRand3.Next(num, num6);
7095 int num8 = 10;
7096 int num9 = 20;
7097 int num10 = genRand4.Next(num8, num9);
7098 if (33501184 == 0)
7099 {
7100 }
7101 if (33501184 != 0)
7102 {
7103 return;
7104 }
7105 if (33501184 == 0)
7106 {
7107 }
7108 if (33501184 == 0)
7109 {
7110 }
7111 if (33501184 == 0)
7112 {
7113 }
7114 if (33501184 == 0)
7115 {
7116 }
7117 long num11 = 0L;
7118 Tile tile;
7119 tile.liquid = (byte)num11;
7120 ushort wall = tile.wall;
7121 Tile tile2;
7122 tile2.wall = (ushort)wallType;
7123 if (33501184 != 0)
7124 {
7125 return;
7126 }
7127 if (33501184 == 0)
7128 {
7129 }
7130 long num12 = 0L;
7131 Tile tile3;
7132 tile3.active(num12 != 0L);
7133 tile3.wall = (ushort)wallType;
7134 }
7135
7136 // Token: 0x06002D1E RID: 11550 RVA: 0x001C802C File Offset: 0x001C622C
7137 public static void DungeonEnt(int i, int j, ushort tileType, int wallType)
7138 {
7139 long num = 0L;
7140 bool flag = WorldGen.InWorld(0, j, (int)num);
7141 if (!false)
7142 {
7143 }
7144 long num2 = 0L;
7145 Tile tile;
7146 tile.liquid = (byte)num2;
7147 long num3 = 0L;
7148 tile.lava(num3 != 0L);
7149 if (!false)
7150 {
7151 }
7152 long num4 = 32752L;
7153 if (num4 == 0L)
7154 {
7155 }
7156 if (num4 == 0L)
7157 {
7158 }
7159 if (num4 == 0L)
7160 {
7161 if (num4 == 0L)
7162 {
7163 }
7164 if (false)
7165 {
7166 }
7167 }
7168 if (!false)
7169 {
7170 }
7172 int num5 = 2;
7173 int num6 = 5;
7174 int num7 = genRand.Next(num5, num6);
7176 int num8 = 2;
7177 int num9 = 5;
7178 int num10 = genRand2.Next(num8, num9);
7180 int num11 = 2;
7181 int num12 = 5;
7182 int num13 = genRand3.Next(num11, num12);
7184 int num14 = 8;
7185 int num15 = 16;
7186 int num16 = genRand4.Next(num14, num15);
7187 if (num16 == 0)
7188 {
7189 }
7190 if (num4 != 0L)
7191 {
7192 return;
7193 }
7194 if (num16 == 0)
7195 {
7196 }
7197 if (num4 == 0L)
7198 {
7199 }
7200 long num17 = 0L;
7201 Tile tile2;
7202 tile2.liquid = (byte)num17;
7203 ushort wall = tile2.wall;
7205 int num18 = 4;
7206 int num19 = genRand5.Next(num18);
7208 int num20 = 3;
7209 int num21 = genRand6.Next(num20);
7210 long num22 = 0L;
7211 Tile tile3;
7212 tile3.liquid = (byte)num22;
7213 ushort wall2 = tile3.wall;
7215 int num23 = 4;
7216 int num24 = genRand7.Next(num23);
7218 int num25 = 3;
7219 int num26 = genRand8.Next(num25);
7220 long num27 = 0L;
7221 Tile tile4;
7222 tile4.liquid = (byte)num27;
7223 ushort wall3 = tile4.wall;
7225 int num28 = 2;
7226 int num29 = genRand9.Next(num28);
7228 int num30 = 4;
7229 int num31 = genRand10.Next(num30);
7230 long num32 = 0L;
7231 Tile tile5;
7232 tile5.liquid = (byte)num32;
7233 ushort wall4 = tile5.wall;
7234 if (!false)
7235 {
7236 }
7237 if (num4 == 0L)
7238 {
7239 }
7240 long num33 = 0L;
7241 Tile tile6;
7242 tile6.liquid = (byte)num33;
7243 ushort wall5 = tile6.wall;
7244 if (false)
7245 {
7246 if (num16 != 0)
7247 {
7248 }
7249 return;
7250 }
7251 while (num16 != 0)
7252 {
7253 }
7254 }
7255
7256 // Token: 0x06002D1F RID: 11551 RVA: 0x001C8788 File Offset: 0x001C6988
7257 public static bool AddBuriedChest(Point point, int contain = 0, bool notNearOtherChests = false, int Style = -1)
7258 {
7259 if (!true)
7260 {
7261 }
7262 bool flag;
7263 return flag;
7264 }
7265
7266 // Token: 0x06002D20 RID: 11552 RVA: 0x001C879C File Offset: 0x001C699C
7267 public static bool IsChestRigged(int x, int y)
7268 {
7269 /*
7270An exception occurred when decompiling this method (06002D20)
7271
7272ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsChestRigged(System.Int32,System.Int32)
7273
7274 ---> System.Exception: Basic block has to end with unconditional control flow.
7275{
7276 IL_0011:
7277 stloc:int16(var_5_18, callgetter:int16(Tile::get_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_4)))
7278}
7279
7280 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
7281 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
7282 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
7283 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
7284 --- End of inner exception stack trace ---
7285 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
7286 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
7287*/;
7288 }
7289
7290 // Token: 0x06002D21 RID: 11553 RVA: 0x001C87C8 File Offset: 0x001C69C8
7291 private static bool IsUndergroundDesert(int x, int y)
7292 {
7293 /*
7294An exception occurred when decompiling this method (06002D21)
7295
7296ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsUndergroundDesert(System.Int32,System.Int32)
7297
7298 ---> System.Exception: Basic block has to end with unconditional control flow.
7299{
7300 IL_0008:
7301 stloc:uint16(var_3_10, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_2)))
7302}
7303
7304 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
7305 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
7306 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
7307 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
7308 --- End of inner exception stack trace ---
7309 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
7310 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
7311*/;
7312 }
7313
7314 // Token: 0x06002D22 RID: 11554 RVA: 0x001C87EC File Offset: 0x001C69EC
7315 private static bool IsDungeon(int x, int y)
7316 {
7317 /*
7318An exception occurred when decompiling this method (06002D22)
7319
7320ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsDungeon(System.Int32,System.Int32)
7321
7322 ---> System.Exception: Basic block has to end with unconditional control flow.
7323{
7324 IL_0009:
7325 stloc:uint16(var_1_0F, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
7326}
7327
7328 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
7329 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
7330 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
7331 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
7332 --- End of inner exception stack trace ---
7333 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
7334 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
7335*/;
7336 }
7337
7338 // Token: 0x06002D23 RID: 11555 RVA: 0x001C8808 File Offset: 0x001C6A08
7339 public static bool AddBuriedChest(int i, int j, int contain = 0, bool notNearOtherChests = false, int Style = -1, bool trySlope = false, ushort chestTileType = 0)
7340 {
7341 int num = 1;
7342 if (num == 0)
7343 {
7344 }
7345 int num2 = 45;
7346 if (num == 0)
7347 {
7348 }
7349 if (num2 == 0)
7350 {
7351 }
7352 Tile tile;
7353 bool flag = tile.shimmer();
7354 Tile tile2;
7355 bool flag2 = tile2.active();
7356 Tile tile3;
7357 ushort type = tile3.type;
7358 Tile tile4;
7359 ushort type2 = tile4.type;
7360 if (num2 == 0)
7361 {
7362 }
7363 if (num2 == 0)
7364 {
7365 }
7366 long num3 = 0L;
7367 return WorldGen.SolidTile(0, i, num3 != 0L);
7368 }
7369
7370 // Token: 0x06002D24 RID: 11556 RVA: 0x001CA19C File Offset: 0x001C839C
7371 public static void UnlockDoor(int i, int j)
7372 {
7373 int num = 1;
7374 if (num == 0)
7375 {
7376 }
7377 Tile tile;
7378 bool isLoaded = tile.IsLoaded;
7379 if (num == 0)
7380 {
7381 }
7382 Tile tile2;
7383 short frameY = tile2.frameY;
7384 if (num == 0)
7385 {
7386 }
7387 Tile tile3;
7388 short frameY2 = tile3.frameY;
7389 }
7390
7391 // Token: 0x06002D25 RID: 11557 RVA: 0x001CA1F8 File Offset: 0x001C83F8
7392 public static bool OpenDoor(int i, int j, int direction)
7393 {
7394 int num = 1;
7395 if (num == 0)
7396 {
7397 }
7398 Tile tile;
7399 ushort type = tile.type;
7400 if (num == 0)
7401 {
7402 }
7403 if (4855 == 0)
7404 {
7405 }
7406 Tile tile2;
7407 TileColorCache tileColorCache = tile2.BlockColorAndCoating();
7408 Tile tile3;
7409 TileColorCache tileColorCache2 = tile3.BlockColorAndCoating();
7410 Tile tile4;
7411 TileColorCache tileColorCache3 = tile4.BlockColorAndCoating();
7412 Tile tile5;
7413 bool flag = tile5.active();
7414 Tile tile6;
7415 ushort type2 = tile6.type;
7416 Tile tile7;
7417 ushort type3 = tile7.type;
7418 Tile tile8;
7419 ushort type4 = tile8.type;
7420 Tile tile9;
7421 ushort type5 = tile9.type;
7422 Tile tile10;
7423 ushort type6 = tile10.type;
7424 Tile tile11;
7425 ushort type7 = tile11.type;
7426 Tile tile12;
7427 ushort type8 = tile12.type;
7428 Tile tile13;
7429 ushort type9 = tile13.type;
7430 Tile tile14;
7431 ushort type10 = tile14.type;
7432 Tile tile15;
7433 ushort type11 = tile15.type;
7434 Tile tile16;
7435 ushort type12 = tile16.type;
7436 Tile tile17;
7437 ushort type13 = tile17.type;
7438 Tile tile18;
7439 ushort type14 = tile18.type;
7440 Tile tile19;
7441 ushort type15 = tile19.type;
7442 Tile tile20;
7443 ushort type16 = tile20.type;
7444 long num2 = 0L;
7445 long num3 = 0L;
7446 long num4 = 0L;
7447 WorldGen.KillTile(0, 43143168, num2 != 0L, num3 != 0L, num4 != 0L);
7448 return false;
7449 }
7450
7451 // Token: 0x06002D26 RID: 11558 RVA: 0x001CA4B8 File Offset: 0x001C86B8
7452 public static void Check1xX(int x, int j, short type)
7453 {
7454 int num = 1;
7455 if (num == 0)
7456 {
7457 }
7458 if (num == 0)
7459 {
7460 if (num == 0)
7461 {
7462 }
7463 Tile tile;
7464 short frameX = tile.frameX;
7465 int num2 = 3;
7466 Tile tile2;
7467 short frameY = tile2.frameY;
7468 if (num2 == 0)
7469 {
7470 }
7471 Tile tile3;
7472 short frameX2 = tile3.frameX;
7473 int num3 = 36409;
7474 if (num3 == 0)
7475 {
7476 }
7477 Tile tile4;
7478 bool flag = tile4.active();
7479 if (num3 == 0)
7480 {
7481 }
7482 Tile tile5;
7483 ushort type2 = tile5.type;
7484 if (num3 == 0)
7485 {
7486 }
7487 Tile tile6;
7488 short frameY2 = tile6.frameY;
7489 if (num3 == 0)
7490 {
7491 }
7492 Tile tile7;
7493 short frameX3 = tile7.frameX;
7494 return;
7495 }
7496 }
7497
7498 // Token: 0x06002D27 RID: 11559 RVA: 0x001CA590 File Offset: 0x001C8790
7499 public static void Check2xX(int i, int j, ushort type)
7500 {
7501 int num = 1;
7502 if (num == 0)
7503 {
7504 }
7505 if (num == 0)
7506 {
7507 if (num == 0)
7508 {
7509 }
7510 Tile tile;
7511 short frameX = tile.frameX;
7512 if (35 == 0)
7513 {
7514 }
7515 Tile tile2;
7516 short frameY = tile2.frameY;
7517 Tile tile3;
7518 short frameX2 = tile3.frameX;
7519 Tile tile4;
7520 short frameY2 = tile4.frameY;
7521 Tile tile5;
7522 bool flag = tile5.active();
7523 Tile tile6;
7524 ushort type2 = tile6.type;
7525 Tile tile7;
7526 short frameY3 = tile7.frameY;
7527 Tile tile8;
7528 short frameX3 = tile8.frameX;
7529 return;
7530 }
7531 }
7532
7533 // Token: 0x06002D28 RID: 11560 RVA: 0x001CA7F8 File Offset: 0x001C89F8
7534 public static bool IsBelowANonHammeredPlatform(int x, int y)
7535 {
7536 int num = 1;
7537 if (num == 0)
7538 {
7539 }
7540 Tile tile;
7541 bool flag = tile.active();
7542 if (num == 0)
7543 {
7544 }
7545 if (num != 0)
7546 {
7547 return;
7548 }
7549 }
7550
7551 // Token: 0x06002D29 RID: 11561 RVA: 0x001CA81C File Offset: 0x001C8A1C
7552 public static void PlaceTight(int x, int y, bool spiders = false)
7553 {
7554 if (!true)
7555 {
7556 }
7557 Tile tile;
7558 bool flag = tile.shimmer();
7559 if (!true)
7560 {
7561 }
7562 int num = WorldGen.genRand.Next(2);
7563 int num2 = WorldGen.genRand.Next(3);
7564 if (!true)
7565 {
7566 }
7567 Tile tile2;
7568 ushort type = tile2.type;
7569 if (!true)
7570 {
7571 }
7572 WorldGen.CheckTight(x, y);
7573 }
7574
7575 // Token: 0x06002D2A RID: 11562 RVA: 0x001CA864 File Offset: 0x001C8A64
7576 public static void PlaceUncheckedStalactite(int x, int y, bool preferSmall, int variation, bool spiders)
7577 {
7578 if (!true)
7579 {
7580 }
7581 Tile tile;
7582 bool flag = tile.active();
7583 Tile tile2;
7584 bool flag2 = tile2.active();
7585 long num = 0L;
7586 bool flag3 = WorldGen.SolidTile(x, 0, num != 0L);
7587 Tile tile3;
7588 bool flag4 = tile3.active();
7589 Tile tile4;
7590 bool flag5 = tile4.active();
7591 Tile tile5;
7592 ushort type = tile5.type;
7593 Tile tile6;
7594 ushort type2 = tile6.type;
7595 Tile tile7;
7596 ushort type3 = tile7.type;
7597 Tile tile8;
7598 ushort type4 = tile8.type;
7599 Tile tile9;
7600 ushort type5 = tile9.type;
7601 int num2 = 165;
7602 Tile tile10;
7603 tile10.type = (ushort)num2;
7604 int num3 = 1;
7605 tile10.active(num3 != 0);
7606 tile10.frameX = (spiders ? 1 : 0);
7607 }
7608
7609 // Token: 0x06002D2B RID: 11563 RVA: 0x001CAF40 File Offset: 0x001C9140
7610 public static bool UpdateStalagtiteStyle(int x, int j)
7611 {
7612 int num = 1;
7613 if (num == 0)
7614 {
7615 }
7617 if (num == 0)
7618 {
7619 }
7620 long num2 = 0L;
7621 Tile tile;
7622 bool isLoaded = tile.IsLoaded;
7623 if (num == 0)
7624 {
7625 }
7626 WorldGen.GetStalagtiteStyle(0, x, x, num2 != 0L);
7627 long num5;
7628 if (num == 0)
7629 {
7630 if (num == 0)
7631 {
7632 }
7633 if (num == 0)
7634 {
7635 if (num == 0)
7636 {
7637 }
7639 int num3 = 3;
7640 int num4 = genRand.Next(num3);
7641 if (num == 0)
7642 {
7643 }
7644 Tile tile2;
7645 tile2.frameX = (short)num5;
7646 bool netHost = Main.NetHost;
7647 return false;
7648 }
7649 }
7650 num5 = 0L;
7651 return false;
7652 }
7653
7654 // Token: 0x06002D2C RID: 11564 RVA: 0x001CAFB4 File Offset: 0x001C91B4
7655 private static void GetDesiredStalagtiteStyle(int x, int j, [Out] bool fail, [Out] int desiredStyle, [Out] int height, [Out] int y)
7656 {
7657 int num = 1;
7658 height.m_value = num;
7659 y.m_value = j;
7660 if (num == 0)
7661 {
7662 }
7663 Tile tile;
7664 short frameY = tile.frameY;
7665 }
7666
7667 // Token: 0x06002D2D RID: 11565 RVA: 0x001CB05C File Offset: 0x001C925C
7668 private static void GetStalagtiteStyle(int x, int y, [Out] int style, [Out] bool fail)
7669 {
7670 if (!true)
7671 {
7672 }
7673 Tile tile;
7674 short frameX = tile.frameX;
7675 }
7676
7677 // Token: 0x06002D2E RID: 11566 RVA: 0x001CB094 File Offset: 0x001C9294
7678 public static void CheckTight(int x, int j)
7679 {
7680 int num = 1;
7681 if (num == 0)
7682 {
7683 }
7684 Tile tile;
7685 bool isLoaded = tile.IsLoaded;
7686 if (num == 0)
7687 {
7688 }
7689 Tile tile2;
7690 short frameY = tile2.frameY;
7691 if (num == 0)
7692 {
7693 }
7694 }
7695
7696 // Token: 0x06002D2F RID: 11567 RVA: 0x001CB1C4 File Offset: 0x001C93C4
7697 public static void Place1xX(int x, int y, ushort type, int style = 0)
7698 {
7699 int num = 1;
7700 if (num == 0)
7701 {
7702 }
7703 Tile tile;
7704 bool flag = tile.active();
7705 if (num == 0)
7706 {
7707 }
7708 Tile tile2;
7709 byte liquid = tile2.liquid;
7710 bool flag2 = WorldGen.SolidTile2(x, y);
7711 int num2 = 1;
7712 Tile tile3;
7713 tile3.active(num2 != 0);
7714 tile3.frameY = (short)num2;
7715 long num3 = 0L;
7716 tile3.frameX = (short)num3;
7717 tile3.type = type;
7718 }
7719
7720 // Token: 0x06002D30 RID: 11568 RVA: 0x001CB220 File Offset: 0x001C9420
7721 public static int checkXmasTreeDrop(int x, int y, int obj)
7722 {
7723 /*
7724An exception occurred when decompiling this method (06002D30)
7725
7726ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::checkXmasTreeDrop(System.Int32,System.Int32,System.Int32)
7727
7728 ---> System.Exception: Basic block has to end with unconditional control flow.
7729{
7730 IL_0011:
7731 stloc:int16(var_6_1B, callgetter:int16(Tile::get_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_4)))
7732 stloc:int16(var_8_24, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_7)))
7733 stloc:int16(var_10_2D, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_9)))
7734 stloc:int16(var_12_36, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11)))
7735 stloc:int16(var_14_3F, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_13)))
7736 stloc:int16(var_16_48, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_15)))
7737 stloc:int16(var_18_51, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_17)))
7738 stloc:int16(var_20_5A, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19)))
7739 stloc:int16(var_22_63, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_21)))
7740 stloc:int16(var_24_6C, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_23)))
7741 stloc:int16(var_26_75, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_25)))
7742 stloc:int16(var_28_7E, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_27)))
7743 stloc:int16(var_30_87, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_29)))
7744 stloc:int16(var_32_90, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_31)))
7745 stloc:int16(var_34_99, callgetter:int16(Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_33)))
7746 brtrue(IL_0000, callgetter:int16[exp:bool](Tile::get_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_35)))
7747}
7748
7749 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
7750 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
7751 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
7752 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
7753 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
7754 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
7755 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
7756 --- End of inner exception stack trace ---
7757 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
7758 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
7759*/;
7760 }
7761
7762 // Token: 0x06002D31 RID: 11569 RVA: 0x001CB2D4 File Offset: 0x001C94D4
7763 public static void dropXmasTree(int x, int y, int obj)
7764 {
7765 int num = 1;
7766 if (num == 0)
7767 {
7768 }
7769 Tile tile;
7770 short frameX = tile.frameX;
7771 if (num == 0)
7772 {
7773 }
7774 Tile tile2;
7775 short frameX2 = tile2.frameX;
7776 Tile tile3;
7777 short frameY = tile3.frameY;
7778 Tile tile4;
7779 short frameY2 = tile4.frameY;
7780 Tile tile5;
7781 short frameY3 = tile5.frameY;
7782 Tile tile6;
7783 short frameY4 = tile6.frameY;
7784 Tile tile7;
7785 short frameY5 = tile7.frameY;
7786 Tile tile8;
7787 short frameY6 = tile8.frameY;
7788 Tile tile9;
7789 short frameY7 = tile9.frameY;
7790 Tile tile10;
7791 short frameY8 = tile10.frameY;
7792 Tile tile11;
7793 short frameY9 = tile11.frameY;
7794 Tile tile12;
7795 short frameY10 = tile12.frameY;
7796 Tile tile13;
7797 short frameY11 = tile13.frameY;
7798 Tile tile14;
7799 short frameY12 = tile14.frameY;
7800 Tile tile15;
7801 short frameY13 = tile15.frameY;
7802 Tile tile16;
7803 short frameY14 = tile16.frameY;
7804 Tile tile17;
7805 short frameY15 = tile17.frameY;
7806 if (x != 0)
7807 {
7808 return;
7809 }
7810 if (x != 0)
7811 {
7812 return;
7813 }
7814 if (x != 0)
7815 {
7816 return;
7817 }
7818 if (frameY13 != 0)
7819 {
7821 }
7822 }
7823
7824 // Token: 0x06002D32 RID: 11570 RVA: 0x001CB3A0 File Offset: 0x001C95A0
7825 public static void setXmasTree(int x, int y, int obj, int style)
7826 {
7827 int num = 1;
7828 if (num == 0)
7829 {
7830 }
7831 Tile tile;
7832 short frameX = tile.frameX;
7833 if (num == 0)
7834 {
7835 }
7836 Tile tile2;
7837 short frameX2 = tile2.frameX;
7838 Tile tile3;
7839 short frameY = tile3.frameY;
7840 }
7841
7842 // Token: 0x06002D33 RID: 11571 RVA: 0x001CB400 File Offset: 0x001C9600
7843 public static int PlaceXmasTree_Direct(int x, int y, int type, int style, int dir, int alternate)
7844 {
7845 /*
7846An exception occurred when decompiling this method (06002D33)
7847
7848ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::PlaceXmasTree_Direct(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
7849
7850 ---> System.Exception: Basic block has to end with unconditional control flow.
7851{
7852 IL_0009:
7853 stloc:int32(var_4_0A, ldc.i4:int32(1))
7854 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3), ldloc:int32[exp:bool](var_4_0A))
7855 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3), ldloc:int32[exp:uint16](y))
7856 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3), ldloc:int32[exp:int16](y))
7857 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3), ldloc:int32[exp:int16](y))
7858}
7859
7860 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
7861 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
7862 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
7863 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
7864 --- End of inner exception stack trace ---
7865 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
7866 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
7867*/;
7868 }
7869
7870 // Token: 0x06002D34 RID: 11572 RVA: 0x001CB438 File Offset: 0x001C9638
7871 public static void PlaceXmasTree(int x, int y, ushort type = 171)
7872 {
7873 if (!true)
7874 {
7875 }
7876 long num = 0L;
7877 Tile tile;
7878 bool flag = tile.active();
7879 long num2 = 0L;
7880 bool flag2 = WorldGen.SolidTile(43143168, (int)num, num2 != 0L);
7881 long num3 = 0L;
7882 int num4 = 1;
7883 Tile tile2;
7884 tile2.active(num4 != 0);
7885 tile2.frameX = (short)num3;
7886 }
7887
7888 // Token: 0x06002D35 RID: 11573 RVA: 0x001CB4B4 File Offset: 0x001C96B4
7889 public static void CheckXmasTree(int x, int y)
7890 {
7891 int num = 1;
7892 if (num == 0)
7893 {
7894 }
7895 if (num == 0)
7896 {
7897 if (num == 0)
7898 {
7899 }
7900 Tile tile;
7901 short frameX = tile.frameX;
7902 if (num == 0)
7903 {
7904 }
7905 Tile tile2;
7906 short frameX2 = tile2.frameX;
7907 Tile tile3;
7908 short frameY = tile3.frameY;
7909 long num2 = 0L;
7910 int num3 = 65527;
7911 long num4 = 0L;
7912 if (num3 == 0)
7913 {
7914 }
7915 Tile tile4;
7916 bool flag = tile4.active();
7917 if (num3 == 0)
7918 {
7919 }
7920 Tile tile5;
7921 ushort type = tile5.type;
7922 if (num2 != 0L && num4 != 0L)
7923 {
7924 if (num3 == 0)
7925 {
7926 }
7927 Tile tile6;
7928 short frameX3 = tile6.frameX;
7929 if (num3 == 0)
7930 {
7931 }
7932 Tile tile7;
7933 short frameY2 = tile7.frameY;
7934 return;
7935 }
7936 bool flag2 = WorldGen.SolidTile2(x, y);
7937 Tile tile8;
7938 ushort type2 = tile8.type;
7939 long num5 = 0L;
7940 long num6 = 0L;
7941 long num7 = 0L;
7942 WorldGen.KillTile(x, y, num5 != 0L, num6 != 0L, num7 != 0L);
7943 }
7944 }
7945
7946 // Token: 0x06002D36 RID: 11574 RVA: 0x001CB578 File Offset: 0x001C9778
7947 public static void Place2xX(int x, int y, ushort type, int style = 0)
7948 {
7949 }
7950
7951 // Token: 0x06002D37 RID: 11575 RVA: 0x001CB604 File Offset: 0x001C9804
7952 public static int GetItemDrop_Benches(int style)
7953 {
7954 return 335;
7955 }
7956
7957 // Token: 0x06002D38 RID: 11576 RVA: 0x001CB618 File Offset: 0x001C9818
7958 public static int GetItemDrop_PicnicTables(int style)
7959 {
7960 return 4064;
7961 }
7962
7963 // Token: 0x06002D39 RID: 11577 RVA: 0x001CB62C File Offset: 0x001C982C
7964 public static int GetItemDrop_Chair(int style)
7965 {
7966 return 34;
7967 }
7968
7969 // Token: 0x06002D3A RID: 11578 RVA: 0x001CB63C File Offset: 0x001C983C
7970 public static int GetItemDrop_Toilet(int style)
7971 {
7972 }
7973
7974 // Token: 0x06002D3B RID: 11579 RVA: 0x001CB650 File Offset: 0x001C9850
7975 public static void Check1x2(int x, int j, ushort type)
7976 {
7977 int num = 1;
7978 if (num == 0)
7979 {
7980 }
7981 if (num != 0)
7982 {
7983 return;
7984 }
7985 if (num == 0)
7986 {
7987 }
7988 Tile tile;
7989 short frameY = tile.frameY;
7990 }
7991
7992 // Token: 0x06002D3C RID: 11580 RVA: 0x001CB7C8 File Offset: 0x001C99C8
7993 public static void CheckOnTable1x1(int x, int y, int type)
7994 {
7995 if (!true)
7996 {
7997 }
7998 Tile tile;
7999 bool flag = tile.topSlope();
8000 Tile tile2;
8001 ushort type2 = tile2.type;
8002 Tile tile3;
8003 int num = tile3.blockType();
8004 Tile tile4;
8005 bool flag2 = tile4.active();
8006 Tile tile5;
8007 if (tile5.blockType() == 0)
8008 {
8009 Tile tile6;
8010 ushort type3 = tile6.type;
8011 return;
8012 }
8013 Tile tile7;
8014 int num2 = tile7.blockType();
8015 Tile tile8;
8016 bool flag3 = tile8.active();
8017 Tile tile9;
8018 if (tile9.blockType() == 0)
8019 {
8020 Tile tile10;
8021 ushort type4 = tile10.type;
8022 return;
8023 }
8024 long num3 = 0L;
8025 long num4 = 0L;
8026 long num5 = 0L;
8027 WorldGen.KillTile(x, y, num3 != 0L, num4 != 0L, num5 != 0L);
8028 }
8029
8030 // Token: 0x06002D3D RID: 11581 RVA: 0x001CB86C File Offset: 0x001C9A6C
8031 public static void CheckSign(int x, int y, ushort type)
8032 {
8033 int num = 1;
8034 if (num == 0)
8035 {
8036 }
8037 if (num != 0)
8038 {
8039 return;
8040 }
8041 if (num == 0)
8042 {
8043 }
8044 Tile tile;
8045 short frameX = tile.frameX;
8046 Tile tile2;
8047 short frameY = tile2.frameY;
8048 Tile tile3;
8049 short frameX2 = tile3.frameX;
8050 Tile tile4;
8051 short frameY2 = tile4.frameY;
8052 Tile tile5;
8053 short frameX3 = tile5.frameX;
8054 }
8055
8056 // Token: 0x06002D3E RID: 11582 RVA: 0x001CBB00 File Offset: 0x001C9D00
8057 public static bool PlaceSign(int x, int y, ushort type, int Style = 0)
8058 {
8059 bool flag;
8060 return flag;
8061 }
8062
8063 // Token: 0x06002D3F RID: 11583 RVA: 0x001CBC50 File Offset: 0x001C9E50
8064 public static bool Place2x2Horizontal(int x, int y, ushort type, int Style = 0)
8065 {
8066 /*
8067An exception occurred when decompiling this method (06002D3F)
8068
8069ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::Place2x2Horizontal(System.Int32,System.Int32,System.UInt16,System.Int32)
8070
8071 ---> System.Exception: Basic block has to end with unconditional control flow.
8072{
8073 Block_0:
8074 stloc:bool(var_0_07, call:bool(WorldGen::SolidTile2, ldc.i4:int32(0), ldc.i4:int32(0)))
8075 stloc:bool(var_1_0F, call:bool(WorldGen::SolidTile2, ldc.i4:int32(0), ldc.i4:int32(0)))
8076 stloc:bool(var_3_16, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_2)))
8077 stloc:bool(var_6_21, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_4)))
8078 stloc:bool(var_8_2A, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_7)))
8079 stloc:bool(var_10_33, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_9)))
8080 stloc:int32(var_15_3F, ldc.i4:int32(1))
8081 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:bool](var_15_3F))
8082 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:uint16](y))
8083 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:int16](x))
8084 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:int16](x))
8085}
8086
8087 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
8088 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
8089 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
8090 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
8091 --- End of inner exception stack trace ---
8092 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
8093 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
8094*/;
8095 }
8096
8097 // Token: 0x06002D40 RID: 11584 RVA: 0x001CBCC4 File Offset: 0x001C9EC4
8098 public static Color paintColor(int color)
8099 {
8100 if (!true)
8101 {
8102 }
8103 return 1;
8104 }
8105
8106 // Token: 0x06002D41 RID: 11585 RVA: 0x001CBCD8 File Offset: 0x001C9ED8
8107 public static Color coatingColor(int coating)
8108 {
8109 return 1;
8110 }
8111
8112 // Token: 0x06002D42 RID: 11586 RVA: 0x001CBCF0 File Offset: 0x001C9EF0
8113 public static List<Color> coatingColors(Tile tile, bool block)
8114 {
8115 /*
8116An exception occurred when decompiling this method (06002D42)
8117
8118ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.List`1<Microsoft.Xna.Framework.Graphics.Color> Terraria.WorldGen::coatingColors(Terraria.Tile,System.Boolean)
8119
8120 ---> System.Exception: Basic block has to end with unconditional control flow.
8121{
8122 IL_0012:
8123 stloc:Color(var_6_18, call:Color(WorldGen::coatingColor, ldc.i4:int32(2)))
8124 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
8125}
8126
8127 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
8128 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
8129 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
8130 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
8131 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
8132 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
8133 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
8134 --- End of inner exception stack trace ---
8135 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
8136 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
8137*/;
8138 }
8139
8140 // Token: 0x06002D43 RID: 11587 RVA: 0x001CBD1C File Offset: 0x001C9F1C
8141 public static void paintEffect(int x, int y, byte color, byte oldColor)
8142 {
8143 int num = 1;
8144 if (num == 0)
8145 {
8146 }
8148 if (num == 0)
8149 {
8150 }
8152 int num2 = 2;
8153 if (genRand.Next(num2) == 0)
8154 {
8155 }
8156 }
8157
8158 // Token: 0x06002D44 RID: 11588 RVA: 0x001CBD50 File Offset: 0x001C9F50
8159 public static void paintCoatEffect(int x, int y, byte paintCoatId, List<Color> oldColors)
8160 {
8161 if (!true)
8162 {
8163 }
8164 Color color = WorldGen.coatingColor(0);
8165 if (oldColors._size == 0)
8166 {
8167 }
8168 int size = oldColors._size;
8170 int num = 2;
8171 if (genRand.Next(num) == 0)
8172 {
8173 }
8174 }
8175
8176 // Token: 0x06002D45 RID: 11589 RVA: 0x001CBD90 File Offset: 0x001C9F90
8177 public static bool paintTile(int x, int y, byte color, bool broadCast = false)
8178 {
8179 if (!true)
8180 {
8181 }
8182 Tile tile;
8183 bool isLoaded = tile.IsLoaded;
8184 long num = 0L;
8185 WorldGen.paintEffect(0, x, (byte)y, (byte)num);
8186 return true;
8187 }
8188
8189 // Token: 0x06002D46 RID: 11590 RVA: 0x001CBDB8 File Offset: 0x001C9FB8
8190 public static bool paintCoatTile(int x, int y, byte paintCoatId, bool broadcast = false)
8191 {
8192 if (!true)
8193 {
8194 }
8195 Tile tile;
8196 bool flag = tile.active();
8197 if (!true)
8198 {
8199 }
8200 if (!true)
8201 {
8202 bool flag2;
8203 return flag2;
8204 }
8206 WorldGen.paintCoatEffect(0, x, (byte)y, list);
8207 return true;
8208 }
8209
8210 // Token: 0x06002D47 RID: 11591 RVA: 0x001CBDFC File Offset: 0x001C9FFC
8211 public static bool paintCoatWall(int x, int y, byte paintCoatId, bool broadcast = false)
8212 {
8213 if (!true)
8214 {
8215 }
8216 Tile tile;
8217 ushort wall = tile.wall;
8218 if (!true)
8219 {
8220 }
8221 bool flag;
8222 return true || flag;
8223 }
8224
8225 // Token: 0x06002D48 RID: 11592 RVA: 0x001CBE40 File Offset: 0x001CA040
8226 public static bool paintWall(int x, int y, byte color, bool broadCast = false)
8227 {
8228 if (!true)
8229 {
8230 }
8231 Tile tile;
8232 bool isLoaded = tile.IsLoaded;
8233 long num = 0L;
8234 WorldGen.paintEffect(0, x, (byte)y, (byte)num);
8235 return true;
8236 }
8237
8238 // Token: 0x06002D49 RID: 11593 RVA: 0x001CBE68 File Offset: 0x001CA068
8239 public static void Place3x3Wall(int x, int y, ushort type, int style)
8240 {
8241 int num = 1;
8242 if (num == 0)
8243 {
8244 }
8245 Tile tile;
8246 bool flag = tile.active();
8247 if (num == 0)
8248 {
8249 }
8250 Tile tile2;
8251 ushort wall = tile2.wall;
8252 }
8253
8254 // Token: 0x06002D4A RID: 11594 RVA: 0x001CBEB4 File Offset: 0x001CA0B4
8255 public static void Check3x3Wall(int x, int y)
8256 {
8257 int num = 1;
8258 if (num == 0)
8259 {
8260 }
8261 if (num == 0)
8262 {
8263 if (num == 0)
8264 {
8265 }
8266 Tile tile;
8267 ushort type = tile.type;
8268 return;
8269 }
8270 }
8271
8272 // Token: 0x06002D4B RID: 11595 RVA: 0x001CBF90 File Offset: 0x001CA190
8273 public static void Place2x3Wall(int x, int y, ushort type, int style)
8274 {
8275 int num = 65533;
8276 if (num == 0)
8277 {
8278 }
8279 Tile tile;
8280 bool flag = tile.active();
8281 if (num == 0)
8282 {
8283 }
8284 Tile tile2;
8285 ushort wall = tile2.wall;
8286 }
8287
8288 // Token: 0x06002D4C RID: 11596 RVA: 0x001CBFDC File Offset: 0x001CA1DC
8289 public static void Check2x3Wall(int x, int y)
8290 {
8291 int num = 1;
8292 if (num == 0)
8293 {
8294 }
8295 if (num == 0)
8296 {
8297 if (num == 0)
8298 {
8299 }
8300 Tile tile;
8301 ushort type = tile.type;
8302 Tile tile2;
8303 short frameX = tile2.frameX;
8304 return;
8305 }
8306 }
8307
8308 // Token: 0x06002D4D RID: 11597 RVA: 0x001CC0DC File Offset: 0x001CA2DC
8309 public static void Place3x2Wall(int x, int y, ushort type, int style)
8310 {
8311 int num = 1;
8312 if (num == 0)
8313 {
8314 }
8315 Tile tile;
8316 bool flag = tile.active();
8317 if (num == 0)
8318 {
8319 }
8320 Tile tile2;
8321 ushort wall = tile2.wall;
8322 }
8323
8324 // Token: 0x06002D4E RID: 11598 RVA: 0x001CC138 File Offset: 0x001CA338
8325 public static void Check3x2Wall(int x, int y)
8326 {
8327 int num = 1;
8328 if (num == 0)
8329 {
8330 }
8331 if (num == 0)
8332 {
8333 if (num == 0)
8334 {
8335 }
8336 Tile tile;
8337 ushort type = tile.type;
8338 Tile tile2;
8339 short frameY = tile2.frameY;
8340 return;
8341 }
8342 }
8343
8344 // Token: 0x06002D4F RID: 11599 RVA: 0x001CC22C File Offset: 0x001CA42C
8345 public static void Place4x3Wall(int x, int y, ushort type, int style)
8346 {
8347 int num = 1;
8348 if (num == 0)
8349 {
8350 }
8351 Tile tile;
8352 bool flag = tile.active();
8353 if (num == 0)
8354 {
8355 }
8356 Tile tile2;
8357 ushort wall = tile2.wall;
8358 }
8359
8360 // Token: 0x06002D50 RID: 11600 RVA: 0x001CC27C File Offset: 0x001CA47C
8361 public static void Check4x3Wall(int x, int y)
8362 {
8363 int num = 1;
8364 if (num == 0)
8365 {
8366 }
8367 if (num == 0)
8368 {
8369 if (num == 0)
8370 {
8371 }
8372 Tile tile;
8373 ushort type = tile.type;
8374 Tile tile2;
8375 short frameY = tile2.frameY;
8376 return;
8377 }
8378 }
8379
8380 // Token: 0x06002D51 RID: 11601 RVA: 0x001CC360 File Offset: 0x001CA560
8381 public static void Place6x4Wall(int x, int y, ushort type, int style)
8382 {
8383 int num = 1;
8384 if (num == 0)
8385 {
8386 }
8387 Tile tile;
8388 bool flag = tile.active();
8389 if (num == 0)
8390 {
8391 }
8392 Tile tile2;
8393 ushort wall = tile2.wall;
8394 }
8395
8396 // Token: 0x06002D52 RID: 11602 RVA: 0x001CC3AC File Offset: 0x001CA5AC
8397 public static void Check6x4Wall(int x, int y)
8398 {
8399 int num = 1;
8400 if (num == 0)
8401 {
8402 }
8403 if (num == 0)
8404 {
8405 if (num == 0)
8406 {
8407 }
8408 Tile tile;
8409 ushort type = tile.type;
8410 Tile tile2;
8411 short frameY = tile2.frameY;
8412 Tile tile3;
8413 short frameX = tile3.frameX;
8414 Tile tile4;
8415 short frameX2 = tile4.frameX;
8416 int num2 = 65529;
8417 if (num2 == 0)
8418 {
8419 }
8420 Tile tile5;
8421 ushort type2 = tile5.type;
8422 if (num2 == 0)
8423 {
8424 }
8425 Tile tile6;
8426 bool flag = tile6.active();
8427 if (num2 == 0)
8428 {
8429 }
8430 Tile tile7;
8431 ushort wall = tile7.wall;
8432 if (num2 == 0)
8433 {
8434 }
8435 Tile tile8;
8436 short frameY2 = tile8.frameY;
8437 if (num2 == 0)
8438 {
8439 }
8440 Tile tile9;
8441 short frameX3 = tile9.frameX;
8442 return;
8443 }
8444 }
8445
8446 // Token: 0x06002D53 RID: 11603 RVA: 0x001CC4DC File Offset: 0x001CA6DC
8447 private static int RollRandomSeaShellStyle()
8448 {
8449 if (!true)
8450 {
8451 }
8452 int num = WorldGen.genRand.Next(2);
8453 int num2 = WorldGen.genRand.Next(10);
8454 int num3 = WorldGen.genRand.Next(10);
8455 return WorldGen.genRand.Next(50);
8456 }
8457
8458 // Token: 0x06002D54 RID: 11604 RVA: 0x001CC520 File Offset: 0x001CA720
8459 public static void Place1x1(int x, int y, int type, int style = 0)
8460 {
8461 if (!true)
8462 {
8463 }
8464 bool flag = WorldGen.SolidTile2(x, y);
8465 Tile tile;
8466 bool flag2 = tile.nactive();
8467 Tile tile2;
8468 ushort type2 = tile2.type;
8470 int num = 3;
8471 int num2 = genRand.Next(num);
8472 }
8473
8474 // Token: 0x06002D55 RID: 11605 RVA: 0x001CC570 File Offset: 0x001CA770
8475 public static void Check1x1(int x, int y, int type)
8476 {
8477 int num = 1;
8478 if (num == 0)
8479 {
8480 }
8481 if (num == 0)
8482 {
8483 }
8484 bool flag = WorldGen.SolidTileAllowBottomSlope(x, int.MinValue);
8485 if (num == 0)
8486 {
8487 }
8488 long num2 = 0L;
8489 long num3 = 0L;
8490 long num4 = 0L;
8491 WorldGen.KillTile(x, y, num2 != 0L, num3 != 0L, num4 != 0L);
8492 if (num == 0)
8493 {
8494 }
8496 }
8497
8498 // Token: 0x06002D56 RID: 11606 RVA: 0x001CC5D0 File Offset: 0x001CA7D0
8499 public static void CheckGolf1x1(int x, int y, int type)
8500 {
8501 if (!true)
8502 {
8503 }
8504 Tile tile;
8505 short frameX = tile.frameX;
8506 int num = 36409;
8507 long num2 = 0L;
8508 bool flag = WorldGen.SolidTileAllowBottomSlope(x, (int)num2);
8509 if (num == 0)
8510 {
8511 }
8512 short num3;
8513 if (num3 == 0)
8514 {
8515 }
8516 long num4 = 0L;
8517 long num5 = 0L;
8518 long num6 = 0L;
8519 WorldGen.KillTile(x, y, num4 != 0L, num5 != 0L, num6 != 0L);
8520 }
8521
8522 // Token: 0x06002D57 RID: 11607 RVA: 0x001CC618 File Offset: 0x001CA818
8523 public static void CheckLogicTiles(int x, int y, int type)
8524 {
8525 int num = 1;
8526 if (num == 0)
8527 {
8528 }
8529 Tile tile;
8530 bool flag = tile.active();
8531 if (num == 0)
8532 {
8533 }
8534 Tile tile2;
8535 short frameX = tile2.frameX;
8536 if (num != 0)
8537 {
8538 if (num == 0)
8539 {
8540 }
8541 long num2 = 0L;
8542 long num3 = 0L;
8543 long num4 = 0L;
8544 WorldGen.KillTile(x, y, num2 != 0L, num3 != 0L, num4 != 0L);
8545 }
8546 }
8547
8548 // Token: 0x06002D58 RID: 11608 RVA: 0x001CC65C File Offset: 0x001CA85C
8549 public static void PlaceLogicTiles(int x, int y, int type, int style = 0)
8550 {
8551 int num = 1;
8552 if (num == 0)
8553 {
8554 }
8555 if (num == 0)
8556 {
8557 }
8558 Tile tile;
8559 bool flag = tile.active();
8560 if (num == 0)
8561 {
8562 }
8563 Tile tile2;
8564 ushort type2 = tile2.type;
8565 if (num == 0)
8566 {
8567 }
8568 Tile tile3;
8569 ushort type3 = tile3.type;
8570 }
8571
8572 // Token: 0x06002D59 RID: 11609 RVA: 0x001CC6A4 File Offset: 0x001CA8A4
8573 public static void PlaceOnTable1x1(int x, int y, int type, int style = 0)
8574 {
8575 int num = 1;
8576 if (num == 0)
8577 {
8578 }
8579 Tile tile;
8580 bool flag = tile.active();
8581 if (num == 0)
8582 {
8583 }
8584 Tile tile2;
8585 bool flag2 = tile2.nactive();
8586 if (num == 0)
8587 {
8588 }
8589 Tile tile3;
8590 ushort type2 = tile3.type;
8591 }
8592
8593 // Token: 0x06002D5A RID: 11610 RVA: 0x001CC770 File Offset: 0x001CA970
8594 public static bool PlaceAlch(int x, int y, int style)
8595 {
8596 int num = 1;
8597 if (num == 0)
8598 {
8599 }
8600 Tile tile;
8601 bool flag = tile.active();
8602 if (num == 0)
8603 {
8604 }
8605 Tile tile2;
8606 bool flag2 = tile2.nactive();
8607 if (num == 0)
8608 {
8609 }
8610 Tile tile3;
8611 bool flag3 = tile3.halfBrick();
8612 if (num == 0)
8613 {
8614 }
8615 Tile tile4;
8616 byte b = tile4.slope();
8617 if (y == 0)
8618 {
8619 }
8620 Tile tile5;
8621 ushort type = tile5.type;
8622 if (y == 0)
8623 {
8624 }
8625 Tile tile6;
8626 ushort type2 = tile6.type;
8627 if (y == 0)
8628 {
8629 }
8630 Tile tile7;
8631 ushort type3 = tile7.type;
8632 if (y == 0)
8633 {
8634 }
8635 Tile tile8;
8636 ushort type4 = tile8.type;
8637 if (y == 0)
8638 {
8639 }
8640 Tile tile9;
8641 ushort type5 = tile9.type;
8642 if (y == 0)
8643 {
8644 }
8645 Tile tile10;
8646 ushort type6 = tile10.type;
8647 if (y == 0)
8648 {
8649 }
8650 Tile tile11;
8651 ushort type7 = tile11.type;
8652 if (y == 0)
8653 {
8654 }
8655 Tile tile12;
8656 ushort type8 = tile12.type;
8657 if (y == 0)
8658 {
8659 }
8660 Tile tile13;
8661 ushort type9 = tile13.type;
8662 if (y == 0)
8663 {
8664 }
8665 Tile tile14;
8666 ushort type10 = tile14.type;
8667 if (y == 0)
8668 {
8669 }
8670 Tile tile15;
8671 ushort type11 = tile15.type;
8672 if (y == 0)
8673 {
8674 }
8675 Tile tile16;
8676 ushort type12 = tile16.type;
8677 if (y == 0)
8678 {
8679 }
8680 Tile tile17;
8681 ushort type13 = tile17.type;
8682 if (y == 0)
8683 {
8684 }
8685 Tile tile18;
8686 ushort type14 = tile18.type;
8687 if (y == 0)
8688 {
8689 }
8690 Tile tile19;
8691 ushort type15 = tile19.type;
8692 if (y == 0)
8693 {
8694 }
8695 Tile tile20;
8696 ushort type16 = tile20.type;
8697 if (y == 0)
8698 {
8699 }
8700 Tile tile21;
8701 ushort type17 = tile21.type;
8702 if (y == 0)
8703 {
8704 }
8705 Tile tile22;
8706 byte liquid = tile22.liquid;
8707 if (y == 0)
8708 {
8709 }
8710 int num2 = 1;
8711 Tile tile23;
8712 tile23.active(num2 != 0);
8713 int num3 = 82;
8714 tile23.type = (ushort)num3;
8715 tile23.frameX = (short)num3;
8716 long num4 = 0L;
8717 tile23.frameY = (short)num4;
8718 if (y == 0)
8719 {
8720 }
8721 Tile tile24;
8722 ushort type18 = tile24.type;
8723 if (y == 0)
8724 {
8725 }
8726 Tile tile25;
8727 ushort type19 = tile25.type;
8728 if (y == 0)
8729 {
8730 }
8731 Tile tile26;
8732 ushort type20 = tile26.type;
8733 if (y == 0)
8734 {
8735 }
8736 Tile tile27;
8737 ushort type21 = tile27.type;
8738 if (y == 0)
8739 {
8740 }
8741 Tile tile28;
8742 ushort type22 = tile28.type;
8743 if (y == 0)
8744 {
8745 }
8746 Tile tile29;
8747 ushort type23 = tile29.type;
8748 if (y == 0)
8749 {
8750 }
8751 Tile tile30;
8752 ushort type24 = tile30.type;
8753 long num5 = 0L;
8754 if (y == 0)
8755 {
8756 }
8757 Tile tile31;
8758 byte liquid2 = tile31.liquid;
8759 if (y == 0)
8760 {
8761 }
8762 Tile tile32;
8763 bool flag4 = tile32.lava();
8764 while (num5 != 0L)
8765 {
8766 }
8767 return flag4;
8768 }
8769
8770 // Token: 0x06002D5B RID: 11611 RVA: 0x001CCA30 File Offset: 0x001CAC30
8771 public static void GrowSpike(int i, int j, ushort spikeType, ushort landType)
8772 {
8773 int num = 661;
8774 Tile tile;
8775 bool flag = tile.active();
8776 if (num == 0)
8777 {
8778 }
8779 Tile tile2;
8780 ushort type = tile2.type;
8781 }
8782
8783 // Token: 0x06002D5C RID: 11612 RVA: 0x001CCC04 File Offset: 0x001CAE04
8784 private static bool GrowMoreVines(int x, int y)
8785 {
8786 int num = 1;
8787 if (num == 0)
8788 {
8789 }
8790 int num2 = 30;
8791 bool flag = WorldGen.InWorld(0, x, num2);
8792 if (num == 0)
8793 {
8794 }
8795 int num3 = 12;
8796 bool flag2;
8797 if (num3 != 0)
8798 {
8799 return flag2;
8800 }
8801 return flag2;
8802 }
8803
8804 // Token: 0x06002D5D RID: 11613 RVA: 0x001CCC44 File Offset: 0x001CAE44
8805 private static void GrowGlowTulips()
8806 {
8807 if (!true)
8808 {
8809 }
8810 }
8811
8812 // Token: 0x06002D5E RID: 11614 RVA: 0x001CCCE8 File Offset: 0x001CAEE8
8813 private static void MatureTheHerbPlants()
8814 {
8815 int num = 1;
8816 int num2 = 10;
8817 if (num == 0)
8818 {
8819 }
8820 int num3 = 11;
8821 if (num == 0)
8822 {
8823 }
8824 Tile tile;
8825 ushort type = tile.type;
8826 Tile tile2;
8827 ushort type2 = tile2.type;
8828 long num4 = 0L;
8829 bool flag = WorldGen.SolidTile(num2, num3, num4 != 0L);
8831 int num5 = 25;
8832 if (genRand.Next(num5) == 0)
8833 {
8834 }
8836 int num6 = 3;
8837 if (genRand2.Next(num6) == 0)
8838 {
8840 int num7 = 2;
8841 if (genRand3.Next(num7) == 0)
8842 {
8843 }
8845 int num8 = 3;
8846 if (genRand4.Next(num8) == 0)
8847 {
8848 }
8849 }
8850 }
8851
8852 // Token: 0x06002D5F RID: 11615 RVA: 0x001CCD94 File Offset: 0x001CAF94
8853 public static void GrowAlch(int x, int y)
8854 {
8855 int num = 1;
8856 if (num == 0)
8857 {
8858 }
8859 Tile tile;
8860 bool flag = tile.active();
8861 if (num == 0)
8862 {
8863 }
8864 long num2 = 0L;
8865 long num3 = 0L;
8866 long num4 = 0L;
8867 WorldGen.KillTile(x, y, num2 != 0L, num3 != 0L, num4 != 0L);
8868 if (num == 0)
8869 {
8870 }
8871 bool netHost = Main.NetHost;
8872 if (num == 0)
8873 {
8874 }
8875 if (num == 0)
8876 {
8877 }
8878 int num5 = 1;
8879 WorldGen.SquareTileFrame(x, y, num5 != 0);
8880 if (num == 0)
8881 {
8882 }
8884 int num6 = 50;
8885 if (genRand.Next(num6) != 0)
8886 {
8887 if (num == 0)
8888 {
8889 }
8890 if (num != 0)
8891 {
8892 if (num == 0)
8893 {
8894 }
8896 int num7 = 50;
8897 if (genRand2.Next(num7) == 0)
8898 {
8899 goto IL_0156;
8900 }
8901 }
8902 if (num == 0)
8903 {
8904 }
8905 if (num == 0)
8906 {
8907 if (num == 0)
8908 {
8909 }
8911 int num8 = 50;
8912 if (genRand3.Next(num8) == 0)
8913 {
8914 goto IL_0156;
8915 }
8916 }
8917 if (num == 0)
8918 {
8919 }
8920 if (num != 0)
8921 {
8922 if (num == 0)
8923 {
8924 }
8926 int num9 = 50;
8927 if (genRand4.Next(num9) == 0)
8928 {
8929 goto IL_0156;
8930 }
8931 }
8932 if (num == 0)
8933 {
8934 }
8935 if (num == 0)
8936 {
8937 }
8939 int num10 = 50;
8940 if (genRand5.Next(num10) != 0)
8941 {
8942 if (num == 0)
8943 {
8944 }
8945 if (num == 0)
8946 {
8947 }
8949 return;
8950 }
8951 }
8952 else
8953 {
8954 if (num == 0)
8955 {
8956 }
8958 int num11 = 2;
8959 if (genRand7.Next(num11) != 0)
8960 {
8961 return;
8962 }
8963 }
8964 IL_0156:
8965 if (num == 0)
8966 {
8967 }
8968 bool netHost2 = Main.NetHost;
8969 if (num == 0)
8970 {
8971 }
8972 if (num == 0)
8973 {
8974 }
8975 int num12 = 1;
8976 WorldGen.SquareTileFrame(x, y, num12 != 0);
8977 }
8978
8979 // Token: 0x06002D60 RID: 11616 RVA: 0x001CCF4C File Offset: 0x001CB14C
8980 public static void PlantAlch()
8981 {
8982 if (!true)
8983 {
8984 }
8987 Tile tile;
8988 bool flag = tile.active();
8989 }
8990
8991 // Token: 0x06002D61 RID: 11617 RVA: 0x001CD108 File Offset: 0x001CB308
8992 public static void CheckAlch(int x, int y)
8993 {
8994 if (!true)
8995 {
8996 }
8997 Tile tile;
8998 bool flag = tile.nactive();
8999 Tile tile2;
9000 bool flag2 = tile2.halfBrick();
9001 Tile tile3;
9002 ushort type = tile3.type;
9003 }
9004
9005 // Token: 0x06002D62 RID: 11618 RVA: 0x001CD27C File Offset: 0x001CB47C
9006 public static void CheckBanner(int x, int j, byte type)
9007 {
9008 int num = 1;
9009 if (num == 0)
9010 {
9011 }
9012 if (num == 0)
9013 {
9014 if (num == 0)
9015 {
9016 }
9017 Tile tile;
9018 short frameY = tile.frameY;
9019 return;
9020 }
9021 }
9022
9023 // Token: 0x06002D63 RID: 11619 RVA: 0x001CD368 File Offset: 0x001CB568
9024 public static void PlaceBanner(int x, int y, ushort type, int style = 0)
9025 {
9026 int num = 1;
9027 if (63916 == 0)
9028 {
9029 }
9030 Tile tile;
9031 bool flag = tile.nactive();
9032 if (num == 0)
9033 {
9034 }
9035 Tile tile2;
9036 ushort type2 = tile2.type;
9037 if (num != 0)
9038 {
9039 if (num == 0)
9040 {
9041 }
9042 Tile tile3;
9043 ushort type3 = tile3.type;
9044 if (num == 0)
9045 {
9046 if (num == 0)
9047 {
9048 }
9049 Tile tile4;
9050 bool flag2 = tile4.active();
9051 if (num == 0)
9052 {
9053 }
9054 Tile tile5;
9055 bool flag3 = tile5.active();
9056 if (num == 0)
9057 {
9058 }
9059 Tile tile6;
9060 bool flag4 = tile6.active();
9061 if (num == 0)
9062 {
9063 }
9064 int num2 = 1;
9065 Tile tile7;
9066 tile7.active(num2 != 0);
9067 tile7.frameX = (short)style;
9068 tile7.type = type;
9069 int num3 = 1;
9070 Tile tile8;
9071 tile8.active(num3 != 0);
9072 tile8.frameY = (short)num3;
9073 tile8.frameX = (short)style;
9074 tile8.type = type;
9075 int num4 = 1;
9076 Tile tile9;
9077 tile9.active(num4 != 0);
9078 tile9.frameY = (short)num4;
9079 tile9.frameX = (short)style;
9080 tile9.type = type;
9081 }
9082 }
9083 }
9084
9085 // Token: 0x06002D64 RID: 11620 RVA: 0x001CD43C File Offset: 0x001CB63C
9086 public static void PlaceMan(int i, int j, int dir)
9087 {
9088 int num = 1;
9089 if (num == 0)
9090 {
9091 }
9092 bool flag = WorldGen.SolidTile2(i, j);
9093 if (num == 0)
9094 {
9095 }
9096 bool flag2 = WorldGen.SolidTile2(0, j);
9097 if (num == 0)
9098 {
9099 }
9100 int num2 = 1;
9101 Tile tile;
9102 tile.active(num2 != 0);
9103 long num3 = 0L;
9104 tile.frameY = (short)num3;
9105 tile.frameX = (short)dir;
9106 int num4 = 128;
9107 tile.type = (ushort)num4;
9108 int num5 = 1;
9109 Tile tile2;
9110 tile2.active(num5 != 0);
9111 int num6 = 18;
9112 tile2.frameY = (short)num6;
9113 tile2.frameX = (short)dir;
9114 int num7 = 128;
9115 tile2.type = (ushort)num7;
9116 int num8 = 1;
9117 Tile tile3;
9118 tile3.active(num8 != 0);
9119 int num9 = 36;
9120 tile3.frameY = (short)num9;
9121 tile3.frameX = (short)dir;
9122 int num10 = 128;
9123 tile3.type = (ushort)num10;
9124 int num11 = 1;
9125 Tile tile4;
9126 tile4.active(num11 != 0);
9127 long num12 = 0L;
9128 tile4.frameY = (short)num12;
9129 tile4.frameX = (short)i;
9130 int num13 = 128;
9131 tile4.type = (ushort)num13;
9132 int num14 = 1;
9133 Tile tile5;
9134 tile5.active(num14 != 0);
9135 int num15 = 18;
9136 tile5.frameY = (short)num15;
9137 tile5.frameX = (short)i;
9138 int num16 = 128;
9139 tile5.type = (ushort)num16;
9140 int num17 = 1;
9141 Tile tile6;
9142 tile6.active(num17 != 0);
9143 int num18 = 36;
9144 tile6.frameY = (short)num18;
9145 tile6.frameX = (short)i;
9146 int num19 = 128;
9147 tile6.type = (ushort)num19;
9148 }
9149
9150 // Token: 0x06002D65 RID: 11621 RVA: 0x001CD59C File Offset: 0x001CB79C
9151 public static void PlaceWoman(int i, int j, int dir)
9152 {
9153 int num = 1;
9154 if (num == 0)
9155 {
9156 }
9157 bool flag = WorldGen.SolidTile2(i, j);
9158 if (num == 0)
9159 {
9160 }
9161 bool flag2 = WorldGen.SolidTile2(0, j);
9162 if (num == 0)
9163 {
9164 }
9165 int num2 = 1;
9166 Tile tile;
9167 tile.active(num2 != 0);
9168 long num3 = 0L;
9169 tile.frameY = (short)num3;
9170 tile.frameX = (short)dir;
9171 int num4 = 269;
9172 tile.type = (ushort)num4;
9173 int num5 = 1;
9174 Tile tile2;
9175 tile2.active(num5 != 0);
9176 int num6 = 18;
9177 tile2.frameY = (short)num6;
9178 tile2.frameX = (short)dir;
9179 int num7 = 269;
9180 tile2.type = (ushort)num7;
9181 int num8 = 1;
9182 Tile tile3;
9183 tile3.active(num8 != 0);
9184 int num9 = 36;
9185 tile3.frameY = (short)num9;
9186 tile3.frameX = (short)dir;
9187 int num10 = 269;
9188 tile3.type = (ushort)num10;
9189 int num11 = 1;
9190 Tile tile4;
9191 tile4.active(num11 != 0);
9192 long num12 = 0L;
9193 tile4.frameY = (short)num12;
9194 tile4.frameX = (short)i;
9195 int num13 = 269;
9196 tile4.type = (ushort)num13;
9197 int num14 = 1;
9198 Tile tile5;
9199 tile5.active(num14 != 0);
9200 int num15 = 18;
9201 tile5.frameY = (short)num15;
9202 tile5.frameX = (short)i;
9203 int num16 = 269;
9204 tile5.type = (ushort)num16;
9205 int num17 = 1;
9206 Tile tile6;
9207 tile6.active(num17 != 0);
9208 int num18 = 36;
9209 tile6.frameY = (short)num18;
9210 tile6.frameX = (short)i;
9211 int num19 = 269;
9212 tile6.type = (ushort)num19;
9213 }
9214
9215 // Token: 0x06002D66 RID: 11622 RVA: 0x001CD6FC File Offset: 0x001CB8FC
9216 public static void CheckWeaponsRack(int i, int j)
9217 {
9218 int num = 1;
9219 if (num == 0)
9220 {
9221 }
9222 if (num == 0)
9223 {
9224 if (num == 0)
9225 {
9226 }
9227 Tile tile;
9228 short frameY = tile.frameY;
9229 Tile tile2;
9230 short frameX = tile2.frameX;
9231 int num2 = 4855;
9232 long num3 = 0L;
9233 Tile tile3;
9234 short frameX2 = tile3.frameX;
9235 Tile tile4;
9236 bool flag = tile4.active();
9237 Tile tile5;
9238 ushort type = tile5.type;
9239 Tile tile6;
9240 ushort wall = tile6.wall;
9241 int num4 = 4855;
9242 if (num2 == 0)
9243 {
9244 }
9245 Tile tile7;
9246 int num5 = TEWeaponsRack.Find((int)tile7.frameY, 43143168);
9247 if (num4 == 0)
9248 {
9249 }
9251 int num6 = 471;
9253 int num7;
9254 TEWeaponsRack.Kill(num7, 43143168);
9255 Tile tile8;
9256 bool flag2 = tile8.active();
9257 Tile tile9;
9258 ushort type2 = tile9.type;
9259 long num8 = 0L;
9260 long num9 = 0L;
9261 long num10 = 0L;
9262 WorldGen.KillTile((int)num3, j, num8 != 0L, num9 != 0L, num10 != 0L);
9263 }
9264 }
9265
9266 // Token: 0x06002D67 RID: 11623 RVA: 0x001CD7E4 File Offset: 0x001CB9E4
9267 public static void ToggleGemLock(int i, int j, bool on)
9268 {
9269 bool flag = Framing.GetTileSafely(i, j).active();
9270 Tile tile;
9271 short frameX = tile.frameX;
9272 Tile tile2;
9273 short frameX2 = tile2.frameX;
9274 Tile tile3;
9275 short frameY = tile3.frameY;
9276 }
9277
9278 // Token: 0x06002D68 RID: 11624 RVA: 0x001CD868 File Offset: 0x001CBA68
9279 public static void CheckMan(int i, int j)
9280 {
9281 int num = 1;
9282 if (num == 0)
9283 {
9284 }
9285 if (num == 0)
9286 {
9287 if (num == 0)
9288 {
9289 }
9290 Tile tile;
9291 short frameY = tile.frameY;
9292 Tile tile2;
9293 short frameX = tile2.frameX;
9294 int num2 = 34079;
9295 int num3 = 100;
9296 Tile tile3;
9297 short frameX2 = tile3.frameX;
9298 Tile tile4;
9299 bool flag = tile4.active();
9300 if (frameX2 == 0)
9301 {
9302 }
9303 Tile tile5;
9304 ushort type = tile5.type;
9305 if (frameX2 == 0)
9306 {
9307 }
9308 long num4 = 0L;
9309 Tile tile6;
9310 short frameY2 = tile6.frameY;
9311 if (frameX2 == 0)
9312 {
9313 }
9315 if (frameX2 == 0)
9316 {
9317 }
9319 if (frameX2 == 0)
9320 {
9321 }
9322 Tile tile7;
9323 bool flag4 = tile7.active();
9324 Tile tile8;
9325 ushort type2 = tile8.type;
9326 long num5 = 0L;
9327 long num6 = 0L;
9328 long num7 = 0L;
9329 WorldGen.KillTile(num2, num3, num5 != 0L, num6 != 0L, num7 != 0L);
9330 }
9331 }
9332
9333 // Token: 0x06002D69 RID: 11625 RVA: 0x001CD938 File Offset: 0x001CBB38
9334 public static void CheckWoman(int i, int j)
9335 {
9336 int num = 1;
9337 if (num == 0)
9338 {
9339 }
9340 if (num == 0)
9341 {
9342 if (num == 0)
9343 {
9344 }
9345 Tile tile;
9346 short frameY = tile.frameY;
9347 Tile tile2;
9348 short frameX = tile2.frameX;
9349 int num2 = 34079;
9350 int num3 = 100;
9351 Tile tile3;
9352 short frameX2 = tile3.frameX;
9353 Tile tile4;
9354 bool flag = tile4.active();
9355 if (frameX2 == 0)
9356 {
9357 }
9358 Tile tile5;
9359 ushort type = tile5.type;
9360 if (frameX2 == 0)
9361 {
9362 }
9363 long num4 = 0L;
9364 Tile tile6;
9365 short frameY2 = tile6.frameY;
9366 if (frameX2 == 0)
9367 {
9368 }
9370 if (frameX2 == 0)
9371 {
9372 }
9374 if (frameX2 == 0)
9375 {
9376 }
9377 Tile tile7;
9378 bool flag4 = tile7.active();
9379 Tile tile8;
9380 ushort type2 = tile8.type;
9381 long num5 = 0L;
9382 long num6 = 0L;
9383 long num7 = 0L;
9384 WorldGen.KillTile(num2, num3, num5 != 0L, num6 != 0L, num7 != 0L);
9385 }
9386 }
9387
9388 // Token: 0x06002D6A RID: 11626 RVA: 0x001CDA08 File Offset: 0x001CBC08
9389 public static void Place1x2(int x, int y, ushort type, int style)
9390 {
9391 int num = 1;
9392 long num2 = 0L;
9393 if (num == 0)
9394 {
9395 }
9397 int num3 = 3;
9398 int num4 = genRand.Next(num3);
9399 if (num == 0)
9400 {
9401 }
9402 bool flag = WorldGen.SolidTile2(x, num3);
9403 Tile tile;
9404 bool flag2 = tile.active();
9405 int num5 = 1;
9406 Tile tile2;
9407 tile2.active(num5 != 0);
9408 tile2.frameY = (short)style;
9409 tile2.frameX = (short)num2;
9410 tile2.type = type;
9411 int num6 = 1;
9412 Tile tile3;
9413 tile3.active(num6 != 0);
9414 tile3.frameY = (short)num6;
9415 tile3.frameX = (short)num2;
9416 tile3.type = type;
9417 }
9418
9419 // Token: 0x06002D6B RID: 11627 RVA: 0x001CDA8C File Offset: 0x001CBC8C
9420 public static void Place1x2Top(int x, int y, ushort type, int style)
9421 {
9422 int num = 1;
9423 if (num == 0)
9424 {
9425 }
9426 Tile tile;
9427 bool flag = tile.nactive();
9428 if (num == 0)
9429 {
9430 }
9431 Tile tile2;
9432 ushort type2 = tile2.type;
9433 if (num != 0)
9434 {
9435 if (num == 0)
9436 {
9437 }
9438 Tile tile3;
9439 ushort type3 = tile3.type;
9440 if (num == 0)
9441 {
9442 if (num == 0)
9443 {
9444 }
9445 Tile tile4;
9446 bool flag2 = tile4.active();
9447 if (num == 0)
9448 {
9449 }
9450 int num2 = 1;
9451 Tile tile5;
9452 tile5.active(num2 != 0);
9453 tile5.frameY = (short)style;
9454 long num3 = 0L;
9455 tile5.frameX = (short)num3;
9456 tile5.type = type;
9457 int num4 = 1;
9458 Tile tile6;
9459 tile6.active(num4 != 0);
9460 tile6.frameY = (short)num4;
9461 long num5 = 0L;
9462 tile6.frameX = (short)num5;
9463 tile6.type = type;
9464 }
9465 }
9466 }
9467
9468 // Token: 0x06002D6C RID: 11628 RVA: 0x001CDB24 File Offset: 0x001CBD24
9469 public static void Check1x2Top(int x, int j, ushort type)
9470 {
9471 int num = 1;
9472 if (num == 0)
9473 {
9474 }
9475 if (num == 0)
9476 {
9477 if (num == 0)
9478 {
9479 }
9480 Tile tile;
9481 short frameY = tile.frameY;
9482 return;
9483 }
9484 }
9485
9486 // Token: 0x06002D6D RID: 11629 RVA: 0x001CDC78 File Offset: 0x001CBE78
9487 public static bool PlaceSmallPile(int i, int j, int X, int Y, ushort type = 185)
9488 {
9489 /*
9490An exception occurred when decompiling this method (06002D6D)
9491
9492ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::PlaceSmallPile(System.Int32,System.Int32,System.Int32,System.Int32,System.UInt16)
9493
9494 ---> System.Exception: Basic block has to end with unconditional control flow.
9495{
9496 IL_0045:
9497 stloc:int32(var_12_46, ldc.i4:int32(1))
9498 stloc:int32(var_13_49, ldc.i4:int32(1))
9499 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11), ldloc:int32[exp:bool](var_12_46))
9500 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11), ldloc:int32[exp:int16](X))
9501 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11), ldloc:int32[exp:int16](X))
9502 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11), ldloc:int32[exp:uint16](Y))
9503 stloc:int32(var_15_6D, ldc.i4:int32(1))
9504 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:bool](var_15_6D))
9505 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:int16](X))
9506 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14), ldloc:int32[exp:int16](X))
9507 stloc:bool(var_16_90, call:bool(WorldGen::SolidTile2, ldloc:int32(var_13_49), ldloc:int32(X)))
9508 stloc:bool(var_18_99, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_17)))
9509 stloc:int32(var_20_9C, ldc.i4:int32(1))
9510 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19), ldloc:int32[exp:bool](var_20_9C))
9511 callsetter:int16(Tile::set_frameY, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19), ldloc:int32[exp:int16](X))
9512 callsetter:int16(Tile::set_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19), ldloc:int32[exp:int16](j))
9513 callsetter:uint16(Tile::set_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19), ldloc:int32[exp:uint16](Y))
9514}
9515
9516 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
9517 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
9518 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
9519 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
9520 --- End of inner exception stack trace ---
9521 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
9522 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
9523*/;
9524 }
9525
9526 // Token: 0x06002D6E RID: 11630 RVA: 0x001CDD44 File Offset: 0x001CBF44
9527 public static void CheckPile(int i, int y)
9528 {
9529 if (!true)
9530 {
9531 }
9532 Tile tile;
9533 short frameY = tile.frameY;
9534 ushort num;
9535 WorldGen.Check2x1(i, y, num);
9536 }
9537
9538 // Token: 0x06002D6F RID: 11631 RVA: 0x001CDDA4 File Offset: 0x001CBFA4
9539 public static void Check2x1(int i, int y, ushort type)
9540 {
9541 int num = 1;
9542 if (num == 0)
9543 {
9544 }
9545 if (num == 0)
9546 {
9547 if (num == 0)
9548 {
9549 }
9550 Tile tile;
9551 short frameX = tile.frameX;
9552 Tile tile2;
9553 short frameY = tile2.frameY;
9554 Tile tile3;
9555 short frameX2 = tile3.frameX;
9556 Tile tile4;
9557 short frameX3 = tile4.frameX;
9558 Tile tile5;
9559 ushort type2 = tile5.type;
9560 Tile tile6;
9561 ushort type3 = tile6.type;
9562 return;
9563 }
9564 }
9565
9566 // Token: 0x06002D70 RID: 11632 RVA: 0x001CE42C File Offset: 0x001CC62C
9567 public static void Place2x1(int x, int y, ushort type, int style = 0)
9568 {
9569 int num = 1;
9570 if (num == 0)
9571 {
9572 }
9573 bool flag = WorldGen.SolidTile2(x, y);
9574 if (num == 0)
9575 {
9576 }
9577 bool flag2 = WorldGen.SolidTile2(0, y);
9578 if (num == 0)
9579 {
9580 }
9581 Tile tile;
9582 bool flag3 = tile.active();
9583 if (num == 0)
9584 {
9585 }
9586 Tile tile2;
9587 bool flag4 = tile2.active();
9588 if (num == 0)
9589 {
9590 }
9591 Tile tile3;
9592 bool flag5 = tile3.active();
9593 if (num == 0)
9594 {
9595 }
9596 Tile tile4;
9597 bool flag6 = tile4.active();
9598 if (num == 0)
9599 {
9600 }
9601 Tile tile5;
9602 ushort type2 = tile5.type;
9603 if (num != 0)
9604 {
9605 if (num == 0)
9606 {
9607 }
9608 Tile tile6;
9609 ushort type3 = tile6.type;
9610 if (num != 0)
9611 {
9612 if (num == 0)
9613 {
9614 }
9615 Tile tile7;
9616 bool flag7 = tile7.active();
9617 if (num == 0)
9618 {
9619 }
9620 Tile tile8;
9621 bool flag8 = tile8.active();
9622 if (num == 0)
9623 {
9624 }
9625 int num2 = 1;
9626 Tile tile9;
9627 tile9.active(num2 != 0);
9628 long num3 = 0L;
9629 tile9.frameY = (short)num3;
9630 tile9.frameX = (short)style;
9631 tile9.type = type;
9632 int num4 = 1;
9633 Tile tile10;
9634 tile10.active(num4 != 0);
9635 long num5 = 0L;
9636 tile10.frameY = (short)num5;
9637 tile10.frameX = (short)num5;
9638 tile10.type = type;
9639 }
9640 }
9641 }
9642
9643 // Token: 0x06002D71 RID: 11633 RVA: 0x001CE510 File Offset: 0x001CC710
9644 public static void Check4x2(int i, int j, int type)
9645 {
9646 int num = 1;
9647 if (num == 0)
9648 {
9649 }
9650 if (num == 0)
9651 {
9652 if (num == 0)
9653 {
9654 }
9655 Tile tile;
9656 short frameX = tile.frameX;
9657 return;
9658 }
9659 }
9660
9661 // Token: 0x06002D72 RID: 11634 RVA: 0x001CE650 File Offset: 0x001CC850
9662 private static bool OasisPlantWaterCheck(int x, int y, bool boost = false)
9663 {
9664 if (!boost || y != 0)
9665 {
9666 return;
9667 }
9668 }
9669
9670 // Token: 0x06002D73 RID: 11635 RVA: 0x001CE66C File Offset: 0x001CC86C
9671 public static void PlaceOasisPlant(int X, int Y, ushort type = 530)
9672 {
9673 if (!true)
9674 {
9675 }
9677 int num = 9;
9678 int num2 = genRand.Next(num);
9679 }
9680
9681 // Token: 0x06002D74 RID: 11636 RVA: 0x001CE79C File Offset: 0x001CC99C
9682 public static void CheckOasisPlant(int i, int j, int type = 530)
9683 {
9684 int num = 1;
9685 if (num == 0)
9686 {
9687 }
9688 if (num == 0)
9689 {
9690 short frameY = Framing.GetTileSafely(0, j).frameY;
9691 long num2 = 0L;
9692 short num3;
9693 short frameY2 = Framing.GetTileSafely((int)num3, (int)num2).frameY;
9694 return;
9695 }
9696 }
9697
9698 // Token: 0x06002D75 RID: 11637 RVA: 0x001CE8B0 File Offset: 0x001CCAB0
9699 public static void GetCactusType(int tileX, int tileY, int frameX, int frameY, [Out] bool evil, [Out] bool good, [Out] bool crimson)
9700 {
9701 }
9702
9703 // Token: 0x06002D76 RID: 11638 RVA: 0x001CE904 File Offset: 0x001CCB04
9704 public static void GetBiomeInfluence(int startX, int endX, int startY, int endY, [Out] int corruptCount, [Out] int crimsonCount, [Out] int hallowedCount)
9705 {
9706 int num = 1;
9707 if (num == 0)
9708 {
9709 }
9710 Tile tile;
9711 bool isLoaded = tile.IsLoaded;
9712 if (num == 0)
9713 {
9714 }
9715 if (num != 0)
9716 {
9717 }
9718 }
9719
9720 // Token: 0x06002D77 RID: 11639 RVA: 0x001CE924 File Offset: 0x001CCB24
9721 public static void PlaceJunglePlant(int X2, int Y2, ushort type, int styleX, int styleY)
9722 {
9723 }
9724
9725 // Token: 0x06002D78 RID: 11640 RVA: 0x001CEBEC File Offset: 0x001CCDEC
9726 public static void CheckJunglePlant(int i, int j, int type)
9727 {
9728 int num = 1;
9729 if (num == 0)
9730 {
9731 }
9732 if (num == 0)
9733 {
9734 if (num == 0)
9735 {
9736 }
9737 Tile tile;
9738 short frameY = tile.frameY;
9739 if (num == 0)
9740 {
9741 }
9742 Tile tile2;
9743 ushort type2 = tile2.type;
9744 if (num == 0)
9745 {
9746 }
9747 Tile tile3;
9748 ushort type3 = tile3.type;
9749 if (num == 0)
9750 {
9751 }
9752 Tile tile4;
9753 short frameX = tile4.frameX;
9754 return;
9755 }
9756 }
9757
9758 // Token: 0x06002D79 RID: 11641 RVA: 0x001CEDB4 File Offset: 0x001CCFB4
9759 public static void CheckSuper(int x, int y, int type)
9760 {
9761 int num = 1;
9762 if (num == 0)
9763 {
9764 }
9765 if (num != 0)
9766 {
9767 return;
9768 }
9769 if (num == 0)
9770 {
9771 }
9772 }
9773
9774 // Token: 0x06002D7A RID: 11642 RVA: 0x001CEF74 File Offset: 0x001CD174
9775 public static void Check2x2(int i, int j, int type)
9776 {
9777 int num = 1;
9778 if (num == 0)
9779 {
9780 }
9781 if (num == 0)
9782 {
9783 if (num == 0)
9784 {
9785 }
9786 Tile tile;
9787 short frameX = tile.frameX;
9788 int num2 = 29127;
9789 int num3 = 38;
9790 if (num2 == 0)
9791 {
9792 }
9793 Tile tile2;
9794 short frameY = tile2.frameY;
9795 if (num3 == 0)
9796 {
9797 }
9798 Tile tile3;
9799 short frameX2 = tile3.frameX;
9800 Tile tile4;
9801 short frameX3 = tile4.frameX;
9802 return;
9803 }
9804 }
9805
9806 // Token: 0x06002D7B RID: 11643 RVA: 0x001CF2C4 File Offset: 0x001CD4C4
9807 public static bool CheckBoulderChest(int i, int j)
9808 {
9809 if (!true)
9810 {
9811 }
9812 Tile tile;
9813 short frameX = tile.frameX;
9814 int num = 29127;
9815 Tile tile2;
9816 short frameY = tile2.frameY;
9817 if (35 == 0)
9818 {
9819 }
9820 if (num == 0)
9821 {
9822 }
9823 if (num == 0)
9824 {
9825 }
9826 bool flag;
9827 return flag;
9828 }
9829
9830 // Token: 0x06002D7C RID: 11644 RVA: 0x001CF2FC File Offset: 0x001CD4FC
9831 public static bool IsAContainer(Tile t)
9832 {
9833 /*
9834An exception occurred when decompiling this method (06002D7C)
9835
9836ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsAContainer(Terraria.Tile)
9837
9838 ---> System.Exception: Basic block has to end with unconditional control flow.
9839{
9840 IL_0011:
9841 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
9842}
9843
9844 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
9845 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
9846 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
9847 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
9848 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
9849 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
9850 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
9851 --- End of inner exception stack trace ---
9852 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
9853 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
9854*/;
9855 }
9856
9857 // Token: 0x06002D7D RID: 11645 RVA: 0x001CF31C File Offset: 0x001CD51C
9858 public static void OreRunner(int i, int j, double strength, int steps, ushort type)
9859 {
9860 if (!true)
9861 {
9862 }
9864 int num = 11;
9865 int num2 = genRand.Next(j, num);
9867 int num3 = 11;
9868 int num4 = genRand2.Next(j, num3);
9869 int num5 = 59;
9870 if (num5 != 0)
9871 {
9872 return;
9873 }
9874 if (num5 == 0)
9875 {
9876 }
9878 int num6 = 11;
9879 int num7 = genRand3.Next(j, num6);
9880 Tile tile;
9881 bool flag = tile.active();
9882 int num8 = 1;
9884 bool netHost = Main.NetHost;
9886 int num9 = 11;
9887 int num10 = genRand4.Next(j, num9);
9888 }
9889
9890 // Token: 0x06002D7E RID: 11646 RVA: 0x001CF3B0 File Offset: 0x001CD5B0
9891 public static void SmashAltar(int i, int j)
9892 {
9893 int num = 1;
9894 if (num == 0)
9895 {
9896 }
9898 if (num == 0)
9899 {
9900 }
9901 if (num != 0)
9902 {
9903 if (num == 0)
9904 {
9905 }
9906 return;
9907 }
9908 }
9909
9910 // Token: 0x06002D7F RID: 11647 RVA: 0x001CF648 File Offset: 0x001CD848
9911 public static void Check3x1(int i, int j, int type)
9912 {
9913 int num = 1;
9914 if (num == 0)
9915 {
9916 }
9917 if (num == 0)
9918 {
9919 if (num == 0)
9920 {
9921 }
9922 Tile tile;
9923 short frameX = tile.frameX;
9924 return;
9925 }
9926 }
9927
9928 // Token: 0x06002D80 RID: 11648 RVA: 0x001CF794 File Offset: 0x001CD994
9929 public static void Check3x2(int i, int j, int type)
9930 {
9931 int num = 1;
9932 if (num == 0)
9933 {
9934 }
9935 if (num != 0)
9936 {
9937 return;
9938 }
9939 if (num == 0)
9940 {
9941 }
9942 Tile tile;
9943 short frameY = tile.frameY;
9944 Tile tile2;
9945 short frameY2 = tile2.frameY;
9946 Tile tile3;
9947 short frameX = tile3.frameX;
9948 }
9949
9950 // Token: 0x06002D81 RID: 11649 RVA: 0x001D02C4 File Offset: 0x001CE4C4
9951 private static int GetDresserItemDrop(int style)
9952 {
9953 return 918;
9954 }
9955
9956 // Token: 0x06002D82 RID: 11650 RVA: 0x001D02DC File Offset: 0x001CE4DC
9957 private static int GetCampfireItemDrop(int style)
9958 {
9959 return 966;
9960 }
9961
9962 // Token: 0x06002D83 RID: 11651 RVA: 0x001D0308 File Offset: 0x001CE508
9963 public static void Check3x4(int i, int j, int type)
9964 {
9965 int num = 1;
9966 if (num == 0)
9967 {
9968 }
9969 if (num == 0)
9970 {
9971 if (num == 0)
9972 {
9973 }
9974 Tile tile;
9975 short frameX = tile.frameX;
9976 Tile tile2;
9977 short frameY = tile2.frameY;
9978 return;
9979 }
9980 }
9981
9982 // Token: 0x06002D84 RID: 11652 RVA: 0x001D0408 File Offset: 0x001CE608
9983 public static void Check5x4(int i, int j, int type)
9984 {
9985 int num = 1;
9986 if (num == 0)
9987 {
9988 }
9989 if (num == 0)
9990 {
9991 if (num == 0)
9992 {
9993 }
9994 Tile tile;
9995 short frameX = tile.frameX;
9996 return;
9997 }
9998 }
9999
10000 // Token: 0x06002D85 RID: 11653 RVA: 0x001D0504 File Offset: 0x001CE704
10001 public static void Check6x3(int i, int j, int type)
10002 {
10003 int num = 1;
10004 if (num == 0)
10005 {
10006 }
10007 if (num == 0)
10008 {
10009 if (num == 0)
10010 {
10011 }
10012 int num2 = 65533;
10013 Tile tile;
10014 short frameX = tile.frameX;
10015 Tile tile2;
10016 short frameY = tile2.frameY;
10017 int num3 = 65533;
10018 if (num3 == 0)
10019 {
10020 }
10021 Tile tile3;
10022 bool flag = tile3.active();
10023 if (num3 == 0)
10024 {
10025 }
10026 Tile tile4;
10027 ushort type2 = tile4.type;
10028 if (num3 == 0)
10029 {
10030 }
10031 Tile tile5;
10032 short frameX2 = tile5.frameX;
10033 if (num3 == 0)
10034 {
10035 }
10036 Tile tile6;
10037 short frameY2 = tile6.frameY;
10038 if (num3 == 0)
10039 {
10040 }
10042 if (num3 == 0)
10043 {
10044 }
10045 Tile tile7;
10046 bool flag3 = tile7.nactive();
10047 if (num3 == 0)
10048 {
10049 }
10050 Tile tile8;
10051 ushort type3 = tile8.type;
10052 if (num3 != 0)
10053 {
10054 if (num3 == 0)
10055 {
10056 }
10057 Tile tile9;
10058 short frameY3 = tile9.frameY;
10059 }
10060 if (num3 == 0)
10061 {
10062 }
10063 int num4 = 65533;
10064 if (num4 == 0)
10065 {
10066 }
10067 Tile tile10;
10068 ushort type4 = tile10.type;
10069 if (num4 == 0)
10070 {
10071 }
10072 Tile tile11;
10073 bool flag4 = tile11.active();
10074 if (num4 == 0)
10075 {
10076 }
10077 long num5 = 0L;
10078 long num6 = 0L;
10079 long num7 = 0L;
10080 WorldGen.KillTile(j, num2, num5 != 0L, num6 != 0L, num7 != 0L);
10081 return;
10082 }
10083 }
10084
10085 // Token: 0x06002D86 RID: 11654 RVA: 0x001D0650 File Offset: 0x001CE850
10086 public static void Place6x3(int x, int y, ushort type, int direction = -1, int style = 0)
10087 {
10088 if (!true)
10089 {
10090 }
10091 Tile tile;
10092 bool flag = tile.active();
10093 bool flag2 = WorldGen.SolidTile2(43143168, x);
10094 Tile tile2;
10095 bool flag3 = tile2.nactive();
10096 Tile tile3;
10097 ushort type2 = tile3.type;
10098 Tile tile4;
10099 short frameY = tile4.frameY;
10100 long num = 0L;
10101 long num2 = 0L;
10102 int num3 = 1;
10103 Tile tile5;
10104 tile5.active(num3 != 0);
10105 tile5.frameY = (short)num2;
10106 tile5.frameX = (short)num;
10107 tile5.type = type;
10108 }
10109
10110 // Token: 0x06002D87 RID: 11655 RVA: 0x001D06BC File Offset: 0x001CE8BC
10111 public static void Place4x2(int x, int y, ushort type, int direction = -1, int style = 0)
10112 {
10113 if (!true)
10114 {
10115 }
10116 int num = 65533;
10117 if (num == 0)
10118 {
10119 }
10120 Tile tile;
10121 bool flag = tile.active();
10122 if (num == 0)
10123 {
10124 }
10125 }
10126
10127 // Token: 0x06002D88 RID: 11656 RVA: 0x001D07A0 File Offset: 0x001CE9A0
10128 public static void ShootFromCannon(int x, int y, int angle, int ammo, int Damage, float KnockBack, int owner, bool fromWire)
10129 {
10130 int num = 162;
10131 int num2 = 281;
10132 if (num == 0)
10133 {
10134 }
10135 if (num == 0)
10136 {
10137 }
10138 bool flag = WorldGen.BunnyCannonCanFire();
10139 if (num == 0)
10140 {
10141 }
10142 int myPlayer = Main.myPlayer;
10143 if (num == 0)
10144 {
10145 }
10146 bool netHost = Main.NetHost;
10147 if (num == 0)
10148 {
10149 }
10150 int myPlayer2 = Main.myPlayer;
10151 if (num == 0)
10152 {
10153 }
10154 if (num2 == 0)
10155 {
10156 }
10157 if (num2 == 0)
10158 {
10159 }
10160 }
10161
10162 // Token: 0x06002D89 RID: 11657 RVA: 0x001D0804 File Offset: 0x001CEA04
10163 public static bool BunnyCannonCanFire()
10164 {
10165 int num = 1;
10166 if (num == 0)
10167 {
10168 }
10169 if (num == 0 || num == 0)
10170 {
10171 }
10172 if (num == 0)
10173 {
10174 }
10175 if (num == 0)
10176 {
10177 }
10178 if (num != 0)
10179 {
10180 return;
10181 }
10182 }
10183
10184 // Token: 0x06002D8A RID: 11658 RVA: 0x001D0830 File Offset: 0x001CEA30
10185 public static void SwitchCannon(int i, int j)
10186 {
10187 int num = 1;
10188 if (num == 0)
10189 {
10190 }
10191 Tile tile;
10192 short frameX = tile.frameX;
10193 Tile tile2;
10194 short frameY = tile2.frameY;
10195 if (num == 0)
10196 {
10197 }
10198 Tile tile3;
10199 short frameY2 = tile3.frameY;
10200 }
10201
10202 // Token: 0x06002D8B RID: 11659 RVA: 0x001D088C File Offset: 0x001CEA8C
10203 public static void CheckCannon(int i, int j, int type)
10204 {
10205 int num = 1;
10206 if (num == 0)
10207 {
10208 }
10209 if (num == 0)
10210 {
10211 if (num == 0)
10212 {
10213 }
10214 Tile tile;
10215 short frameX = tile.frameX;
10216 return;
10217 }
10218 }
10219
10220 // Token: 0x06002D8C RID: 11660 RVA: 0x001D0990 File Offset: 0x001CEB90
10221 public static void PlaceCannon(int x, int y, ushort type, int style = 0)
10222 {
10223 if (!true)
10224 {
10225 }
10226 long num = 2147483644L;
10227 long num2 = 0L;
10228 if (num == 0L)
10229 {
10230 }
10231 Tile tile;
10232 bool flag = tile.active();
10233 if (num == 0L)
10234 {
10235 }
10236 bool flag2 = WorldGen.SolidTile2(0, y);
10237 if (num == 0L)
10238 {
10239 }
10240 int num3 = 1;
10241 Tile tile2;
10242 tile2.active(num3 != 0);
10243 long num4 = 0L;
10244 tile2.frameY = (short)num4;
10245 tile2.frameX = (short)num2;
10246 tile2.type = type;
10247 int num5 = 1;
10248 Tile tile3;
10249 tile3.active(num5 != 0);
10250 long num6 = 0L;
10251 tile3.frameY = (short)num6;
10252 tile3.frameX = (short)num6;
10253 tile3.type = type;
10254 int num7 = 1;
10255 Tile tile4;
10256 tile4.active(num7 != 0);
10257 long num8 = 0L;
10258 tile4.frameY = (short)num8;
10259 tile4.frameX = (short)num8;
10260 tile4.type = type;
10261 int num9 = 1;
10262 Tile tile5;
10263 tile5.active(num9 != 0);
10264 long num10 = 0L;
10265 tile5.frameY = (short)num10;
10266 tile5.frameX = (short)num10;
10267 tile5.type = type;
10268 int num11 = 1;
10269 Tile tile6;
10270 tile6.active(num11 != 0);
10271 int num12 = 18;
10272 tile6.frameY = (short)num12;
10273 tile6.frameX = (short)num2;
10274 tile6.type = type;
10275 int num13 = 1;
10276 Tile tile7;
10277 tile7.active(num13 != 0);
10278 int num14 = 18;
10279 tile7.frameY = (short)num14;
10280 tile7.frameX = (short)num14;
10281 tile7.type = type;
10282 int num15 = 1;
10283 Tile tile8;
10284 tile8.active(num15 != 0);
10285 int num16 = 18;
10286 tile8.frameY = (short)num16;
10287 tile8.frameX = (short)y;
10288 tile8.type = type;
10289 int num17 = 1;
10290 Tile tile9;
10291 tile9.active(num17 != 0);
10292 int num18 = 18;
10293 tile9.frameY = (short)num18;
10294 tile9.frameX = (short)num18;
10295 tile9.type = type;
10296 int num19 = 1;
10297 Tile tile10;
10298 tile10.active(num19 != 0);
10299 int num20 = 36;
10300 tile10.frameY = (short)num20;
10301 tile10.frameX = (short)num2;
10302 tile10.type = type;
10303 int num21 = 1;
10304 Tile tile11;
10305 tile11.active(num21 != 0);
10306 int num22 = 36;
10307 tile11.frameY = (short)num22;
10308 tile11.frameX = (short)num22;
10309 tile11.type = type;
10310 int num23 = 1;
10311 Tile tile12;
10312 tile12.active(num23 != 0);
10313 int num24 = 36;
10314 tile12.frameY = (short)num24;
10315 tile12.frameX = (short)y;
10316 tile12.type = type;
10317 int num25 = 1;
10318 Tile tile13;
10319 tile13.active(num25 != 0);
10320 int num26 = 36;
10321 tile13.frameY = (short)num26;
10322 tile13.frameX = (short)num26;
10323 tile13.type = type;
10324 }
10325
10326 // Token: 0x06002D8D RID: 11661 RVA: 0x001D0BBC File Offset: 0x001CEDBC
10327 public static void SwitchMB(int i, int j)
10328 {
10329 int num = 1;
10330 if (num == 0)
10331 {
10332 }
10333 Tile tile;
10334 short frameY = tile.frameY;
10335 if (num == 0)
10336 {
10337 }
10338 Tile tile2;
10339 short frameX = tile2.frameX;
10340 if (num == 0)
10341 {
10342 }
10343 Tile tile3;
10344 bool flag = tile3.active();
10345 }
10346
10347 // Token: 0x06002D8E RID: 11662 RVA: 0x001D0C20 File Offset: 0x001CEE20
10348 public static void SwitchMonolith(int i, int j)
10349 {
10350 int num = 1;
10351 if (num == 0)
10352 {
10353 }
10354 Tile tile;
10355 short frameX = tile.frameX;
10356 if (num == 0)
10357 {
10358 }
10359 Tile tile2;
10360 short frameY = tile2.frameY;
10361 if (num == 0)
10362 {
10363 }
10364 Tile tile3;
10365 bool flag = tile3.active();
10366 }
10367
10368 // Token: 0x06002D8F RID: 11663 RVA: 0x001D0CAC File Offset: 0x001CEEAC
10369 public static void SwitchFountain(int i, int j)
10370 {
10371 int num = 1;
10372 if (num == 0)
10373 {
10374 }
10375 Tile tile;
10376 short frameX = tile.frameX;
10377 if (num == 0)
10378 {
10379 }
10380 Tile tile2;
10381 short frameY = tile2.frameY;
10382 if (num == 0)
10383 {
10384 }
10385 Tile tile3;
10386 bool flag = tile3.active();
10387 }
10388
10389 // Token: 0x06002D90 RID: 11664 RVA: 0x001D0D4C File Offset: 0x001CEF4C
10390 public static void CheckMB(int i, int j, int type)
10391 {
10392 int num = 1;
10393 if (num == 0)
10394 {
10395 }
10396 if (num == 0)
10397 {
10398 if (num == 0)
10399 {
10400 }
10401 Tile tile;
10402 short frameY = tile.frameY;
10403 return;
10404 }
10405 }
10406
10407 // Token: 0x06002D91 RID: 11665 RVA: 0x001D0E94 File Offset: 0x001CF094
10408 public static void PlaceMB(int X, int y, ushort type, int style)
10409 {
10410 if (!true)
10411 {
10412 }
10413 if (65533 == 0)
10414 {
10415 }
10416 Tile tile;
10417 bool flag = tile.active();
10418 }
10419
10420 // Token: 0x06002D92 RID: 11666 RVA: 0x001D0F94 File Offset: 0x001CF194
10421 public static void Place2x2(int x, int y, ushort type, int style)
10422 {
10423 if (!true)
10424 {
10425 }
10426 bool flag = WorldGen.CanPlaceSink(x, y, type, style);
10427 }
10428
10429 // Token: 0x06002D93 RID: 11667 RVA: 0x001D1058 File Offset: 0x001CF258
10430 public static bool PlaceObject(int x, int y, int type, bool mute = false, int style = 0, int alternate = 0, int random = -1, int direction = -1)
10431 {
10432 /*
10433An exception occurred when decompiling this method (06002D93)
10434
10435ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::PlaceObject(System.Int32,System.Int32,System.Int32,System.Boolean,System.Int32,System.Int32,System.Int32,System.Int32)
10436
10437 ---> System.Exception: Basic block has to end with unconditional control flow.
10438{
10439 IL_0006:
10440 call:void(WorldGen::SquareTileFrame, ldc.i4:int32(0), ldloc:int32(x), ldc.i4:int32[exp:bool](16777216))
10441}
10442
10443 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
10444 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
10445 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
10446 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
10447 --- End of inner exception stack trace ---
10448 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
10449 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
10450*/;
10451 }
10452
10453 // Token: 0x06002D94 RID: 11668 RVA: 0x001D107C File Offset: 0x001CF27C
10454 public static bool ShiftTrapdoor(int x, int y, bool playerAbove, int onlyCloseOrOpen = -1)
10455 {
10456 int num = 1;
10458 long num2 = 0L;
10459 ushort type = tileSafely.type;
10460 if (num == 0)
10461 {
10462 }
10463 int num3 = 2;
10464 int num4 = 2;
10465 int num5 = 18;
10466 int num6 = 18;
10467 long num10;
10468 if (WorldGen.GetTopLeftAndStyles(0, (int)num2, num3, num4, num5, num6) == null)
10469 {
10470 if (num == 0)
10471 {
10472 }
10473 bool logicHost = Main.LogicHost;
10474 if (num == 0)
10475 {
10476 }
10477 if (num != 0)
10478 {
10479 if (num == 0)
10480 {
10481 }
10482 Wiring.SkipWire(y, playerAbove ? 1 : 0);
10483 Wiring.SkipWire(y, playerAbove ? 1 : 0);
10484 Wiring.SkipWire(y, playerAbove ? 1 : 0);
10485 Wiring.SkipWire(y, playerAbove ? 1 : 0);
10486 }
10487 if (num == 0)
10488 {
10489 }
10490 int num7 = 1;
10491 bool flag = Collision.EmptyTile(y, playerAbove ? 1 : 0, num7 != 0);
10492 if (num == 0)
10493 {
10494 }
10495 int num8 = 1;
10496 bool flag2 = Collision.EmptyTile(42168472, playerAbove ? 1 : 0, num8 != 0);
10497 long num9 = 0L;
10498 Tile tile;
10499 tile.ClearTile();
10500 num10 = 0L;
10501 int num11 = 387;
10502 Tile tile2;
10503 tile2.type = (ushort)num11;
10504 tile2.frameX = (short)num11;
10505 tile2.frameY = (short)num9;
10506 if (num == 0)
10507 {
10508 }
10509 long num12 = 0L;
10510 long num13 = 0L;
10511 WorldGen.TileFrame(0, (int)num9, num12 != 0L, num13 != 0L);
10512 return false;
10513 }
10514 long num14 = 0L;
10515 long num22;
10516 int num31;
10517 if (num10 != 0L)
10518 {
10519 if (num == 0)
10520 {
10521 }
10522 int num15 = 2;
10523 int num16 = 1;
10524 int num17 = 18;
10525 int num18 = 18;
10527 if (num == 0)
10528 {
10529 }
10530 long num19 = 0L;
10531 int num20 = true.ToDirectionInt();
10532 long num21 = 0L;
10533 bool flag3 = Framing.GetTileSafely(num20, (int)num19).active();
10534 if (num == 0)
10535 {
10536 }
10537 if (num != 0)
10538 {
10539 if (num == 0)
10540 {
10541 }
10542 bool logicHost2 = Main.LogicHost;
10543 if (num == 0)
10544 {
10545 }
10546 if (num != 0)
10547 {
10548 if (num == 0)
10549 {
10550 }
10551 Wiring.SkipWire((int)num21, 42168472);
10552 Wiring.SkipWire((int)num21, 42168472);
10553 Wiring.SkipWire((int)num21, 42168472);
10554 Wiring.SkipWire((int)num21, 42168472);
10555 }
10556 num22 = 0L;
10557 Tile tile3;
10558 bool flag4 = tile3.active();
10559 if (num == 0)
10560 {
10561 }
10562 long num23 = 0L;
10563 if (num != 0)
10564 {
10565 if (num == 0)
10566 {
10567 }
10568 long num24 = 0L;
10569 long num25 = 0L;
10570 long num26 = 0L;
10571 WorldGen.KillTile(0, (int)num23, num24 != 0L, num25 != 0L, num26 != 0L);
10572 }
10573 TileColorCache tileColorCache = Framing.GetTileSafely(0, (int)num23).BlockColorAndCoating();
10574 if (num == 0)
10575 {
10576 }
10577 long num27 = 0L;
10578 int num28 = true.ToInt();
10580 int num29 = 386;
10581 tileSafely2.type = (ushort)num29;
10582 if (num == 0)
10583 {
10584 }
10585 long num30 = 0L;
10586 num31 = true.ToInt();
10587 long num32 = 0L;
10588 long num33 = 0L;
10589 WorldGen.TileFrame(0, (int)num30, num32 != 0L, num33 != 0L);
10590 }
10591 }
10592 if (!false)
10593 {
10594 }
10595 bool logicHost3 = Main.LogicHost;
10596 if (!false)
10597 {
10598 }
10599 if (false)
10600 {
10601 if (!false)
10602 {
10603 }
10604 long num30;
10605 Wiring.SkipWire(num31, (int)num30);
10606 Wiring.SkipWire(num31, (int)num30);
10607 Wiring.SkipWire(num31, (int)num30);
10608 Wiring.SkipWire(num31, (int)num30);
10609 }
10610 if (!false)
10611 {
10612 }
10613 int num34 = 1;
10614 bool flag5 = Collision.EmptyTile(num31, (int)num22, num34 != 0);
10615 if (!false)
10616 {
10617 }
10618 long num35 = 0L;
10619 Tile tile4;
10620 tile4.ClearTile();
10621 int num36 = 387;
10622 Tile tile5;
10623 tile5.type = (ushort)num36;
10624 tile5.frameX = (short)num36;
10625 tile5.frameY = (short)num35;
10626 if (!false)
10627 {
10628 }
10629 long num37 = 0L;
10630 long num38 = 0L;
10631 WorldGen.TileFrame(0, (int)num35, num37 != 0L, num38 != 0L);
10632 return false;
10633 }
10634
10635 // Token: 0x06002D95 RID: 11669 RVA: 0x001D133C File Offset: 0x001CF53C
10636 public static void CheckTrapDoor(int x, int y, int type)
10637 {
10638 int num = 1;
10639 if (num == 0)
10640 {
10641 }
10642 if (num == 0)
10643 {
10644 if (num == 0)
10645 {
10646 }
10647 int num2 = 2;
10648 int num3 = 1;
10649 int num4 = 18;
10650 int num5 = 18;
10652 if (!false)
10653 {
10654 }
10655 return;
10656 }
10657 }
10658
10659 // Token: 0x06002D96 RID: 11670 RVA: 0x001D1400 File Offset: 0x001CF600
10660 public static void CheckTallGate(int x, int y, int type)
10661 {
10662 int num = 1;
10663 if (num == 0)
10664 {
10665 }
10666 if (num == 0)
10667 {
10669 long num2 = 0L;
10670 short frameX = tileSafely.frameX;
10671 long num3 = 0L;
10674 int width = tileData.Width;
10675 int height = tileData.Height;
10676 int coordinateFullHeight2 = tileData.CoordinateFullHeight;
10677 int[] coordinateHeights = tileData.CoordinateHeights;
10678 int[] coordinateHeights2 = tileData.CoordinateHeights;
10679 return;
10680 }
10681 }
10682
10683 // Token: 0x06002D97 RID: 11671 RVA: 0x001D14FC File Offset: 0x001CF6FC
10684 public static bool ShiftTallGate(int x, int y, bool closing, bool forced = false)
10685 {
10686 int num = 388;
10687 ushort type = Framing.GetTileSafely(0, x).type;
10688 long num2 = 0L;
10689 int num3 = 388;
10690 long num4 = 0L;
10693 int width = tileData.Width;
10694 int height = tileData.Height;
10695 int coordinateFullHeight2 = tileData.CoordinateFullHeight;
10696 int[] coordinateHeights = tileData.CoordinateHeights;
10697 int[] coordinateHeights2 = tileData.CoordinateHeights;
10698 int coordinateFullHeight3 = tileData.CoordinateFullHeight;
10699 if (num == 0)
10700 {
10701 }
10702 bool logicHost = Main.LogicHost;
10703 if (num == 0)
10704 {
10705 }
10706 if (num != 0)
10707 {
10708 if (num == 0)
10709 {
10710 }
10711 if (height != 0)
10712 {
10713 return false;
10714 }
10715 }
10716 if (num == 0)
10717 {
10718 }
10719 Tile tile;
10720 tile.type = (ushort)y;
10721 if (num == 0)
10722 {
10723 return;
10724 }
10725 }
10726
10727 // Token: 0x06002D98 RID: 11672 RVA: 0x001D15B4 File Offset: 0x001CF7B4
10728 public static Point GetTopLeftAndStyles(int x, int y, int w, int h, int frameXinc, int frameYinc)
10729 {
10730 /*
10731An exception occurred when decompiling this method (06002D98)
10732
10733ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Point Terraria.WorldGen::GetTopLeftAndStyles(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
10734
10735 ---> System.Exception: Basic block has to end with unconditional control flow.
10736{
10737 IL_000E:
10738 brtrue(IL_0000, logicnot:bool(ldloc:int32[exp:bool](frameXinc)))
10739}
10740
10741 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
10742 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
10743 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
10744 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
10745 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
10746 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
10747 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
10748 --- End of inner exception stack trace ---
10749 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
10750 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
10751*/;
10752 }
10753
10754 // Token: 0x06002D99 RID: 11673 RVA: 0x001D15D4 File Offset: 0x001CF7D4
10755 public static bool CheckTileFrames(int type, int sx, int sy, int w, int h, int styleX, int frameXinc, int styleY, int frameYinc)
10756 {
10757 Tile tile;
10758 bool flag = tile.active();
10759 while (w != 0)
10760 {
10761 }
10762 }
10763
10764 // Token: 0x06002D9A RID: 11674 RVA: 0x001D15F4 File Offset: 0x001CF7F4
10765 public static bool CheckTileAnchors(int sx, int sy, int w, int h, int mode, AnchorType anchor)
10766 {
10767 /*
10768An exception occurred when decompiling this method (06002D9A)
10769
10770ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::CheckTileAnchors(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,Terraria.Enums.AnchorType)
10771
10772 ---> System.Exception: Basic block has to end with unconditional control flow.
10773{
10774 Block_0:
10775 stloc:Tile(var_1_09, call:Tile(Framing::GetTileSafely, ldc.i4:int32(0), ldloc:int32(sx)))
10776 stloc:Tile(var_3_11, call:Tile(Framing::GetTileSafely, ldloc:bool[exp:int32](var_2), ldloc:int32(sx)))
10777 stloc:Tile(var_5_1A, call:Tile(Framing::GetTileSafely, ldloc:bool[exp:int32](var_4), ldloc:int32(h)))
10778 stloc:Tile(var_7_28, call:Tile(Framing::GetTileSafely, ldloc:bool[exp:int32](var_6), ldc.i4:int32(43143168)))
10779}
10780
10781 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
10782 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
10783 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
10784 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
10785 --- End of inner exception stack trace ---
10786 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
10787 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
10788*/;
10789 }
10790
10791 // Token: 0x06002D9B RID: 11675 RVA: 0x001D1630 File Offset: 0x001CF830
10792 public static bool AnchorValid(Tile tileCache, AnchorType anchor)
10793 {
10794 for (;;)
10795 {
10796 int num = 1;
10797 if (num == 0)
10798 {
10799 }
10800 if (num != 0)
10801 {
10802 if (num == 0)
10803 {
10804 }
10805 if (num == 0)
10806 {
10807 if (num == 0)
10808 {
10809 }
10810 if (num == 0)
10811 {
10812 continue;
10813 }
10814 }
10815 }
10816 long num2 = 0L;
10817 if (num == 0)
10818 {
10819 }
10820 if (num != 0)
10821 {
10822 if (num == 0)
10823 {
10824 }
10825 if (num != 0)
10826 {
10827 if (num == 0)
10828 {
10829 }
10830 if (num != 0)
10831 {
10832 }
10833 }
10834 }
10835 if (num == 0)
10836 {
10837 }
10838 if (num == 0)
10839 {
10840 }
10841 bool flag;
10842 if (num2 == 0L)
10843 {
10844 if (num == 0)
10845 {
10846 }
10847 if (num != 0)
10848 {
10850 if (!flag)
10851 {
10852 goto IL_0056;
10853 }
10854 }
10855 if (!flag)
10856 {
10857 }
10858 if (!flag || !flag)
10859 {
10860 }
10861 }
10862 IL_0056:
10863 if (num2 == 0L)
10864 {
10865 if (!flag)
10866 {
10867 }
10868 if (!flag)
10869 {
10870 if (!flag)
10871 {
10872 }
10873 if (flag)
10874 {
10875 }
10876 }
10877 }
10878 if (num2 == 0L)
10879 {
10880 if (!flag)
10881 {
10882 }
10883 if (!flag)
10884 {
10885 return;
10886 }
10887 if (!flag)
10888 {
10889 }
10890 if (flag)
10891 {
10892 return;
10893 }
10894 }
10895 }
10896 }
10897
10898 // Token: 0x06002D9C RID: 11676 RVA: 0x001D16C0 File Offset: 0x001CF8C0
10899 public static bool CanPlaceSink(int x, int y, ushort type, int style)
10900 {
10901 if (!true)
10902 {
10903 }
10904 return int.MinValue != 0;
10905 }
10906
10907 // Token: 0x06002D9D RID: 11677 RVA: 0x001D1708 File Offset: 0x001CF908
10908 public static void Place3x4(int x, int y, ushort type, int style)
10909 {
10910 if (!true)
10911 {
10912 }
10913 if (65533 == 0)
10914 {
10915 }
10916 long num = 0L;
10917 Tile tile;
10918 bool flag = tile.active();
10919 bool flag2 = WorldGen.SolidTile2(0, (int)num);
10920 if (54 == 0)
10921 {
10922 }
10923 int num2 = 1;
10924 Tile tile2;
10925 tile2.active(num2 != 0);
10926 tile2.frameY = (short)y;
10927 tile2.frameX = (short)style;
10928 tile2.type = type;
10929 int num3 = 1;
10930 Tile tile3;
10931 tile3.active(num3 != 0);
10932 tile3.frameY = (short)y;
10933 tile3.frameX = (short)y;
10934 tile3.type = type;
10935 int num4 = 1;
10936 Tile tile4;
10937 tile4.active(num4 != 0);
10938 tile4.frameY = (short)y;
10939 tile4.frameX = (short)y;
10940 tile4.type = type;
10941 }
10942
10943 // Token: 0x06002D9E RID: 11678 RVA: 0x001D17B4 File Offset: 0x001CF9B4
10944 public static void Place5x4(int x, int y, ushort type, int style)
10945 {
10946 if (!true)
10947 {
10948 }
10949 int num = 1;
10950 long num2 = 0L;
10951 Tile tile;
10952 bool flag = tile.active();
10953 bool flag2 = WorldGen.SolidTile2(0, 0);
10954 if (54 == 0)
10955 {
10956 }
10957 int num3 = 1;
10958 Tile tile2;
10959 tile2.active(num3 != 0);
10960 tile2.frameY = (short)y;
10961 tile2.frameX = (short)y;
10962 tile2.type = type;
10963 int num4 = 1;
10964 Tile tile3;
10965 tile3.active(num4 != 0);
10966 tile3.frameY = (short)y;
10967 tile3.frameX = (short)y;
10968 tile3.type = type;
10969 int num5 = 1;
10970 Tile tile4;
10971 tile4.active(num5 != 0);
10972 tile4.frameY = (short)y;
10973 tile4.frameX = (short)num;
10974 tile4.type = type;
10975 int num6 = 1;
10976 Tile tile5;
10977 tile5.active(num6 != 0);
10978 tile5.frameY = (short)y;
10979 tile5.frameX = (short)num2;
10980 tile5.type = type;
10981 int num7 = 1;
10982 Tile tile6;
10983 tile6.active(num7 != 0);
10984 tile6.frameY = (short)y;
10985 tile6.frameX = (short)y;
10986 tile6.type = type;
10987 }
10988
10989 // Token: 0x06002D9F RID: 11679 RVA: 0x001D1898 File Offset: 0x001CFA98
10990 public static void Place3x1(int x, int y, ushort type, int style = 0)
10991 {
10992 if (!true)
10993 {
10994 }
10995 if (65533 == 0)
10996 {
10997 }
10998 Tile tile;
10999 bool flag = tile.active();
11000 }
11001
11002 // Token: 0x06002DA0 RID: 11680 RVA: 0x001D192C File Offset: 0x001CFB2C
11003 public static void Place3x2(int x, int y, ushort type, int style = 0)
11004 {
11005 if (!true)
11006 {
11007 }
11008 int num = 65533;
11009 if (num == 0)
11010 {
11011 }
11012 Tile tile;
11013 bool flag = tile.active();
11014 if (num == 0)
11015 {
11016 }
11017 long num2 = 0L;
11018 Tile tile2;
11019 byte liquid = tile2.liquid;
11020 bool flag2 = WorldGen.SolidTile2(0, (int)num2);
11021 if (!false)
11022 {
11023 }
11024 Tile tile3;
11025 bool flag3 = tile3.nactive();
11026 if (!false)
11027 {
11028 }
11029 Tile tile4;
11030 ushort type2 = tile4.type;
11031 if (false)
11032 {
11033 if (!false)
11034 {
11035 }
11036 Tile tile5;
11037 short frameY = tile5.frameY;
11038 }
11039 }
11040
11041 // Token: 0x06002DA1 RID: 11681 RVA: 0x001D1B54 File Offset: 0x001CFD54
11042 public static void Place2x2Style(int x, int y, ushort type, int style = 0)
11043 {
11044 if (!true)
11045 {
11046 }
11047 }
11048
11049 // Token: 0x06002DA2 RID: 11682 RVA: 0x001D1C3C File Offset: 0x001CFE3C
11050 public static bool NearFriendlyWall(int x, int y)
11051 {
11052 /*
11053An exception occurred when decompiling this method (06002DA2)
11054
11055ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::NearFriendlyWall(System.Int32,System.Int32)
11056
11057 ---> System.Exception: Basic block has to end with unconditional control flow.
11058{
11059 Block_0:
11060 stloc:uint16(var_2_08, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
11061 stloc:uint16(var_4_0F, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
11062 stloc:uint16(var_7_1B, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6)))
11063 stloc:uint16(var_9_24, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_8)))
11064 stloc:uint16(var_11_2D, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_10)))
11065 stloc:uint16(var_14_39, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_12)))
11066 stloc:uint16(var_17_45, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_15)))
11067 stloc:uint16(var_20_51, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_18)))
11068 stloc:uint16(var_23_5D, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_21)))
11069 stloc:uint16(var_25_66, callgetter:uint16(Tile::get_wall, ldloc:Tile[exp:valuetype Terraria.Tile&](var_24)))
11070}
11071
11072 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
11073 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
11074 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
11075 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
11076 --- End of inner exception stack trace ---
11077 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
11078 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
11079*/;
11080 }
11081
11082 // Token: 0x06002DA3 RID: 11683 RVA: 0x001D1CB0 File Offset: 0x001CFEB0
11083 public static void Check2x2Style(int i, int j, int type)
11084 {
11085 int num = 1;
11086 if (num == 0)
11087 {
11088 }
11089 if (num == 0)
11090 {
11091 if (num == 0)
11092 {
11093 }
11094 Tile tile;
11095 short frameY = tile.frameY;
11096 Tile tile2;
11097 short frameX = tile2.frameX;
11098 return;
11099 }
11100 }
11101
11102 // Token: 0x06002DA4 RID: 11684 RVA: 0x001D1E0C File Offset: 0x001D000C
11103 public static void PlacePumpkin(int x, int superY)
11104 {
11105 int num = 1;
11106 if (num == 0)
11107 {
11108 }
11110 int num2 = 6;
11111 int num3 = genRand.Next(num2);
11112 if (num == 0)
11113 {
11114 }
11115 if (num == 0)
11116 {
11117 }
11118 Tile tile;
11119 bool flag = tile.active();
11120 if (num == 0)
11121 {
11122 }
11123 Tile tile2;
11124 ushort type = tile2.type;
11125 if (num == 0)
11126 {
11127 }
11128 Tile tile3;
11129 ushort type2 = tile3.type;
11130 if (num == 0)
11131 {
11132 }
11133 Tile tile4;
11134 ushort type3 = tile4.type;
11135 if (num == 0)
11136 {
11137 }
11138 Tile tile5;
11139 ushort type4 = tile5.type;
11140 if (num == 0)
11141 {
11142 }
11143 Tile tile6;
11144 ushort type5 = tile6.type;
11145 if (num == 0)
11146 {
11147 }
11148 Tile tile7;
11149 short frameY = tile7.frameY;
11150 if (num == 0)
11151 {
11152 }
11153 long num4 = 0L;
11154 Tile tile8;
11155 byte liquid = tile8.liquid;
11156 if (num == 0)
11157 {
11158 }
11159 long num5 = 0L;
11160 bool flag2 = WorldGen.SolidTile(0, (int)num4, num5 != 0L);
11161 if (num == 0)
11162 {
11163 }
11164 Tile tile9;
11165 ushort type6 = tile9.type;
11166 if (num == 0)
11167 {
11168 }
11169 Tile tile10;
11170 ushort type7 = tile10.type;
11171 if (num == 0)
11172 {
11173 }
11174 int num6 = 1;
11175 Tile tile11;
11176 tile11.active(num6 != 0);
11177 tile11.frameY = (short)num3;
11178 long num7 = 0L;
11179 tile11.frameX = (short)num7;
11180 int num8 = 254;
11181 tile11.type = (ushort)num8;
11182 int num9 = 1;
11183 Tile tile12;
11184 tile12.active(num9 != 0);
11185 tile12.frameY = (short)num3;
11186 int num10 = 18;
11187 tile12.frameX = (short)num10;
11188 int num11 = 254;
11189 tile12.type = (ushort)num11;
11190 int num12 = 1;
11191 Tile tile13;
11192 tile13.active(num12 != 0);
11193 long num13 = 0L;
11194 tile13.frameX = (short)num13;
11195 int num14 = 254;
11196 tile13.type = (ushort)num14;
11197 int num15 = 1;
11198 Tile tile14;
11199 tile14.active(num15 != 0);
11200 int num16 = 18;
11201 tile14.frameX = (short)num16;
11202 int num17 = 254;
11203 tile14.type = (ushort)num17;
11204 }
11205
11206 // Token: 0x06002DA5 RID: 11685 RVA: 0x001D1F98 File Offset: 0x001D0198
11207 public static void GrowPumpkin(int i, int j, int type)
11208 {
11209 int num = 1;
11210 if (num == 0)
11211 {
11212 }
11213 if (num != 0)
11214 {
11215 return;
11216 }
11217 if (num == 0)
11218 {
11219 }
11220 Tile tile;
11221 short frameY = tile.frameY;
11222 Tile tile2;
11223 short frameX = tile2.frameX;
11224 }
11225
11226 // Token: 0x06002DA6 RID: 11686 RVA: 0x001D206C File Offset: 0x001D026C
11227 public static void FixHearts()
11228 {
11229 int num = 1;
11230 long num2 = 0L;
11231 if (num == 0)
11232 {
11233 }
11234 long num3 = 0L;
11235 if (num == 0)
11236 {
11237 }
11238 Tile tile;
11239 bool flag = tile.active();
11240 WorldGen.FixHeart((int)num2, (int)num3);
11241 }
11242
11243 // Token: 0x06002DA7 RID: 11687 RVA: 0x001D2098 File Offset: 0x001D0298
11244 public static void DestroyHeart(int i, int j)
11245 {
11246 int num = 1;
11247 if (num == 0)
11248 {
11249 }
11250 int num2 = 1;
11251 if (num == 0)
11252 {
11253 }
11254 if (num2 == 0)
11255 {
11256 }
11257 if (num2 == 0)
11258 {
11259 }
11260 Tile tile;
11261 bool flag = tile.active();
11262 long num3 = 0L;
11263 long num4 = 0L;
11264 long num5 = 0L;
11265 WorldGen.KillTile(i, j, num3 != 0L, num4 != 0L, num5 != 0L);
11266 }
11267
11268 // Token: 0x06002DA8 RID: 11688 RVA: 0x001D20DC File Offset: 0x001D02DC
11269 public static void FixHeart(int i, int j)
11270 {
11271 if (!true)
11272 {
11273 }
11274 Tile tile;
11275 bool flag = tile.active();
11276 long num = 0L;
11277 long num2 = 0L;
11278 long num3 = 0L;
11279 WorldGen.KillTile(i, 0, num != 0L, num2 != 0L, num3 != 0L);
11280 long num4 = 0L;
11281 long num5 = 0L;
11282 long num6 = 0L;
11283 WorldGen.KillTile(0, 0, num4 != 0L, num5 != 0L, num6 != 0L);
11284 int num7;
11285 if (num7 != 0)
11286 {
11287 }
11288 int num8;
11289 if (num8 != 0)
11290 {
11291 return;
11292 }
11293 }
11294
11295 // Token: 0x06002DA9 RID: 11689 RVA: 0x001D2144 File Offset: 0x001D0344
11296 public static void FixChands()
11297 {
11298 int num = 1;
11299 int num2 = 5;
11300 if (num == 0)
11301 {
11302 }
11303 int num3 = 5;
11304 if (num == 0)
11305 {
11306 }
11307 Tile tile;
11308 bool flag = tile.active();
11309 Tile tile2;
11310 ushort type = tile2.type;
11311 Tile tile3;
11312 bool flag2 = tile3.active();
11314 }
11315
11316 // Token: 0x06002DAA RID: 11690 RVA: 0x001D2180 File Offset: 0x001D0380
11317 public static void FixChand(int i, int j)
11318 {
11319 if (!true)
11320 {
11321 }
11322 Tile tile;
11323 ushort type = tile.type;
11324 Tile tile2;
11325 bool flag = tile2.active();
11326 }
11327
11328 // Token: 0x06002DAB RID: 11691 RVA: 0x001D21E0 File Offset: 0x001D03E0
11329 public static void PlaceChand(int x, int y, ushort type, int style = 0)
11330 {
11331 if (!true)
11332 {
11333 }
11334 Tile tile;
11335 bool flag = tile.active();
11336 }
11337
11338 // Token: 0x06002DAC RID: 11692 RVA: 0x001D2390 File Offset: 0x001D0590
11339 public static void CheckChand(int i, int j, int type)
11340 {
11341 int num = 1;
11342 if (num == 0)
11343 {
11344 }
11345 if (num == 0)
11346 {
11347 if (num == 0)
11348 {
11349 }
11350 Tile tile;
11351 short frameX = tile.frameX;
11352 if (36409 == 0)
11353 {
11354 }
11355 Tile tile2;
11356 short frameY = tile2.frameY;
11357 return;
11358 }
11359 }
11360
11361 // Token: 0x06002DAD RID: 11693 RVA: 0x001D253C File Offset: 0x001D073C
11362 public static void Check3x3(int i, int j, int type)
11363 {
11364 int num = 1;
11365 if (num == 0)
11366 {
11367 }
11368 if (num != 0)
11369 {
11370 return;
11371 }
11372 if (num == 0)
11373 {
11374 }
11375 Tile tile;
11376 short frameX = tile.frameX;
11377 }
11378
11379 // Token: 0x06002DAE RID: 11694 RVA: 0x001D2784 File Offset: 0x001D0984
11380 public static void Check2x5(int i, int j, int type)
11381 {
11382 int num = 1;
11383 if (num == 0)
11384 {
11385 }
11386 if (num == 0)
11387 {
11388 if (num == 0)
11389 {
11390 }
11391 Tile tile;
11392 short frameX = tile.frameX;
11393 return;
11394 }
11395 }
11396
11397 // Token: 0x06002DAF RID: 11695 RVA: 0x001D28A0 File Offset: 0x001D0AA0
11398 public static void Check3x5(int i, int j, int type)
11399 {
11400 int num = 1;
11401 if (num == 0)
11402 {
11403 }
11404 if (num == 0)
11405 {
11406 if (num == 0)
11407 {
11408 }
11409 Tile tile;
11410 short frameX = tile.frameX;
11411 return;
11412 }
11413 }
11414
11415 // Token: 0x06002DB0 RID: 11696 RVA: 0x001D2998 File Offset: 0x001D0B98
11416 public static void Check3x6(int i, int j, int type)
11417 {
11418 int num = 1;
11419 if (num == 0)
11420 {
11421 }
11422 if (num == 0)
11423 {
11424 if (num == 0)
11425 {
11426 }
11427 Tile tile;
11428 short frameX = tile.frameX;
11429 return;
11430 }
11431 }
11432
11433 // Token: 0x06002DB1 RID: 11697 RVA: 0x001D2AA4 File Offset: 0x001D0CA4
11434 public static void Place3x3(int x, int y, ushort type, int style = 0)
11435 {
11436 int num = 1;
11437 if (num == 0)
11438 {
11439 }
11440 long num2 = 0L;
11441 Tile tile;
11442 bool flag = tile.active();
11443 if (num == 0)
11444 {
11445 }
11446 bool flag2 = WorldGen.SolidTile2(y, (int)num2);
11447 }
11448
11449 // Token: 0x06002DB2 RID: 11698 RVA: 0x001D2C64 File Offset: 0x001D0E64
11450 public static void PlaceSunflower(int x, int y, ushort type = 27)
11451 {
11452 if (!true)
11453 {
11454 }
11455 int num = 65533;
11456 if (num == 0)
11457 {
11458 }
11459 Tile tile;
11460 bool flag = tile.active();
11461 if (num == 0)
11462 {
11463 }
11464 Tile tile2;
11465 ushort wall = tile2.wall;
11466 }
11467
11468 // Token: 0x06002DB3 RID: 11699 RVA: 0x001D2D44 File Offset: 0x001D0F44
11469 public static void FixSunflowers()
11470 {
11471 int num = 1;
11472 int num2 = 5;
11473 if (num == 0)
11474 {
11475 }
11476 int num3 = 5;
11477 if (num == 0)
11478 {
11479 }
11480 Tile tile;
11481 bool flag = tile.active();
11482 Tile tile2;
11483 ushort type = tile2.type;
11485 }
11486
11487 // Token: 0x06002DB4 RID: 11700 RVA: 0x001D2D78 File Offset: 0x001D0F78
11488 public static void FixSunflower(int i, int j)
11489 {
11490 int num = 1;
11491 if (num == 0)
11492 {
11493 }
11494 Tile tile;
11495 ushort type = tile.type;
11496 if (num == 0)
11497 {
11498 }
11499 Tile tile2;
11500 short frameX = tile2.frameX;
11501 Tile tile3;
11502 short frameY = tile3.frameY;
11504 int num2 = 3;
11505 int num3 = genRand.Next(num2);
11506 if (65533 == 0)
11507 {
11508 }
11509 Tile tile4;
11510 tile4.frameX = (short)j;
11511 }
11512
11513 // Token: 0x06002DB5 RID: 11701 RVA: 0x001D2DD4 File Offset: 0x001D0FD4
11514 public static void CheckSunflower(int i, int j, int type = 27)
11515 {
11516 int num = 1;
11517 if (num == 0)
11518 {
11519 }
11520 if (num == 0)
11521 {
11522 if (num == 0)
11523 {
11524 }
11525 Tile tile;
11526 short frameX = tile.frameX;
11527 Tile tile2;
11528 short frameY = tile2.frameY;
11529 int num2 = 65533;
11530 if (num2 == 0)
11531 {
11532 }
11533 Tile tile3;
11534 short frameX2 = tile3.frameX;
11535 Tile tile4;
11536 bool flag = tile4.nactive();
11537 if (num2 == 0)
11538 {
11539 }
11540 Tile tile5;
11541 ushort type2 = tile5.type;
11542 if (num2 == 0)
11543 {
11544 }
11545 Tile tile6;
11546 short frameY2 = tile6.frameY;
11547 return;
11548 }
11549 }
11550
11551 // Token: 0x06002DB6 RID: 11702 RVA: 0x001D2F28 File Offset: 0x001D1128
11552 public static void CheckDye(int x, int y)
11553 {
11554 int num = 1;
11555 if (num == 0)
11556 {
11557 }
11558 Tile tile;
11559 short frameX = tile.frameX;
11560 if (num == 0)
11561 {
11562 }
11563 }
11564
11565 // Token: 0x06002DB7 RID: 11703 RVA: 0x001D2F8C File Offset: 0x001D118C
11566 public static void CheckRockGolemHead(int x, int y)
11567 {
11568 if (!true)
11569 {
11570 }
11571 bool flag = WorldGen.SolidTileAllowBottomSlope(x, y);
11572 }
11573
11574 // Token: 0x06002DB8 RID: 11704 RVA: 0x001D2FBC File Offset: 0x001D11BC
11575 public static void CheckStinkbugBlocker(int x, int y)
11576 {
11577 short frameX = Framing.GetTileSafely(x, y).frameX;
11578 }
11579
11580 // Token: 0x06002DB9 RID: 11705 RVA: 0x001D2FEC File Offset: 0x001D11EC
11581 public static bool AttemptReorientingStinkbugBlocker(int x, int y, int wall, int style)
11582 {
11583 int num = 1;
11584 wall.m_value = num;
11585 if (num == 0)
11586 {
11587 }
11589 }
11590
11591 // Token: 0x06002DBA RID: 11706 RVA: 0x001D3038 File Offset: 0x001D1238
11592 public static void CheckGnome(int x, int j)
11593 {
11594 int num = 1;
11595 if (num == 0)
11596 {
11597 }
11598 if (num == 0)
11599 {
11601 short frameY = Framing.GetTileSafely(x, j).frameY;
11602 Tile tileSafely2 = Framing.GetTileSafely(x, 43143168);
11603 short frameX = Framing.GetTileSafely(x, j).frameX;
11604 return;
11605 }
11606 }
11607
11608 // Token: 0x06002DBB RID: 11707 RVA: 0x001D30DC File Offset: 0x001D12DC
11609 public static void PlaceGnome(int x, int y, int style)
11610 {
11611 if (!true)
11612 {
11613 }
11614 }
11615
11616 // Token: 0x06002DBC RID: 11708 RVA: 0x001D30EC File Offset: 0x001D12EC
11617 public static void PlaceDye(int x, int y, int style)
11618 {
11619 int num = 1;
11620 if (num == 0)
11621 {
11622 }
11623 Tile tile;
11624 bool isLoaded = tile.IsLoaded;
11625 if (num == 0)
11626 {
11627 }
11628 Tile tile2;
11629 bool isLoaded2 = tile2.IsLoaded;
11630 if (num == 0)
11631 {
11632 }
11633 Tile tile3;
11634 bool flag = tile3.active();
11635 if (num == 0)
11636 {
11637 }
11638 Tile tile4;
11639 ushort type = tile4.type;
11640 if (num == 0)
11641 {
11642 }
11643 Tile tile5;
11644 ushort type2 = tile5.type;
11645 if (num == 0)
11646 {
11647 }
11648 Tile tile6;
11649 ushort type3 = tile6.type;
11650 if (num == 0)
11651 {
11652 }
11653 Tile tile7;
11654 ushort type4 = tile7.type;
11655 if (num == 0)
11656 {
11657 }
11658 Tile tile8;
11659 ushort type5 = tile8.type;
11660 if (num == 0)
11661 {
11662 }
11663 long num2 = 0L;
11664 Tile tile9;
11665 ushort type6 = tile9.type;
11666 if (num == 0)
11667 {
11668 }
11669 long num3 = 0L;
11670 bool flag2 = WorldGen.SolidTile(x, (int)num2, num3 != 0L);
11671 if (num == 0)
11672 {
11673 }
11674 Tile tile10;
11675 bool flag3 = tile10.active();
11676 if (num == 0)
11677 {
11678 }
11679 int num4 = 227;
11680 Tile tile11;
11681 tile11.type = (ushort)num4;
11682 int num5 = 1;
11683 tile11.active(num5 != 0);
11684 long num6 = 0L;
11685 tile11.halfBrick(num6 != 0L);
11686 long num7 = 0L;
11687 tile11.slope((byte)num7);
11688 long num8 = 0L;
11689 tile11.frameY = (short)num8;
11690 tile11.frameX = (short)num8;
11691 }
11692
11693 // Token: 0x06002DBD RID: 11709 RVA: 0x001D32B8 File Offset: 0x001D14B8
11694 public static bool PlacePot(int x, int y, ushort type = 28, int style = 0)
11695 {
11696 int num = 1;
11697 if (num == 0)
11698 {
11699 }
11700 if (num == 0 || num == 0)
11701 {
11702 }
11703 if (65533 == 0)
11704 {
11705 }
11706 Tile tile;
11707 return tile.active();
11708 }
11709
11710 // Token: 0x06002DBE RID: 11710 RVA: 0x001D3378 File Offset: 0x001D1578
11711 public static bool CheckCactus(int i, int j)
11712 {
11713 /*
11714An exception occurred when decompiling this method (06002DBE)
11715
11716ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::CheckCactus(System.Int32,System.Int32)
11717
11718 ---> System.Exception: Basic block has to end with unconditional control flow.
11719{
11720 IL_004D:
11721 stloc:bool(var_17_57, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_15)))
11722 stloc:uint16(var_20_63, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_18)))
11723 stloc:bool(var_24_6F, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_22)))
11724 stloc:uint16(var_27_7B, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_25)))
11725 stloc:bool(var_31_87, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_29)))
11726 stloc:uint16(var_34_93, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_32)))
11727 stloc:bool(var_38_9F, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_36)))
11728 stloc:uint16(var_40_A8, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_39)))
11729 stloc:bool(var_42_B1, call:bool(Tile::nactive, ldloc:Tile[exp:valuetype Terraria.Tile&](var_41)))
11730 stloc:bool(var_44_BA, call:bool(Tile::halfBrick, ldloc:Tile[exp:valuetype Terraria.Tile&](var_43)))
11731 stloc:uint8(var_46_C3, call:uint8(Tile::slope, ldloc:Tile[exp:valuetype Terraria.Tile&](var_45)))
11732 stloc:int64(var_47_C6, ldc.i4:int64(0))
11733 stloc:int64(var_48_C9, ldc.i4:int64(0))
11734 stloc:int64(var_49_CC, ldc.i4:int64(0))
11735 call:void(WorldGen::KillTile, ldc.i4:int32(0), ldloc:int32(i), ldloc:int64[exp:bool](var_47_C6), ldloc:int64[exp:bool](var_48_C9), ldloc:int64[exp:bool](var_49_CC))
11736 stloc:uint16(var_52_E5, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_51)))
11737 stloc:uint16(var_54_EE, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_53)))
11738 stloc:uint16(var_56_F7, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_55)))
11739 stloc:uint16(var_59_103, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_57)))
11740 stloc:bool(var_62_10F, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_60)))
11741 stloc:uint16(var_65_11B, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_63)))
11742 stloc:uint16(var_68_127, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_66)))
11743 stloc:uint16(var_71_133, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_69)))
11744 stloc:uint16(var_74_13F, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_72)))
11745 stloc:uint16(var_77_14B, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_75)))
11746 stloc:bool(var_80_157, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_78)))
11747 stloc:uint16(var_82_160, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_81)))
11748 stloc:bool(var_84_169, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_83)))
11749 stloc:uint16(var_86_172, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_85)))
11750 stloc:bool(var_88_17B, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_87)))
11751 stloc:uint16(var_90_184, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_89)))
11752}
11753
11754 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
11755 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
11756 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
11757 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
11758 --- End of inner exception stack trace ---
11759 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
11760 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
11761*/;
11762 }
11763
11764 // Token: 0x06002DBF RID: 11711 RVA: 0x001D3510 File Offset: 0x001D1710
11765 public static void PlantCactus(int i, int j)
11766 {
11767 int num = 1;
11768 if (num == 0)
11769 {
11770 }
11771 WorldGen.GrowCactus(i, j);
11772 if (num == 0)
11773 {
11774 }
11775 int num2 = WorldGen.genRand.Next(43143168, i);
11776 int num3 = WorldGen.genRand.Next(43143168, j);
11778 }
11779
11780 // Token: 0x06002DC0 RID: 11712 RVA: 0x001D3558 File Offset: 0x001D1758
11781 public static void CheckOrb(int i, int j, int type)
11782 {
11783 if (!true)
11784 {
11785 }
11786 Tile tile;
11787 short frameX = tile.frameX;
11788 Tile tile2;
11789 short frameX2 = tile2.frameX;
11790 Tile tile3;
11791 short frameX3 = tile3.frameX;
11792 Tile tile4;
11793 short frameY = tile4.frameY;
11794 Tile tile5;
11795 bool isLoaded = tile5.IsLoaded;
11796 }
11797
11798 // Token: 0x06002DC1 RID: 11713 RVA: 0x001D36B0 File Offset: 0x001D18B0
11799 public static void CheckPalmTree(int i, int j)
11800 {
11801 if (!true)
11802 {
11803 }
11804 Tile tile;
11805 ushort type = tile.type;
11806 Tile tile2;
11807 bool flag = tile2.active();
11808 Tile tile3;
11809 ushort type2 = tile3.type;
11810 }
11811
11812 // Token: 0x06002DC2 RID: 11714 RVA: 0x001D3784 File Offset: 0x001D1984
11813 public static void CheckTreeWithSettings(int x, int y, WorldGen.CheckTreeSettings settings)
11814 {
11815 if (!true)
11816 {
11817 }
11818 Tile tile;
11819 ushort type = tile.type;
11820 Tile tile2;
11821 bool flag = tile2.active();
11822 Tile tile3;
11823 ushort type2 = tile3.type;
11824 }
11825
11826 // Token: 0x06002DC3 RID: 11715 RVA: 0x001D39FC File Offset: 0x001D1BFC
11827 public static void CheckTree(int i, int j)
11828 {
11829 if (!true)
11830 {
11831 }
11832 Tile tile;
11833 ushort type = tile.type;
11834 Tile tile2;
11835 bool flag = tile2.active();
11836 Tile tile3;
11837 ushort type2 = tile3.type;
11838 }
11839
11840 // Token: 0x06002DC4 RID: 11716 RVA: 0x001D3CD8 File Offset: 0x001D1ED8
11841 public static bool TileIsExposedToAir(int x, int y)
11842 {
11843 int num = 1;
11844 if (num == 0)
11845 {
11846 }
11847 int num2 = 2;
11848 bool flag = WorldGen.InWorld(0, x, num2);
11849 if (num == 0)
11850 {
11851 }
11852 Tile tile;
11853 bool flag2 = tile.active();
11854 if (num == 0)
11855 {
11856 }
11857 if (num == 0)
11858 {
11859 return;
11860 }
11861 if (num == 0)
11862 {
11863 }
11864 if (num == 0)
11865 {
11866 return;
11867 }
11868 }
11869
11870 // Token: 0x06002DC5 RID: 11717 RVA: 0x001D3D14 File Offset: 0x001D1F14
11872 {
11873 /*
11874An exception occurred when decompiling this method (06002DC5)
11875
11876ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::TryKillingTreesAboveIfTheyWouldBecomeInvalid(System.Int32,System.Int32,System.Int32)
11877
11878 ---> System.Exception: Basic block has to end with unconditional control flow.
11879{
11880 IL_002F:
11881 stloc:int64(var_11_30, ldc.i4:int64(0))
11882 stloc:int64(var_12_33, ldc.i4:int64(0))
11883 stloc:int64(var_13_36, ldc.i4:int64(0))
11884 call:void(WorldGen::KillTile, ldc.i4:int32(0), ldloc:int32(i), ldloc:int64[exp:bool](var_11_30), ldloc:int64[exp:bool](var_12_33), ldloc:int64[exp:bool](var_13_36))
11885}
11886
11887 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
11888 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
11889 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
11890 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
11891 --- End of inner exception stack trace ---
11892 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
11893 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
11894*/;
11895 }
11896
11897 // Token: 0x06002DC6 RID: 11718 RVA: 0x001D3D6C File Offset: 0x001D1F6C
11898 public static void Convert(int i, int j, int conversionType, int size = 4)
11899 {
11900 }
11901
11902 // Token: 0x06002DC7 RID: 11719 RVA: 0x001D441C File Offset: 0x001D261C
11903 public static void CactusFrame(int i, int j)
11904 {
11905 int num = 1;
11906 if (num == 0)
11907 {
11908 }
11909 bool flag = WorldGen.CheckCactus(i, j);
11910 if (num == 0)
11911 {
11912 }
11913 Tile tile;
11914 bool flag2 = tile.active();
11915 if (num == 0)
11916 {
11917 }
11918 Tile tile2;
11919 ushort type = tile2.type;
11920 if (num == 0)
11921 {
11922 }
11923 Tile tile3;
11924 bool isLoaded = tile3.IsLoaded;
11925 if (num == 0)
11926 {
11927 }
11928 Tile tile4;
11929 bool flag3 = tile4.active();
11930 if (num == 0)
11931 {
11932 }
11933 Tile tile5;
11934 ushort type2 = tile5.type;
11935 if (num == 0)
11936 {
11937 }
11938 Tile tile6;
11939 bool flag4 = tile6.active();
11940 Tile tile7;
11941 ushort type3 = tile7.type;
11942 Tile tile8;
11943 bool flag5 = tile8.active();
11944 Tile tile9;
11945 ushort type4 = tile9.type;
11946 Tile tile10;
11947 bool flag6 = tile10.active();
11948 Tile tile11;
11949 ushort type5 = tile11.type;
11950 Tile tile12;
11951 bool flag7 = tile12.active();
11952 Tile tile13;
11953 ushort type6 = tile13.type;
11954 }
11955
11956 // Token: 0x06002DC8 RID: 11720 RVA: 0x001D466C File Offset: 0x001D286C
11957 public static void GrowCactus(int i, int j)
11958 {
11959 int num = 1;
11960 if (num == 0)
11961 {
11962 }
11963 Tile tile;
11964 bool flag = tile.nactive();
11965 if (num == 0)
11966 {
11967 }
11968 Tile tile2;
11969 bool flag2 = tile2.halfBrick();
11970 if (num == 0)
11971 {
11972 }
11973 byte liquid2;
11974 if (43143168 != 0)
11975 {
11976 if (num == 0)
11977 {
11978 }
11979 Tile tile3;
11980 byte liquid = tile3.liquid;
11981 if (num == 0)
11982 {
11983 }
11984 Tile tile4;
11985 ushort type = tile4.type;
11986 if (num == 0)
11987 {
11988 }
11989 Tile tile5;
11990 ushort type2 = tile5.type;
11991 if (num == 0)
11992 {
11993 }
11994 Tile tile6;
11995 ushort type3 = tile6.type;
11996 if (num == 0)
11997 {
11998 }
11999 Tile tile7;
12000 ushort type4 = tile7.type;
12001 if (num == 0)
12002 {
12003 }
12004 Tile tile8;
12005 ushort type5 = tile8.type;
12006 if (num == 0)
12007 {
12008 }
12009 if (num == 0)
12010 {
12011 }
12012 if (num == 0)
12013 {
12014 }
12015 if (num == 0)
12016 {
12017 }
12018 Tile tile9;
12020 return;
12021 }
12022 if (liquid2 == 0)
12023 {
12024 }
12025 Tile tile10;
12026 byte b = tile10.slope();
12027 }
12028
12029 // Token: 0x06002DC9 RID: 11721 RVA: 0x001D4AE0 File Offset: 0x001D2CE0
12030 public static void CheckPot(int i, int j, int type = 28)
12031 {
12032 int num = 1;
12033 if (num == 0)
12034 {
12035 }
12036 if (num == 0)
12037 {
12038 if (num == 0)
12039 {
12040 }
12041 Tile tile;
12042 short frameX = tile.frameX;
12043 Tile tile2;
12044 short frameY = tile2.frameY;
12045 return;
12046 }
12047 }
12048
12049 // Token: 0x06002DCA RID: 11722 RVA: 0x001D4D1C File Offset: 0x001D2F1C
12050 private static void SpawnThingsFromPot(int i, int j, int x2, int y2, int style)
12051 {
12052 if (!true)
12053 {
12054 }
12057 }
12058
12059 // Token: 0x06002DCB RID: 11723 RVA: 0x001D5258 File Offset: 0x001D3458
12060 public static int PlaceChest(int x, int y, ushort type = 21, bool notNearOtherChests = false, int style = 0)
12061 {
12062 if (!true)
12063 {
12064 }
12065 Tile tile;
12066 ushort type2 = tile.type;
12067 Tile tile2;
12068 ushort type3 = tile2.type;
12069 long num = 0L;
12070 bool flag = Chest.NearOtherChests(42168200, x);
12071 int num2 = Chest.CreateChest(42187544, (int)type, (int)num);
12074 return 34;
12075 }
12076
12077 // Token: 0x06002DCC RID: 11724 RVA: 0x001D52B4 File Offset: 0x001D34B4
12078 public static void PlaceChestDirect(int x, int y, ushort type, int style, int id)
12079 {
12080 int num = 1;
12081 if (num == 0)
12082 {
12083 }
12084 if (num == 0)
12085 {
12086 }
12087 int num2 = 1;
12088 Tile tile;
12089 tile.active(num2 != 0);
12090 long num3 = 0L;
12091 tile.frameY = (short)num3;
12092 tile.frameX = (short)style;
12093 tile.type = type;
12094 long num4 = 0L;
12095 tile.halfBrick(num4 != 0L);
12096 int num5 = 1;
12097 Tile tile2;
12098 tile2.active(num5 != 0);
12099 long num6 = 0L;
12100 tile2.frameY = (short)num6;
12101 tile2.type = type;
12102 long num7 = 0L;
12103 tile2.halfBrick(num7 != 0L);
12104 int num8 = 1;
12105 Tile tile3;
12106 tile3.active(num8 != 0);
12107 int num9 = 18;
12108 tile3.frameY = (short)num9;
12109 tile3.frameX = (short)style;
12110 tile3.type = type;
12111 long num10 = 0L;
12112 tile3.halfBrick(num10 != 0L);
12113 int num11 = 1;
12114 Tile tile4;
12115 tile4.active(num11 != 0);
12116 int num12 = 18;
12117 tile4.frameY = (short)num12;
12118 tile4.type = type;
12119 long num13 = 0L;
12120 tile4.halfBrick(num13 != 0L);
12121 }
12122
12123 // Token: 0x06002DCD RID: 11725 RVA: 0x001D5384 File Offset: 0x001D3584
12124 public static void PlaceDresserDirect(int x, int y, ushort type, int style, int id)
12125 {
12126 int num = 1;
12127 if (num == 0)
12128 {
12129 }
12130 if (num == 0)
12131 {
12132 }
12133 int num2 = 1;
12134 Tile tile;
12135 tile.active(num2 != 0);
12136 long num3 = 0L;
12137 tile.frameY = (short)num3;
12138 tile.frameX = (short)id;
12139 tile.type = type;
12140 int num4 = 1;
12141 Tile tile2;
12142 tile2.active(num4 != 0);
12143 long num5 = 0L;
12144 tile2.frameY = (short)num5;
12145 tile2.frameX = (short)style;
12146 tile2.type = type;
12147 int num6 = 1;
12148 Tile tile3;
12149 tile3.active(num6 != 0);
12150 long num7 = 0L;
12151 tile3.frameY = (short)num7;
12152 tile3.type = type;
12153 int num8 = 1;
12154 Tile tile4;
12155 tile4.active(num8 != 0);
12156 int num9 = 18;
12157 tile4.frameY = (short)num9;
12158 tile4.frameX = (short)id;
12159 tile4.type = type;
12160 int num10 = 1;
12161 Tile tile5;
12162 tile5.active(num10 != 0);
12163 int num11 = 18;
12164 tile5.frameY = (short)num11;
12165 tile5.frameX = (short)style;
12166 tile5.type = type;
12167 int num12 = 1;
12168 Tile tile6;
12169 tile6.active(num12 != 0);
12170 int num13 = 18;
12171 tile6.frameY = (short)num13;
12172 tile6.type = type;
12173 }
12174
12175 // Token: 0x06002DCE RID: 11726 RVA: 0x001D5478 File Offset: 0x001D3678
12176 public static void CheckChest(int i, int j, int type)
12177 {
12178 int num = 1;
12179 if (num == 0)
12180 {
12181 }
12182 if (num == 0)
12183 {
12184 if (num == 0)
12185 {
12186 }
12187 Tile tile;
12188 short frameX = tile.frameX;
12189 Tile tile2;
12190 short frameY = tile2.frameY;
12191 int num2 = 65533;
12192 if (num2 == 0)
12193 {
12194 }
12195 Tile tile3;
12196 short frameX2 = tile3.frameX;
12197 Tile tile4;
12198 bool flag = tile4.active();
12199 if (num2 == 0)
12200 {
12201 }
12202 Tile tile5;
12203 ushort type2 = tile5.type;
12204 if (num2 == 0)
12205 {
12206 }
12207 Tile tile6;
12208 short frameY2 = tile6.frameY;
12209 return;
12210 }
12211 }
12212
12213 // Token: 0x06002DCF RID: 11727 RVA: 0x001D55A8 File Offset: 0x001D37A8
12214 private static int GetChestItemDrop(int x, int y, int type)
12215 {
12216 /*
12217An exception occurred when decompiling this method (06002DCF)
12218
12219ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::GetChestItemDrop(System.Int32,System.Int32,System.Int32)
12220
12221 ---> System.Exception: Basic block has to end with unconditional control flow.
12222{
12223 IL_0003:
12224 stloc:int16(var_1_09, callgetter:int16(Tile::get_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
12225}
12226
12227 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12228 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12229 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12230 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12231 --- End of inner exception stack trace ---
12232 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12233 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12234*/;
12235 }
12236
12237 // Token: 0x06002DD0 RID: 11728 RVA: 0x001D55C0 File Offset: 0x001D37C0
12238 public static bool PlaceActuator(int i, int j)
12239 {
12240 if (!true)
12241 {
12242 }
12243 Tile tile;
12244 return tile.actuator();
12245 }
12246
12247 // Token: 0x06002DD1 RID: 11729 RVA: 0x001D55EC File Offset: 0x001D37EC
12248 public static bool KillActuator(int i, int j)
12249 {
12250 if (!true)
12251 {
12252 }
12253 Tile tile;
12254 bool flag = tile.actuator();
12255 if (!true)
12256 {
12257 }
12258 long num = 0L;
12259 Tile tile2;
12260 tile2.actuator(num != 0L);
12261 bool logicHost = Main.LogicHost;
12262 return true;
12263 }
12264
12265 // Token: 0x06002DD2 RID: 11730 RVA: 0x001D5628 File Offset: 0x001D3828
12266 public static bool PlaceWire(int i, int j)
12267 {
12268 if (!true)
12269 {
12270 }
12271 Tile tile;
12272 return tile.wire();
12273 }
12274
12275 // Token: 0x06002DD3 RID: 11731 RVA: 0x001D5654 File Offset: 0x001D3854
12276 public static bool KillWire(int i, int j)
12277 {
12278 if (!true)
12279 {
12280 }
12281 Tile tile;
12282 bool flag = tile.wire();
12283 if (!true)
12284 {
12285 }
12286 long num = 0L;
12287 Tile tile2;
12288 tile2.wire(num != 0L);
12289 bool logicHost = Main.LogicHost;
12290 return true;
12291 }
12292
12293 // Token: 0x06002DD4 RID: 11732 RVA: 0x001D5690 File Offset: 0x001D3890
12294 public static bool PlaceWire2(int i, int j)
12295 {
12296 if (!true)
12297 {
12298 }
12299 Tile tile;
12300 return tile.wire2();
12301 }
12302
12303 // Token: 0x06002DD5 RID: 11733 RVA: 0x001D56BC File Offset: 0x001D38BC
12304 public static bool KillWire2(int i, int j)
12305 {
12306 if (!true)
12307 {
12308 }
12309 Tile tile;
12310 bool flag = tile.wire2();
12311 if (!true)
12312 {
12313 }
12314 long num = 0L;
12315 Tile tile2;
12316 tile2.wire2(num != 0L);
12317 bool logicHost = Main.LogicHost;
12318 return true;
12319 }
12320
12321 // Token: 0x06002DD6 RID: 11734 RVA: 0x001D56F8 File Offset: 0x001D38F8
12322 public static bool PlaceWire3(int i, int j)
12323 {
12324 if (!true)
12325 {
12326 }
12327 Tile tile;
12328 return tile.wire3();
12329 }
12330
12331 // Token: 0x06002DD7 RID: 11735 RVA: 0x001D5724 File Offset: 0x001D3924
12332 public static bool KillWire3(int i, int j)
12333 {
12334 if (!true)
12335 {
12336 }
12337 Tile tile;
12338 bool flag = tile.wire3();
12339 if (!true)
12340 {
12341 }
12342 long num = 0L;
12343 Tile tile2;
12344 tile2.wire3(num != 0L);
12345 bool logicHost = Main.LogicHost;
12346 return true;
12347 }
12348
12349 // Token: 0x06002DD8 RID: 11736 RVA: 0x001D5760 File Offset: 0x001D3960
12350 public static bool PlaceWire4(int i, int j)
12351 {
12352 if (!true)
12353 {
12354 }
12355 Tile tile;
12356 return tile.wire4();
12357 }
12358
12359 // Token: 0x06002DD9 RID: 11737 RVA: 0x001D578C File Offset: 0x001D398C
12360 public static bool KillWire4(int i, int j)
12361 {
12362 if (!true)
12363 {
12364 }
12365 Tile tile;
12366 bool flag = tile.wire4();
12367 if (!true)
12368 {
12369 }
12370 long num = 0L;
12371 Tile tile2;
12372 tile2.wire4(num != 0L);
12373 bool logicHost = Main.LogicHost;
12374 return true;
12375 }
12376
12377 // Token: 0x06002DDA RID: 11738 RVA: 0x001D57C8 File Offset: 0x001D39C8
12378 public static bool IsFitToPlaceFlowerIn(int x, int y, int typeAttemptedToPlace)
12379 {
12380 /*
12381An exception occurred when decompiling this method (06002DDA)
12382
12383ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsFitToPlaceFlowerIn(System.Int32,System.Int32,System.Int32)
12384
12385 ---> System.Exception: Basic block has to end with unconditional control flow.
12386{
12387 IL_0003:
12388 stloc:bool(var_1_09, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
12389}
12390
12391 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12392 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12393 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12394 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12395 --- End of inner exception stack trace ---
12396 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12397 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12398*/;
12399 }
12400
12401 // Token: 0x06002DDB RID: 11739 RVA: 0x001D57E4 File Offset: 0x001D39E4
12402 private static bool SeaOatWaterCheck(int x, int y)
12403 {
12404 if (!true)
12405 {
12406 return;
12407 }
12408 }
12409
12410 // Token: 0x06002DDC RID: 11740 RVA: 0x001D57FC File Offset: 0x001D39FC
12411 private static bool PlantSeaOat(int x, int y)
12412 {
12413 /*
12414An exception occurred when decompiling this method (06002DDC)
12415
12416ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::PlantSeaOat(System.Int32,System.Int32)
12417
12418 ---> System.Exception: Basic block has to end with unconditional control flow.
12419{
12420 IL_001B:
12421 stloc:uint16(var_7_22, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6)))
12422 stloc:bool(var_8_2B, call:bool(WorldGen::SeaOatWaterCheck, ldc.i4:int32(0), ldloc:int32(x)))
12423 stloc:UnifiedRandom(var_13_42, callgetter:UnifiedRandom(WorldGen::get_genRand))
12424 stloc:int32(var_14_45, ldc.i4:int32(5))
12425 stloc:int32(var_15_50, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_13_42), ldloc:int32(var_14_45)))
12426 stloc:bool(var_18_5D, callgetter:bool(Main::get_NetHost))
12427}
12428
12429 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12430 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12431 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12432 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12433 --- End of inner exception stack trace ---
12434 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12435 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12436*/;
12437 }
12438
12439 // Token: 0x06002DDD RID: 11741 RVA: 0x001D5870 File Offset: 0x001D3A70
12440 private static bool CheckSeaOat(int x, int y)
12441 {
12442 if (!true)
12443 {
12444 }
12445 bool flag = WorldGen.SeaOatWaterCheck(0, x);
12446 return true;
12447 }
12448
12449 // Token: 0x06002DDE RID: 11742 RVA: 0x001D58AC File Offset: 0x001D3AAC
12450 private static bool GrowSeaOat(int x, int y)
12451 {
12452 /*
12453An exception occurred when decompiling this method (06002DDE)
12454
12455ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GrowSeaOat(System.Int32,System.Int32)
12456
12457 ---> System.Exception: Basic block has to end with unconditional control flow.
12458{
12459 IL_0011:
12460 stloc:bool(var_6_19, callgetter:bool(Main::get_NetHost))
12461}
12462
12463 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12464 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12465 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12466 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12467 --- End of inner exception stack trace ---
12468 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12469 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12470*/;
12471 }
12472
12473 // Token: 0x06002DDF RID: 11743 RVA: 0x001D58D8 File Offset: 0x001D3AD8
12474 private static int GetWaterDepth(int x, int y)
12475 {
12476 /*
12477An exception occurred when decompiling this method (06002DDF)
12478
12479ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::GetWaterDepth(System.Int32,System.Int32)
12480
12481 ---> System.Exception: Basic block has to end with unconditional control flow.
12482{
12483 IL_0024:
12484 stloc:int64(var_6_25, ldc.i4:int64(0))
12485 stloc:bool(var_7_34, call:bool(WorldGen::SolidTile, ldc.i4:int32(0), ldc.i4:int32(43143168), ldloc:int64[exp:bool](var_6_25)))
12486}
12487
12488 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12489 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12490 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12491 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12492 --- End of inner exception stack trace ---
12493 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12494 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12495*/;
12496 }
12497
12498 // Token: 0x06002DE0 RID: 11744 RVA: 0x001D591C File Offset: 0x001D3B1C
12499 private static int CountGrowingPlantTiles(int x, int y, int range, int type)
12500 {
12501 /*
12502An exception occurred when decompiling this method (06002DE0)
12503
12504ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::CountGrowingPlantTiles(System.Int32,System.Int32,System.Int32,System.Int32)
12505
12506 ---> System.Exception: Basic block has to end with unconditional control flow.
12507{
12508 IL_0014:
12509 stloc:uint16(var_6_1B, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_5)))
12510}
12511
12512 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12513 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12514 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12515 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12516 --- End of inner exception stack trace ---
12517 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12518 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12519*/;
12520 }
12521
12522 // Token: 0x06002DE1 RID: 11745 RVA: 0x001D5948 File Offset: 0x001D3B48
12523 private static bool PlaceBamboo(int x, int y)
12524 {
12525 if (!true)
12526 {
12527 }
12529 int num = 1;
12530 int num2 = 21;
12531 int num3 = genRand.Next(num, num2);
12532 Tile tile;
12533 ushort wall = tile.wall;
12534 Tile tile2;
12535 ushort type = tile2.type;
12536 int waterDepth = WorldGen.GetWaterDepth(0, x);
12537 int num4 = 5;
12538 int num5 = 571;
12540 long num7 = 0L;
12541 long num8 = 0L;
12542 bool flag = WorldGen.SolidTile(0, (int)num7, num8 != 0L);
12544 int num9 = 1;
12545 int num10 = 21;
12546 int num11 = genRand2.Next(num9, num10);
12548 int num12 = 40;
12549 int num13 = 61;
12550 int num14 = genRand3.Next(num12, num13);
12551 int num15 = 1;
12552 Tile tile3;
12553 tile3.active(num15 != 0);
12554 int num16 = 571;
12555 tile3.type = (ushort)num16;
12556 long num17 = 0L;
12557 tile3.frameX = (short)num17;
12558 long num18 = 0L;
12559 tile3.frameY = (short)num18;
12560 long num19 = 0L;
12561 tile3.slope((byte)num19);
12562 long num20 = 0L;
12563 tile3.halfBrick(num20 != 0L);
12564 int num21 = 1;
12565 WorldGen.SquareTileFrame(0, x, num21 != 0);
12566 return false;
12567 }
12568
12569 // Token: 0x06002DE2 RID: 11746 RVA: 0x001D5A48 File Offset: 0x001D3C48
12570 public static void CheckBamboo(int x, int y)
12571 {
12572 int num = 1;
12573 if (num == 0)
12574 {
12575 }
12576 Tile tile;
12577 bool isLoaded = tile.IsLoaded;
12578 if (num == 0)
12579 {
12580 }
12581 Tile tile2;
12582 bool isLoaded2 = tile2.IsLoaded;
12583 if (num == 0)
12584 {
12585 }
12586 Tile tile3;
12587 bool isLoaded3 = tile3.IsLoaded;
12588 }
12589
12590 // Token: 0x06002DE3 RID: 11747 RVA: 0x001D5B14 File Offset: 0x001D3D14
12591 public static void PlaceUnderwaterPlant(ushort type, int x, int y)
12592 {
12593 int num = 1;
12594 if (num == 0)
12595 {
12596 }
12597 long num2 = 0L;
12598 bool flag = WorldGen.CanUnderwaterPlantGrowHere(type, x, y, num2 != 0L);
12600 long num3 = 0L;
12601 tileSafely.slope((byte)num3);
12602 long num4 = 0L;
12603 tileSafely.halfBrick(num4 != 0L);
12605 int num5 = 1;
12606 tileSafely2.active(num5 != 0);
12607 tileSafely2.type = type;
12608 long num6 = 0L;
12609 tileSafely2.frameX = (short)num6;
12610 long num7 = 0L;
12611 tileSafely2.frameY = (short)num7;
12612 long num8 = 0L;
12613 tileSafely2.slope((byte)num8);
12614 long num9 = 0L;
12615 tileSafely2.halfBrick(num9 != 0L);
12616 if (num == 0)
12617 {
12618 }
12619 int num10 = 1;
12620 WorldGen.SquareTileFrame(x, y, num10 != 0);
12621 }
12622
12623 // Token: 0x06002DE4 RID: 11748 RVA: 0x001D5BAC File Offset: 0x001D3DAC
12624 public static bool CanUnderwaterPlantGrowHere(ushort type, int x, int y, bool ignoreSelf)
12625 {
12626 /*
12627An exception occurred when decompiling this method (06002DE4)
12628
12629ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::CanUnderwaterPlantGrowHere(System.UInt16,System.Int32,System.Int32,System.Boolean)
12630
12631 ---> System.Exception: Basic block has to end with unconditional control flow.
12632{
12633 IL_004B:
12634 stloc:uint16(var_12_57, callgetter:uint16(Tile::get_wall, call:Tile[exp:valuetype Terraria.Tile&](Framing::GetTileSafely, ldloc:uint16[exp:int32](type), ldloc:int32(x))))
12635}
12636
12637 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
12638 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
12639 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
12640 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
12641 --- End of inner exception stack trace ---
12642 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
12643 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
12644*/;
12645 }
12646
12647 // Token: 0x06002DE5 RID: 11749 RVA: 0x001D5C18 File Offset: 0x001D3E18
12648 public static void CheckUnderwaterPlant(ushort type, int x, int y)
12649 {
12650 if (!true)
12651 {
12652 }
12653 int num = 1;
12654 bool flag = WorldGen.CanUnderwaterPlantGrowHere(type, x, y, num != 0);
12657 bool flag2 = Framing.GetTileSafely(x, y).active();
12658 }
12659
12660 // Token: 0x06002DE6 RID: 11750 RVA: 0x001D5CE0 File Offset: 0x001D3EE0
12661 public static Point PlaceCatTail(int x, int j)
12662 {
12663 if (!true)
12664 {
12665 }
12666 Tile tile;
12667 bool flag = tile.active();
12668 Tile tile2;
12669 ushort type = tile2.type;
12670 Tile tile3;
12671 byte liquid = tile3.liquid;
12672 Tile tile4;
12673 byte b = tile4.liquidType();
12674 Tile tile5;
12675 byte liquid2 = tile5.liquid;
12676 Tile tile6;
12677 bool flag2 = tile6.active();
12678 Tile tile7;
12679 bool flag3 = tile7.active();
12680 Tile tile8;
12681 byte liquid3 = tile8.liquid;
12682 Tile tile9;
12683 byte b2 = tile9.liquidType();
12684 Tile tile10;
12685 ushort wall = tile10.wall;
12686 Tile tile11;
12687 ushort wall2 = tile11.wall;
12688 Tile tile12;
12689 ushort wall3 = tile12.wall;
12690 Tile tile13;
12691 ushort wall4 = tile13.wall;
12692 Tile tile14;
12693 ushort wall5 = tile14.wall;
12694 Tile tile15;
12695 ushort wall6 = tile15.wall;
12696 Tile tile16;
12697 bool flag4 = tile16.active();
12698 Tile tile17;
12699 ushort type2 = tile17.type;
12700 Tile tile18;
12701 bool flag5 = tile18.active();
12702 Tile tile19;
12703 ushort type3 = tile19.type;
12704 Tile tile20;
12705 ushort type4 = tile20.type;
12706 Tile tile21;
12707 bool flag6 = tile21.active();
12708 Tile tile22;
12709 ushort type5 = tile22.type;
12710 Tile tile23;
12711 ushort type6 = tile23.type;
12712 Tile tile24;
12713 bool flag7 = tile24.nactive();
12714 return 0;
12715 }
12716
12717 // Token: 0x06002DE7 RID: 11751 RVA: 0x001D5EB0 File Offset: 0x001D40B0
12718 public static void CheckCatTail(int x, int j)
12719 {
12720 int num = 1;
12721 if (num == 0)
12722 {
12723 }
12724 Tile tile;
12725 bool isLoaded = tile.IsLoaded;
12726 if (num == 0)
12727 {
12728 }
12729 Tile tile2;
12730 bool flag = tile2.active();
12731 if (num == 0)
12732 {
12733 }
12734 Tile tile3;
12735 ushort type = tile3.type;
12736 if (num != 0)
12737 {
12738 if (num == 0)
12739 {
12740 }
12741 Tile tile4;
12742 ushort type2 = tile4.type;
12743 if (num == 0)
12744 {
12745 Tile tile5;
12746 bool isLoaded2 = tile5.IsLoaded;
12747 Tile tile6;
12748 byte liquid = tile6.liquid;
12749 Tile tile7;
12750 bool flag2 = tile7.active();
12751 Tile tile8;
12752 ushort type3 = tile8.type;
12753 Tile tile9;
12754 byte b = tile9.liquidType();
12755 Tile tile10;
12756 bool isLoaded3 = tile10.IsLoaded;
12757 return;
12758 }
12759 }
12760 if (num == 0)
12761 {
12762 }
12763 Tile tile11;
12764 bool flag3 = tile11.active();
12765 Tile tile12;
12766 ushort type4 = tile12.type;
12767 Tile tile13;
12768 bool flag4 = tile13.active();
12769 Tile tile14;
12770 bool isLoaded4 = tile14.IsLoaded;
12771 }
12772
12773 // Token: 0x06002DE8 RID: 11752 RVA: 0x001D60D8 File Offset: 0x001D42D8
12774 public static void GrowCheckSeaweed(int x, int y)
12775 {
12776 int num = 1;
12777 if (num == 0)
12778 {
12779 }
12780 bool logicHost = Main.LogicHost;
12781 if (num == 0)
12782 {
12783 }
12784 Tile tile;
12785 ushort type = tile.type;
12786 if (num == 0)
12787 {
12788 }
12789 Tile tile2;
12790 byte liquid = tile2.liquid;
12791 if (num == 0)
12792 {
12793 }
12794 Tile tile3;
12795 byte liquid2 = tile3.liquid;
12796 if (num == 0)
12797 {
12798 }
12799 Tile tile4;
12800 bool flag = tile4.active();
12801 if (num == 0)
12802 {
12803 }
12804 Tile tile5;
12805 bool flag2 = tile5.active();
12806 if (num == 0)
12807 {
12808 }
12810 int num2 = 1;
12811 if (genRand.Next(num2) == 0)
12812 {
12813 if (num == 0)
12814 {
12815 }
12816 Tile tile6;
12817 byte liquid3 = tile6.liquid;
12818 if (num == 0)
12819 {
12820 }
12821 long num3 = 0L;
12822 Tile tile7;
12823 byte liquid4 = tile7.liquid;
12824 if (num == 0)
12825 {
12826 }
12827 long num4 = 0L;
12828 bool flag3 = WorldGen.SolidTile(x, (int)num3, num4 != 0L);
12829 if (num == 0)
12830 {
12831 }
12832 return;
12833 }
12834 }
12835
12836 // Token: 0x06002DE9 RID: 11753 RVA: 0x001D6264 File Offset: 0x001D4464
12837 public static void GrowCatTail(int x, int j)
12838 {
12839 int num = 1;
12840 if (num == 0)
12841 {
12842 }
12843 bool logicHost = Main.LogicHost;
12844 if (num == 0)
12845 {
12846 }
12847 Tile tile;
12848 byte liquid = tile.liquid;
12849 Tile tile2;
12850 bool flag = tile2.active();
12851 if (num == 0)
12852 {
12853 }
12854 Tile tile3;
12855 ushort type = tile3.type;
12856 if (num != 0)
12857 {
12858 if (num == 0)
12859 {
12860 }
12861 Tile tile4;
12862 ushort type2 = tile4.type;
12863 if (num == 0)
12864 {
12865 if (num == 0)
12866 {
12867 }
12868 Tile tile5;
12869 bool flag2 = tile5.active();
12870 if (num == 0)
12871 {
12872 }
12873 Tile tile6;
12874 short frameX = tile6.frameX;
12875 if (num == 0)
12876 {
12877 }
12878 Tile tile7;
12879 bool flag3 = tile7.active();
12880 if (num == 0)
12881 {
12882 }
12883 Tile tile8;
12884 ushort type3 = tile8.type;
12885 if (num != 0)
12886 {
12887 if (num == 0)
12888 {
12889 }
12890 long num2 = 0L;
12891 long num3 = 0L;
12892 long num4 = 0L;
12893 WorldGen.KillTile(x, num, num2 != 0L, num3 != 0L, num4 != 0L);
12894 if (num == 0)
12895 {
12896 }
12897 bool netHost = Main.NetHost;
12898 if (num == 0)
12899 {
12900 }
12901 }
12902 if (num == 0)
12903 {
12904 }
12905 Tile tile9;
12906 bool flag4 = tile9.active();
12907 if (num == 0)
12908 {
12909 }
12910 Tile tile10;
12911 if (tile10.frameX != 0)
12912 {
12913 Tile tile11;
12914 short frameX2 = tile11.frameX;
12916 int num5 = 2;
12917 int num6 = 5;
12918 int num7 = genRand.Next(num5, num6);
12919 int num8 = 1;
12920 Tile tile12;
12921 tile12.active(num8 != 0);
12922 int num9 = 519;
12923 tile12.type = (ushort)num9;
12924 int num10 = 90;
12925 tile12.frameX = (short)num10;
12926 Tile tile13;
12927 short frameY = tile13.frameY;
12928 return;
12929 }
12930 int num11 = 18;
12931 Tile tile14;
12932 tile14.frameX = (short)num11;
12933 int num12 = 1;
12934 WorldGen.SquareTileFrame(x, 0, num12 != 0);
12935 bool netHost2 = Main.NetHost;
12936 return;
12937 }
12938 }
12939 if (num == 0)
12940 {
12941 }
12942 }
12943
12944 // Token: 0x06002DEA RID: 11754 RVA: 0x001D64FC File Offset: 0x001D46FC
12945 public static bool PlaceLilyPad(int x, int j)
12946 {
12947 if (!true)
12948 {
12949 }
12950 Tile tile;
12951 bool flag = tile.active();
12952 Tile tile2;
12953 byte liquid = tile2.liquid;
12954 Tile tile3;
12955 byte b = tile3.liquidType();
12956 Tile tile4;
12957 byte liquid2 = tile4.liquid;
12958 Tile tile5;
12959 bool flag2 = tile5.active();
12960 Tile tile6;
12961 bool flag3 = tile6.active();
12962 Tile tile7;
12963 byte liquid3 = tile7.liquid;
12964 Tile tile8;
12965 byte b2 = tile8.liquidType();
12966 Tile tile9;
12967 ushort wall = tile9.wall;
12968 Tile tile10;
12969 ushort wall2 = tile10.wall;
12970 Tile tile11;
12971 ushort wall3 = tile11.wall;
12972 Tile tile12;
12973 bool flag4 = tile12.active();
12974 Tile tile13;
12975 ushort type = tile13.type;
12976 Tile tile14;
12977 bool flag5 = tile14.active();
12978 Tile tile15;
12979 ushort type2 = tile15.type;
12980 Tile tile16;
12981 ushort type3 = tile16.type;
12982 Tile tile17;
12983 bool flag6 = tile17.active();
12984 Tile tile18;
12985 ushort type4 = tile18.type;
12986 Tile tile19;
12987 ushort type5 = tile19.type;
12988 long num = 0L;
12989 if (num == 0L)
12990 {
12991 }
12992 Tile tile20;
12993 ushort wall4 = tile20.wall;
12994 if (num == 0L)
12995 {
12996 }
12997 Tile tile21;
12998 ushort wall5 = tile21.wall;
12999 int num2 = 18;
13000 int num3 = 36;
13001 if (num2 == 0)
13002 {
13003 }
13004 int num4 = 1;
13005 Tile tile22;
13006 tile22.active(num4 != 0);
13007 int num5 = 518;
13008 tile22.type = (ushort)num5;
13009 if (num2 == 0)
13010 {
13011 }
13013 int num6 = 2;
13014 int num7 = genRand.Next(num6);
13015 if (num3 == 0)
13016 {
13017 }
13019 int num9;
13020 if (num7 != 0)
13021 {
13022 int num8 = 15;
13023 if (genRand2.Next(num8) != 0)
13024 {
13025 num9 = 26215;
13027 }
13028 }
13030 int num10 = 18;
13031 int num11 = genRand4.Next(num10);
13034 if (num9 == 0)
13035 {
13036 }
13038 int num12 = 12;
13039 int num13 = 15;
13040 int num14 = genRand7.Next(num12, num13);
13041 int num15 = 1;
13042 WorldGen.SquareTileFrame(0, 0, num15 != 0);
13043 return false;
13044 }
13045
13046 // Token: 0x06002DEB RID: 11755 RVA: 0x001D66DC File Offset: 0x001D48DC
13047 public static void CheckLilyPad(int x, int y)
13048 {
13049 int num = 1;
13050 if (num == 0)
13051 {
13052 }
13053 bool logicHost = Main.LogicHost;
13054 if (num == 0)
13055 {
13056 }
13057 Tile tile;
13058 byte b = tile.liquidType();
13059 if (num == 0)
13060 {
13061 }
13062 long num2 = 0L;
13063 long num3 = 0L;
13064 long num4 = 0L;
13065 WorldGen.KillTile(x, y, num2 != 0L, num3 != 0L, num4 != 0L);
13066 if (num == 0)
13067 {
13068 }
13069 bool netHost = Main.NetHost;
13070 if (num == 0)
13071 {
13072 }
13073 }
13074
13075 // Token: 0x06002DEC RID: 11756 RVA: 0x001D68B8 File Offset: 0x001D4AB8
13076 public static bool TryKillingReplaceableTile(int x, int y, int tileType)
13077 {
13078 int num = 1;
13079 if (num == 0)
13080 {
13081 }
13082 int num2 = 2;
13083 bool flag = WorldGen.InWorld(0, x, num2);
13084 if (num == 0)
13085 {
13086 }
13087 Tile tile;
13088 bool flag2 = tile.active();
13089 if (num == 0)
13090 {
13091 }
13092 Tile tile2;
13093 ushort type = tile2.type;
13094 if (num == 0)
13095 {
13096 if (num == 0)
13097 {
13098 }
13099 Tile tile3;
13100 ushort type2 = tile3.type;
13101 }
13102 Tile tile4;
13103 ushort type3 = tile4.type;
13104 Tile tile5;
13105 ushort type4 = tile5.type;
13106 Tile tile6;
13107 ushort type5 = tile6.type;
13108 Tile tile7;
13109 ushort type6 = tile7.type;
13110 Tile tile8;
13111 ushort type7 = tile8.type;
13112 Tile tile9;
13113 ushort type8 = tile9.type;
13114 Tile tile10;
13115 ushort type9 = tile10.type;
13116 Tile tile11;
13117 ushort type10 = tile11.type;
13118 Tile tile12;
13119 ushort type11 = tile12.type;
13120 Tile tile13;
13121 ushort type12 = tile13.type;
13122 Tile tile14;
13123 ushort type13 = tile14.type;
13124 long num3 = 0L;
13125 Tile tile15;
13126 short frameX = tile15.frameX;
13127 return WorldGen.IsHarvestableHerbWithSeed(0, (int)num3);
13128 }
13129
13130 // Token: 0x06002DED RID: 11757 RVA: 0x001D69D0 File Offset: 0x001D4BD0
13131 public static bool PlaceTile(int i, int j, int Type, bool mute = false, bool forced = false, int plr = -1, int style = 0)
13132 {
13133 int num = 1;
13134 if (num == 0)
13135 {
13136 }
13137 if (num == 0)
13138 {
13139 }
13140 Tile tile;
13141 bool flag = tile.active();
13142 if (num == 0)
13143 {
13144 }
13145 Tile tile2;
13146 ushort type = tile2.type;
13147 if (num == 0)
13148 {
13149 }
13150 Tile tile3;
13151 bool flag2 = tile3.active();
13152 long num2 = 0L;
13153 bool flag3 = Collision.EmptyTile(42168472, i, num2 != 0L);
13154 if (42168472 == 0)
13155 {
13156 }
13157 if (42168472 != 0)
13158 {
13159 bool flag4;
13160 return flag4;
13161 }
13162 bool flag5;
13163 return flag5;
13164 }
13165
13166 // Token: 0x06002DEE RID: 11758 RVA: 0x001D7C60 File Offset: 0x001D5E60
13167 public static void KillWall(int i, int j, bool fail = false)
13168 {
13169 if (!true)
13170 {
13171 }
13172 Tile tile;
13173 ushort wall = tile.wall;
13174 int num = 10;
13175 if (num == 0)
13176 {
13177 }
13178 if (num == 0)
13179 {
13180 }
13181 int num2 = 1;
13182 WorldGen.SquareWallFrame(i, j, num2 != 0);
13183 }
13184
13185 // Token: 0x06002DEF RID: 11759 RVA: 0x001D7CBC File Offset: 0x001D5EBC
13186 private static bool KillWall_CheckFailure(bool fail, Tile tileCache)
13187 {
13188 /*
13189An exception occurred when decompiling this method (06002DEF)
13190
13191ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::KillWall_CheckFailure(System.Boolean,Terraria.Tile)
13192
13193 ---> System.Exception: Basic block has to end with unconditional control flow.
13194{
13195 IL_000B:
13196 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
13197}
13198
13199 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13200 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13201 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13202 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
13203 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13204 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13205 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13206 --- End of inner exception stack trace ---
13207 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13208 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13209*/;
13210 }
13211
13212 // Token: 0x06002DF0 RID: 11760 RVA: 0x001D7CD8 File Offset: 0x001D5ED8
13213 private static void KillWall_PlaySounds(int i, int j, Tile tileCache)
13214 {
13215 }
13216
13217 // Token: 0x06002DF1 RID: 11761 RVA: 0x001D7CE8 File Offset: 0x001D5EE8
13218 private static void KillWall_DropItems(int i, int j, Tile tileCache)
13219 {
13220 if (!true)
13221 {
13222 }
13223 if (!true)
13224 {
13225 }
13226 if (!true)
13227 {
13228 }
13229 }
13230
13231 // Token: 0x06002DF2 RID: 11762 RVA: 0x001D7D00 File Offset: 0x001D5F00
13232 private static int KillWall_GetItemDrops(Tile tileCache)
13233 {
13234 return 1383;
13235 }
13236
13237 // Token: 0x06002DF3 RID: 11763 RVA: 0x001D80D4 File Offset: 0x001D62D4
13238 private static void KillWall_MakeWallDust(int i, int j, Tile tileCache)
13239 {
13240 }
13241
13242 // Token: 0x06002DF4 RID: 11764 RVA: 0x001D834C File Offset: 0x001D654C
13243 public static void LaunchRocket(int x, int y, bool fromWiring)
13244 {
13245 if (!true)
13246 {
13247 }
13248 Tile tile;
13249 short frameY = tile.frameY;
13250 }
13251
13252 // Token: 0x06002DF5 RID: 11765 RVA: 0x001D83A8 File Offset: 0x001D65A8
13253 public static void LaunchRocketSmall(int x, int y, bool fromWiring)
13254 {
13255 if (!true)
13256 {
13257 }
13258 Tile tile;
13259 short frameX = tile.frameX;
13260 Tile tile2;
13261 short frameY = tile2.frameY;
13262 if (frameX == 0)
13263 {
13264 }
13265 long num = 0L;
13268 int myPlayer = Main.myPlayer;
13269 }
13270
13271 // Token: 0x06002DF6 RID: 11766 RVA: 0x001D83F4 File Offset: 0x001D65F4
13272 public static bool CanKillTile(int i, int j, WorldGen.SpecialKillTileContext context)
13273 {
13274 if (!true)
13275 {
13276 }
13277 Tile tile;
13278 bool isLoaded = tile.IsLoaded;
13279 return true;
13280 }
13281
13282 // Token: 0x06002DF7 RID: 11767 RVA: 0x001D8418 File Offset: 0x001D6618
13283 public static bool CanKillTile(int i, int j)
13284 {
13285 if (!true)
13286 {
13287 }
13288 return WorldGen.CanKillTile(0, i, j != 0);
13289 }
13290
13291 // Token: 0x06002DF8 RID: 11768 RVA: 0x001D8430 File Offset: 0x001D6630
13292 public static bool CanKillTile(int i, int j, [Out] bool blockDamaged)
13293 {
13294 bool flag = WorldGen.CheckBoulderChest(0, i);
13295 int num = 1;
13296 j.m_value = num;
13297 if (num != 0)
13298 {
13299 if (num == 0)
13300 {
13301 }
13302 Tile tile;
13303 short frameX = tile.frameX;
13304 }
13305 if (num == 0)
13306 {
13307 }
13308 Tile tile2;
13309 short frameX2 = tile2.frameX;
13310 if (num == 0)
13311 {
13312 }
13313 Tile tile3;
13314 short frameX3 = tile3.frameX;
13315 return 42168200 != 0;
13316 }
13317
13318 // Token: 0x06002DF9 RID: 11769 RVA: 0x001D850C File Offset: 0x001D670C
13319 public static bool IsTileReplacable(int x, int y)
13320 {
13321 /*
13322An exception occurred when decompiling this method (06002DF9)
13323
13324ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsTileReplacable(System.Int32,System.Int32)
13325
13326 ---> System.Exception: Basic block has to end with unconditional control flow.
13327{
13328 IL_001E:
13329 brtrue(IL_0000, logicnot:bool(ldloc:int32[exp:bool](var_0_01)))
13330}
13331
13332 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13333 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13334 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13335 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
13336 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13337 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13338 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13339 --- End of inner exception stack trace ---
13340 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13341 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13342*/;
13343 }
13344
13345 // Token: 0x06002DFA RID: 11770 RVA: 0x001D853C File Offset: 0x001D673C
13346 public static int CheckTileBreakability(int x, int y)
13347 {
13348 int num = 1;
13349 if (num == 0)
13350 {
13351 }
13352 if (num == 0)
13353 {
13354 }
13355 Tile tile;
13356 bool isLoaded = tile.IsLoaded;
13357 long num2 = 0L;
13358 bool flag = WorldGen.IsLockedDoor(0, (int)num2);
13359 bool flag2 = WorldGen.IsLockedDoor(0, 43143168);
13360 long num3 = 0L;
13361 if (num3 != 0L)
13362 {
13363 if (num3 == 0L)
13364 {
13365 }
13366 if (num3 == 0L)
13367 {
13368 return 2;
13369 }
13370 }
13371 if (num3 == 0L)
13372 {
13373 }
13374 return 1;
13375 }
13376
13377 // Token: 0x06002DFB RID: 11771 RVA: 0x001D85D0 File Offset: 0x001D67D0
13378 public static bool CheckTileBreakability2_ShouldTileSurvive(int x, int y)
13379 {
13380 if (!true)
13381 {
13382 }
13383 return Main.NetClientOnly;
13384 }
13385
13386 // Token: 0x06002DFC RID: 11772 RVA: 0x001D8634 File Offset: 0x001D6834
13387 public static bool ReplaceWall(int x, int y, ushort targetWall)
13388 {
13389 /*
13390An exception occurred when decompiling this method (06002DFC)
13391
13392ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ReplaceWall(System.Int32,System.Int32,System.UInt16)
13393
13394 ---> System.Exception: Basic block has to end with unconditional control flow.
13395{
13396 IL_0015:
13397 stloc:int32(var_5_16, ldc.i4:int32(1))
13398 call:void(WorldGen::SquareWallFrame, ldloc:int64[exp:int32](var_4), ldloc:int32(x), ldloc:int32[exp:bool](var_5_16))
13399}
13400
13401 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13402 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13403 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13404 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
13405 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13406 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13407 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13408 --- End of inner exception stack trace ---
13409 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13410 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13411*/;
13412 }
13413
13414 // Token: 0x06002DFD RID: 11773 RVA: 0x001D8664 File Offset: 0x001D6864
13415 public static bool ReplaceTile(int x, int y, ushort targetType, int targetStyle)
13416 {
13418 bool flag = WorldGen.WouldTileReplacementWork((ushort)y, x, x);
13419 bool flag2 = WorldGen.IsTileReplacable(0, x);
13420 if (!false)
13421 {
13422 }
13423 if (!false)
13424 {
13425 return;
13426 }
13427 }
13428
13429 // Token: 0x06002DFE RID: 11774 RVA: 0x001D8698 File Offset: 0x001D6898
13430 private static void ReplaceTIle_DoActualReplacement(ushort targetType, int targetStyle, int topLeftX, int topLeftY, Tile t)
13431 {
13432 int num = 1;
13433 if (num == 0)
13434 {
13435 }
13436 if (num == 0)
13437 {
13438 }
13440 bool logicHost = Main.LogicHost;
13442 }
13443
13444 // Token: 0x06002DFF RID: 11775 RVA: 0x001D86E0 File Offset: 0x001D68E0
13446 {
13447 int num = 1;
13448 if (num == 0)
13449 {
13450 }
13452 if (num == 0)
13453 {
13454 }
13455 if (num != 0)
13456 {
13457 }
13458 if (22 == 0)
13459 {
13460 }
13461 bool flag = WorldGen.CanPoundTile(topLeftX, topLeftY);
13462 int num2 = 1;
13464 }
13465
13466 // Token: 0x06002E00 RID: 11776 RVA: 0x001D8728 File Offset: 0x001D6928
13467 private static void ReplaceTile_EliminateNaturalExtras(int x, int y)
13468 {
13469 int num = 1;
13470 if (num == 0)
13471 {
13472 }
13473 int num2 = 2;
13474 bool flag = WorldGen.InWorld(x, y, num2);
13475 if (num == 0)
13476 {
13477 }
13478 Tile tile;
13479 bool flag2 = tile.active();
13480 Tile tile2;
13481 ushort type = tile2.type;
13482 long num3 = 0L;
13483 long num4 = 0L;
13484 long num5 = 0L;
13485 WorldGen.KillTile(x, 43143168, num3 != 0L, num4 != 0L, num5 != 0L);
13486 Tile tile3;
13487 bool flag3 = tile3.active();
13488 Tile tile4;
13489 ushort type2 = tile4.type;
13490 long num6 = 0L;
13491 long num7 = 0L;
13492 long num8 = 0L;
13493 WorldGen.KillTile(x, y, num6 != 0L, num7 != 0L, num8 != 0L);
13494 }
13495
13496 // Token: 0x06002E01 RID: 11777 RVA: 0x001D87E8 File Offset: 0x001D69E8
13498 {
13499 int num = 1;
13500 if (num == 0)
13501 {
13502 }
13503 Tile tile;
13505 tile.frameX = (short)targetType;
13506 tile.frameY = (short)targetType;
13508 if (num == 0)
13509 {
13510 }
13511 int num2 = 1;
13513 }
13514
13515 // Token: 0x06002E02 RID: 11778 RVA: 0x001D882C File Offset: 0x001D6A2C
13516 private static void MoveReplaceTileAnchor(int x, int y, ushort targetType, Tile t)
13517 {
13518 int num = 1;
13519 if (num == 0)
13520 {
13521 }
13522 if (num != 0)
13523 {
13524 x.m_value = num;
13525 y.m_value = num;
13526 }
13527 if (num == 0)
13528 {
13529 }
13530 if (num != 0)
13531 {
13532 x.m_value = num;
13533 y.m_value = num;
13534 }
13535 x.m_value = num;
13536 y.m_value = num;
13537 }
13538
13539 // Token: 0x06002E03 RID: 11779 RVA: 0x001D8874 File Offset: 0x001D6A74
13540 public static bool WouldTileReplacementBeBlockedByLiquid(int x, int y, int liquidType)
13541 {
13542 /*
13543An exception occurred when decompiling this method (06002E03)
13544
13545ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::WouldTileReplacementBeBlockedByLiquid(System.Int32,System.Int32,System.Int32)
13546
13547 ---> System.Exception: Basic block has to end with unconditional control flow.
13548{
13549 IL_0047:
13550 stloc:uint8(var_15_4E, call:uint8(Tile::liquidType, ldloc:Tile[exp:valuetype Terraria.Tile&](var_14)))
13551}
13552
13553 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13554 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13555 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13556 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13557 --- End of inner exception stack trace ---
13558 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13559 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13560*/;
13561 }
13562
13563 // Token: 0x06002E04 RID: 11780 RVA: 0x001D88D4 File Offset: 0x001D6AD4
13564 public static bool WouldTileReplacementWork(ushort attemptingToReplaceWith, int x, int y)
13565 {
13566 if (!true)
13567 {
13568 }
13569 int num = 2;
13570 bool flag = WorldGen.InWorld((int)attemptingToReplaceWith, x, num);
13571 Tile tile;
13572 bool flag2 = tile.active();
13573 bool flag3 = WorldGen.ReplaceTile_IsValidSolid(43143168);
13575 }
13576
13577 // Token: 0x06002E05 RID: 11781 RVA: 0x001D8990 File Offset: 0x001D6B90
13578 private static bool ReplaceTile_IsValidSolid(int type)
13579 {
13580 if (!true)
13581 {
13582 return;
13583 }
13584 }
13585
13586 // Token: 0x06002E06 RID: 11782 RVA: 0x000021DB File Offset: 0x000003DB
13587 private static bool ReplaceTile_IsValidTorch(int type)
13588 {
13589 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
13590 }
13591
13592 // Token: 0x06002E07 RID: 11783 RVA: 0x000021DB File Offset: 0x000003DB
13593 private static bool ReplaceTile_IsValidCampfire(int type)
13594 {
13595 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
13596 }
13597
13598 // Token: 0x06002E08 RID: 11784 RVA: 0x001D89A4 File Offset: 0x001D6BA4
13599 private static bool ReplaceTile_IsValidChest(int type)
13600 {
13601 /*
13602An exception occurred when decompiling this method (06002E08)
13603
13604ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ReplaceTile_IsValidChest(System.Int32)
13605
13606 ---> System.Exception: Basic block has to end with unconditional control flow.
13607{
13608 IL_0000:
13609 brtrue(IL_0000, ldc.i4:bool(1))
13610}
13611
13612 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13613 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13614 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13615 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
13616 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13617 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13618 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13619 --- End of inner exception stack trace ---
13620 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13621 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13622*/;
13623 }
13624
13625 // Token: 0x06002E09 RID: 11785 RVA: 0x001D89B4 File Offset: 0x001D6BB4
13626 private static bool ReplaceTile_IsValidDresser(int type)
13627 {
13628 /*
13629An exception occurred when decompiling this method (06002E09)
13630
13631ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ReplaceTile_IsValidDresser(System.Int32)
13632
13633 ---> System.Exception: Basic block has to end with unconditional control flow.
13634{
13635 IL_0000:
13636 brtrue(IL_0000, ldc.i4:bool(1))
13637}
13638
13639 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13640 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13641 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13642 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
13643 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13644 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13645 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13646 --- End of inner exception stack trace ---
13647 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13648 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13649*/;
13650 }
13651
13652 // Token: 0x06002E0A RID: 11786 RVA: 0x001D89C4 File Offset: 0x001D6BC4
13653 private static bool ReplaceTile_IsValidPlatform(int type)
13654 {
13655 /*
13656An exception occurred when decompiling this method (06002E0A)
13657
13658ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::ReplaceTile_IsValidPlatform(System.Int32)
13659
13660 ---> System.Exception: Basic block has to end with unconditional control flow.
13661{
13662 IL_0000:
13663 brtrue(IL_0000, ldc.i4:bool(1))
13664}
13665
13666 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13667 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13668 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
13669 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
13670 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13671 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13672 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13673 --- End of inner exception stack trace ---
13674 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13675 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13676*/;
13677 }
13678
13679 // Token: 0x06002E0B RID: 11787 RVA: 0x001D89D4 File Offset: 0x001D6BD4
13680 public static bool GetAshTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
13681 {
13682 /*
13683An exception occurred when decompiling this method (06002E0B)
13684
13685ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GetAshTreeFoliageData(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
13686
13687 ---> System.Exception: Basic block has to end with unconditional control flow.
13688{
13689 IL_002E:
13690 stloc:uint16(var_5_35, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_4)))
13691 stloc:int32(var_7_3C, ldc.i4:int32(31))
13692 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](treeFrame), ldloc:int32(var_7_3C))
13693}
13694
13695 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13696 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13697 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13698 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13699 --- End of inner exception stack trace ---
13700 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13701 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13702*/;
13703 }
13704
13705 // Token: 0x06002E0C RID: 11788 RVA: 0x001D8A2C File Offset: 0x001D6C2C
13706 public static bool GetVanityTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
13707 {
13708 /*
13709An exception occurred when decompiling this method (06002E0C)
13710
13711ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GetVanityTreeFoliageData(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
13712
13713 ---> System.Exception: Basic block has to end with unconditional control flow.
13714{
13715 IL_003D:
13716 stloc:int32(var_9_42, ldc.i4:int32(29))
13717 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](treeFrame), ldloc:int32(var_9_42))
13718}
13719
13720 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13721 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13722 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13723 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13724 --- End of inner exception stack trace ---
13725 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13726 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13727*/;
13728 }
13729
13730 // Token: 0x06002E0D RID: 11789 RVA: 0x001D8A88 File Offset: 0x001D6C88
13731 public static bool GetGemTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
13732 {
13733 /*
13734An exception occurred when decompiling this method (06002E0D)
13735
13736ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GetGemTreeFoliageData(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
13737
13738 ---> System.Exception: Basic block has to end with unconditional control flow.
13739{
13740 IL_003D:
13741 stloc:bool(var_8_44, callgetter:bool(Tile::get_IsLoaded, ldloc:Tile[exp:valuetype Terraria.Tile&](var_7)))
13742 stloc:int32(var_12_4B, ldc.i4:int32(28))
13743 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](treeFrame), ldloc:int32(var_12_4B))
13744}
13745
13746 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13747 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13748 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13749 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13750 --- End of inner exception stack trace ---
13751 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13752 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13753*/;
13754 }
13755
13756 // Token: 0x06002E0E RID: 11790 RVA: 0x001D8AEC File Offset: 0x001D6CEC
13757 public static bool GetCommonTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
13758 {
13759 /*
13760An exception occurred when decompiling this method (06002E0E)
13761
13762ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::GetCommonTreeFoliageData(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
13763
13764 ---> System.Exception: Basic block has to end with unconditional control flow.
13765{
13766 Block_0:
13767 stloc:int32(var_27_119, ldc.i4:int32(26215))
13768 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](treeFrame), ldloc:int32(var_27_119))
13769}
13770
13771 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13772 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13773 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13774 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13775 --- End of inner exception stack trace ---
13776 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13777 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13778*/;
13779 }
13780
13781 // Token: 0x06002E0F RID: 11791 RVA: 0x001D8C20 File Offset: 0x001D6E20
13782 public static int GetHollowTreeFoliageStyle()
13783 {
13784 if (!true)
13785 {
13786 }
13787 return 20;
13788 }
13789
13790 // Token: 0x06002E10 RID: 11792 RVA: 0x001D8C38 File Offset: 0x001D6E38
13791 public static int GetTreeFrame(Tile t)
13792 {
13793 return 1;
13794 }
13795
13796 // Token: 0x06002E11 RID: 11793 RVA: 0x001D8C48 File Offset: 0x001D6E48
13797 public static TreeTypes GetTreeType(int tileType)
13798 {
13799 return TreeTypes.Palm;
13800 }
13801
13802 // Token: 0x06002E12 RID: 11794 RVA: 0x001D8C6C File Offset: 0x001D6E6C
13803 public static bool IsThisAMushroomTree(int i, int j)
13804 {
13805 /*
13806An exception occurred when decompiling this method (06002E12)
13807
13808ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsThisAMushroomTree(System.Int32,System.Int32)
13809
13810 ---> System.Exception: Basic block has to end with unconditional control flow.
13811{
13812 IL_0006:
13813 stloc:TreeTypes(var_1_11, call:TreeTypes(WorldGen::GetTreeType, callgetter:uint16[exp:int32](Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0))))
13814}
13815
13816 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
13817 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
13818 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
13819 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
13820 --- End of inner exception stack trace ---
13821 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
13822 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
13823*/;
13824 }
13825
13826 // Token: 0x06002E13 RID: 11795 RVA: 0x001D8C8C File Offset: 0x001D6E8C
13827 public static void ResetTreeShakes()
13828 {
13829 if (!true)
13830 {
13831 }
13832 }
13833
13834 // Token: 0x06002E14 RID: 11796 RVA: 0x001D8C9C File Offset: 0x001D6E9C
13835 private static void ShakeTree(int i, int j)
13836 {
13837 int num = 1;
13838 if (num == 0)
13839 {
13840 }
13841 if (num == 0)
13842 {
13843 }
13844 if (num == 0)
13845 {
13846 }
13847 Tile tile;
13848 if (WorldGen.GetTreeType((int)tile.type) != TreeTypes.None)
13849 {
13850 if (num == 0)
13851 {
13852 }
13853 if (num == 0)
13854 {
13855 }
13856 if (num == 0)
13857 {
13858 }
13859 return;
13860 }
13861 }
13862
13863 // Token: 0x06002E15 RID: 11797 RVA: 0x001D9438 File Offset: 0x001D7638
13864 private static void GetVineTop(int i, int j, [Out] int x, [Out] int y)
13865 {
13866 x.m_value = i;
13867 y.m_value = j;
13868 long num = 0L;
13869 y.m_value = (int)num;
13870 }
13871
13872 // Token: 0x06002E16 RID: 11798 RVA: 0x001D9460 File Offset: 0x001D7660
13873 public static void GetTreeBottom(int i, int j, [Out] int x, [Out] int y)
13874 {
13875 int num = 1;
13876 x.m_value = i;
13877 y.m_value = j;
13878 Tile tile;
13879 ushort type = tile.type;
13880 if (num == 0)
13881 {
13882 }
13883 long num2 = 0L;
13884 y.m_value = (int)num2;
13885 }
13886
13887 // Token: 0x06002E17 RID: 11799 RVA: 0x001D94B4 File Offset: 0x001D76B4
13888 private static void AttemptFossilShattering(int i, int j, Tile tileCache, bool fail)
13889 {
13890 bool logicHost = Main.LogicHost;
13891 int num = 4;
13892 if (num == 0)
13893 {
13894 }
13895 long num2 = 0L;
13896 bool flag = WorldGen.SolidTile(0, fail ? 1 : 0, num2 != 0L);
13897 if (num == 0)
13898 {
13899 }
13900 Tile tile;
13901 bool flag2 = tile.active();
13902 if (num == 0)
13903 {
13904 }
13905 long num3 = 0L;
13906 Tile tile2;
13907 ushort type = tile2.type;
13908 if (num == 0)
13909 {
13910 }
13911 if (WorldGen.genRand.Next((int)num3) == 0)
13912 {
13913 if (num == 0)
13914 {
13915 }
13916 int num4 = 1;
13917 long num5 = 0L;
13918 long num6 = 0L;
13919 WorldGen.KillTile(0, j, num5 != 0L, num6 != 0L, num4 != 0);
13920 return;
13921 }
13922 }
13923
13924 // Token: 0x06002E18 RID: 11800 RVA: 0x001D9540 File Offset: 0x001D7740
13925 public static void KillTile(int i, int j, bool fail = false, bool effectOnly = false, bool noItem = false)
13926 {
13927 if (!true)
13928 {
13929 }
13930 Tile tile;
13931 bool flag = tile.active();
13932 int num = WorldGen.CheckTileBreakability(i, j);
13933 }
13934
13935 // Token: 0x06002E19 RID: 11801 RVA: 0x001D9948 File Offset: 0x001D7B48
13936 private static Player GetPlayerForTile(int x, int y)
13937 {
13938 int num = 1;
13939 if (num == 0)
13940 {
13941 }
13942 if (num == 0)
13943 {
13944 }
13945 if (num == 0)
13946 {
13947 return;
13948 }
13949 }
13950
13951 // Token: 0x06002E1A RID: 11802 RVA: 0x001D9964 File Offset: 0x001D7B64
13952 private static void KillTile_DropItems(int x, int y, Tile tileCache, bool includeLargeObjectDrops = false)
13953 {
13954 int num = 1;
13955 if (num == 0)
13956 {
13957 }
13958 if (num == 0)
13959 {
13960 }
13961 if (num != 0)
13962 {
13963 }
13964 if (num == 0)
13965 {
13966 }
13967 if (num == 0)
13968 {
13969 }
13970 }
13971
13972 // Token: 0x06002E1B RID: 11803 RVA: 0x001D9988 File Offset: 0x001D7B88
13973 public static void KillTile_GetItemDrops(int x, int y, Tile tileCache, [Out] int dropItem, [Out] int dropItemStack, [Out] int secondaryItem, [Out] int secondaryItemStack, bool includeLargeObjectDrops = false)
13974 {
13975 int num = 1;
13978 if (4855 == 0)
13979 {
13980 }
13982 }
13983
13984 // Token: 0x06002E1C RID: 11804 RVA: 0x001DA2BC File Offset: 0x001D84BC
13985 private static void SetGemTreeDrops(int gemType, int seedType, Tile tileCache, int dropItem, int secondaryItem)
13986 {
13987 if (!true)
13988 {
13989 }
13990 dropItem.m_value = 3;
13991 if (3 == 0)
13992 {
13993 }
13994 int num;
13995 if (num == 0)
13996 {
13998 }
13999 }
14000
14001 // Token: 0x06002E1D RID: 11805 RVA: 0x001DA2E4 File Offset: 0x001D84E4
14002 private static void SetVanityTreeDrops(int dropType, Tile tileCache, int dropItem)
14003 {
14004 if (!true)
14005 {
14006 }
14007 int num;
14008 if (num == 0)
14009 {
14011 }
14012 }
14013
14014 // Token: 0x06002E1E RID: 11806 RVA: 0x001DA300 File Offset: 0x001D8500
14015 public static bool IsHarvestableHerbWithSeed(int type, int style)
14016 {
14017 /*
14018An exception occurred when decompiling this method (06002E1E)
14019
14020ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsHarvestableHerbWithSeed(System.Int32,System.Int32)
14021
14022 ---> System.Exception: Basic block has to end with unconditional control flow.
14023{
14024 IL_000A:
14025 brtrue(IL_0000, ldloc:int32[exp:bool](type))
14026}
14027
14028 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14029 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
14030 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
14031 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
14032 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14033 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14034 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14035 --- End of inner exception stack trace ---
14036 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14037 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14038*/;
14039 }
14040
14041 // Token: 0x06002E1F RID: 11807 RVA: 0x001DA31C File Offset: 0x001D851C
14042 private static bool KillTile_ShouldDropSeeds(int x, int y)
14043 {
14044 if (!true)
14045 {
14046 }
14047 int num;
14048 if (num != 0)
14049 {
14050 }
14051 if (!true)
14052 {
14053 }
14054 bool flag = WorldGen.GetPlayerForTile(0, x).HasItem(281);
14055 return true;
14056 }
14057
14058 // Token: 0x06002E20 RID: 11808 RVA: 0x001DA35C File Offset: 0x001D855C
14059 private static void KillTile_GetTreeDrops(int i, int j, Tile tileCache, bool bonusWood, int dropItem, int secondaryItem)
14060 {
14061 int num = 1;
14062 if (num == 0)
14063 {
14064 }
14065 bool logicHost = Main.LogicHost;
14066 if (num == 0)
14067 {
14068 }
14070 int num2 = 2;
14071 long num3 = 0L;
14072 if (genRand.Next(num2) != 0)
14073 {
14074 int num4 = 9;
14076 if (num4 == 0)
14077 {
14078 }
14079 WorldGen.GetTreeBottom(i, j, (int)num3, bonusWood ? 1 : 0);
14080 if (num4 == 0)
14081 {
14082 }
14083 Tile tile;
14084 bool flag = tile.active();
14085 if (num4 == 0)
14086 {
14087 }
14088 Tile tile2;
14089 ushort type = tile2.type;
14090 return;
14091 }
14092 int num5;
14093 if (num5 == 0)
14094 {
14095 }
14096 Tile tile3;
14097 bool flag2 = tile3.active();
14098 Tile tile4;
14099 ushort type2 = tile4.type;
14100 Tile tile5;
14101 ushort type3 = tile5.type;
14102 }
14103
14104 // Token: 0x06002E21 RID: 11809 RVA: 0x001DA46C File Offset: 0x001D866C
14105 private static void KillTile_DropBait(int i, int j, Tile tileCache)
14106 {
14107 int num = 1;
14108 if (num == 0)
14109 {
14110 }
14111 if (num == 0)
14112 {
14113 }
14114 if (num != 0)
14115 {
14116 return;
14117 }
14118 if (num == 0)
14119 {
14120 }
14121 if (num != 0)
14122 {
14123 }
14124 if (num == 0)
14125 {
14126 }
14127 int num2;
14128 if (num != 0)
14129 {
14130 num2 = 16960;
14131 return;
14132 }
14133 if (num2 == 0)
14134 {
14135 }
14136 int num3;
14137 if (num2 != 0)
14138 {
14139 num3 = 13568;
14140 return;
14141 }
14142 if (num3 == 0)
14143 {
14144 }
14145 if (num3 != 0)
14146 {
14147 }
14148 }
14149
14150 // Token: 0x06002E22 RID: 11810 RVA: 0x001DA6F8 File Offset: 0x001D88F8
14151 public static void KillTile_PlaySounds(int i, int j, bool fail, Tile tileCache)
14152 {
14153 if (!true)
14154 {
14155 }
14156 }
14157
14158 // Token: 0x06002E23 RID: 11811 RVA: 0x001DA770 File Offset: 0x001D8970
14159 public static Rectangle? GetTileVisualHitbox(int x, int y)
14160 {
14161 /*
14162An exception occurred when decompiling this method (06002E23)
14163
14164ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Nullable`1<Microsoft.Xna.Framework.Rectangle> Terraria.WorldGen::GetTileVisualHitbox(System.Int32,System.Int32)
14165
14166 ---> System.Exception: Basic block has to end with unconditional control flow.
14167{
14168 IL_0003:
14169 stloc:bool(var_1_09, callgetter:bool(Tile::get_IsLoaded, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
14170}
14171
14172 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14173 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14174 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14175 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14176 --- End of inner exception stack trace ---
14177 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14178 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14179*/;
14180 }
14181
14182 // Token: 0x06002E24 RID: 11812 RVA: 0x001DA790 File Offset: 0x001D8990
14183 public static int KillTile_GetTileDustAmount(bool fail, Tile tileCache)
14184 {
14185 return 2;
14186 }
14187
14188 // Token: 0x06002E25 RID: 11813 RVA: 0x001DA7C4 File Offset: 0x001D89C4
14189 public static int KillTile_MakeTileDust(int i, int j, Tile tileCache)
14190 {
14191 int num = 82;
14192 if (num == 0)
14193 {
14194 }
14195 if (num != 0)
14196 {
14197 int num2 = 7;
14198 if (num2 == 0)
14199 {
14200 }
14201 int num3;
14202 if (num2 != 0)
14203 {
14204 num3 = 301;
14205 }
14206 if (num3 == 0)
14207 {
14208 }
14209 Tile tile;
14210 ushort type = tile.type;
14211 }
14212 if (17 == 0)
14213 {
14214 }
14215 return 0;
14216 }
14217
14218 // Token: 0x06002E26 RID: 11814 RVA: 0x001DB4C0 File Offset: 0x001D96C0
14219 public static bool IsOpenDoorAnchorFrame(int x, int y)
14220 {
14221 /*
14222An exception occurred when decompiling this method (06002E26)
14223
14224ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsOpenDoorAnchorFrame(System.Int32,System.Int32)
14225
14226 ---> System.Exception: Basic block has to end with unconditional control flow.
14227{
14228 IL_0003:
14229 stloc:bool(var_1_09, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
14230}
14231
14232 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14233 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14234 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14235 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14236 --- End of inner exception stack trace ---
14237 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14238 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14239*/;
14240 }
14241
14242 // Token: 0x06002E27 RID: 11815 RVA: 0x001DB4DC File Offset: 0x001D96DC
14243 public static bool IsLockedDoor(int x, int y)
14244 {
14245 if (!true)
14246 {
14247 }
14248 bool flag;
14249 return flag;
14250 }
14251
14252 // Token: 0x06002E28 RID: 11816 RVA: 0x001DB4F0 File Offset: 0x001D96F0
14253 public static bool IsLockedDoor(Tile t)
14254 {
14255 }
14256
14257 // Token: 0x06002E29 RID: 11817 RVA: 0x001DB500 File Offset: 0x001D9700
14258 public static void DropDoorItem(int x, int y, int doorStyle)
14259 {
14260 }
14261
14262 // Token: 0x06002E2A RID: 11818 RVA: 0x001DB51C File Offset: 0x001D971C
14263 public static IEntitySource GetItemSource_FromTileBreak(int x, int y)
14264 {
14265 }
14266
14267 // Token: 0x06002E2B RID: 11819 RVA: 0x001DB52C File Offset: 0x001D972C
14268 public static IEntitySource GetItemSource_FromWallBreak(int x, int y)
14269 {
14270 }
14271
14272 // Token: 0x06002E2C RID: 11820 RVA: 0x000021DB File Offset: 0x000003DB
14273 public static IEntitySource GetItemSource_FromTreeShake(int x, int y)
14274 {
14275 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
14276 }
14277
14278 // Token: 0x06002E2D RID: 11821 RVA: 0x001DB53C File Offset: 0x001D973C
14279 public static bool PlayerLOS(int x, int y)
14280 {
14281 }
14282
14283 // Token: 0x06002E2E RID: 11822 RVA: 0x001DB558 File Offset: 0x001D9758
14284 public static void ChlorophyteDefense(int x, int y)
14285 {
14286 if (!true)
14287 {
14288 }
14289 Tile tile;
14290 ushort type = tile.type;
14291 WorldGen.SquareTileFrame(x, y, true);
14292 bool netHost = Main.NetHost;
14293 }
14294
14295 // Token: 0x06002E2F RID: 11823 RVA: 0x001DB59C File Offset: 0x001D979C
14296 public static bool Chlorophyte(int i, int j)
14297 {
14298 if (!true)
14299 {
14300 }
14301 int num = 130;
14302 if (num == 0)
14303 {
14304 }
14305 int value = num.m_value;
14306 if (!false)
14307 {
14308 return;
14309 }
14310 }
14311
14312 // Token: 0x06002E30 RID: 11824 RVA: 0x001DB5CC File Offset: 0x001D97CC
14313 private static bool nearbyChlorophyte(int i, int j)
14314 {
14315 /*
14316An exception occurred when decompiling this method (06002E30)
14317
14318ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::nearbyChlorophyte(System.Int32,System.Int32)
14319
14320 ---> System.Exception: Basic block has to end with unconditional control flow.
14321{
14322 IL_000B:
14323 stloc:UnifiedRandom(var_1_10, callgetter:UnifiedRandom(WorldGen::get_genRand))
14324 stloc:int32(var_2_12, ldc.i4:int32(4))
14325 stloc:int32(var_3_1B, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_1_10), ldloc:int32(i), ldloc:int32(var_2_12)))
14326}
14327
14328 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14329 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14330 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14331 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14332 --- End of inner exception stack trace ---
14333 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14334 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14335*/;
14336 }
14337
14338 // Token: 0x06002E31 RID: 11825 RVA: 0x001DB5F8 File Offset: 0x001D97F8
14339 public static int CountNearBlocksTypes(int i, int j, int radius, int cap, ushort tiletypes)
14340 {
14341 /*
14342An exception occurred when decompiling this method (06002E31)
14343
14344ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::CountNearBlocksTypes(System.Int32,System.Int32,System.Int32,System.Int32,System.UInt16)
14345
14346 ---> System.Exception: Basic block has to end with unconditional control flow.
14347{
14348 IL_0003:
14349 stloc:bool(var_2_0B, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_1)))
14350 stloc:uint16(var_4_12, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
14351}
14352
14353 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14354 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14356 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14357 --- End of inner exception stack trace ---
14358 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14359 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14360*/;
14361 }
14362
14363 // Token: 0x06002E32 RID: 11826 RVA: 0x001DB618 File Offset: 0x001D9818
14364 public static void hardUpdateWorld(int i, int j)
14365 {
14366 if (!true)
14367 {
14368 }
14369 Tile tile;
14370 bool flag = tile.inActive();
14372 int num = 5;
14373 long num3;
14374 if (genRand.Next(num) == 0)
14375 {
14377 int num2 = 4;
14378 if (genRand2.Next(num2) != 0)
14379 {
14380 return;
14381 }
14382 Tile tile2;
14383 bool flag2 = tile2.active();
14384 num3 = 0L;
14385 Tile tile3;
14386 bool flag3 = tile3.active();
14387 Tile tile4;
14388 ushort type = tile4.type;
14390 int num4 = 18;
14391 int num5 = genRand3.Next(num4);
14393 int num6 = 50;
14394 if (genRand4.Next(num6) == 0)
14395 {
14397 int num7 = 6;
14398 int num8 = genRand5.Next(num7);
14399 }
14400 }
14402 int num9 = 300;
14403 if (genRand6.Next(num9) == 0)
14404 {
14406 int num10 = 11;
14407 int num11 = genRand7.Next(num9, num10);
14409 int num12 = 11;
14410 int num13 = genRand8.Next(num9, num12);
14411 int num14 = 2;
14412 bool flag4 = WorldGen.InWorld((int)num3, num9, num14);
14413 Tile tile5;
14414 bool flag5 = tile5.active();
14415 Tile tile6;
14416 ushort type2 = tile6.type;
14417 Tile tile7;
14418 bool flag6 = tile7.active();
14419 Tile tile8;
14420 ushort type3 = tile8.type;
14421 Tile tile9;
14422 ushort type4 = tile9.type;
14423 long num15 = 0L;
14424 Tile tile10;
14425 ushort type5 = tile10.type;
14426 bool flag7 = WorldGen.Chlorophyte((int)num3, (int)num15);
14427 int num16 = 211;
14428 Tile tile11;
14429 tile11.type = (ushort)num16;
14430 int num17 = 1;
14432 bool netHost = Main.NetHost;
14433 return;
14434 }
14435 if (!false)
14436 {
14437 }
14438 if (false)
14439 {
14440 if (!false)
14441 {
14442 }
14444 int num18 = 2;
14445 if (genRand9.Next(num18) != 0)
14446 {
14447 return;
14448 }
14449 }
14450 if (!false)
14451 {
14452 }
14453 if (false)
14454 {
14455 return;
14456 }
14457 }
14458
14459 // Token: 0x06002E33 RID: 11827 RVA: 0x001DBC84 File Offset: 0x001D9E84
14460 public static bool SolidTile(short tileSHeader, ushort tileType)
14461 {
14462 if (29792 == 0)
14463 {
14464 return;
14465 }
14466 }
14467
14468 // Token: 0x06002E34 RID: 11828 RVA: 0x001DBC9C File Offset: 0x001D9E9C
14469 public static bool SolidTile(Tile testTile)
14470 {
14471 }
14472
14473 // Token: 0x06002E35 RID: 11829 RVA: 0x001DBCB4 File Offset: 0x001D9EB4
14474 public static bool TileEmpty(int i, int j)
14475 {
14476 if (!true)
14477 {
14478 }
14479 Tile tile;
14480 bool isLoaded = tile.IsLoaded;
14481 if (!true)
14482 {
14483 }
14484 Tile tile2;
14485 bool flag = tile2.active();
14486 if (!true)
14487 {
14488 }
14489 Tile tile3;
14490 return tile3.inActive();
14491 }
14492
14493 // Token: 0x06002E36 RID: 11830 RVA: 0x001DBCE8 File Offset: 0x001D9EE8
14494 public static bool SolidOrSlopedTile(Tile tile)
14495 {
14496 }
14497
14498 // Token: 0x06002E37 RID: 11831 RVA: 0x001DBCF8 File Offset: 0x001D9EF8
14499 public static int TileType(int x, int y)
14500 {
14501 /*
14502An exception occurred when decompiling this method (06002E37)
14503
14504ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::TileType(System.Int32,System.Int32)
14505
14506 ---> System.Exception: Basic block has to end with unconditional control flow.
14507{
14508 IL_000F:
14509 stloc:uint16(var_4_15, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
14510}
14511
14512 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14513 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14514 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14515 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14516 --- End of inner exception stack trace ---
14517 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14518 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14519*/;
14520 }
14521
14522 // Token: 0x06002E38 RID: 11832 RVA: 0x001DBD1C File Offset: 0x001D9F1C
14523 public static bool SolidOrSlopedTile(int x, int y)
14524 {
14525 if (!true)
14526 {
14527 }
14528 bool flag;
14529 return flag;
14530 }
14531
14532 // Token: 0x06002E39 RID: 11833 RVA: 0x001DBD30 File Offset: 0x001D9F30
14533 public static bool IsRope(int x, int y)
14534 {
14535 /*
14536An exception occurred when decompiling this method (06002E39)
14537
14538ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::IsRope(System.Int32,System.Int32)
14539
14540 ---> System.Exception: Basic block has to end with unconditional control flow.
14541{
14542 IL_0003:
14543 stloc:bool(var_3_0B, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_1)))
14544 stloc:uint16(var_6_16, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_4)))
14545 stloc:uint16(var_10_25, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_8)))
14546 stloc:uint16(var_13_31, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_11)))
14547 stloc:bool(var_18_3D, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_16)))
14548 stloc:bool(var_21_49, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_19)))
14549 stloc:uint16(var_24_55, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_22)))
14550 stloc:uint16(var_26_5E, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_25)))
14551}
14552
14553 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14554 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14555 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14556 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14557 --- End of inner exception stack trace ---
14558 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14559 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14560*/;
14561 }
14562
14563 // Token: 0x06002E3A RID: 11834 RVA: 0x001DBDA0 File Offset: 0x001D9FA0
14564 public static bool SolidTile(Point p)
14565 {
14566 if (!true)
14567 {
14568 }
14569 bool flag;
14570 return flag;
14571 }
14572
14573 // Token: 0x06002E3B RID: 11835 RVA: 0x001DBDB4 File Offset: 0x001D9FB4
14574 public static bool SolidTile(int i, int j, bool noDoors = false)
14575 {
14576 if (!true)
14577 {
14578 return;
14579 }
14580 }
14581
14582 // Token: 0x06002E3C RID: 11836 RVA: 0x001DBDD0 File Offset: 0x001D9FD0
14583 public static bool SolidTile(Tile tileCache, bool noDoors = false)
14584 {
14585 if (!true)
14586 {
14587 }
14588 if (29792 == 0)
14589 {
14590 return;
14591 }
14592 }
14593
14594 // Token: 0x06002E3D RID: 11837 RVA: 0x001DBDEC File Offset: 0x001D9FEC
14595 public static bool SolidTile2(Tile testTile)
14596 {
14597 int num = 29792;
14598 if (num == 0)
14599 {
14600 }
14601 if (num != 0)
14602 {
14603 return;
14604 }
14605 }
14606
14607 // Token: 0x06002E3E RID: 11838 RVA: 0x001DBE0C File Offset: 0x001DA00C
14608 public static bool PlatformProperTopFrame(short frameX)
14609 {
14610 /*
14611An exception occurred when decompiling this method (06002E3E)
14612
14613ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::PlatformProperTopFrame(System.Int16)
14614
14615 ---> System.Exception: Basic block has to end with unconditional control flow.
14616{
14617 Block_0:
14618 stloc:int32(var_1_07, call:int32(TileObjectData::PlatformFrameWidth))
14619}
14620
14621 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
14622 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
14623 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
14624 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
14625 --- End of inner exception stack trace ---
14626 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
14627 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
14628*/;
14629 }
14630
14631 // Token: 0x06002E3F RID: 11839 RVA: 0x001DBE24 File Offset: 0x001DA024
14632 public static bool SolidTileAllowBottomSlope(int i, int j)
14633 {
14634 int num = 1;
14635 if (num == 0)
14636 {
14637 }
14638 Tile tile;
14639 bool isLoaded = tile.IsLoaded;
14640 if (num == 0)
14641 {
14642 }
14643 if (num == 0)
14644 {
14645 if (num == 0)
14646 {
14647 }
14648 if (num == 0)
14649 {
14650 return;
14651 }
14652 }
14653 if (num == 0)
14654 {
14655 }
14656 if (num != 0)
14657 {
14658 short num2;
14660 return;
14661 }
14662 }
14663
14664 // Token: 0x06002E40 RID: 11840 RVA: 0x001DBE60 File Offset: 0x001DA060
14665 public static bool ActiveAndWalkableTile(int i, int j)
14666 {
14667 int num = 1;
14668 if (num == 0)
14669 {
14670 }
14671 Tile tile;
14672 bool isLoaded = tile.IsLoaded;
14673 if (num == 0)
14674 {
14675 }
14676 if (num != 0)
14677 {
14678 return;
14679 }
14680 }
14681
14682 // Token: 0x06002E41 RID: 11841 RVA: 0x001DBE84 File Offset: 0x001DA084
14683 public static bool SolidTileAllowTopSlope(int i, int j)
14684 {
14685 int num = 1;
14686 if (num == 0)
14687 {
14688 }
14689 Tile tile;
14690 bool isLoaded = tile.IsLoaded;
14691 if (num == 0)
14692 {
14693 }
14694 if (num == 0)
14695 {
14696 }
14697 if (num == 0)
14698 {
14699 }
14700 if (num != 0)
14701 {
14702 return;
14703 }
14704 }
14705
14706 // Token: 0x06002E42 RID: 11842 RVA: 0x001DBEB0 File Offset: 0x001DA0B0
14707 public static bool SolidTileAllowLeftSlope(int i, int j)
14708 {
14709 int num = 1;
14710 if (num == 0)
14711 {
14712 }
14713 Tile tile;
14714 bool flag = tile.active();
14715 if (num == 0)
14716 {
14717 }
14718 if (num == 0)
14719 {
14720 return;
14721 }
14722 if (num == 0)
14723 {
14724 }
14725 if (num == 0)
14726 {
14727 return;
14728 }
14729 }
14730
14731 // Token: 0x06002E43 RID: 11843 RVA: 0x001DBEE0 File Offset: 0x001DA0E0
14732 public static bool SolidTileAllowRightSlope(int i, int j)
14733 {
14734 int num = 1;
14735 if (num == 0)
14736 {
14737 }
14738 Tile tile;
14739 bool flag = tile.active();
14740 if (num == 0)
14741 {
14742 }
14743 if (num == 0)
14744 {
14745 return;
14746 }
14747 if (num == 0)
14748 {
14749 }
14750 if (num == 0)
14751 {
14752 return;
14753 }
14754 }
14755
14756 // Token: 0x06002E44 RID: 11844 RVA: 0x001DBF10 File Offset: 0x001DA110
14757 public static bool TopEdgeCanBeAttachedTo(int i, int j)
14758 {
14759 int num = 1;
14760 if (num == 0)
14761 {
14762 }
14763 Tile tile;
14764 bool isLoaded = tile.IsLoaded;
14765 if (num == 0)
14766 {
14767 }
14768 if (num == 0)
14769 {
14770 if (num == 0)
14771 {
14772 }
14773 if (num == 0)
14774 {
14775 return;
14776 }
14777 }
14778 if (num == 0)
14779 {
14780 }
14781 if (num != 0)
14782 {
14783 short num2;
14785 return;
14786 }
14787 }
14788
14789 // Token: 0x06002E45 RID: 11845 RVA: 0x001DBF4C File Offset: 0x001DA14C
14790 public static bool RightEdgeCanBeAttachedTo(int i, int j)
14791 {
14792 int num = 1;
14793 if (num == 0)
14794 {
14795 }
14796 Tile tile;
14797 bool isLoaded = tile.IsLoaded;
14798 if (num == 0)
14799 {
14800 }
14801 if (num == 0)
14802 {
14803 return;
14804 }
14805 if (num == 0)
14806 {
14807 }
14808 if (num != 0)
14809 {
14810 return;
14811 }
14812 if (num == 0)
14813 {
14814 }
14815 if (num != 0)
14816 {
14817 return;
14818 }
14819 }
14820
14821 // Token: 0x06002E46 RID: 11846 RVA: 0x001DBF7C File Offset: 0x001DA17C
14822 public static bool LeftEdgeCanBeAttachedTo(int i, int j)
14823 {
14824 int num = 1;
14825 if (num == 0)
14826 {
14827 }
14828 Tile tile;
14829 bool isLoaded = tile.IsLoaded;
14830 if (num == 0)
14831 {
14832 }
14833 if (num == 0)
14834 {
14835 return;
14836 }
14837 if (num == 0)
14838 {
14839 }
14840 if (num != 0)
14841 {
14842 return;
14843 }
14844 if (num == 0)
14845 {
14846 }
14847 if (num != 0)
14848 {
14849 return;
14850 }
14851 }
14852
14853 // Token: 0x06002E47 RID: 11847 RVA: 0x001DBFAC File Offset: 0x001DA1AC
14854 public static bool BottomEdgeCanBeAttachedTo(int i, int j)
14855 {
14856 int num = 1;
14857 if (num == 0)
14858 {
14859 }
14860 Tile tile;
14861 bool isLoaded = tile.IsLoaded;
14862 if (num == 0)
14863 {
14864 }
14865 if (num == 0)
14866 {
14867 return;
14868 }
14869 if (num == 0)
14870 {
14871 }
14872 if (num != 0)
14873 {
14874 return;
14875 }
14876 if (num == 0)
14877 {
14878 }
14879 if (num != 0)
14880 {
14881 return;
14882 }
14883 }
14884
14885 // Token: 0x06002E48 RID: 11848 RVA: 0x001DBFDC File Offset: 0x001DA1DC
14886 public static bool SolidTile3(int i, int j)
14887 {
14888 if (!true)
14889 {
14890 }
14891 bool flag = WorldGen.InWorld(0, i, 1);
14892 if (!true)
14893 {
14894 }
14895 bool flag2;
14896 return flag2;
14897 }
14898
14899 // Token: 0x06002E49 RID: 11849 RVA: 0x001DBFFC File Offset: 0x001DA1FC
14900 public static bool SolidTile3(Tile t)
14901 {
14902 int num = 1;
14903 if (num == 0)
14904 {
14905 }
14906 if (num == 0 || num == 0)
14907 {
14908 return;
14909 }
14910 }
14911
14912 // Token: 0x06002E4A RID: 11850 RVA: 0x001DC018 File Offset: 0x001DA218
14913 public static bool SolidTile2(int i, int j)
14914 {
14915 int num = 1;
14916 if (num == 0)
14917 {
14918 }
14919 Tile tile;
14920 bool isLoaded = tile.IsLoaded;
14921 if (num == 0)
14922 {
14923 }
14924 Tile tile2;
14925 bool flag = tile2.active();
14926 if (num == 0)
14927 {
14928 }
14929 Tile tile3;
14930 ushort type = tile3.type;
14931 if (num != 0)
14932 {
14933 if (num == 0)
14934 {
14935 }
14936 Tile tile4;
14937 ushort type2 = tile4.type;
14938 Tile tile5;
14939 bool flag2 = tile5.halfBrick();
14940 Tile tile6;
14941 bool flag3 = tile6.topSlope();
14942 Tile tile7;
14943 byte b = tile7.slope();
14944 Tile tile8;
14945 bool flag4 = tile8.halfBrick();
14946 Tile tile9;
14947 bool flag5 = tile9.inActive();
14948 return;
14949 }
14950 }
14951
14952 // Token: 0x06002E4B RID: 11851 RVA: 0x001DC0A4 File Offset: 0x001DA2A4
14953 public static bool SolidTileNoAttach(int i, int j)
14954 {
14955 int num = 1;
14956 if (num == 0)
14957 {
14958 }
14959 Tile tile;
14960 bool isLoaded = tile.IsLoaded;
14961 if (num == 0)
14962 {
14963 }
14964 Tile tile2;
14965 bool flag = tile2.active();
14966 if (num == 0)
14967 {
14968 }
14969 Tile tile3;
14970 ushort type = tile3.type;
14971 if (num == 0)
14972 {
14973 return;
14974 }
14975 if (num == 0)
14976 {
14977 }
14978 Tile tile4;
14979 ushort type2 = tile4.type;
14980 if (num == 0)
14981 {
14982 if (num == 0)
14983 {
14984 }
14985 Tile tile5;
14986 byte b = tile5.slope();
14987 if (num == 0)
14988 {
14989 }
14990 Tile tile6;
14991 bool flag2 = tile6.halfBrick();
14992 if (num == 0)
14993 {
14994 }
14995 Tile tile7;
14996 bool flag3 = tile7.inActive();
14997 return;
14998 }
14999 }
15000
15001 // Token: 0x06002E4C RID: 11852 RVA: 0x001DC124 File Offset: 0x001DA324
15002 public static void MineHouse(int i, int j)
15003 {
15004 if (!true)
15005 {
15006 }
15008 int num = 6;
15009 int num2 = 12;
15010 int num3 = genRand.Next(num, num2);
15012 int num4 = 3;
15013 int num5 = 6;
15014 int num6 = genRand2.Next(num4, num5);
15016 int num7 = 15;
15017 int num8 = 30;
15018 int num9 = genRand3.Next(num7, num8);
15020 int num10 = 15;
15021 int num11 = 30;
15022 int num12 = genRand4.Next(num10, num11);
15023 long num13 = 0L;
15024 bool flag = WorldGen.SolidTile(i, j, num13 != 0L);
15025 Tile tile;
15026 ushort wall = tile.wall;
15027 long num14 = 0L;
15028 Tile tile2;
15029 ushort wall2 = tile2.wall;
15030 long num15 = 0L;
15031 bool flag2 = WorldGen.SolidTile(0, (int)num14, num15 != 0L);
15032 int num16 = 30;
15033 long num17 = 0L;
15034 bool flag3 = WorldGen.SolidTile(0, num16, num17 != 0L);
15035 if (!false)
15036 {
15037 }
15038 Tile tile3;
15039 bool flag4 = tile3.halfBrick();
15040 if (!false)
15041 {
15042 }
15043 Tile tile4;
15044 byte b = tile4.slope();
15045 if (!false)
15046 {
15047 }
15048 int num18 = 30;
15049 Tile tile5;
15050 tile5.type = (ushort)num18;
15051 }
15052
15053 // Token: 0x06002E4D RID: 11853 RVA: 0x001DCCB0 File Offset: 0x001DAEB0
15054 public static void CountTiles(int X)
15055 {
15056 int num = 1;
15057 if (X == 0)
15058 {
15059 if (num == 0)
15060 {
15061 }
15062 if (num == 0)
15063 {
15064 }
15065 return;
15066 }
15067 int num2;
15068 if (num2 != 0)
15069 {
15070 return;
15071 }
15072 if (num2 == 0)
15073 {
15074 }
15075 if (false)
15076 {
15077 return;
15078 }
15080 }
15081
15082 // Token: 0x06002E4E RID: 11854 RVA: 0x001DCD24 File Offset: 0x001DAF24
15083 public static void AddUpAlignmentCounts(bool clearCounts = false)
15084 {
15085 int num = 1;
15086 if (num == 0)
15087 {
15088 }
15089 if (num == 0)
15090 {
15091 }
15092 }
15093
15094 // Token: 0x06002E4F RID: 11855 RVA: 0x001DCD44 File Offset: 0x001DAF44
15095 [Il2CppSetOption(Option.NullChecks, false)]
15096 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
15097 public static bool checkPlantDye(int i, int j, bool exoticPlant = false)
15098 {
15099 int num = 1;
15100 int num2 = 240;
15101 if (num == 0)
15102 {
15103 }
15104 if (num2 == 0)
15105 {
15106 }
15107 if (num2 == 0)
15108 {
15109 return;
15110 }
15111 }
15112
15113 // Token: 0x06002E50 RID: 11856 RVA: 0x001DCD68 File Offset: 0x001DAF68
15114 [Il2CppSetOption(Option.NullChecks, false)]
15115 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
15116 public static void plantDye(int i, int j, bool exoticPlant = false)
15117 {
15118 int num = 1;
15119 if (num == 0)
15120 {
15121 }
15122 if (num == 0)
15123 {
15124 }
15126 }
15127
15128 // Token: 0x06002E51 RID: 11857 RVA: 0x001DCFA4 File Offset: 0x001DB1A4
15129 private static int MossConversion(int thisType, int otherType)
15130 {
15131 int num = 1;
15132 if (num == 0)
15133 {
15134 }
15135 if (num != 0)
15136 {
15137 return;
15138 }
15139 if (num == 0)
15140 {
15141 }
15142 if (num != 0)
15143 {
15144 return;
15145 }
15146 }
15147
15148 // Token: 0x06002E52 RID: 11858 RVA: 0x001DCFCC File Offset: 0x001DB1CC
15149 public static void UpdateWorld()
15150 {
15151 if (!true)
15152 {
15153 }
15154 }
15155
15156 // Token: 0x06002E53 RID: 11859 RVA: 0x001DD1C4 File Offset: 0x001DB3C4
15157 public static int GetWorldUpdateRate()
15158 {
15159 /*
15160An exception occurred when decompiling this method (06002E53)
15161
15162ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::GetWorldUpdateRate()
15163
15164 ---> System.Exception: Basic block has to end with unconditional control flow.
15165{
15166 IL_0003:
15167 stloc:int32(var_0_0F, call:int32(Math::Min, ldc.i4:int32(-2147483648), ldc.i4:int32(24)))
15168 stloc:bool(var_2_21, ldfld:bool(ASharedTogglePower::<Enabled>k__BackingField, call:FreezeTime[exp:ASharedTogglePower](CreativePowerManager::GetPower, callgetter:CreativePowerManager(CreativePowerManager::get_Instance))))
15169}
15170
15171 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
15172 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
15173 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
15174 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
15175 --- End of inner exception stack trace ---
15176 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
15177 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
15178*/;
15179 }
15180
15181 // Token: 0x06002E54 RID: 11860 RVA: 0x001DD1F4 File Offset: 0x001DB3F4
15182 private static void UpdateWorld_OvergroundTile(int i, int j, bool checkNPCSpawns, int wallDist)
15183 {
15184 int num = 1;
15185 int num2 = 10;
15186 if (num == 0)
15187 {
15188 }
15189 if (num2 != 0)
15190 {
15191 return;
15192 }
15193 if (num == 0)
15194 {
15195 }
15196 if (num == 0)
15197 {
15198 return;
15199 }
15200 if (num == 0)
15201 {
15202 }
15203 WorldGen.GrowAlch(i, j);
15204 }
15205
15206 // Token: 0x06002E55 RID: 11861 RVA: 0x001DE50C File Offset: 0x001DC70C
15207 public static bool AttemptToGrowTreeFromSapling(int x, int y, bool underground)
15208 {
15209 int num = 1;
15210 if (num == 0)
15211 {
15212 }
15213 if (num == 0)
15214 {
15215 }
15216 int num2 = 2;
15217 bool flag = WorldGen.InWorld(0, x, num2);
15218 if (num == 0)
15219 {
15220 }
15221 Tile tile;
15222 bool flag2 = tile.active();
15223 if (num == 0)
15224 {
15225 }
15226 if (num == 0)
15227 {
15228 }
15229 long num3 = 0L;
15230 if (num == 0)
15231 {
15232 }
15233 bool flag3 = WorldGen.TryGrowingTreeByType(596, (int)num3, x);
15234 if (num == 0)
15235 {
15236 }
15237 bool flag4 = WorldGen.PlayerLOS(0, x);
15238 if (num == 0)
15239 {
15240 }
15242 if (num == 0)
15243 {
15244 }
15245 return WorldGen.GrowPalmTree(0, x);
15246 }
15247
15248 // Token: 0x06002E56 RID: 11862 RVA: 0x001DE59C File Offset: 0x001DC79C
15249 public static void DontStarveTryWateringTile(int x, int y)
15250 {
15251 if (!true)
15252 {
15253 }
15254 Tile tile;
15255 bool flag = tile.active();
15256 if (!true)
15257 {
15258 }
15259 bool flag2 = WorldGen.IsSafeFromRain(x, y);
15260 if (!true)
15261 {
15262 }
15263 long num = 0L;
15264 bool flag3 = WorldGen.HasAnyWireNearby(x, y, (int)num);
15265 long num2 = 0L;
15266 long num3 = 0L;
15267 long num4 = 0L;
15268 WorldGen.KillTile(x, y, num2 != 0L, num3 != 0L, num4 != 0L);
15269 bool netHost = Main.NetHost;
15270 }
15271
15272 // Token: 0x06002E57 RID: 11863 RVA: 0x001DE5F0 File Offset: 0x001DC7F0
15273 public static bool HasAnyWireNearby(int sourceX, int sourceY, int boxSpread)
15274 {
15275 if (!true)
15276 {
15277 }
15278 Tile tile;
15279 bool flag = tile.wire();
15280 bool flag2;
15281 return flag2;
15282 }
15283
15284 // Token: 0x06002E58 RID: 11864 RVA: 0x001DE614 File Offset: 0x001DC814
15285 public static bool IsSafeFromRain(int startX, int startY)
15286 {
15288 if (!true)
15289 {
15290 }
15291 if (!true)
15292 {
15293 }
15294 if (!true)
15295 {
15296 }
15297 if (!true)
15298 {
15299 }
15300 bool flag;
15301 return flag;
15302 }
15303
15304 // Token: 0x06002E59 RID: 11865 RVA: 0x001DE654 File Offset: 0x001DC854
15305 public static bool TryToggleLight(int x, int y, bool? forcedState, bool skipWires)
15306 {
15307 if (!true)
15308 {
15309 }
15310 Tile tile;
15311 bool flag = tile.active();
15312 if (!true)
15313 {
15314 }
15315 return false;
15316 }
15317
15318 // Token: 0x06002E5A RID: 11866 RVA: 0x001DE6A0 File Offset: 0x001DC8A0
15319 private static bool HasValidGroundForAbigailsFlowerBelowSpot(int x, int y)
15320 {
15321 int num = 1;
15322 if (num == 0)
15323 {
15324 }
15325 int num2 = 2;
15326 bool flag = WorldGen.InWorld(0, x, num2);
15327 if (num == 0)
15328 {
15329 }
15330 Tile tile;
15331 bool flag2 = tile.active();
15332 if (num == 0)
15333 {
15334 }
15335 if (num != 0)
15336 {
15337 if (num == 0)
15338 {
15339 }
15341 }
15342 }
15343
15344 // Token: 0x06002E5B RID: 11867 RVA: 0x001DE6DC File Offset: 0x001DC8DC
15345 private static bool TryGrowingAbigailsFlower(int i, int j)
15346 {
15347 /*
15348An exception occurred when decompiling this method (06002E5B)
15349
15350ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::TryGrowingAbigailsFlower(System.Int32,System.Int32)
15351
15352 ---> System.Exception: Basic block has to end with unconditional control flow.
15353{
15354 IL_00BA:
15355 stloc:bool(var_21_C1, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_20)))
15356}
15357
15358 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
15359 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
15360 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
15361 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
15362 --- End of inner exception stack trace ---
15363 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
15364 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
15365*/;
15366 }
15367
15368 // Token: 0x06002E5C RID: 11868 RVA: 0x001DE7B0 File Offset: 0x001DC9B0
15369 private static bool NoNearbyAbigailsFlower(int i, int j)
15370 {
15371 /*
15372An exception occurred when decompiling this method (06002E5C)
15373
15374ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::NoNearbyAbigailsFlower(System.Int32,System.Int32)
15375
15376 ---> System.Exception: Basic block has to end with unconditional control flow.
15377{
15378 IL_0003:
15379 stloc:bool(var_2_0B, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_1)))
15380}
15381
15382 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
15383 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
15384 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
15385 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
15386 --- End of inner exception stack trace ---
15387 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
15388 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
15389*/;
15390 }
15391
15392 // Token: 0x06002E5D RID: 11869 RVA: 0x001DE7CC File Offset: 0x001DC9CC
15393 private static bool HasValidGroundForGlowTulipBelowSpot(int x, int y)
15394 {
15395 int num = 1;
15396 if (num == 0)
15397 {
15398 }
15399 int num2 = 2;
15400 bool flag = WorldGen.InWorld(0, x, num2);
15401 if (num == 0)
15402 {
15403 }
15404 Tile tile;
15405 bool flag2 = tile.active();
15406 if (num == 0 || num == 0)
15407 {
15408 }
15410 }
15411
15412 // Token: 0x06002E5E RID: 11870 RVA: 0x001DE804 File Offset: 0x001DCA04
15413 private static bool TryGrowingGlowTulip(int i, int j)
15414 {
15415 if (!true)
15416 {
15417 }
15419 int num = Math.Max(10, 43143168);
15420 int num2 = Math.Min(int.MinValue, 43143168);
15421 int num3 = genRand.Next(num, num2);
15423 int num4 = Math.Max(10, num);
15424 int num5 = Math.Min(num4, num);
15425 int num6 = genRand2.Next(num4, num5);
15427 if (-2147483648 == 0)
15428 {
15429 }
15431 if (-2147483648 == 0)
15432 {
15433 }
15434 if (-2147483648 == 0)
15435 {
15436 }
15437 Tile tile;
15438 bool flag3 = tile.active();
15439 if (-2147483648 == 0)
15440 {
15441 }
15442 if (-2147483648 == 0)
15443 {
15444 if (-2147483648 == 0)
15445 {
15446 }
15447 bool netHost = Main.NetHost;
15448 if (-2147483648 == 0)
15449 {
15450 }
15451 Tile tile2;
15452 bool flag4 = tile2.active();
15453 return;
15454 }
15455 }
15456
15457 // Token: 0x06002E5F RID: 11871 RVA: 0x001DE8D0 File Offset: 0x001DCAD0
15458 private static bool NoNearbyGlowTulips(int i, int j)
15459 {
15460 /*
15461An exception occurred when decompiling this method (06002E5F)
15462
15463ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::NoNearbyGlowTulips(System.Int32,System.Int32)
15464
15465 ---> System.Exception: Basic block has to end with unconditional control flow.
15466{
15467 IL_0003:
15468 stloc:bool(var_2_0B, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_1)))
15469}
15470
15471 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
15472 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
15473 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
15474 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
15475 --- End of inner exception stack trace ---
15476 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
15477 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
15478*/;
15479 }
15480
15481 // Token: 0x06002E60 RID: 11872 RVA: 0x001DE8EC File Offset: 0x001DCAEC
15482 private static void UpdateWorld_UndergroundTile(int i, int j, bool checkNPCSpawns, int wallDist)
15483 {
15484 int num = 1;
15485 if (num == 0)
15486 {
15487 }
15488 if (num == 0)
15489 {
15490 return;
15491 }
15492 if (num == 0)
15493 {
15494 }
15495 if (num == 0)
15496 {
15497 return;
15498 }
15499 WorldGen.GrowAlch(i, j);
15501 int num2 = 3;
15502 int num3 = genRand.Next(j, num2);
15504 int num4 = 3;
15505 int num5 = genRand2.Next(j, num4);
15506 int num6 = 10;
15507 bool flag = WorldGen.InWorld(1073741824, wallDist, num6);
15508 if (1073741824 == 0)
15509 {
15510 }
15511 Tile tile;
15512 ushort wall = tile.wall;
15513 if (1073741824 == 0)
15514 {
15515 }
15516 Tile tile2;
15517 ushort wall2 = tile2.wall;
15518 long num7 = 0L;
15519 if (num7 == 0L)
15520 {
15521 }
15522 Tile tile3;
15523 bool flag2 = tile3.active();
15524 if (num7 == 0L)
15525 {
15526 }
15527 Tile tile4;
15528 ushort type = tile4.type;
15529 if (num7 == 0L)
15530 {
15531 }
15532 int num8 = 81;
15533 Tile tile5;
15534 tile5.wall = (ushort)num8;
15535 bool netHost = Main.NetHost;
15536 }
15537
15538 // Token: 0x06002E61 RID: 11873 RVA: 0x001DF864 File Offset: 0x001DDA64
15539 private static void GrowWeb(int i, int j)
15540 {
15541 int num = 1;
15542 if (num == 0)
15543 {
15544 }
15546 int num2 = 10;
15547 if (genRand.Next(num2) == 0)
15548 {
15549 if (num == 0)
15550 {
15551 }
15553 int num3 = 2;
15554 int num4 = 4;
15555 int num5 = genRand2.Next(num3, num4);
15556 if (num == 0)
15557 {
15558 }
15559 long num6 = 0L;
15560 bool flag = WorldGen.SolidTile(43143168, num3, num6 != 0L);
15561 return;
15562 }
15563 }
15564
15565 // Token: 0x06002E62 RID: 11874 RVA: 0x001DF8EC File Offset: 0x001DDAEC
15567 {
15568 while (32752 == 0)
15569 {
15570 }
15571 long num = 32752L;
15573 int num2 = 2500;
15574 if (num == 0L)
15575 {
15576 }
15577 int num3 = WorldGen.genRand.Next(-1717567488);
15579 long num4 = 0L;
15580 int num5 = genRand.Next(-1717567488);
15581 if (num == 0L)
15582 {
15583 }
15584 if (num == 0L)
15585 {
15586 }
15587 Tile tile;
15588 bool flag = tile.active();
15589 long num6 = 0L;
15590 if (num == 0L)
15591 {
15592 }
15593 bool flag3;
15594 bool flag2 = WorldGen.AttemptToGeneratePlanteraBulbAt(flag3 ? 1 : 0, (int)num6, num4 != 0L);
15595 if (num == 0L)
15596 {
15597 }
15599 if (num == 0L)
15600 {
15601 }
15603 while (num2 != 0)
15604 {
15605 }
15606 }
15607
15608 // Token: 0x06002E63 RID: 11875 RVA: 0x001DF990 File Offset: 0x001DDB90
15609 private static bool AttemptToGeneratePlanteraBulbAt(int i, int j, bool forceBulb)
15610 {
15611 int num = 1;
15612 if (num == 0)
15613 {
15614 }
15615 Tile tile;
15616 ushort type = tile.type;
15617 if (num == 0)
15618 {
15619 }
15620 if (num == 0)
15621 {
15622 }
15623 if (num == 0)
15624 {
15625 int num2 = 1;
15626 if (num == 0)
15627 {
15628 }
15629 Tile tile2;
15630 tile2.ClearTile();
15631 if (num2 != 0)
15632 {
15633 int num3 = 60;
15634 tile2.type = (ushort)num3;
15635 int num4 = 1;
15636 tile2.active(num4 != 0);
15637 }
15638 if (num == 0)
15639 {
15640 }
15641 int num5 = 1;
15642 WorldGen.SquareTileFrame(j, 43143168, num5 != 0);
15643 if (num == 0)
15644 {
15645 }
15646 int num6 = 238;
15647 long num7 = 0L;
15648 long num8 = 0L;
15649 WorldGen.PlaceJunglePlant(0, i, (ushort)num6, (int)num7, (int)num8);
15650 if (num == 0)
15651 {
15652 }
15653 Tile tile3;
15654 ushort type2 = tile3.type;
15655 if (num == 0)
15656 {
15657 }
15658 int num9 = 1;
15659 WorldGen.SquareTileFrame(0, i, num9 != 0);
15660 int num10 = 1;
15661 WorldGen.SquareTileFrame(0, i, num10 != 0);
15662 int num11 = 1;
15663 WorldGen.SquareTileFrame(0, i, num11 != 0);
15664 if (num == 0)
15665 {
15666 }
15667 bool netHost = Main.NetHost;
15668 if (num == 0)
15669 {
15670 }
15671 return false;
15672 }
15673 }
15674
15675 // Token: 0x06002E64 RID: 11876 RVA: 0x001DFABC File Offset: 0x001DDCBC
15676 private static void UpdateWorld_GrassGrowth(int i, int j, int minI, int maxI, int minJ, int maxJ, bool underground)
15677 {
15678 int num = 1;
15679 if (num == 0)
15680 {
15681 }
15682 int num2 = 10;
15683 bool flag = WorldGen.InWorld(i, j, num2);
15684 if (num == 0)
15685 {
15686 }
15687 Tile tile;
15688 ushort type = tile.type;
15689 if (num == 0)
15690 {
15691 }
15692 if (num != 0)
15693 {
15694 return;
15695 }
15696 }
15697
15698 // Token: 0x06002E65 RID: 11877 RVA: 0x001E0348 File Offset: 0x001DE548
15699 private static void TrySpawningTownNPC(int x, int y)
15700 {
15701 if (!true)
15702 {
15703 }
15704 if (!true)
15705 {
15706 }
15707 if (!true)
15708 {
15709 }
15710 Tile tile;
15711 ushort wall = tile.wall;
15712 if (!true)
15713 {
15714 }
15715 int num;
15716 if (num == 0)
15717 {
15718 if (!true)
15719 {
15720 }
15722 }
15723 if (!true)
15724 {
15725 }
15726 }
15727
15728 // Token: 0x06002E66 RID: 11878 RVA: 0x001E037C File Offset: 0x001DE57C
15729 public static void SpreadDesertWalls(int wallDist, int i, int j)
15730 {
15731 int num = 1;
15732 if (num == 0)
15733 {
15734 }
15735 int num2 = 10;
15736 bool flag = WorldGen.InWorld(i, j, num2);
15737 if (num == 0)
15738 {
15739 }
15740 if (num == 0)
15741 {
15742 if (num == 0)
15743 {
15744 }
15745 if (num == 0)
15746 {
15747 if (num == 0)
15748 {
15749 }
15750 if (num == 0)
15751 {
15752 return;
15753 }
15754 }
15755 }
15756 if (num == 0)
15757 {
15758 }
15759 long num3;
15760 if (num == 0)
15761 {
15762 if (num == 0)
15763 {
15764 }
15765 if (num == 0)
15766 {
15767 num3 = 0L;
15768 return;
15769 }
15770 }
15771 if (num == 0)
15772 {
15773 }
15774 if (num == 0)
15775 {
15776 if (num == 0)
15777 {
15778 }
15779 if (num != 0)
15780 {
15781 }
15782 }
15783 if (num == 0)
15784 {
15785 }
15786 if (num == 0)
15787 {
15788 if (num == 0)
15789 {
15790 }
15791 if (num == 0)
15792 {
15793 while (num3 != 0L)
15794 {
15795 }
15796 return;
15797 }
15798 }
15800 int num4 = 3;
15801 int num5 = genRand.Next(j, num4);
15803 int num6 = 3;
15804 int num7 = genRand2.Next(j, num6);
15805 if (num7 == 0)
15806 {
15807 }
15808 if (num7 != 0)
15809 {
15810 if (num7 == 0)
15811 {
15812 return;
15813 }
15814 if (num7 == 0)
15815 {
15816 }
15817 return;
15818 }
15819 }
15820
15821 // Token: 0x06002E67 RID: 11879 RVA: 0x001E0448 File Offset: 0x001DE648
15822 public static void PlaceWall(int i, int j, int type, bool mute = false)
15823 {
15824 if (!true)
15825 {
15826 }
15827 Tile tile;
15828 ushort wall = tile.wall;
15829 int num = 1;
15830 WorldGen.SquareWallFrame(i, j, num != 0);
15831 }
15832
15833 // Token: 0x06002E68 RID: 11880 RVA: 0x001E046C File Offset: 0x001DE66C
15834 public static void SpreadGrass(int i, int j, int dirt = 0, int grass = 2, bool repeat = true, [Optional] TileColorCache color)
15835 {
15836 if (!true)
15837 {
15838 }
15839 if (grass != 0)
15840 {
15841 return;
15842 }
15843 if (grass != 0)
15844 {
15845 return;
15846 }
15847 }
15848
15849 // Token: 0x06002E69 RID: 11881 RVA: 0x001E04A0 File Offset: 0x001DE6A0
15850 public static void ChasmRunnerSideways(int i, int j, int direction, int steps)
15851 {
15852 if (!true)
15853 {
15854 }
15856 int num = 10;
15857 int num2 = 21;
15858 int num3 = genRand.Next(num, num2);
15860 int num4 = 10;
15861 int num5 = genRand2.Next(num, num4);
15863 int num6 = 5;
15864 int num7 = genRand3.Next(num6);
15866 int num8 = 3;
15867 int num9 = genRand4.Next(num8);
15869 int num10 = 3;
15870 int num11 = genRand5.Next(num10);
15871 }
15872
15873 // Token: 0x06002E6A RID: 11882 RVA: 0x001E069C File Offset: 0x001DE89C
15874 public static void CrimStart(int i, int j)
15875 {
15876 int num = 1;
15877 if (num == 0)
15878 {
15879 }
15880 if (num == 0)
15881 {
15882 }
15883 int num2 = 32768;
15884 if (num2 == 0)
15885 {
15886 }
15887 long num3 = 0L;
15888 bool flag = WorldGen.SolidTile(i, j, num3 != 0L);
15889 long num4 = 0L;
15890 if (num2 == 0)
15891 {
15892 }
15894 int num5 = 21;
15895 int num6 = genRand.Next((int)num4, num5);
15897 int num7 = 20;
15898 int num8 = 201;
15899 int num9 = genRand2.Next(num7, num8);
15901 int num10 = 15;
15902 int num11 = 26;
15903 int num12 = genRand3.Next(num10, num11);
15905 int num13 = 51;
15906 int num14 = genRand4.Next(num10, num13);
15907 long num15 = 0L;
15908 Tile tile;
15909 tile.active(num15 != 0L);
15910 }
15911
15912 // Token: 0x06002E6B RID: 11883 RVA: 0x001E0A90 File Offset: 0x001DEC90
15913 public static void CrimPlaceHearts()
15914 {
15916 int num = 16;
15917 int num2 = 21;
15918 int num3 = genRand.Next(num, num2);
15919 int num4 = 1;
15920 Tile tile;
15921 tile.active(num4 != 0);
15922 int num5 = 203;
15923 tile.type = (ushort)num5;
15924 int num6 = 83;
15925 tile.wall = (ushort)num6;
15926 }
15927
15928 // Token: 0x06002E6C RID: 11884 RVA: 0x001E0B30 File Offset: 0x001DED30
15929 public static void CrimEnt(Vector2D position, int crimDir)
15930 {
15931 if (!true)
15932 {
15933 }
15935 int num = 6;
15936 int num2 = 11;
15937 int num3 = genRand.Next(num, num2);
15939 long num4 = 0L;
15940 int num5 = genRand2.Next(num, (int)num4);
15941 long num6 = 0L;
15943 int num7 = 11;
15944 int num8 = genRand3.Next((int)num6, num7);
15945 Tile tile;
15946 bool flag = tile.active();
15947 Tile tile2;
15948 ushort type = tile2.type;
15949 long num9 = 0L;
15950 Tile tile3;
15951 tile3.active(num9 != 0L);
15952 }
15953
15954 // Token: 0x06002E6D RID: 11885 RVA: 0x001E0BA8 File Offset: 0x001DEDA8
15955 public static void CrimVein(Vector2D position, Vector2D velocity)
15956 {
15957 int num = 1;
15958 if (num == 0)
15959 {
15960 }
15962 int num2 = 15;
15963 int num3 = 26;
15964 int num4 = genRand.Next(num2, num3);
15966 int num5 = 100;
15967 int num6 = 150;
15968 int num7 = genRand2.Next(num5, num6);
15969 if (num == 0)
15970 {
15971 }
15973 int num8 = 51;
15974 int num9 = genRand3.Next(num5, num8);
15975 if (num == 0)
15976 {
15977 }
15978 if (num == 0)
15979 {
15980 }
15981 long num10 = 0L;
15982 Tile tile;
15983 tile.active(num10 != 0L);
15984 int num11 = 83;
15985 tile.wall = (ushort)num11;
15986 }
15987
15988 // Token: 0x06002E6E RID: 11886 RVA: 0x001E0C84 File Offset: 0x001DEE84
15989 public static void ChasmRunner(int i, int j, int steps, bool makeOrb = false)
15990 {
15991 if (!true)
15992 {
15993 }
15995 int num = 11;
15996 int num2 = genRand.Next(j, num);
15998 int num3 = 11;
15999 int num4 = genRand2.Next(num3);
16001 int num5 = 5;
16002 int num6 = genRand3.Next(num5);
16004 int num7 = 3;
16005 int num8 = genRand4.Next(num7);
16007 int num9 = 3;
16008 int num10 = genRand5.Next(num9);
16009 }
16010
16011 // Token: 0x06002E6F RID: 11887 RVA: 0x001E0F40 File Offset: 0x001DF140
16012 public static void ExecuteThreadTime()
16013 {
16014 if (!true)
16015 {
16016 }
16017 if (!true)
16018 {
16019 }
16020 if (!true)
16021 {
16022 }
16024 if (!false)
16025 {
16026 if (3 == 0)
16027 {
16028 Thread.Sleep(0);
16030 if (false)
16031 {
16032 goto IL_0038;
16033 }
16034 if (5 == 0)
16035 {
16036 return;
16037 }
16038 }
16039 return;
16040 }
16041 IL_0038:
16042 throw new OutOfMemoryException();
16043 }
16044
16045 // Token: 0x06002E70 RID: 11888 RVA: 0x001E0FA8 File Offset: 0x001DF1A8
16046 private static void CloseThreadTime()
16047 {
16048 if (!true)
16049 {
16050 }
16051 if (!false)
16052 {
16053 return;
16054 }
16055 throw new OutOfMemoryException();
16056 }
16057
16058 // Token: 0x06002E71 RID: 11889 RVA: 0x001E0FD8 File Offset: 0x001DF1D8
16059 private static void WaitForThreadTime()
16060 {
16061 if (!true)
16062 {
16063 }
16067 bool flag = timeSpan > timeSpan2;
16068 long num = 0L;
16070 if (num == 0L)
16071 {
16073 return;
16074 }
16075 throw new OutOfMemoryException();
16076 }
16077
16078 // Token: 0x06002E72 RID: 11890 RVA: 0x001E109C File Offset: 0x001DF29C
16079 public static void SpawnPlanteraThorns(Vector2 position)
16080 {
16081 int num = 1;
16082 if (num == 0)
16083 {
16084 }
16085 if (num == 0)
16086 {
16087 }
16088 int num2 = 15744;
16089 int num3 = 32640;
16090 if (num2 == 0)
16091 {
16092 }
16093 if (num3 == 0)
16094 {
16095 }
16096 int num4 = 1;
16097 if (num4 == 0)
16098 {
16099 }
16100 Tile tile;
16101 bool flag = tile.active();
16102 if (num4 == 0)
16103 {
16104 }
16105 if (num4 == 0)
16106 {
16107 }
16108 Tile tile2;
16109 bool flag2 = tile2.active();
16110 if (num4 == 0)
16111 {
16112 }
16113 bool netHost = Main.NetHost;
16114 if (!false)
16115 {
16116 }
16117 long num5 = 0L;
16118 int num6;
16119 bool flag3 = WorldGen.InWorld(0, num6, (int)num5);
16120 if (!false)
16121 {
16122 }
16123 int num7;
16124 while (num7 != 0)
16125 {
16126 }
16127 if (!false)
16128 {
16129 }
16130 }
16131
16132 // Token: 0x06002E73 RID: 11891 RVA: 0x001E1130 File Offset: 0x001DF330
16133 public static void GERunner(int i, int j, double speedX = 0.0, double speedY = 0.0, bool good = true)
16134 {
16135 int num = 1;
16136 if (num == 0)
16137 {
16138 }
16139 if (num == 0)
16140 {
16141 }
16142 Tile tile;
16143 bool flag = tile.active();
16144 Tile tile2;
16145 ushort type = tile2.type;
16146 }
16147
16148 // Token: 0x06002E74 RID: 11892 RVA: 0x001E127C File Offset: 0x001DF47C
16149 private static bool badOceanCaveTiles(int x, int y)
16150 {
16151 /*
16152An exception occurred when decompiling this method (06002E74)
16153
16154ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::badOceanCaveTiles(System.Int32,System.Int32)
16155
16156 ---> System.Exception: Basic block has to end with unconditional control flow.
16157{
16158 IL_008B:
16159 stloc:uint16(var_23_92, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_22)))
16160}
16161
16162 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
16163 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
16164 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
16165 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
16166 --- End of inner exception stack trace ---
16167 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
16168 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
16169*/;
16170 }
16171
16172 // Token: 0x06002E75 RID: 11893 RVA: 0x001E131C File Offset: 0x001DF51C
16173 public static void oceanCave(int i, int j)
16174 {
16175 if (!true)
16176 {
16177 }
16178 double num = WorldGen.genRand.NextDouble();
16179 double num2 = WorldGen.genRand.NextDouble();
16181 int num3 = 17;
16182 int num4 = 25;
16183 int num5 = genRand.Next(num3, num4);
16185 int num6 = 600;
16186 int num7 = 800;
16187 int num8 = genRand2.Next(num6, num7);
16188 int num9 = 1;
16189 double num10 = WorldGen.genRand.NextDouble();
16190 long num11 = 32752L;
16191 long num12 = 32752L;
16192 if (num11 == 0L)
16193 {
16194 }
16195 if (num11 == 0L)
16196 {
16197 }
16198 if (num12 == 0L)
16199 {
16200 }
16201 if (num11 == 0L)
16202 {
16203 }
16204 long num13 = 16473L;
16205 if (num13 == 0L)
16206 {
16207 }
16208 bool flag = WorldGen.badOceanCaveTiles(1073741824, num9);
16209 if (num13 == 0L)
16210 {
16211 }
16212 if (num13 == 0L)
16213 {
16214 }
16215 int num14 = 264;
16216 Tile tile;
16217 tile.type = (ushort)num14;
16218 long num15 = 0L;
16219 tile.active(num15 != 0L);
16220 }
16221
16222 // Token: 0x06002E76 RID: 11894 RVA: 0x001E1584 File Offset: 0x001DF784
16223 public static void WavyCaverer(int startX, int startY, double waveStrengthScalar, double wavePercentScalar, int steps, int type)
16224 {
16225 if (!true)
16226 {
16227 }
16229 int num = 2;
16230 int num2 = genRand.Next(num);
16232 int num3 = 11;
16233 int num4 = genRand2.Next(num3);
16235 int num5 = 2;
16236 int num6 = genRand3.Next(num5);
16237 double num7 = WorldGen.genRand.NextDouble();
16238 double num8 = WorldGen.genRand.NextDouble();
16239 double num9 = Math.Max(num8, wavePercentScalar);
16240 double num10 = Math.Min(num9, num9);
16242 long num11 = 0L;
16243 double num12 = genRand4.NextDouble();
16244 double num13 = Math.Max(num12, num9);
16245 double num14 = Math.Min(num13, num13);
16246 int num15 = Math.Min(0, (int)num11);
16247 }
16248
16249 // Token: 0x06002E77 RID: 11895 RVA: 0x001E1680 File Offset: 0x001DF880
16250 [Il2CppSetOption(Option.NullChecks, false)]
16251 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
16252 public static void TileRunner(int i, int j, double strength, int steps, int type, bool addTile = false, double speedX = 0.0, double speedY = 0.0, bool noYChange = false, bool overRide = true, int ignoreTileType = -1)
16253 {
16254 if (!true)
16255 {
16256 }
16258 int num = 81;
16259 int num2 = genRand.Next(j, num);
16261 int num3 = 81;
16262 int num4 = genRand2.Next(j, num3);
16263 }
16264
16265 // Token: 0x06002E78 RID: 11896 RVA: 0x001E1BD4 File Offset: 0x001DFDD4
16266 public static void DirtyRockRunner(int i, int j)
16267 {
16268 if (!true)
16269 {
16270 }
16272 int num = 2;
16273 int num2 = 6;
16274 int num3 = genRand.Next(num, num2);
16276 int num4 = 5;
16277 int num5 = 50;
16278 int num6 = genRand2.Next(num4, num5);
16280 int num7 = 11;
16281 int num8 = genRand3.Next(num4, num7);
16283 int num9 = 11;
16284 int num10 = genRand4.Next(num4, num9);
16285 }
16286
16287 // Token: 0x06002E79 RID: 11897 RVA: 0x001E1C9C File Offset: 0x001DFE9C
16288 public static void MudWallRunner(int i, int j)
16289 {
16290 if (!true)
16291 {
16292 }
16294 int num = 8;
16295 int num2 = 21;
16296 int num3 = genRand.Next(num, num2);
16298 int num4 = 8;
16299 int num5 = 33;
16300 int num6 = genRand2.Next(num4, num5);
16302 int num7 = 11;
16303 int num8 = genRand3.Next(num4, num7);
16305 int num9 = 11;
16306 int num10 = genRand4.Next(num4, num9);
16307 }
16308
16309 // Token: 0x06002E7A RID: 11898 RVA: 0x001E1D64 File Offset: 0x001DFF64
16310 public static void SnowCloudIsland(int i, int j)
16311 {
16312 if (!true)
16313 {
16314 }
16316 int num = 100;
16317 int num2 = 150;
16318 int num3 = genRand.Next(num, num2);
16320 int num4 = 20;
16321 int num5 = 30;
16322 int num6 = genRand2.Next(num4, num5);
16324 int num7 = 21;
16325 int num8 = genRand3.Next(num4, num7);
16327 int num9 = 21;
16328 if (genRand4.Next(num4, num9) != 0)
16329 {
16330 }
16333 int num11 = 4;
16334 int num12 = genRand5.Next(num11);
16335 }
16336
16337 // Token: 0x06002E7B RID: 11899 RVA: 0x001E2364 File Offset: 0x001E0564
16338 public static void DesertCloudIsland(int i, int j)
16339 {
16340 if (!true)
16341 {
16342 }
16344 int num = 100;
16345 int num2 = 150;
16346 int num3 = genRand.Next(num, num2);
16348 int num4 = 20;
16349 int num5 = 30;
16350 int num6 = genRand2.Next(num4, num5);
16352 int num7 = 21;
16353 int num8 = genRand3.Next(num4, num7);
16355 int num9 = 21;
16356 if (genRand4.Next(num4, num9) != 0)
16357 {
16358 }
16361 int num11 = 4;
16362 int num12 = genRand5.Next(num11);
16363 }
16364
16365 // Token: 0x06002E7C RID: 11900 RVA: 0x001E2960 File Offset: 0x001E0B60
16366 public static void CloudIsland(int i, int j)
16367 {
16368 if (!true)
16369 {
16370 }
16372 int num = 100;
16373 int num2 = 150;
16374 int num3 = genRand.Next(num, num2);
16376 int num4 = 20;
16377 int num5 = 30;
16378 int num6 = genRand2.Next(num4, num5);
16380 int num7 = 21;
16381 int num8 = genRand3.Next(num4, num7);
16383 int num9 = 21;
16384 if (genRand4.Next(num4, num9) != 0)
16385 {
16386 }
16389 int num11 = 4;
16390 int num12 = genRand5.Next(num11);
16391 }
16392
16393 // Token: 0x06002E7D RID: 11901 RVA: 0x001E2F5C File Offset: 0x001E115C
16394 public static bool WillWaterPlacedHereStayPut(int x, int y)
16395 {
16396 int num = 1;
16397 if (num == 0)
16398 {
16399 }
16400 Tile tile;
16401 bool flag = tile.active();
16402 if (num == 0)
16403 {
16404 }
16405 Tile tile2;
16406 ushort type = tile2.type;
16407 if (num != 0)
16408 {
16409 if (num == 0)
16410 {
16411 }
16412 Tile tile3;
16413 ushort type2 = tile3.type;
16414 if (num == 0)
16415 {
16416 goto IL_003E;
16417 }
16418 }
16419 if (num == 0)
16420 {
16421 }
16422 Tile tile4;
16423 byte liquid = tile4.liquid;
16424 IL_003E:
16425 if (num == 0)
16426 {
16427 }
16428 Tile tile5;
16429 bool flag2 = tile5.active();
16430 if (num == 0)
16431 {
16432 }
16433 Tile tile6;
16434 ushort type3 = tile6.type;
16435 if (num != 0)
16436 {
16437 if (num == 0)
16438 {
16439 }
16440 Tile tile7;
16441 ushort type4 = tile7.type;
16442 if (num == 0)
16443 {
16444 goto IL_0077;
16445 }
16446 }
16447 if (num == 0)
16448 {
16449 }
16450 Tile tile8;
16451 byte liquid2 = tile8.liquid;
16452 IL_0077:
16453 if (num == 0)
16454 {
16455 }
16456 Tile tile9;
16457 bool flag3 = tile9.active();
16458 if (num == 0)
16459 {
16460 }
16461 Tile tile10;
16462 ushort type5 = tile10.type;
16463 if (num != 0)
16464 {
16465 if (num == 0)
16466 {
16467 }
16468 Tile tile11;
16469 ushort type6 = tile11.type;
16470 if (num == 0)
16471 {
16472 return;
16473 }
16474 }
16475 if (num == 0)
16476 {
16477 }
16478 Tile tile12;
16479 byte liquid3 = tile12.liquid;
16480 }
16481
16482 // Token: 0x06002E7E RID: 11902 RVA: 0x001E3024 File Offset: 0x001E1224
16483 public static void CloudLake(int i, int j)
16484 {
16485 if (!true)
16486 {
16487 }
16489 int num = 100;
16490 int num2 = 150;
16491 int num3 = genRand.Next(num, num2);
16493 int num4 = 20;
16494 int num5 = 30;
16495 int num6 = genRand2.Next(num4, num5);
16497 int num7 = 21;
16498 int num8 = genRand3.Next(num4, num7);
16500 int num9 = 21;
16501 if (genRand4.Next(num4, num9) != 0)
16502 {
16503 }
16506 int num11 = 4;
16507 int num12 = genRand5.Next(num11);
16508 }
16509
16510 // Token: 0x06002E7F RID: 11903 RVA: 0x001E3588 File Offset: 0x001E1788
16511 public static void FloatingIsland(int i, int j)
16512 {
16513 if (!true)
16514 {
16515 }
16517 int num = 80;
16518 int num2 = 120;
16519 int num3 = genRand.Next(num, num2);
16521 int num4 = 20;
16522 int num5 = 25;
16523 int num6 = genRand2.Next(num4, num5);
16525 int num7 = 21;
16526 int num8 = genRand3.Next(num4, num7);
16528 int num9 = 21;
16529 if (genRand4.Next(num4, num9) != 0)
16530 {
16531 }
16534 int num11 = 4;
16535 int num12 = genRand5.Next(num11);
16536 }
16537
16538 // Token: 0x06002E80 RID: 11904 RVA: 0x001E36C4 File Offset: 0x001E18C4
16539 public static void Caverer(int X, int Y)
16540 {
16541 if (!true)
16542 {
16543 }
16544 if (WorldGen.genRand.Next(2) == 0)
16545 {
16546 if (!true)
16547 {
16548 }
16549 int num = WorldGen.genRand.Next(7, 9);
16550 int num2 = WorldGen.genRand.Next(100);
16551 int num3 = WorldGen.genRand.Next(2);
16552 int num4 = WorldGen.genRand.Next(2);
16553 int num5 = WorldGen.genRand.Next(6, 20);
16554 int num6 = WorldGen.genRand.Next(4, 9);
16555 int num7 = WorldGen.genRand.Next(num6, 21);
16556 int num8 = WorldGen.genRand.Next(num6, 21);
16557 int num9 = WorldGen.genRand.Next(100);
16558 int num10 = WorldGen.genRand.Next(2);
16559 int num11 = WorldGen.genRand.Next(2);
16560 int num12 = WorldGen.genRand.Next(30, 50);
16561 int num13 = WorldGen.genRand.Next(3, 6);
16562 int num14 = WorldGen.genRand.Next(10, 20);
16563 int num15 = WorldGen.genRand.Next(5, 10);
16564 return;
16565 }
16566 }
16567
16568 // Token: 0x06002E81 RID: 11905 RVA: 0x001E3838 File Offset: 0x001E1A38
16569 public static Vector2D digTunnel(double X, double Y, double xDir, double yDir, int Steps, int Size, bool Wet = false)
16570 {
16571 /*
16572An exception occurred when decompiling this method (06002E81)
16573
16574ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Utilities.Vector2D Terraria.WorldGen::digTunnel(System.Double,System.Double,System.Double,System.Double,System.Int32,System.Int32,System.Boolean)
16575
16576 ---> System.Exception: Basic block has to end with unconditional control flow.
16577{
16578 IL_0003:
16579 stloc:UnifiedRandom(var_3_0A, callgetter:UnifiedRandom(WorldGen::get_genRand))
16580 stloc:int32(var_4_0D, ldc.i4:int32(11))
16581 stloc:int32(var_5_19, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_3_0A), ldloc:int32(Size), ldloc:int32(var_4_0D)))
16582 stloc:int64(var_7_1C, ldc.i4:int64(0))
16583 call:void(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6), ldloc:int64[exp:bool](var_7_1C))
16584 stloc:int32(var_8_2C, ldc.i4:int32(255))
16585 callsetter:uint8(Tile::set_liquid, ldloc:Tile[exp:valuetype Terraria.Tile&](var_6), ldloc:int32[exp:uint8](var_8_2C))
16586 stloc:UnifiedRandom(var_9_3C, callgetter:UnifiedRandom(WorldGen::get_genRand))
16587 stloc:int32(var_10_40, ldc.i4:int32(51))
16588 stloc:int32(var_11_4D, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_9_3C), ldloc:int32(var_8_2C), ldloc:int32(var_10_40)))
16589 stloc:UnifiedRandom(var_12_54, callgetter:UnifiedRandom(WorldGen::get_genRand))
16590 stloc:int32(var_13_58, ldc.i4:int32(21))
16591 stloc:int32(var_14_65, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_12_54), ldloc:int32(var_8_2C), ldloc:int32(var_13_58)))
16592 stloc:UnifiedRandom(var_15_6C, callgetter:UnifiedRandom(WorldGen::get_genRand))
16593 stloc:int32(var_16_70, ldc.i4:int32(21))
16594 stloc:int32(var_17_7D, call:int32(UnifiedRandom::Next, ldloc:UnifiedRandom(var_15_6C), ldloc:int32(var_8_2C), ldloc:int32(var_16_70)))
16595}
16596
16597 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
16598 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
16599 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
16600 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
16601 --- End of inner exception stack trace ---
16602 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
16603 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
16604*/;
16605 }
16606
16607 // Token: 0x06002E82 RID: 11906 RVA: 0x001E38CC File Offset: 0x001E1ACC
16608 public static void IslandHouse(int i, int j, int islandStyle)
16609 {
16610 int num = 1;
16611 if (num == 0)
16612 {
16613 }
16614 if (num == 0)
16615 {
16616 return;
16617 }
16618 if (num == 0)
16619 {
16620 }
16621 if (num == 0 || num == 0)
16622 {
16623 }
16624 if (num == 0)
16625 {
16626 }
16627 int num2;
16628 if (num == 0)
16629 {
16630 if (num == 0)
16631 {
16632 }
16633 num2 = 1;
16634 return;
16635 }
16636 if (num2 == 0)
16637 {
16638 }
16640 int num3 = 2;
16641 int num4 = genRand.Next(num3);
16642 if (num2 == 0)
16643 {
16644 }
16646 int num5 = 7;
16647 int num6 = 12;
16648 int num7 = genRand2.Next(num5, num6);
16650 int num8 = 5;
16651 int num9 = 7;
16652 int num10 = genRand3.Next(num8, num9);
16653 if (num2 == 0)
16654 {
16655 }
16656 Tile tile;
16657 bool flag = tile.active();
16658 }
16659
16660 // Token: 0x06002E83 RID: 11907 RVA: 0x001E3DC4 File Offset: 0x001E1FC4
16661 public static void Mountinater(int i, int j)
16662 {
16663 if (!true)
16664 {
16665 }
16667 int num = 80;
16668 int num2 = 120;
16669 int num3 = genRand.Next(num, num2);
16671 int num4 = 40;
16672 int num5 = 55;
16673 int num6 = genRand2.Next(num4, num5);
16675 int num7 = 11;
16676 int num8 = genRand3.Next(num4, num7);
16679 int num10 = 4;
16680 int num11 = genRand4.Next(num10);
16681 }
16682
16683 // Token: 0x06002E84 RID: 11908 RVA: 0x001E3EA4 File Offset: 0x001E20A4
16684 public static void MakeWateryIceThing(int i, int j)
16685 {
16686 int num = 1;
16687 if (num == 0)
16688 {
16689 }
16690 Tile tile;
16691 byte liquid = tile.liquid;
16692 if (num == 0)
16693 {
16694 }
16695 Tile tile2;
16696 bool flag = tile2.active();
16697 if (num == 0)
16698 {
16699 }
16700 Tile tile3;
16701 bool flag2 = tile3.lava();
16702 Tile tile4;
16703 bool flag3 = tile4.active();
16704 Tile tile5;
16705 byte liquid2 = tile5.liquid;
16706 }
16707
16708 // Token: 0x06002E85 RID: 11909 RVA: 0x001E3F74 File Offset: 0x001E2174
16709 public static void Lakinater(int i, int j, double strengthMultiplier = 1.0)
16710 {
16711 if (!true)
16712 {
16713 }
16715 int num = 25;
16716 int num2 = 50;
16717 int num3 = genRand.Next(num, num2);
16719 int num4 = 30;
16720 int num5 = 80;
16721 int num6 = genRand2.Next(num4, num5);
16723 int num7 = 5;
16724 int num8 = genRand3.Next(num7);
16726 int num9 = 11;
16727 int num10 = genRand4.Next(num7, num9);
16729 }
16730
16731 // Token: 0x06002E86 RID: 11910 RVA: 0x001E406C File Offset: 0x001E226C
16732 public static void SonOfLakinater(int i, int j, double strengthMultiplier = 1.0)
16733 {
16735 int num = 3;
16736 int num2 = genRand.Next(num);
16737 }
16738
16739 // Token: 0x06002E87 RID: 11911 RVA: 0x001E42EC File Offset: 0x001E24EC
16740 public static void ShroomPatch(int i, int j)
16741 {
16742 if (!true)
16743 {
16744 }
16746 int num = 80;
16747 int num2 = 100;
16748 int num3 = genRand.Next(num, num2);
16750 int num4 = 20;
16751 int num5 = 26;
16752 int num6 = genRand2.Next(num4, num5);
16754 int num7 = 101;
16755 int num8 = genRand3.Next(num4, num7);
16758 int num10 = 3;
16759 int num11 = genRand4.Next(num10);
16760 }
16761
16762 // Token: 0x06002E88 RID: 11912 RVA: 0x001E446C File Offset: 0x001E266C
16763 public static void Cavinator(int i, int j, int steps)
16764 {
16765 if (!true)
16766 {
16767 }
16769 int num = 7;
16770 int num2 = 15;
16771 int num3 = genRand.Next(num, num2);
16773 int num4 = 2;
16774 int num5 = genRand2.Next(num4);
16776 int num6 = 20;
16777 int num7 = 40;
16778 int num8 = genRand3.Next(num6, num7);
16780 int num9 = 10;
16781 int num10 = 20;
16782 int num11 = genRand4.Next(num9, num10);
16783 if (32752 == 0)
16784 {
16785 }
16786 }
16787
16788 // Token: 0x06002E89 RID: 11913 RVA: 0x001E4578 File Offset: 0x001E2778
16789 public static void CaveOpenater(int i, int j)
16790 {
16791 if (!true)
16792 {
16793 }
16795 int num = 7;
16796 int num2 = 12;
16797 int num3 = genRand.Next(num, num2);
16799 int num4 = 2;
16800 int num5 = genRand2.Next(num4);
16802 int num6 = 10;
16803 if (genRand3.Next(num6) == 0 || num5 == 0)
16804 {
16805 }
16806 Tile tile;
16807 ushort wall = tile.wall;
16808 }
16809
16810 // Token: 0x06002E8A RID: 11914 RVA: 0x001E4640 File Offset: 0x001E2840
16811 public static void DiamondTileFrame(int i, int j)
16812 {
16813 if (!true)
16814 {
16815 }
16816 long num = 0L;
16817 long num2 = 0L;
16818 WorldGen.TileFrame(0, j, num != 0L, num2 != 0L);
16819 long num3 = 0L;
16820 long num4 = 0L;
16821 WorldGen.TileFrame(i, j, num3 != 0L, num4 != 0L);
16822 long num5 = 0L;
16823 long num6 = 0L;
16824 WorldGen.TileFrame(i, j, num5 != 0L, num6 != 0L);
16825 long num7 = 0L;
16826 long num8 = 0L;
16827 WorldGen.TileFrame(i, j, num7 != 0L, num8 != 0L);
16828 }
16829
16830 // Token: 0x06002E8B RID: 11915 RVA: 0x001E468C File Offset: 0x001E288C
16831 public static void SquareTileFrame(int i, int j, bool resetFrame = true)
16832 {
16833 if (!true)
16834 {
16835 }
16836 long num = 0L;
16837 long num2 = 0L;
16838 WorldGen.TileFrame(43143168, 0, num != 0L, num2 != 0L);
16839 long num3 = 0L;
16840 long num4 = 0L;
16841 WorldGen.TileFrame(43143168, j, num3 != 0L, num4 != 0L);
16842 long num5 = 0L;
16843 long num6 = 0L;
16844 WorldGen.TileFrame(43143168, j, num5 != 0L, num6 != 0L);
16845 long num7 = 0L;
16846 long num8 = 0L;
16847 WorldGen.TileFrame(i, 0, num7 != 0L, num8 != 0L);
16848 long num9 = 0L;
16849 WorldGen.TileFrame(i, j, num7 != 0L, num9 != 0L);
16850 long num10 = 0L;
16851 long num11 = 0L;
16852 WorldGen.TileFrame(i, j, num10 != 0L, num11 != 0L);
16853 long num12 = 0L;
16854 long num13 = 0L;
16855 WorldGen.TileFrame(i, 0, num12 != 0L, num13 != 0L);
16856 long num14 = 0L;
16857 long num15 = 0L;
16858 WorldGen.TileFrame(i, j, num14 != 0L, num15 != 0L);
16859 long num16 = 0L;
16860 long num17 = 0L;
16861 WorldGen.TileFrame(i, j, num16 != 0L, num17 != 0L);
16862 }
16863
16864 // Token: 0x06002E8C RID: 11916 RVA: 0x001E4738 File Offset: 0x001E2938
16865 public static void SquareWallFrame(int i, int j, bool resetFrame = true)
16866 {
16867 long num = 0L;
16868 Framing.WallFrame(i, j, num != 0L);
16869 long num2 = 0L;
16870 Framing.WallFrame(i, j, num2 != 0L);
16871 long num3 = 0L;
16872 Framing.WallFrame(i, j, num3 != 0L);
16873 long num4 = 0L;
16874 Framing.WallFrame(i, j, num4 != 0L);
16875 Framing.WallFrame(i, j, num4 != 0L);
16876 long num5 = 0L;
16877 Framing.WallFrame(i, j, num5 != 0L);
16878 long num6 = 0L;
16879 Framing.WallFrame(resetFrame ? 1 : 0, j, num6 != 0L);
16880 long num7 = 0L;
16881 Framing.WallFrame(resetFrame ? 1 : 0, j, num7 != 0L);
16882 long num8 = 0L;
16883 Framing.WallFrame(resetFrame ? 1 : 0, j, num8 != 0L);
16884 }
16885
16886 // Token: 0x06002E8D RID: 11917 RVA: 0x001E47A8 File Offset: 0x001E29A8
16887 public static void SectionTileFrameWithCheck(int startX, int startY, int endX, int endY)
16888 {
16889 int num = 1;
16890 if (num == 0)
16891 {
16892 }
16897 if (num == 0)
16898 {
16899 }
16901 if (num == 0)
16902 {
16903 }
16905 if (num == 0)
16906 {
16907 }
16909 if (num == 0)
16910 {
16911 }
16913 }
16914
16915 // Token: 0x06002E8E RID: 11918 RVA: 0x001E4820 File Offset: 0x001E2A20
16916 public static void RefreshSections(int startX, int startY, int endX, int endY)
16917 {
16918 int num = 1;
16919 if (num == 0)
16920 {
16921 }
16926 if (num == 0)
16927 {
16928 }
16930 if (num == 0)
16931 {
16932 }
16934 }
16935
16936 // Token: 0x06002E8F RID: 11919 RVA: 0x001E4870 File Offset: 0x001E2A70
16937 public static void RefreshSection(int sectionX, int sectionY)
16938 {
16939 int num = 1;
16940 if (num == 0)
16941 {
16942 }
16943 int num2 = 1;
16944 if (num == 0)
16945 {
16946 }
16947 int num3 = Math.Min(Math.Min(0, sectionX), sectionX);
16948 if (num2 == 0)
16949 {
16950 }
16952 }
16953
16954 // Token: 0x06002E90 RID: 11920 RVA: 0x001E48A8 File Offset: 0x001E2AA8
16955 public static void RefreshStrip(int xStart, int yStart, int xEnd, int yEnd, int totalEcho, int totalFramed)
16956 {
16957 int num = 1;
16958 if (num == 0)
16959 {
16960 }
16961 if (num == 0)
16962 {
16963 }
16964 Tile tile;
16965 bool flag = tile.invisibleBlock();
16966 }
16967
16968 // Token: 0x06002E91 RID: 11921 RVA: 0x001E48F0 File Offset: 0x001E2AF0
16969 public static void Reframe(int x, int y, bool resetFrame = false)
16970 {
16971 if (!true)
16972 {
16973 }
16974 WorldGen.TileFrame(x, y, resetFrame, true);
16975 Framing.WallFrame(x, y, resetFrame);
16976 }
16977
16978 // Token: 0x06002E92 RID: 11922 RVA: 0x001E4914 File Offset: 0x001E2B14
16980 {
16981 int num = 1;
16982 if (num == 0)
16983 {
16984 }
16986 if (num == 0)
16987 {
16988 }
16989 if (!true)
16990 {
16991 }
16992 }
16993
16994 // Token: 0x06002E93 RID: 11923 RVA: 0x001E4948 File Offset: 0x001E2B48
16995 public static void GetSectionBounds(int sectionStartX, int sectionStartY, int sectionEndXInclusive, int sectionEndYInclusive, [Out] int tileStartX, [Out] int tileEndX, [Out] int tileStartY, [Out] int tileEndY)
16996 {
16997 int num = 200;
16998 int num2 = 150;
16999 tileEndX.m_value = num;
17001 int num3 = 1;
17003 int num4 = 1;
17005 if (num4 == 0)
17006 {
17007 }
17008 if (num2 == 0)
17009 {
17010 }
17012 if (num4 == 0)
17013 {
17014 }
17015 if (num2 == 0)
17016 {
17017 }
17019 if (num4 == 0)
17020 {
17021 }
17022 if (num2 == 0)
17023 {
17024 }
17026 if (num4 == 0)
17027 {
17028 }
17029 if (num2 == 0)
17030 {
17031 }
17032 }
17033
17034 // Token: 0x06002E94 RID: 11924 RVA: 0x001E49B8 File Offset: 0x001E2BB8
17035 public static void RangeFrame(int startX, int startY, int endX, int endY)
17036 {
17037 if (!true)
17038 {
17039 }
17040 long num = 0L;
17041 long num2 = 0L;
17042 WorldGen.TileFrame(startX, endY, num != 0L, num2 != 0L);
17043 long num3 = 0L;
17045 }
17046
17047 // Token: 0x06002E95 RID: 11925 RVA: 0x001E49E0 File Offset: 0x001E2BE0
17048 public static void WaterCheck()
17049 {
17050 if (!true)
17051 {
17052 }
17054 long num = 1L;
17055 if (num != 0L)
17056 {
17057 return;
17058 }
17059 Liquid.tilesIgnoreWater(false);
17060 }
17061
17062 // Token: 0x06002E96 RID: 11926 RVA: 0x001E4A6C File Offset: 0x001E2C6C
17063 public static void EveryTileFrame()
17064 {
17065 int num = 1;
17066 if (num == 0)
17067 {
17068 }
17069 int num2 = 1;
17070 long num3 = 0L;
17071 if (num == 0)
17072 {
17073 }
17074 if (num2 == 0)
17075 {
17076 }
17077 if (num2 == 0)
17078 {
17079 }
17080 string text2;
17081 string text = text2 + " " + text2 + "%";
17082 long num4 = 0L;
17083 if (text == null)
17084 {
17085 }
17086 if (num2 == 0)
17087 {
17088 }
17089 Tile tile;
17090 bool flag = tile.active();
17091 int num5 = 1;
17092 long num6 = 0L;
17093 WorldGen.TileFrame((int)num3, (int)num4, num5 != 0, num6 != 0L);
17094 Tile tile2;
17095 ushort wall = tile2.wall;
17096 int num7 = 1;
17097 Framing.WallFrame((int)num3, (int)num4, num7 != 0);
17098 }
17099
17100 // Token: 0x06002E97 RID: 11927 RVA: 0x001E4ADC File Offset: 0x001E2CDC
17101 public static void PlantCheck(int x, int y)
17102 {
17103 if (!true)
17104 {
17105 }
17106 Tile tile;
17107 if (tile.type == 0)
17108 {
17109 }
17110 Tile tile2;
17111 bool flag = tile2.nactive();
17112 Tile tile3;
17113 ushort type = tile3.type;
17114 Tile tile4;
17115 bool flag2 = tile4.nactive();
17116 Tile tile5;
17117 ushort type2 = tile5.type;
17118 Tile tile6;
17119 bool flag3 = tile6.nactive();
17120 Tile tile7;
17121 ushort type3 = tile7.type;
17122 Tile tile8;
17123 bool flag4 = tile8.nactive();
17124 Tile tile9;
17125 bool flag5 = tile9.halfBrick();
17126 Tile tile10;
17127 byte b = tile10.slope();
17128 Tile tile11;
17129 ushort type4 = tile11.type;
17130 Tile tile12;
17131 bool flag6 = tile12.nactive();
17132 Tile tile13;
17133 ushort type5 = tile13.type;
17134 Tile tile14;
17135 bool flag7 = tile14.nactive();
17136 Tile tile15;
17137 ushort type6 = tile15.type;
17138 Tile tile16;
17139 bool flag8 = tile16.nactive();
17140 Tile tile17;
17141 ushort type7 = tile17.type;
17142 Tile tile18;
17143 bool flag9 = tile18.nactive();
17144 Tile tile19;
17145 ushort type8 = tile19.type;
17146 }
17147
17148 // Token: 0x06002E98 RID: 11928 RVA: 0x001E4C7C File Offset: 0x001E2E7C
17149 public static bool CanPoundTile(int x, int y)
17150 {
17151 int num = 1;
17152 if (num == 0)
17153 {
17154 }
17155 Tile tile;
17156 ushort type = tile.type;
17157 if (num == 0)
17158 {
17159 }
17160 if (43143168 != 0)
17161 {
17162 if (num == 0)
17163 {
17164 }
17165 Tile tile2;
17166 ushort type2 = tile2.type;
17167 if (num == 0)
17168 {
17169 }
17170 Tile tile3;
17171 ushort type3 = tile3.type;
17172 }
17173 if (num == 0)
17174 {
17175 }
17176 Tile tile4;
17177 bool flag = tile4.active();
17178 if (num == 0)
17179 {
17180 }
17181 Tile tile5;
17182 ushort type4 = tile5.type;
17183 if (num == 0)
17184 {
17185 }
17186 return WorldGen.CanKillTile(0, x);
17187 }
17188
17189 // Token: 0x06002E99 RID: 11929 RVA: 0x001E4CFC File Offset: 0x001E2EFC
17190 public static bool SlopeTile(int i, int j, int slope = 0, bool noEffects = false)
17191 {
17192 int num = 1;
17193 if (num == 0)
17194 {
17195 }
17196 bool flag = WorldGen.CanPoundTile(0, i);
17197 if (num == 0)
17198 {
17199 }
17200 long num2 = 0L;
17201 Tile tile;
17202 tile.halfBrick(num2 != 0L);
17203 Tile tile2;
17204 tile2.slope((byte)j);
17205 if (j == 0)
17206 {
17207 int num3 = 1;
17208 int num4 = 1;
17209 long num5 = 0L;
17210 WorldGen.KillTile(0, i, num3 != 0, num4 != 0, num5 != 0L);
17211 int num6 = 1;
17212 WorldGen.SquareTileFrame(0, i, num6 != 0);
17213 Tile tile3;
17214 byte b = tile3.slope();
17215 return;
17216 }
17217 }
17218
17219 // Token: 0x06002E9A RID: 11930 RVA: 0x001E4D6C File Offset: 0x001E2F6C
17220 public static bool PoundTile(int i, int j)
17221 {
17222 int num = 1;
17223 if (num == 0)
17224 {
17225 }
17226 bool flag = WorldGen.CanPoundTile(0, i);
17227 if (num == 0)
17228 {
17229 }
17230 long num2 = 0L;
17231 Tile tile;
17232 bool flag2 = tile.halfBrick();
17233 Tile tile2;
17234 tile2.halfBrick(num2 != 0L);
17235 if (!flag2)
17236 {
17237 int num3 = 1;
17238 int num4 = 1;
17239 long num5 = 0L;
17240 WorldGen.KillTile(0, i, num3 != 0, num4 != 0, num5 != 0L);
17241 Tile tile3;
17242 bool flag3 = tile3.halfBrick();
17243 return;
17244 }
17245 }
17246
17247 // Token: 0x06002E9B RID: 11931 RVA: 0x001E4DD4 File Offset: 0x001E2FD4
17248 public static void PoundPlatform(int x, int y)
17249 {
17250 int num = 1;
17251 if (num == 0)
17252 {
17253 }
17254 Tile tile;
17255 bool flag = tile.halfBrick();
17256 if (num == 0)
17257 {
17258 }
17259 bool flag2 = WorldGen.PoundTile(x, y);
17260 if (num == 0)
17261 {
17262 }
17263 bool netClient = Main.NetClient;
17264 if (num == 0)
17265 {
17266 }
17267 }
17268
17269 // Token: 0x06002E9C RID: 11932 RVA: 0x001E4EC0 File Offset: 0x001E30C0
17270 public static int PlatformProperSides(int x, int y, bool acceptNonOpposing = false)
17271 {
17272 /*
17273An exception occurred when decompiling this method (06002E9C)
17274
17275ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldGen::PlatformProperSides(System.Int32,System.Int32,System.Boolean)
17276
17277 ---> System.Exception: Basic block has to end with unconditional control flow.
17278{
17279 IL_0088:
17280 stloc:uint16(var_32_92, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_30)))
17281 stloc:uint8(var_34_9B, call:uint8(Tile::slope, ldloc:Tile[exp:valuetype Terraria.Tile&](var_33)))
17282}
17283
17284 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
17285 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
17286 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
17287 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
17288 --- End of inner exception stack trace ---
17289 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
17290 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
17291*/;
17292 }
17293
17294 // Token: 0x06002E9D RID: 11933 RVA: 0x001E4F6C File Offset: 0x001E316C
17295 public static bool CacheUpdateMapTile(int i, int j, bool addToList = true)
17296 {
17297 if (!true)
17298 {
17299 }
17300 if (19999 == 0)
17301 {
17302 return;
17303 }
17304 }
17305
17306 // Token: 0x06002E9E RID: 11934 RVA: 0x001E4F88 File Offset: 0x001E3188
17307 public static void PerformCachedMapTileUpdates()
17308 {
17309 int num = 1;
17310 if (num == 0)
17311 {
17312 }
17313 if (num == 0)
17314 {
17315 }
17316 int num2 = 1;
17317 long num3 = 0L;
17318 bool flag = WorldGen.UpdateMapTile(0, (int)num3, num2 != 0);
17319 }
17320
17321 // Token: 0x06002E9F RID: 11935 RVA: 0x001E4FB0 File Offset: 0x001E31B0
17322 public static bool UpdateMapTile(int i, int j, bool addToList = true)
17323 {
17324 /*
17325An exception occurred when decompiling this method (06002E9F)
17326
17327ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::UpdateMapTile(System.Int32,System.Int32,System.Boolean)
17328
17329 ---> System.Exception: Basic block has to end with unconditional control flow.
17330{
17331 IL_0058:
17332 callsetter:bool(Main::set_refreshMap, ldc.i4:bool(1))
17333}
17334
17335 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
17336 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
17337 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
17338 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
17339 --- End of inner exception stack trace ---
17340 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
17341 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
17342*/;
17343 }
17344
17345 // Token: 0x06002EA0 RID: 11936 RVA: 0x001E5020 File Offset: 0x001E3220
17346 public static void TileMergeAttemptFrametest(int i, int j, int myType, int lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
17347 {
17348 long num = 0L;
17349 long num2 = 0L;
17350 WorldGen.TileFrame(i, j, num != 0L, num2 != 0L);
17352 long num3 = 0L;
17353 long num4 = 0L;
17354 WorldGen.TileFrame(i, j, num3 != 0L, num4 != 0L);
17356 long num5 = 0L;
17357 long num6 = 0L;
17358 WorldGen.TileFrame(0, j, num5 != 0L, num6 != 0L);
17359 if (false)
17360 {
17362 }
17363 long num7 = 0L;
17364 long num8 = 0L;
17365 WorldGen.TileFrame(0, j, num7 != 0L, num8 != 0L);
17366 if (false)
17367 {
17369 }
17372 }
17373
17374 // Token: 0x06002EA1 RID: 11937 RVA: 0x001E50A0 File Offset: 0x001E32A0
17375 public static void TileMergeAttemptFrametest(int i, int j, int myType, bool[] lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
17376 {
17377 int num = 1;
17378 if (num != 0)
17379 {
17380 if (num == 0)
17381 {
17382 }
17383 long num2 = 0L;
17384 long num3 = 0L;
17385 WorldGen.TileFrame(i, j, num2 != 0L, num3 != 0L);
17387 }
17388 long num4 = 0L;
17389 long num5 = 0L;
17390 WorldGen.TileFrame(i, j, num4 != 0L, num5 != 0L);
17392 long num6 = 0L;
17393 long num7 = 0L;
17394 WorldGen.TileFrame(0, j, num6 != 0L, num7 != 0L);
17395 if (false)
17396 {
17398 }
17399 if (false)
17400 {
17401 if (!false)
17402 {
17403 }
17404 long num8 = 0L;
17405 long num9 = 0L;
17406 WorldGen.TileFrame(0, j, num8 != 0L, num9 != 0L);
17407 if (false)
17408 {
17410 }
17411 }
17414 if (false)
17415 {
17416 }
17417 }
17418
17419 // Token: 0x06002EA2 RID: 11938 RVA: 0x001E5134 File Offset: 0x001E3334
17420 public static void TileMergeAttempt(int myType, int lookfor, int up, int down, int left, int right)
17421 {
17426 }
17427
17428 // Token: 0x06002EA3 RID: 11939 RVA: 0x001E5160 File Offset: 0x001E3360
17429 public static void TileMergeAttempt(int myType, bool[] lookfor, int up, int down, int left, int right)
17430 {
17435 }
17436
17437 // Token: 0x06002EA4 RID: 11940 RVA: 0x001E518C File Offset: 0x001E338C
17438 public static void TileMergeAttempt(int myType, int lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
17439 {
17446 }
17447
17448 // Token: 0x06002EA5 RID: 11941 RVA: 0x001E51C8 File Offset: 0x001E33C8
17449 public static void TileMergeAttempt(int myType, bool[] lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
17450 {
17457 }
17458
17459 // Token: 0x06002EA6 RID: 11942 RVA: 0x001E5204 File Offset: 0x001E3404
17460 public static void TileMergeAttempt(int myType, bool[] lookfor, bool[] exclude, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
17461 {
17467 }
17468
17469 // Token: 0x06002EA7 RID: 11943 RVA: 0x001E5238 File Offset: 0x001E3438
17470 public static void TileMergeAttemptWeird(int myType, int changeTo, bool[] exclude, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
17471 {
17477 }
17478
17479 // Token: 0x06002EA8 RID: 11944 RVA: 0x001E526C File Offset: 0x001E346C
17480 public static int GetTileMossColor(int tileType)
17481 {
17482 return 4;
17483 }
17484
17485 // Token: 0x06002EA9 RID: 11945 RVA: 0x001E528C File Offset: 0x001E348C
17486 public static void CheckFoodPlatter(int x, int y, int type)
17487 {
17488 int num = 1;
17489 if (num == 0)
17490 {
17491 }
17492 long num2 = 0L;
17493 Tile tile;
17494 bool isLoaded = tile.IsLoaded;
17495 if (num == 0)
17496 {
17497 }
17498 if (num == 0)
17499 {
17500 if (num == 0)
17501 {
17502 }
17503 bool flag = WorldGen.SolidTileAllowBottomSlope(x, (int)num2);
17504 int num3 = TEFoodPlatter.Find(x, y);
17505 if (num == 0)
17506 {
17507 }
17510 int num4 = 520;
17512 Tile tile2;
17513 ushort type2 = tile2.type;
17514 long num5 = 0L;
17515 long num6 = 0L;
17516 long num7 = 0L;
17517 WorldGen.KillTile(x, y, num5 != 0L, num6 != 0L, num7 != 0L);
17518 TEFoodPlatter.Kill(x, y);
17519 }
17520 }
17521
17522 // Token: 0x170005FC RID: 1532
17523 // (get) Token: 0x06002EAA RID: 11946 RVA: 0x001E5318 File Offset: 0x001E3518
17524 public static bool SkipFramingBecauseOfGen
17525 {
17526 get
17527 {
17528 if (!true)
17529 {
17530 return;
17531 }
17532 }
17533 }
17534
17535 // Token: 0x06002EAB RID: 11947 RVA: 0x001E532C File Offset: 0x001E352C
17536 public static void TileFrameDoWork(int i, int j, bool resetFrame, bool noBreak, bool mapCheck)
17537 {
17538 int num = 1;
17539 if (num == 0)
17540 {
17541 }
17542 int num2 = 1;
17543 bool flag = WorldGen.CacheUpdateMapTile(i, j, num2 != 0);
17544 mapCheck.m_value = num != 0;
17545 if (num == 0)
17546 {
17547 }
17548 int num3 = 175;
17549 if (num3 == 0)
17550 {
17551 }
17552 if (num3 == 0)
17553 {
17554 }
17555 if (num3 == 0)
17556 {
17557 Liquid.AddWater(i, j);
17558 }
17559 }
17560
17561 // Token: 0x06002EAC RID: 11948 RVA: 0x001E6A88 File Offset: 0x001E4C88
17562 public static void TileFrame(int i, int j, bool resetFrame = false, bool noBreak = false)
17563 {
17564 if (!true)
17565 {
17566 }
17568 Tile tile;
17569 ushort type = tile.type;
17570 }
17571
17572 // Token: 0x06002EAD RID: 11949 RVA: 0x001E6AB4 File Offset: 0x001E4CB4
17574 {
17575 }
17576
17577 // Token: 0x06002EAE RID: 11950 RVA: 0x001E6AC4 File Offset: 0x001E4CC4
17578 private static bool SpawnFallingBlockProjectile(int i, int j, Tile tileCache, Tile tileTopCache, Tile tileBottomCache, int type)
17579 {
17580 int num = 1;
17581 if (num == 0)
17582 {
17583 }
17584 if (num == 0)
17585 {
17586 }
17587 bool flag = WorldGen.BlockBelowMakesSandFall(0, i);
17588 if (num == 0)
17589 {
17590 }
17591 if (num == 0)
17592 {
17593 }
17594 tileBottomCache.ClearTile();
17595 if (num == 0)
17596 {
17597 }
17598 if (num == 0)
17599 {
17600 if (!false)
17601 {
17602 }
17603 int myPlayer = Main.myPlayer;
17604 int num2 = 1;
17605 int num3;
17607 }
17608 bool netHost = Main.NetHost;
17609 int num4 = 8;
17610 int num5 = 10;
17611 if (num4 == 0)
17612 {
17613 }
17614 if (num5 != 0)
17615 {
17616 if (num5 == 0)
17617 {
17618 }
17619 int myPlayer2 = Main.myPlayer;
17620 if (num5 == 0)
17621 {
17622 }
17623 if (num5 == 0)
17624 {
17625 }
17626 }
17627 int myPlayer3 = Main.myPlayer;
17628 if (num5 == 0)
17629 {
17630 }
17631 int num6 = 1;
17632 WorldGen.SquareTileFrame(0, i, num6 != 0);
17633 return false;
17634 }
17635
17636 // Token: 0x06002EAF RID: 11951 RVA: 0x001E6B68 File Offset: 0x001E4D68
17637 public static void CheckTorch(int x, int y)
17638 {
17639 if (!true)
17640 {
17641 }
17642 Tile tile;
17643 short frameX = tile.frameX;
17644 int num = 66;
17645 if (num == 0)
17646 {
17647 }
17648 long num2 = 0L;
17649 if (num != 0)
17650 {
17651 bool flag = WorldGen.TopEdgeCanBeAttachedTo(x, (int)num2);
17652 }
17653 }
17654
17655 // Token: 0x06002EB0 RID: 11952 RVA: 0x001E6BF8 File Offset: 0x001E4DF8
17656 public static void CheckProjectilePressurePad(int i, int j)
17657 {
17658 int num = 1;
17659 if (num == 0)
17660 {
17661 }
17662 if (num == 0)
17663 {
17664 }
17665 Tile tile;
17666 short frameX = tile.frameX;
17667 }
17668
17669 // Token: 0x06002EB1 RID: 11953 RVA: 0x001E6C50 File Offset: 0x001E4E50
17670 private static void CheckProjectilePressurePad_GetPossiblePlacementDirections(int i, int j, [Out] bool canUp, [Out] bool canLeft, [Out] bool canRight, [Out] bool canDown)
17671 {
17672 if (!true)
17673 {
17674 }
17675 Tile tile;
17676 bool flag = tile.nactive();
17677 }
17678
17679 // Token: 0x06002EB2 RID: 11954 RVA: 0x001E6CF8 File Offset: 0x001E4EF8
17680 public static bool IsTreeType(int tree)
17681 {
17682 if (!true)
17683 {
17684 return;
17685 }
17686 }
17687
17688 // Token: 0x06002EB3 RID: 11955 RVA: 0x001E6D0C File Offset: 0x001E4F0C
17689 public static int CanPlaceProjectilePressurePad(int x, int y, int type = 442, int style = 0, int direction = 0, int alternate = 0)
17690 {
17691 if (!true)
17692 {
17693 }
17694 WorldGen.CheckProjectilePressurePad_GetPossiblePlacementDirections(0, x, y != 0, type != 0, style != 0, direction != 0);
17695 return 0;
17696 }
17697
17698 // Token: 0x06002EB4 RID: 11956 RVA: 0x001E6D38 File Offset: 0x001E4F38
17699 private static void CheckDoorOpen(int i, int j, Tile tileCache)
17700 {
17701 int num = 1;
17702 if (num == 0)
17703 {
17704 }
17705 if (num != 0)
17706 {
17707 return;
17708 }
17709 int num2 = 54;
17710 if (num2 != 0)
17711 {
17712 return;
17713 }
17714 }
17715
17716 // Token: 0x06002EB5 RID: 11957 RVA: 0x001E6DA8 File Offset: 0x001E4FA8
17717 private static void CheckDoorClosed(int i, int j, Tile tileCache, int type)
17718 {
17719 int num = 1;
17720 if (num == 0)
17721 {
17722 }
17723 if (num == 0)
17724 {
17725 int num2 = 36409;
17726 if (num2 == 0)
17727 {
17728 }
17729 if (num2 == 0)
17730 {
17731 }
17732 if (num2 == 0)
17733 {
17734 }
17735 return;
17736 }
17737 }
17738
17739 // Token: 0x06002EB6 RID: 11958 RVA: 0x001E6E24 File Offset: 0x001E5024
17740 private static void GetSandfallProjData(int type, [Out] int projType, [Out] int dmg)
17741 {
17742 int num = 10;
17743 dmg.m_value = num;
17744 }
17745
17746 // Token: 0x06002EB7 RID: 11959 RVA: 0x001E6E68 File Offset: 0x001E5068
17747 public static bool BlockBelowMakesSandConvertIntoHardenedSand(int i, int j)
17748 {
17749 /*
17750An exception occurred when decompiling this method (06002EB7)
17751
17752ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::BlockBelowMakesSandConvertIntoHardenedSand(System.Int32,System.Int32)
17753
17754 ---> System.Exception: Basic block has to end with unconditional control flow.
17755{
17756 IL_0003:
17757 stloc:bool(var_1_09, call:bool(Tile::nactive, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
17758}
17759
17760 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
17761 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
17762 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
17763 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
17764 --- End of inner exception stack trace ---
17765 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
17766 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
17767*/;
17768 }
17769
17770 // Token: 0x06002EB8 RID: 11960 RVA: 0x001E6E84 File Offset: 0x001E5084
17771 public static bool BlockBelowMakesSandFall(int i, int j)
17772 {
17773 if (!true)
17774 {
17775 return;
17776 }
17777 }
17778
17779 // Token: 0x06002EB9 RID: 11961 RVA: 0x001E6E98 File Offset: 0x001E5098
17781 {
17782 int num = 1;
17783 if (num == 0)
17784 {
17785 }
17786 if (num != 0)
17787 {
17788 return;
17789 }
17790 if (num == 0)
17791 {
17792 }
17793 if (num == 0)
17794 {
17795 return;
17796 }
17797 }
17798
17799 // Token: 0x06002EBA RID: 11962 RVA: 0x001E6EB8 File Offset: 0x001E50B8
17800 public static void TriggerLunarApocalypse()
17801 {
17802 }
17803
17804 // Token: 0x06002EBB RID: 11963 RVA: 0x001E6FC4 File Offset: 0x001E51C4
17805 public static void UpdateLunarApocalypse()
17806 {
17807 int num = 1;
17808 if (num == 0)
17809 {
17810 }
17811 if (num == 0)
17812 {
17813 return;
17814 }
17815 if (num == 0)
17816 {
17817 }
17818 if (num != 0)
17819 {
17820 if (num == 0)
17821 {
17822 }
17823 return;
17824 }
17825 }
17826
17827 // Token: 0x06002EBC RID: 11964 RVA: 0x001E7004 File Offset: 0x001E5204
17828 public static void StartImpendingDoom(int countdownTime)
17829 {
17830 if (!true)
17831 {
17832 }
17833 if (!true)
17834 {
17835 }
17836 if (!true)
17837 {
17838 }
17839 if (!true)
17840 {
17841 }
17843 WorldGen.BroadcastText(networkText, 50, 255, 130);
17844 bool logicHost = Main.LogicHost;
17846 }
17847
17848 // Token: 0x06002EBD RID: 11965 RVA: 0x001E7040 File Offset: 0x001E5240
17849 public static void GetRidOfCultists()
17850 {
17851 int num = 1;
17852 if (num == 0)
17853 {
17854 }
17855 if (num == 0)
17856 {
17857 }
17858 bool logicHost = Main.LogicHost;
17859 if (num == 0)
17860 {
17861 }
17862 }
17863
17864 // Token: 0x06002EBE RID: 11966 RVA: 0x001E7068 File Offset: 0x001E5268
17865 public static void MessageLunarApocalypse()
17866 {
17867 if (!true)
17868 {
17869 }
17870 }
17871
17872 // Token: 0x06002EBF RID: 11967 RVA: 0x001E709C File Offset: 0x001E529C
17873 public static void BroadcastText(NetworkText text, Vector4 color)
17874 {
17875 if (!true)
17876 {
17877 }
17878 }
17879
17880 // Token: 0x06002EC0 RID: 11968 RVA: 0x001E70AC File Offset: 0x001E52AC
17881 public static void BroadcastText(NetworkText text, Vector3 color)
17882 {
17883 if (!true)
17884 {
17885 }
17886 }
17887
17888 // Token: 0x06002EC1 RID: 11969 RVA: 0x001E70BC File Offset: 0x001E52BC
17889 public static void BroadcastText(NetworkText text, int r, int g, int b)
17890 {
17891 if (!true)
17892 {
17893 }
17894 }
17895
17896 // Token: 0x06002EC2 RID: 11970 RVA: 0x001E70CC File Offset: 0x001E52CC
17897 public static void BroadcastText(NetworkText text, byte r, byte g, byte b)
17898 {
17899 if (!true)
17900 {
17901 }
17902 }
17903
17904 // Token: 0x06002EC3 RID: 11971 RVA: 0x001E70DC File Offset: 0x001E52DC
17905 public static void BroadcastText(NetworkText text, Color color)
17906 {
17907 if (!true)
17908 {
17909 }
17910 if (!true)
17911 {
17912 }
17913 bool netHost = Main.NetHost;
17914 }
17915
17916 // Token: 0x06002EC4 RID: 11972 RVA: 0x001E70F8 File Offset: 0x001E52F8
17917 public static bool CanCutTile(int x, int y, TileCuttingContext context)
17918 {
17919 int num;
17920 do
17921 {
17922 num = 1;
17923 if (num == 0)
17924 {
17925 }
17926 }
17927 while (num == 0);
17928 if (!false)
17929 {
17930 return;
17931 }
17932 }
17933
17934 // Token: 0x06002EC5 RID: 11973 RVA: 0x001E7114 File Offset: 0x001E5314
17935 public static bool InAPlaceWithWind(Vector2 position, int width, int height)
17936 {
17937 int num = 1;
17938 if (num == 0)
17939 {
17940 }
17941 if (num == 0)
17942 {
17943 }
17944 bool flag;
17945 return flag;
17946 }
17947
17948 // Token: 0x06002EC6 RID: 11974 RVA: 0x001E7134 File Offset: 0x001E5334
17949 public static bool DoesWindBlowAtThisHeight(int tileY)
17950 {
17951 /*
17952An exception occurred when decompiling this method (06002EC6)
17953
17954ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::DoesWindBlowAtThisHeight(System.Int32)
17955
17956 ---> System.Exception: Basic block has to end with unconditional control flow.
17957{
17958 IL_0000:
17959 brtrue(IL_0000, ldc.i4:bool(1))
17960}
17961
17962 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
17963 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
17964 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
17965 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
17966 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
17967 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
17968 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
17969 --- End of inner exception stack trace ---
17970 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
17971 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
17972*/;
17973 }
17974
17975 // Token: 0x06002EC7 RID: 11975 RVA: 0x001E7144 File Offset: 0x001E5344
17976 public static bool InAPlaceWithWind(int x, int y, int width, int height)
17977 {
17978 int num = 1;
17979 if (num == 0)
17980 {
17981 }
17982 bool flag = WorldGen.DoesWindBlowAtThisHeight(x);
17983 if (num == 0)
17984 {
17985 }
17986 Tile tile;
17987 bool isLoaded = tile.IsLoaded;
17988 if (num == 0)
17989 {
17990 }
17991 if (num != 0)
17992 {
17993 return;
17994 }
17995 }
17996
17997 // Token: 0x06002EC8 RID: 11976 RVA: 0x001E7178 File Offset: 0x001E5378
17998 public static int[] CountTileTypesInWorld(params int[] oreTypes)
17999 {
18000 /*
18001An exception occurred when decompiling this method (06002EC8)
18002
18003ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32[] Terraria.WorldGen::CountTileTypesInWorld(System.Int32[])
18004
18005 ---> System.Exception: Basic block has to end with unconditional control flow.
18006{
18007 IL_000C:
18008 stloc:bool(var_4_12, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_3)))
18009}
18010
18011 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
18012 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
18013 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
18014 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
18015 --- End of inner exception stack trace ---
18016 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
18017 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
18018*/;
18019 }
18020
18021 // Token: 0x06002EC9 RID: 11977 RVA: 0x001E719C File Offset: 0x001E539C
18022 public WorldGen()
18023 {
18024 }
18025
18026 // Token: 0x06002ECA RID: 11978 RVA: 0x001E71B0 File Offset: 0x001E53B0
18027 // Note: this type is marked as 'beforefieldinit'.
18028 static WorldGen()
18029 {
18030 }
18031
18032 // Token: 0x06002ECB RID: 11979 RVA: 0x001E71FC File Offset: 0x001E53FC
18037
18038 // Token: 0x06002ECC RID: 11980 RVA: 0x000021DB File Offset: 0x000003DB
18041 {
18042 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18043 }
18044
18045 // Token: 0x06002ECD RID: 11981 RVA: 0x000021DB File Offset: 0x000003DB
18048 {
18049 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18050 }
18051
18052 // Token: 0x06002ECE RID: 11982 RVA: 0x000021DB File Offset: 0x000003DB
18055 {
18056 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18057 }
18058
18059 // Token: 0x06002ECF RID: 11983 RVA: 0x000021DB File Offset: 0x000003DB
18062 {
18063 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18064 }
18065
18066 // Token: 0x06002ED0 RID: 11984 RVA: 0x000021DB File Offset: 0x000003DB
18069 {
18070 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18071 }
18072
18073 // Token: 0x06002ED1 RID: 11985 RVA: 0x001E720C File Offset: 0x001E540C
18076 {
18077 short* tileData_TileSHeader = cpp2il__autoParamName__idx_2.TileData_TileSHeader;
18078 }
18079
18080 // Token: 0x06002ED2 RID: 11986 RVA: 0x000021DB File Offset: 0x000003DB
18083 {
18084 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18085 }
18086
18087 // Token: 0x06002ED3 RID: 11987 RVA: 0x000021DB File Offset: 0x000003DB
18090 {
18091 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18092 }
18093
18094 // Token: 0x06002ED4 RID: 11988 RVA: 0x000021DB File Offset: 0x000003DB
18097 {
18098 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18099 }
18100
18101 // Token: 0x06002ED5 RID: 11989 RVA: 0x001E722C File Offset: 0x001E542C
18104 {
18105 short* tileData_TileSHeader = cpp2il__autoParamName__idx_2.TileData_TileSHeader;
18106 }
18107
18108 // Token: 0x06002ED6 RID: 11990 RVA: 0x000021DB File Offset: 0x000003DB
18111 {
18112 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18113 }
18114
18115 // Token: 0x06002ED7 RID: 11991 RVA: 0x001E7240 File Offset: 0x001E5440
18118 {
18119 short* tileData_TileSHeader = cpp2il__autoParamName__idx_2.TileData_TileSHeader;
18120 TileData.SetSHeader(_tileOffset, halfBrick ? 1 : 0);
18121 }
18122
18123 // Token: 0x06002ED8 RID: 11992 RVA: 0x001E725C File Offset: 0x001E545C
18126 {
18127 /*
18128An exception occurred when decompiling this method (06002ED8)
18129
18130ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen::<GenerateWorld>g__Main_tile_lava|277_120(System.Int32,System.Int32,Terraria.WorldGen/<>c__DisplayClass277_2)
18131
18132 ---> System.Exception: Basic block has to end with unconditional control flow.
18133{
18134 IL_0000:
18135 brtrue(IL_0000, ldc.i4:bool(1))
18136}
18137
18138 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
18139 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
18140 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
18141 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
18142 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
18143 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
18144 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
18145 --- End of inner exception stack trace ---
18146 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
18147 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
18148*/;
18149 }
18150
18151 // Token: 0x06002ED9 RID: 11993 RVA: 0x001E726C File Offset: 0x001E546C
18154 {
18155 if (!true)
18156 {
18157 }
18158 return false;
18159 }
18160
18161 // Token: 0x040037F4 RID: 14324
18163
18164 // Token: 0x040037F5 RID: 14325
18166
18167 // Token: 0x040037F6 RID: 14326
18168 public static int tileReframeCount;
18169
18170 // Token: 0x040037F7 RID: 14327
18171 public static int globalTileReframeCount;
18172
18173 // Token: 0x040037F8 RID: 14328
18175
18176 // Token: 0x040037F9 RID: 14329
18177 public static bool noMapUpdate;
18178
18179 // Token: 0x040037FA RID: 14330
18180 public static int treeBG1;
18181
18182 // Token: 0x040037FB RID: 14331
18183 public static int treeBG2;
18184
18185 // Token: 0x040037FC RID: 14332
18186 public static int treeBG3;
18187
18188 // Token: 0x040037FD RID: 14333
18189 public static int treeBG4;
18190
18191 // Token: 0x040037FE RID: 14334
18192 public static int corruptBG;
18193
18194 // Token: 0x040037FF RID: 14335
18195 public static int jungleBG;
18196
18197 // Token: 0x04003800 RID: 14336
18198 public static int snowBG;
18199
18200 // Token: 0x04003801 RID: 14337
18201 public static int hallowBG;
18202
18203 // Token: 0x04003802 RID: 14338
18204 public static int crimsonBG;
18205
18206 // Token: 0x04003803 RID: 14339
18207 public static int desertBG;
18208
18209 // Token: 0x04003804 RID: 14340
18210 public static int oceanBG;
18211
18212 // Token: 0x04003805 RID: 14341
18213 public static int mushroomBG;
18214
18215 // Token: 0x04003806 RID: 14342
18216 public static int underworldBG;
18217
18218 // Token: 0x04003807 RID: 14343
18219 public static readonly int oceanDistance;
18220
18221 // Token: 0x04003808 RID: 14344
18222 public static readonly int beachDistance;
18223
18224 // Token: 0x04003809 RID: 14345
18226
18227 // Token: 0x0400380A RID: 14346
18228 public static bool crimson;
18229
18230 // Token: 0x0400380B RID: 14347
18231 public static int[] tileCounts;
18232
18233 // Token: 0x0400380C RID: 14348
18234 public static int totalEvil;
18235
18236 // Token: 0x0400380D RID: 14349
18237 public static int totalBlood;
18238
18239 // Token: 0x0400380E RID: 14350
18240 public static int totalGood;
18241
18242 // Token: 0x0400380F RID: 14351
18243 public static int totalSolid;
18244
18245 // Token: 0x04003810 RID: 14352
18246 public static int totalEvil2;
18247
18248 // Token: 0x04003811 RID: 14353
18249 public static int totalBlood2;
18250
18251 // Token: 0x04003812 RID: 14354
18252 public static int totalGood2;
18253
18254 // Token: 0x04003813 RID: 14355
18255 public static int totalSolid2;
18256
18257 // Token: 0x04003814 RID: 14356
18258 public static byte tEvil;
18259
18260 // Token: 0x04003815 RID: 14357
18261 public static byte tBlood;
18262
18263 // Token: 0x04003816 RID: 14358
18264 public static byte tGood;
18265
18266 // Token: 0x04003817 RID: 14359
18267 public static string currentWorldSeed;
18268
18269 // Token: 0x04003818 RID: 14360
18270 public static int totalX;
18271
18272 // Token: 0x04003819 RID: 14361
18273 public static int totalD;
18274
18275 // Token: 0x0400381A RID: 14362
18276 public static bool IsGeneratingHardMode;
18277
18278 // Token: 0x0400381B RID: 14363
18279 public static int HardModeProgress;
18280
18281 // Token: 0x0400381C RID: 14364
18282 public static bool noTileActions;
18283
18284 // Token: 0x0400381D RID: 14365
18285 public static bool spawnEye;
18286
18287 // Token: 0x0400381E RID: 14366
18288 public static int spawnHardBoss;
18289
18290 // Token: 0x0400381F RID: 14367
18291 public static bool gen;
18292
18293 // Token: 0x04003820 RID: 14368
18294 public static bool shadowOrbSmashed;
18295
18296 // Token: 0x04003821 RID: 14369
18297 public static int shadowOrbCount;
18298
18299 // Token: 0x04003822 RID: 14370
18300 public static int altarCount;
18301
18302 // Token: 0x04003823 RID: 14371
18303 public static bool spawnMeteor;
18304
18305 // Token: 0x04003824 RID: 14372
18306 public static bool loadFailed;
18307
18308 // Token: 0x04003825 RID: 14373
18309 public static bool loadSuccess;
18310
18311 // Token: 0x04003826 RID: 14374
18312 public static bool worldCleared;
18313
18314 // Token: 0x04003827 RID: 14375
18315 public static bool worldBackup;
18316
18317 // Token: 0x04003828 RID: 14376
18318 public static bool loadBackup;
18319
18320 // Token: 0x04003829 RID: 14377
18321 private static int lastMaxTilesX;
18322
18323 // Token: 0x0400382A RID: 14378
18324 private static int lastMaxTilesY;
18325
18326 // Token: 0x0400382B RID: 14379
18327 private static bool mergeUp;
18328
18329 // Token: 0x0400382C RID: 14380
18330 private static bool mergeDown;
18331
18332 // Token: 0x0400382D RID: 14381
18333 private static bool mergeLeft;
18334
18335 // Token: 0x0400382E RID: 14382
18336 private static bool mergeRight;
18337
18338 // Token: 0x0400382F RID: 14383
18339 private static bool stopDrops;
18340
18341 // Token: 0x04003830 RID: 14384
18342 public static bool noLiquidCheck;
18343
18344 // Token: 0x04003831 RID: 14385
18345 public static bool AllowedToSpreadInfections;
18346
18347 // Token: 0x04003832 RID: 14386
18348 [ThreadStatic]
18350
18351 // Token: 0x04003833 RID: 14387
18352 [ThreadStatic]
18353 public static int _genRandSeed;
18354
18355 // Token: 0x04003834 RID: 14388
18356 public static int _lastSeed;
18357
18358 // Token: 0x04003835 RID: 14389
18359 public static string statusText;
18360
18361 // Token: 0x04003836 RID: 14390
18362 public static bool destroyObject;
18363
18364 // Token: 0x04003837 RID: 14391
18365 public static int spawnDelay;
18366
18367 // Token: 0x04003838 RID: 14392
18368 public static int prioritizedTownNPCType;
18369
18370 // Token: 0x04003839 RID: 14393
18371 public static int numTileCount;
18372
18373 // Token: 0x0400383A RID: 14394
18374 public static int maxTileCount;
18375
18376 // Token: 0x0400383B RID: 14395
18377 public static int maxWallOut2;
18378
18379 // Token: 0x0400383C RID: 14396
18380 public static int lavaCount;
18381
18382 // Token: 0x0400383D RID: 14397
18383 public static int iceCount;
18384
18385 // Token: 0x0400383E RID: 14398
18386 public static int sandCount;
18387
18388 // Token: 0x0400383F RID: 14399
18389 public static int rockCount;
18390
18391 // Token: 0x04003840 RID: 14400
18392 public static int shroomCount;
18393
18394 // Token: 0x04003841 RID: 14401
18395 public static int maxRoomTiles;
18396
18397 // Token: 0x04003842 RID: 14402
18398 public static int numRoomTiles;
18399
18400 // Token: 0x04003843 RID: 14403
18401 public static int[] roomX;
18402
18403 // Token: 0x04003844 RID: 14404
18404 public static int[] roomY;
18405
18406 // Token: 0x04003845 RID: 14405
18407 public static int roomCeilingsCount;
18408
18409 // Token: 0x04003846 RID: 14406
18410 public static int[] roomCeilingX;
18411
18412 // Token: 0x04003847 RID: 14407
18413 public static int[] roomCeilingY;
18414
18415 // Token: 0x04003848 RID: 14408
18416 public static int roomX1;
18417
18418 // Token: 0x04003849 RID: 14409
18419 public static int roomX2;
18420
18421 // Token: 0x0400384A RID: 14410
18422 public static int roomY1;
18423
18424 // Token: 0x0400384B RID: 14411
18425 public static int roomY2;
18426
18427 // Token: 0x0400384C RID: 14412
18428 public static bool canSpawn;
18429
18430 // Token: 0x0400384D RID: 14413
18431 public static bool[] houseTile;
18432
18433 // Token: 0x0400384E RID: 14414
18434 public static int bestX;
18435
18436 // Token: 0x0400384F RID: 14415
18437 public static int bestY;
18438
18439 // Token: 0x04003850 RID: 14416
18440 public static int hiScore;
18441
18442 // Token: 0x04003851 RID: 14417
18443 private static bool roomTorch;
18444
18445 // Token: 0x04003852 RID: 14418
18446 private static bool roomDoor;
18447
18448 // Token: 0x04003853 RID: 14419
18449 private static bool roomChair;
18450
18451 // Token: 0x04003854 RID: 14420
18452 private static bool roomTable;
18453
18454 // Token: 0x04003855 RID: 14421
18455 private static bool roomOccupied;
18456
18457 // Token: 0x04003856 RID: 14422
18458 private static bool roomEvil;
18459
18460 // Token: 0x04003857 RID: 14423
18461 private static bool roomHasStinkbug;
18462
18463 // Token: 0x04003858 RID: 14424
18464 private static bool roomHasEchoStinkbug;
18465
18466 // Token: 0x04003859 RID: 14425
18467 public static int WorldGenParam_Evil;
18468
18469 // Token: 0x0400385A RID: 14426
18470 public static readonly int cactusWaterWidth;
18471
18472 // Token: 0x0400385B RID: 14427
18473 public static readonly int cactusWaterHeight;
18474
18475 // Token: 0x0400385C RID: 14428
18476 public static readonly int cactusWaterLimit;
18477
18478 // Token: 0x0400385D RID: 14429
18480
18481 // Token: 0x0400385E RID: 14430
18483
18484 // Token: 0x0400385F RID: 14431
18485 private static int sharedRoomX;
18486
18487 // Token: 0x04003860 RID: 14432
18489
18490 // Token: 0x04003861 RID: 14433
18491 public const int WorldSizeSmallX = 4200;
18492
18493 // Token: 0x04003862 RID: 14434
18494 public const int WorldSizeSmallY = 1200;
18495
18496 // Token: 0x04003863 RID: 14435
18497 public const int WorldSizeMediumX = 6400;
18498
18499 // Token: 0x04003864 RID: 14436
18500 public const int WorldSizeMediumY = 1800;
18501
18502 // Token: 0x04003865 RID: 14437
18503 public const int WorldSizeLargeX = 8400;
18504
18505 // Token: 0x04003866 RID: 14438
18506 public const int WorldSizeLargeY = 2400;
18507
18508 // Token: 0x04003867 RID: 14439
18510
18511 // Token: 0x04003868 RID: 14440
18512 public static bool generatingWorld;
18513
18514 // Token: 0x04003869 RID: 14441
18516
18517 // Token: 0x0400386A RID: 14442
18518 public static bool SavingSettings;
18519
18520 // Token: 0x0400386B RID: 14443
18521 public static bool SavingPlayer;
18522
18523 // Token: 0x0400386C RID: 14444
18524 private static int[,] trapDiag;
18525
18526 // Token: 0x0400386D RID: 14445
18528
18529 // Token: 0x0400386E RID: 14446
18531
18532 // Token: 0x0400386F RID: 14447
18534
18535 // Token: 0x04003870 RID: 14448
18537
18538 // Token: 0x04003871 RID: 14449
18539 private static bool[] gem;
18540
18541 // Token: 0x04003872 RID: 14450
18542 private static int[] mossType;
18543
18544 // Token: 0x04003873 RID: 14451
18545 private static ushort neonMossType;
18546
18547 // Token: 0x04003874 RID: 14452
18548 private static int tileCounterNum;
18549
18550 // Token: 0x04003875 RID: 14453
18551 private static int tileCounterMax;
18552
18553 // Token: 0x04003876 RID: 14454
18554 private static int[] tileCounterX;
18555
18556 // Token: 0x04003877 RID: 14455
18557 private static int[] tileCounterY;
18558
18559 // Token: 0x04003878 RID: 14456
18560 public static ushort lastTileCounterSearch;
18561
18562 // Token: 0x04003879 RID: 14457
18564
18565 // Token: 0x0400387A RID: 14458
18566 public static int SmallConsecutivesFound;
18567
18568 // Token: 0x0400387B RID: 14459
18570
18571 // Token: 0x0400387C RID: 14460
18572 public static bool tempRemixWorldGen;
18573
18574 // Token: 0x0400387D RID: 14461
18575 public static bool remixWorldGen;
18576
18577 // Token: 0x0400387E RID: 14462
18578 public static bool everythingWorldGen;
18579
18580 // Token: 0x0400387F RID: 14463
18581 public static bool noTrapsWorldGen;
18582
18583 // Token: 0x04003880 RID: 14464
18584 public static bool drunkWorldGen;
18585
18586 // Token: 0x04003881 RID: 14465
18587 public static bool getGoodWorldGen;
18588
18589 // Token: 0x04003882 RID: 14466
18591
18592 // Token: 0x04003883 RID: 14467
18593 public static bool tenthAnniversaryWorldGen;
18594
18595 // Token: 0x04003884 RID: 14468
18596 public static bool dontStarveWorldGen;
18597
18598 // Token: 0x04003885 RID: 14469
18599 public static bool notTheBees;
18600
18601 // Token: 0x04003886 RID: 14470
18602 public static bool drunkWorldGenText;
18603
18604 // Token: 0x04003887 RID: 14471
18605 public static bool placingTraps;
18606
18607 // Token: 0x04003888 RID: 14472
18609
18610 // Token: 0x04003889 RID: 14473
18611 private const int ItemSpawnProtectionTime = 18000;
18612
18613 // Token: 0x0400388A RID: 14474
18615
18616 // Token: 0x0400388B RID: 14475
18618
18619 // Token: 0x0400388C RID: 14476
18621
18622 // Token: 0x0400388D RID: 14477
18623 private static int catTailDistance;
18624
18625 // Token: 0x0400388E RID: 14478
18626 public static TreeTopsInfo TreeTops;
18627
18628 // Token: 0x0400388F RID: 14479
18630
18631 // Token: 0x04003890 RID: 14480
18632 private static int maxTreeShakes;
18633
18634 // Token: 0x04003891 RID: 14481
18635 private static int numTreeShakes;
18636
18637 // Token: 0x04003892 RID: 14482
18638 private static int[] treeShakeX;
18639
18640 // Token: 0x04003893 RID: 14483
18641 private static int[] treeShakeY;
18642
18643 // Token: 0x04003894 RID: 14484
18644 private static bool fossilBreak;
18645
18646 // Token: 0x04003895 RID: 14485
18648
18649 // Token: 0x04003896 RID: 14486
18650 private static int _lastFrame;
18651
18652 // Token: 0x04003897 RID: 14487
18653 private static bool growGrassUnderground;
18654
18655 // Token: 0x04003898 RID: 14488
18656 public const bool BUBBLES_SOLID_STATE_FOR_HOUSING = true;
18657
18658 // Token: 0x04003899 RID: 14489
18659 public static int grassSpread;
18660
18661 // Token: 0x0400389A RID: 14490
18662 private static Point[] heartPos;
18663
18664 // Token: 0x0400389B RID: 14491
18665 private static int heartCount;
18666
18667 // Token: 0x0400389C RID: 14492
18668 private static object WaitingLock;
18669
18670 // Token: 0x0400389D RID: 14493
18671 private static bool ThreadWaiting;
18672
18673 // Token: 0x0400389E RID: 14494
18674 private static bool ThreadRunning;
18675
18676 // Token: 0x0400389F RID: 14495
18677 private static DateTime ThreadStarted;
18678
18679 // Token: 0x040038A0 RID: 14496
18680 private static bool threadInProgress;
18681
18682 // Token: 0x040038A1 RID: 14497
18683 private const int strip_w = 200;
18684
18685 // Token: 0x040038A2 RID: 14498
18686 private const int strip_h = 50;
18687
18688 // Token: 0x040038A3 RID: 14499
18690
18691 // Token: 0x040038A4 RID: 14500
18692 public static bool noMapUpdateRefresh;
18693
18694 // Token: 0x040038A5 RID: 14501
18695 private const int MaxCachedUpdates = 20000;
18696
18697 // Token: 0x040038A6 RID: 14502
18698 private static uint[] CachedMapTileUpdates;
18699
18700 // Token: 0x040038A7 RID: 14503
18701 private static int CachedMapTileUpdateCount;
18702
18703 // Token: 0x040038A8 RID: 14504
18704 private static bool skipFramingDuringGen;
18705
18706 // Token: 0x040038A9 RID: 14505
18707 public static bool LogFrames;
18708
18709 // Token: 0x040038AA RID: 14506
18710 private static int currentStack;
18711
18712 // Token: 0x040038AB RID: 14507
18713 private static int maxStack;
18714
18715 // Token: 0x040038AC RID: 14508
18717
18718 // Token: 0x040038AD RID: 14509
18719 private static int maxCount;
18720
18721 // Token: 0x02000472 RID: 1138
18722 public static class WorldSize
18723 {
18724 // Token: 0x040038AE RID: 14510
18725 public const int Small = 0;
18726
18727 // Token: 0x040038AF RID: 14511
18728 public const int Medium = 1;
18729
18730 // Token: 0x040038B0 RID: 14512
18731 public const int Large = 2;
18732 }
18733
18734 // Token: 0x02000473 RID: 1139
18735 public static class SavedOreTiers
18736 {
18737 // Token: 0x06002EDA RID: 11994 RVA: 0x001E729C File Offset: 0x001E549C
18738 // Note: this type is marked as 'beforefieldinit'.
18740 {
18741 }
18742
18743 // Token: 0x040038B1 RID: 14513
18744 public static int Copper;
18745
18746 // Token: 0x040038B2 RID: 14514
18747 public static int Iron;
18748
18749 // Token: 0x040038B3 RID: 14515
18750 public static int Silver;
18751
18752 // Token: 0x040038B4 RID: 14516
18753 public static int Gold;
18754
18755 // Token: 0x040038B5 RID: 14517
18756 public static int Cobalt;
18757
18758 // Token: 0x040038B6 RID: 14518
18759 public static int Mythril;
18760
18761 // Token: 0x040038B7 RID: 14519
18762 public static int Adamantite;
18763 }
18764
18765 // Token: 0x02000474 RID: 1140
18766 public static class Hooks
18767 {
18768 // Token: 0x1400002C RID: 44
18769 // (add) Token: 0x06002EDB RID: 11995 RVA: 0x001E72AC File Offset: 0x001E54AC
18770 // (remove) Token: 0x06002EDC RID: 11996 RVA: 0x001E72C4 File Offset: 0x001E54C4
18772 {
18774 add
18775 {
18777 if (@delegate != null)
18778 {
18779 }
18780 }
18782 remove
18783 {
18785 if (@delegate != null)
18786 {
18787 }
18788 }
18789 }
18790
18791 // Token: 0x1400002D RID: 45
18792 // (add) Token: 0x06002EDD RID: 11997 RVA: 0x001E72DC File Offset: 0x001E54DC
18793 // (remove) Token: 0x06002EDE RID: 11998 RVA: 0x001E72F4 File Offset: 0x001E54F4
18794 public static event Action OnWorldLoad
18795 {
18797 add
18798 {
18800 if (@delegate != null)
18801 {
18802 }
18803 }
18805 remove
18806 {
18808 if (@delegate != null)
18809 {
18810 }
18811 }
18812 }
18813
18814 // Token: 0x06002EDF RID: 11999 RVA: 0x001E730C File Offset: 0x001E550C
18815 public static void Initialize()
18816 {
18817 if (!true)
18818 {
18819 }
18820 if (!true)
18821 {
18822 }
18823 }
18824
18825 // Token: 0x06002EE0 RID: 12000 RVA: 0x001E7324 File Offset: 0x001E5524
18826 public static void WorldLoaded()
18827 {
18828 }
18829
18830 // Token: 0x06002EE1 RID: 12001 RVA: 0x001E7334 File Offset: 0x001E5534
18832 {
18833 }
18834
18835 // Token: 0x040038B8 RID: 14520
18838
18839 // Token: 0x040038B9 RID: 14521
18841 private static Action OnWorldLoad;
18842
18843 // Token: 0x02000475 RID: 1141
18844 // (Invoke) Token: 0x06002EE3 RID: 12003
18846
18847 // Token: 0x02000476 RID: 1142
18849 [Serializable]
18850 private sealed class <>c
18851 {
18852 // Token: 0x06002EE6 RID: 12006 RVA: 0x00003BB6 File Offset: 0x00001DB6
18853 // Note: this type is marked as 'beforefieldinit'.
18854 static <>c()
18855 {
18856 }
18857
18858 // Token: 0x06002EE7 RID: 12007 RVA: 0x00003BB6 File Offset: 0x00001DB6
18859 public <>c()
18860 {
18861 }
18862
18863 // Token: 0x06002EE8 RID: 12008 RVA: 0x00003BB6 File Offset: 0x00001DB6
18864 internal void <Initialize>b__7_0(Player player)
18865 {
18866 }
18867
18868 // Token: 0x040038BA RID: 14522
18869 public static readonly WorldGen.Hooks.<>c <>9;
18870
18871 // Token: 0x040038BB RID: 14523
18872 public static Action<Player> <>9__7_0;
18873 }
18874 }
18875
18876 // Token: 0x02000477 RID: 1143
18877 public static class Spread
18878 {
18879 // Token: 0x06002EE9 RID: 12009 RVA: 0x001E7344 File Offset: 0x001E5544
18880 public static void Wall(int x, int y, int wallType)
18881 {
18882 int num = 1;
18883 if (num == 0)
18884 {
18885 }
18886 long num2 = 0L;
18887 bool flag = WorldGen.InWorld(x, y, (int)num2);
18888 if (num == 0)
18889 {
18890 }
18892 if (num == 0)
18893 {
18894 }
18895 }
18896
18897 // Token: 0x06002EEA RID: 12010 RVA: 0x001E73E0 File Offset: 0x001E55E0
18898 public static void Wall2(int x, int y, int wallType)
18899 {
18900 if (!true)
18901 {
18902 }
18903 long num = 0L;
18904 bool flag = WorldGen.InWorld(x, y, (int)num);
18906 }
18907
18908 // Token: 0x06002EEB RID: 12011 RVA: 0x001E74DC File Offset: 0x001E56DC
18909 public static void Moss(int x, int y)
18910 {
18911 int num = 1;
18912 if (num == 0)
18913 {
18914 }
18915 long num2 = 0L;
18916 bool flag = WorldGen.InWorld(x, y, (int)num2);
18917 if (num == 0)
18918 {
18919 }
18920 }
18921
18922 // Token: 0x06002EEC RID: 12012 RVA: 0x001E7524 File Offset: 0x001E5724
18923 public static void Gem(int x, int y)
18924 {
18925 if (!true)
18926 {
18927 }
18928 long num = 0L;
18929 bool flag = WorldGen.InWorld(x, y, (int)num);
18930 }
18931
18932 // Token: 0x06002EED RID: 12013 RVA: 0x001E7608 File Offset: 0x001E5808
18933 public static void Spider(int x, int y)
18934 {
18935 }
18936
18937 // Token: 0x06002EEE RID: 12014 RVA: 0x001E7804 File Offset: 0x001E5A04
18938 public static void WallDungeon(int x, int y, int wallType)
18939 {
18940 if (!true)
18941 {
18942 }
18943 long num = 0L;
18944 bool flag = WorldGen.InWorld(x, y, (int)num);
18945 }
18946
18947 // Token: 0x06002EEF RID: 12015 RVA: 0x001E7848 File Offset: 0x001E5A48
18948 private static bool Gemmable(int type)
18949 {
18950 }
18951 }
18952
18953 // Token: 0x02000478 RID: 1144
18954 public struct PendingRefame
18955 {
18956 // Token: 0x040038BC RID: 14524
18957 public int x;
18958
18959 // Token: 0x040038BD RID: 14525
18960 public int y;
18961
18962 // Token: 0x040038BE RID: 14526
18963 public bool resetFrame;
18964
18965 // Token: 0x040038BF RID: 14527
18966 public bool noBreak;
18967
18968 // Token: 0x040038C0 RID: 14528
18969 public int reframeCount;
18970 }
18971
18972 // Token: 0x02000479 RID: 1145
18973 public class nextCountNode
18974 {
18975 // Token: 0x06002EF0 RID: 12016 RVA: 0x001E7858 File Offset: 0x001E5A58
18976 public void Setup(int x, int y, bool jungle, bool lavaOk)
18977 {
18978 this.x = x;
18979 this.jungle = y != 0;
18980 }
18981
18982 // Token: 0x06002EF1 RID: 12017 RVA: 0x001E7874 File Offset: 0x001E5A74
18984 {
18985 }
18986
18987 // Token: 0x040038C1 RID: 14529
18988 public int x;
18989
18990 // Token: 0x040038C2 RID: 14530
18991 public int y;
18992
18993 // Token: 0x040038C3 RID: 14531
18994 public bool jungle;
18995
18996 // Token: 0x040038C4 RID: 14532
18997 public bool lavaOk;
18998 }
18999
19000 // Token: 0x0200047A RID: 1146
19001 internal class nextCountDirtNode
19002 {
19003 // Token: 0x06002EF2 RID: 12018 RVA: 0x001E7888 File Offset: 0x001E5A88
19004 public void Setup(int x, int y)
19005 {
19006 this.x = x;
19007 }
19008
19009 // Token: 0x06002EF3 RID: 12019 RVA: 0x001E789C File Offset: 0x001E5A9C
19011 {
19012 }
19013
19014 // Token: 0x040038C5 RID: 14533
19015 public int x;
19016
19017 // Token: 0x040038C6 RID: 14534
19018 public int y;
19019 }
19020
19021 // Token: 0x0200047B RID: 1147
19022 public static class TenthAnniversaryWorldInfo
19023 {
19024 // Token: 0x06002EF4 RID: 12020 RVA: 0x001E78B0 File Offset: 0x001E5AB0
19025 // Note: this type is marked as 'beforefieldinit'.
19027 {
19028 }
19029
19030 // Token: 0x040038C7 RID: 14535
19031 public static int[] GoodPrefixIdsForAccessory;
19032
19033 // Token: 0x040038C8 RID: 14536
19034 public static int[] GoodPrefixIdsForMeleeWeapon;
19035
19036 // Token: 0x040038C9 RID: 14537
19037 public static int[] GoodPrefixIdsForRangedWeapon;
19038
19039 // Token: 0x040038CA RID: 14538
19040 public static int[] GoodPrefixIdsForMagicWeapon;
19041
19042 // Token: 0x040038CB RID: 14539
19044 }
19045
19046 // Token: 0x0200047C RID: 1148
19047 public struct GrowTreeSettings
19048 {
19049 // Token: 0x040038CC RID: 14540
19050 public ushort TreeTileType;
19051
19052 // Token: 0x040038CD RID: 14541
19053 public int TreeHeightMin;
19054
19055 // Token: 0x040038CE RID: 14542
19056 public int TreeHeightMax;
19057
19058 // Token: 0x040038CF RID: 14543
19060
19061 // Token: 0x040038D0 RID: 14544
19063
19064 // Token: 0x040038D1 RID: 14545
19066
19067 // Token: 0x040038D2 RID: 14546
19068 public ushort SaplingTileType;
19069
19070 // Token: 0x0200047D RID: 1149
19071 // (Invoke) Token: 0x06002EF6 RID: 12022
19072 public delegate bool IsTileFitForTreeGroundTest(int tileType);
19073
19074 // Token: 0x0200047E RID: 1150
19075 // (Invoke) Token: 0x06002EFA RID: 12026
19077
19078 // Token: 0x0200047F RID: 1151
19079 public static class Profiles
19080 {
19081 // Token: 0x06002EFD RID: 12029 RVA: 0x001E78C0 File Offset: 0x001E5AC0
19082 public static bool TryGetFromItemId(int itemType, [Out] WorldGen.GrowTreeSettings profile)
19083 {
19084 return default(bool);
19085 }
19086
19087 // Token: 0x06002EFE RID: 12030 RVA: 0x001E78D8 File Offset: 0x001E5AD8
19088 public static bool TryGetFromTreeId(int tileType, [Out] WorldGen.GrowTreeSettings profile)
19089 {
19090 return default(bool);
19091 }
19092
19093 // Token: 0x06002EFF RID: 12031 RVA: 0x00003BB6 File Offset: 0x00001DB6
19094 // Note: this type is marked as 'beforefieldinit'.
19095 static Profiles()
19096 {
19097 }
19098
19099 // Token: 0x040038D3 RID: 14547
19101
19102 // Token: 0x040038D4 RID: 14548
19104
19105 // Token: 0x040038D5 RID: 14549
19107
19108 // Token: 0x040038D6 RID: 14550
19110
19111 // Token: 0x040038D7 RID: 14551
19113
19114 // Token: 0x040038D8 RID: 14552
19116
19117 // Token: 0x040038D9 RID: 14553
19119
19120 // Token: 0x040038DA RID: 14554
19122
19123 // Token: 0x040038DB RID: 14555
19125
19126 // Token: 0x040038DC RID: 14556
19128 }
19129 }
19130
19131 // Token: 0x02000480 RID: 1152
19132 public struct CheckTreeSettings
19133 {
19134 // Token: 0x040038DD RID: 14557
19136
19137 // Token: 0x02000481 RID: 1153
19138 // (Invoke) Token: 0x06002F01 RID: 12033
19140 }
19141
19142 // Token: 0x02000482 RID: 1154
19144 {
19145 // Token: 0x040038DF RID: 14559
19146 None,
19147 // Token: 0x040038E0 RID: 14560
19149 }
19150
19151 // Token: 0x02000483 RID: 1155
19153 {
19154 // Token: 0x06002F04 RID: 12036 RVA: 0x001E78F0 File Offset: 0x001E5AF0
19156 {
19158 this.m_target = @object;
19160 this.method_code = this;
19161 }
19162
19163 // Token: 0x06002F05 RID: 12037 RVA: 0x001E7944 File Offset: 0x001E5B44
19164 public bool Invoke(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
19165 {
19166 /*
19167An exception occurred when decompiling this method (06002F05)
19168
19169ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.WorldGen/GetTreeFoliageDataMethod::Invoke(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)
19170
19171 ---> System.Exception: Basic block has to end with unconditional control flow.
19172{
19173 Block_0:
19174 stloc:native int(var_0_06, ldfld:native int(Delegate::invoke_impl, ldloc:GetTreeFoliageDataMethod[exp:Delegate](this)))
19175 stloc:native int(var_1_0D, ldfld:native int(Delegate::method, ldloc:GetTreeFoliageDataMethod[exp:Delegate](this)))
19176 stloc:native int(var_2_14, ldfld:native int(Delegate::method_code, ldloc:GetTreeFoliageDataMethod[exp:Delegate](this)))
19177}
19178
19179 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
19180 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
19181 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
19182 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
19183 --- End of inner exception stack trace ---
19184 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
19185 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
19186*/;
19187 }
19188
19189 // Token: 0x06002F06 RID: 12038 RVA: 0x000021DB File Offset: 0x000003DB
19190 public IAsyncResult BeginInvoke(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight, AsyncCallback callback, object @object)
19191 {
19192 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19193 }
19194
19195 // Token: 0x06002F07 RID: 12039 RVA: 0x000021DB File Offset: 0x000003DB
19196 public bool EndInvoke(int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight, IAsyncResult result)
19197 {
19198 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19199 }
19200 }
19201
19202 // Token: 0x02000484 RID: 1156
19204 {
19205 // Token: 0x06002F08 RID: 12040 RVA: 0x001E7968 File Offset: 0x001E5B68
19206 public void Cull(int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
19207 {
19208 bool cullBottom = this.CullBottom;
19209 if (cullBottom)
19210 {
19211 down.m_value = (cullBottom ? 1 : 0);
19212 }
19213 bool cullLeft = this.CullLeft;
19214 if (cullLeft)
19215 {
19216 left.m_value = (cullLeft ? 1 : 0);
19217 }
19218 bool cullRight = this.CullRight;
19219 if (cullRight)
19220 {
19221 right.m_value = (cullRight ? 1 : 0);
19222 }
19223 bool cullTopLeft = this.CullTopLeft;
19224 if (cullTopLeft)
19225 {
19226 upLeft.m_value = (cullTopLeft ? 1 : 0);
19227 }
19228 bool cullTopRight = this.CullTopRight;
19229 if (cullTopRight)
19230 {
19231 upRight.m_value = (cullTopRight ? 1 : 0);
19232 }
19233 bool cullBottomLeft = this.CullBottomLeft;
19234 if (cullBottomLeft)
19235 {
19236 downLeft.m_value = (cullBottomLeft ? 1 : 0);
19237 }
19238 if (this.CullBottomRight)
19239 {
19240 }
19241 }
19242
19243 // Token: 0x040038E1 RID: 14561
19244 public bool CullTop;
19245
19246 // Token: 0x040038E2 RID: 14562
19247 public bool CullBottom;
19248
19249 // Token: 0x040038E3 RID: 14563
19250 public bool CullLeft;
19251
19252 // Token: 0x040038E4 RID: 14564
19253 public bool CullRight;
19254
19255 // Token: 0x040038E5 RID: 14565
19256 public bool CullTopLeft;
19257
19258 // Token: 0x040038E6 RID: 14566
19259 public bool CullTopRight;
19260
19261 // Token: 0x040038E7 RID: 14567
19262 public bool CullBottomLeft;
19263
19264 // Token: 0x040038E8 RID: 14568
19265 public bool CullBottomRight;
19266 }
19267
19268 // Token: 0x02000485 RID: 1157
19270 [StructLayout(3)]
19272 {
19273 // Token: 0x040038E9 RID: 14569
19274 public int Main_maxTilesX;
19275
19276 // Token: 0x040038EA RID: 14570
19278
19279 // Token: 0x040038EB RID: 14571
19281
19282 // Token: 0x040038EC RID: 14572
19284
19285 // Token: 0x040038ED RID: 14573
19286 public bool[] Main_tileSolid;
19287
19288 // Token: 0x040038EE RID: 14574
19289 public bool[] Main_tileSolidTop;
19290 }
19291
19292 // Token: 0x02000486 RID: 1158
19294 private sealed class <>c__DisplayClass277_1
19295 {
19296 // Token: 0x06002F09 RID: 12041 RVA: 0x001E79F0 File Offset: 0x001E5BF0
19298 {
19299 }
19300
19301 // Token: 0x06002F0A RID: 12042 RVA: 0x001E7A04 File Offset: 0x001E5C04
19302 internal bool <GenerateWorld>b__110(int x, int y, object[] args)
19303 {
19304 this.foundInvalidTile = true;
19305 return true;
19306 }
19307
19308 // Token: 0x06002F0B RID: 12043 RVA: 0x001E7A1C File Offset: 0x001E5C1C
19309 internal bool <GenerateWorld>b__111(int x, int y, object[] args)
19310 {
19311 this.foundInvalidTile = true;
19312 return true;
19313 }
19314
19315 // Token: 0x040038EF RID: 14575
19316 public bool foundInvalidTile;
19317 }
19318
19319 // Token: 0x02000487 RID: 1159
19321 [StructLayout(3)]
19323 {
19324 // Token: 0x040038F0 RID: 14576
19326
19327 // Token: 0x040038F1 RID: 14577
19328 public int Main_maxTilesX;
19329
19330 // Token: 0x040038F2 RID: 14578
19332
19333 // Token: 0x040038F3 RID: 14579
19335
19336 // Token: 0x040038F4 RID: 14580
19338
19339 // Token: 0x040038F5 RID: 14581
19341 }
19342
19343 // Token: 0x02000488 RID: 1160
19345 [Serializable]
19346 private sealed class <>c
19347 {
19348 // Token: 0x06002F0C RID: 12044 RVA: 0x001E7A34 File Offset: 0x001E5C34
19349 // Note: this type is marked as 'beforefieldinit'.
19350 static <>c()
19351 {
19352 }
19353
19354 // Token: 0x06002F0D RID: 12045 RVA: 0x001E7A44 File Offset: 0x001E5C44
19355 public <>c()
19356 {
19357 }
19358
19359 // Token: 0x06002F0E RID: 12046 RVA: 0x001E7A58 File Offset: 0x001E5C58
19361 {
19362 if (!true)
19363 {
19364 }
19366 int num = 2;
19367 int num2 = genRand.Next(num);
19368 }
19369
19370 // Token: 0x06002F0F RID: 12047 RVA: 0x001E7E84 File Offset: 0x001E6084
19372 {
19373 if (!true)
19374 {
19375 }
19377 double num = passConfig.Get<double>("ChanceOfPyramid");
19378 if (32752 == 0)
19379 {
19380 }
19381 int num2 = 1;
19382 int num3 = 500;
19383 int num4 = 500;
19384 long num5 = 0L;
19385 long num6 = 0L;
19386 Point point = WorldGen.RandomWorldPoint((int)num5, num3, (int)num6, num4);
19387 if (num2 == 0)
19388 {
19389 }
19390 if (num2 == 0)
19391 {
19392 }
19393 }
19394
19395 // Token: 0x06002F10 RID: 12048 RVA: 0x001E7F1C File Offset: 0x001E611C
19397 {
19398 string textValue = Language.GetTextValue("WorldGeneration.OceanSand");
19399 long num = 0L;
19400 long num2 = 0L;
19401 int num3 = WorldGen.genRand.Next((int)num2);
19403 int num4 = 35;
19404 int num5 = 90;
19405 int num6 = genRand.Next(num4, num5);
19407 int num7 = 20;
19408 int num8 = 40;
19409 int num9 = genRand2.Next(num7, num8);
19410 long num10 = 32752L;
19411 int num11 = 32768;
19412 if (num10 == 0L)
19413 {
19414 }
19416 int num12 = 3;
19417 int num13 = genRand3.Next(num12);
19418 if (num11 == 0)
19419 {
19420 }
19422 int num14 = 35;
19423 int num15 = 90;
19424 int num16 = genRand4.Next(num14, num15);
19426 int num17 = 3;
19427 int num18 = genRand5.Next(num17);
19428 if (num18 == 0)
19429 {
19430 }
19431 if (num11 != 0)
19432 {
19433 return;
19434 }
19435 if (num == 0L)
19436 {
19437 if (num18 == 0)
19438 {
19439 }
19440 return;
19441 }
19443 int num19 = 50;
19444 int num20 = 100;
19445 int num21 = genRand6.Next(num19, num20);
19447 int num22 = 2;
19448 int num25;
19449 if (genRand7.Next(num22) == 0)
19450 {
19452 int num23 = 2;
19453 int num24 = genRand8.Next(num22, num23);
19454 num25 = 200;
19455 }
19456 if (num25 == 0)
19457 {
19458 }
19459 Tile tile;
19460 bool flag = tile.active();
19461 }
19462
19463 // Token: 0x06002F11 RID: 12049 RVA: 0x001E80E0 File Offset: 0x001E62E0
19465 {
19466 if (!true)
19467 {
19468 }
19472 }
19473
19474 // Token: 0x06002F12 RID: 12050 RVA: 0x001E8168 File Offset: 0x001E6368
19476 {
19477 int num = 1;
19478 if (num == 0)
19479 {
19480 }
19481 int num2 = 32768;
19482 if (num != 0)
19483 {
19484 }
19486 if (num2 == 0)
19487 {
19488 if (num2 == 0)
19489 {
19490 }
19492 return;
19493 }
19494 Tile tile;
19495 bool flag = tile.active();
19496 }
19497
19498 // Token: 0x06002F13 RID: 12051 RVA: 0x001E8294 File Offset: 0x001E6494
19500 {
19501 int num = 1;
19502 if (num == 0)
19503 {
19504 }
19505 if (num == 0)
19506 {
19507 }
19508 long num2 = 0L;
19509 if (num == 0)
19510 {
19511 }
19512 long num3;
19513 if (num != 0)
19514 {
19515 num3 = 32752L;
19516 }
19517 long num4 = 0L;
19518 if (num3 == 0L)
19519 {
19520 }
19521 int num5 = WorldGen.genRand.Next((int)num4, (int)num2);
19522 }
19523
19524 // Token: 0x06002F14 RID: 12052 RVA: 0x001E8348 File Offset: 0x001E6548
19526 {
19527 int num = 1;
19528 if (num == 0)
19529 {
19530 }
19531 if (num == 0)
19532 {
19533 }
19534 long num2 = 0L;
19536 int num3 = 2;
19537 int num4 = genRand.Next((int)num2, num3);
19538 int num5 = 10;
19539 if (num5 == 0)
19540 {
19541 }
19542 if (num5 == 0)
19543 {
19544 }
19545 Tile tile;
19546 bool flag = tile.active();
19547 Tile tile2;
19548 bool flag2 = tile2.active();
19549 Tile tile3;
19550 bool flag3 = tile3.active();
19551 Tile tile4;
19552 bool flag4 = tile4.active();
19553 Tile tile5;
19554 bool flag5 = tile5.active();
19555 Tile tile6;
19556 bool flag6 = tile6.active();
19557 }
19558
19559 // Token: 0x06002F15 RID: 12053 RVA: 0x001E83D8 File Offset: 0x001E65D8
19561 {
19562 int num = 1;
19563 if (num == 0)
19564 {
19565 }
19566 long num2 = 0L;
19567 if (num == 0)
19568 {
19569 }
19570 if (num == 0)
19571 {
19572 }
19574 long num3 = 0L;
19575 int num4 = genRand.Next((int)num3, (int)num2);
19577 long num5 = 0L;
19578 int num6 = genRand2.Next((int)num5, (int)num2);
19580 int num7 = 4;
19581 int num8 = 15;
19582 int num9 = genRand3.Next(num7, num8);
19584 int num10 = 5;
19585 int num11 = 40;
19586 int num12 = genRand4.Next(num10, num11);
19587 progress.Set(0.34);
19589 long num13 = 0L;
19590 int num14 = genRand5.Next((int)num13, num12);
19591 int num15 = WorldGen.genRand.Next((int)num13, num12);
19592 long num16 = 0L;
19593 Tile tile;
19594 bool flag = tile.active();
19595 int num17 = WorldGen.genRand.Next((int)num16, num12);
19597 int num18 = 4;
19598 int num19 = 10;
19599 int num20 = genRand6.Next(num18, num19);
19601 int num21 = 5;
19602 int num22 = 30;
19603 int num23 = genRand7.Next(num21, num22);
19604 progress.Set(0.67);
19606 long num24 = 0L;
19607 int num25 = genRand8.Next((int)num24, num23);
19608 int num26 = WorldGen.genRand.Next((int)num24, num23);
19610 int num27 = 2;
19611 int num28 = 7;
19612 int num29 = genRand9.Next(num27, num28);
19614 int num30 = 2;
19615 int num31 = 23;
19616 int num32 = genRand10.Next(num30, num31);
19617 }
19618
19619 // Token: 0x06002F16 RID: 12054 RVA: 0x001E856C File Offset: 0x001E676C
19621 {
19622 int num = 1;
19623 if (num == 0)
19624 {
19625 }
19626 long num2 = 0L;
19627 if (num == 0)
19628 {
19629 }
19630 progress.Set(0.005);
19631 if (num == 0)
19632 {
19633 }
19635 long num3 = 0L;
19636 int num4 = genRand.Next((int)num3, (int)num2);
19637 int num5 = WorldGen.genRand.Next((int)num3, (int)num2);
19639 int num6 = 2;
19640 int num7 = 6;
19641 int num8 = genRand2.Next(num6, num7);
19643 int num9 = 2;
19644 int num10 = 40;
19645 int num11 = genRand3.Next(num9, num10);
19647 int num12 = 3;
19648 int num13 = genRand4.Next(num5, num12);
19649 Tile tile;
19650 bool flag = tile.active();
19651 }
19652
19653 // Token: 0x06002F17 RID: 12055 RVA: 0x001E8624 File Offset: 0x001E6824
19655 {
19656 if (!true)
19657 {
19658 }
19659 long num = 0L;
19661 long num2 = 0L;
19662 int num3 = genRand.Next((int)num2, (int)num);
19664 long num4 = 0L;
19665 int num5 = genRand2.Next((int)num4, (int)num);
19667 int num6 = 4;
19668 int num7 = 14;
19669 int num8 = genRand3.Next(num6, num7);
19671 int num9 = 10;
19672 int num10 = 50;
19673 int num11 = genRand4.Next(num9, num10);
19674 }
19675
19676 // Token: 0x06002F18 RID: 12056 RVA: 0x001E8818 File Offset: 0x001E6A18
19678 {
19679 int num = 1;
19680 if (num == 0)
19681 {
19682 }
19683 if (num == 0)
19684 {
19685 }
19686 if (num == 0)
19687 {
19688 }
19689 if (num == 0)
19690 {
19691 }
19693 int num2 = 5;
19694 long num3 = 0L;
19695 int num4 = genRand.Next(num2);
19697 long num5 = 0L;
19698 int num6 = genRand2.Next((int)num5, (int)num3);
19699 int num7 = WorldGen.genRand.Next((int)num5, (int)num3);
19701 long num8 = 0L;
19702 int num9 = genRand3.Next((int)num8, (int)num3);
19703 int num10 = WorldGen.genRand.Next((int)num8, (int)num3);
19704 }
19705
19706 // Token: 0x06002F19 RID: 12057 RVA: 0x001E897C File Offset: 0x001E6B7C
19708 {
19709 int num = 1;
19710 if (num == 0)
19711 {
19712 }
19713 if (num == 0)
19714 {
19715 }
19716 long num2 = 0L;
19717 progress.Set((double)num2);
19719 int num3 = 6;
19720 long num4 = 0L;
19721 int num5 = genRand.Next(num3);
19723 long num6 = 0L;
19724 int num7 = genRand2.Next((int)num6, (int)num4);
19725 int num8 = WorldGen.genRand.Next((int)num6, (int)num4);
19726 if (36700692 == 0)
19727 {
19728 }
19729 if (36700692 == 0)
19730 {
19731 }
19732 if (36700692 == 0)
19733 {
19734 }
19736 while (36700692 != 0)
19737 {
19738 }
19739 }
19740
19741 // Token: 0x06002F1A RID: 12058 RVA: 0x001E8A54 File Offset: 0x001E6C54
19743 {
19744 if (!true)
19745 {
19746 }
19747 if (!true)
19748 {
19749 }
19750 if (true)
19751 {
19752 }
19753 progress.Set(6.953355807835E-310);
19754 if (32768 == 0)
19755 {
19756 }
19757 int num = WorldGen.genRand.Next(10);
19758 int num2 = WorldGen.genRand.Next(6, 20);
19759 int num3 = WorldGen.genRand.Next(50, 300);
19761 long num4 = 0L;
19762 int num5 = genRand.Next((int)num4, 300);
19763 int num6 = WorldGen.genRand.Next((int)num4, 300);
19764 int num7 = WorldGen.genRand.Next(10);
19765 int num8 = WorldGen.genRand.Next(7, 26);
19766 int num9 = WorldGen.genRand.Next(50, 200);
19767 int num10 = WorldGen.genRand.Next(100, 221);
19768 int num11 = WorldGen.genRand.Next(100, 11);
19770 long num12 = 0L;
19771 int num13 = genRand2.Next((int)num12, 11);
19772 int num14 = WorldGen.genRand.Next((int)num12, 11);
19773 }
19774
19775 // Token: 0x06002F1B RID: 12059 RVA: 0x001E8B78 File Offset: 0x001E6D78
19777 {
19778 int num = 1;
19779 if (num == 0)
19780 {
19781 }
19782 long num2 = 0L;
19783 if (num == 0)
19784 {
19785 }
19786 if (32752 == 0)
19787 {
19788 }
19789 if (num != 0)
19790 {
19791 }
19793 long num3 = 0L;
19794 int num4 = genRand.Next((int)num3, (int)num2);
19795 }
19796
19797 // Token: 0x06002F1C RID: 12060 RVA: 0x001E8E8C File Offset: 0x001E708C
19799 {
19800 int num = 1;
19801 if (num == 0)
19802 {
19803 }
19804 if (num == 0)
19805 {
19806 return;
19807 }
19808 string textValue = Language.GetTextValue("WorldGeneration.WavyCaves");
19809 long num2 = 0L;
19811 if ("WorldGeneration.WavyCaves" == null)
19812 {
19813 }
19814 int num3 = 32768;
19815 int num4 = 80;
19816 long num5 = 0L;
19817 progress.Set((double)num4);
19818 if ("WorldGeneration.WavyCaves" == null)
19819 {
19820 }
19822 if (num3 == 0)
19823 {
19824 }
19825 int num6 = 100;
19827 int num7 = genRand.Next((int)num5, (int)num2);
19828 if (num3 == 0)
19829 {
19830 }
19831 if (num6 != 0)
19832 {
19834 if (num3 == 0)
19835 {
19836 }
19837 return;
19838 }
19839 if (num3 == 0)
19840 {
19841 }
19843 int num8 = 3;
19844 int num9 = 6;
19845 int num10 = genRand3.Next(num8, num9);
19846 double num11 = WorldGen.genRand.NextDouble();
19848 int num12 = 300;
19849 int num13 = 500;
19850 int num14 = genRand4.Next(num12, num13);
19851 }
19852
19853 // Token: 0x06002F1D RID: 12061 RVA: 0x001E8F80 File Offset: 0x001E7180
19855 {
19856 if (!true)
19857 {
19858 }
19859 int num = 32768;
19861 int num2 = 160;
19862 int num3 = 200;
19863 int num4 = genRand.Next(num2, num3);
19864 if (num != 0)
19865 {
19866 if (num == 0)
19867 {
19868 }
19870 int num5 = 160;
19871 int num6 = 200;
19872 int num7 = genRand2.Next(num5, num6);
19873 return;
19874 }
19875 if (num == 0)
19876 {
19877 }
19878 long num8 = 0L;
19880 int num9 = 4;
19881 int num10 = genRand3.Next((int)num8, num9);
19883 int num11 = 5;
19884 int num12 = genRand4.Next((int)num8, num11);
19885 if (num12 == 0)
19886 {
19887 }
19888 if (num12 == 0)
19889 {
19890 }
19892 int num13 = 4;
19893 if (genRand5.Next(num13) == 0)
19894 {
19895 return;
19896 }
19897 Tile tile;
19898 ushort wall = tile.wall;
19899 Tile tile2;
19900 ushort type = tile2.type;
19901 }
19902
19903 // Token: 0x06002F1E RID: 12062 RVA: 0x001E9154 File Offset: 0x001E7354
19905 {
19906 int num = 1;
19907 if (num == 0)
19908 {
19909 }
19910 progress.Set(0.002);
19911 if (num == 0)
19912 {
19913 }
19916 }
19917
19918 // Token: 0x06002F1F RID: 12063 RVA: 0x001E9298 File Offset: 0x001E7498
19920 {
19921 int num = 1;
19922 if (num == 0)
19923 {
19924 }
19925 if (num == 0)
19926 {
19927 }
19929 Tile tile;
19930 bool flag = tile.active();
19931 }
19932
19933 // Token: 0x06002F20 RID: 12064 RVA: 0x001E92CC File Offset: 0x001E74CC
19935 {
19936 int num = 1;
19937 if (num == 0)
19938 {
19939 }
19940 if (num == 0)
19941 {
19942 }
19943 if (num == 0)
19944 {
19945 }
19949 }
19950
19951 // Token: 0x06002F21 RID: 12065 RVA: 0x001E9384 File Offset: 0x001E7584
19953 {
19954 int num = 1;
19955 if (num == 0)
19956 {
19957 }
19958 if (num == 0)
19959 {
19960 }
19961 long num2 = 0L;
19962 if (num == 0)
19963 {
19964 }
19965 long num3 = 0L;
19967 if (33501184 == 0)
19968 {
19969 }
19970 int num4 = genRand.Next((int)num3, (int)num2);
19971 if (33501184 == 0)
19972 {
19973 }
19974 }
19975
19976 // Token: 0x06002F22 RID: 12066 RVA: 0x001E9490 File Offset: 0x001E7690
19978 {
19979 int num = 1;
19980 if (num == 0)
19981 {
19982 }
19983 if (num == 0)
19984 {
19985 }
19986 int num4;
19987 long num5;
19988 if (num != 0)
19989 {
19990 if (num == 0)
19991 {
19992 }
19994 int num2 = 3;
19995 int num3 = genRand.Next(num2);
19996 Tile tile;
19997 ushort type = tile.type;
19998 num4 = 59;
19999 num5 = 0L;
20000 return;
20001 }
20002 if (!true)
20003 {
20004 }
20005 int num6 = WorldGen.genRand.Next(num4, (int)num5);
20006 int num7 = WorldGen.genRand.Next(num4, (int)num5);
20007 }
20008
20009 // Token: 0x06002F23 RID: 12067 RVA: 0x001E9774 File Offset: 0x001E7974
20011 {
20012 if (!true)
20013 {
20014 }
20016 long num = 32752L;
20017 int num2 = 80;
20018 long num3;
20019 int num4;
20020 if (false)
20021 {
20022 if (!false)
20023 {
20024 }
20025 if (num2 == 0)
20026 {
20027 }
20028 if (num == 0L)
20029 {
20030 }
20031 num3 = 32752L;
20032 num4 = 32768;
20033 }
20034 if (num3 == 0L)
20035 {
20036 }
20037 if (num3 == 0L)
20038 {
20039 }
20041 if (num4 != 0)
20042 {
20043 return;
20044 }
20045 }
20046
20047 // Token: 0x06002F24 RID: 12068 RVA: 0x001E97D0 File Offset: 0x001E79D0
20049 {
20050 if (!true)
20051 {
20052 }
20054 long num = 32752L;
20055 int num2 = 100;
20056 long num3;
20057 int num4;
20058 if (false)
20059 {
20060 if (!false)
20061 {
20062 }
20063 if (num2 == 0)
20064 {
20065 }
20066 if (num == 0L)
20067 {
20068 }
20069 num3 = 32752L;
20070 num4 = 32768;
20071 }
20072 if (num3 == 0L)
20073 {
20074 }
20075 if (num3 == 0L)
20076 {
20077 }
20079 if (num4 != 0)
20080 {
20081 return;
20082 }
20083 }
20084
20085 // Token: 0x06002F25 RID: 12069 RVA: 0x001E9840 File Offset: 0x001E7A40
20087 {
20088 }
20089
20090 // Token: 0x06002F26 RID: 12070 RVA: 0x001E98C8 File Offset: 0x001E7AC8
20092 {
20093 if (!true)
20094 {
20095 }
20096 long num = 0L;
20098 long num2 = 0L;
20099 int num3 = genRand.Next((int)num2, (int)num);
20100 int num4 = WorldGen.genRand.Next((int)num2, (int)num);
20101 int num5 = WorldGen.genRand.Next((int)num2, (int)num);
20102 Tile tile;
20103 ushort wall = tile.wall;
20104 Tile tile2;
20105 ushort wall2 = tile2.wall;
20107 int num6 = 5;
20108 int num7 = 12;
20109 int num8 = genRand2.Next(num6, num7);
20111 int num9 = 15;
20112 int num10 = 50;
20113 int num11 = genRand3.Next(num9, num10);
20114 }
20115
20116 // Token: 0x06002F27 RID: 12071 RVA: 0x001E99F8 File Offset: 0x001E7BF8
20118 {
20119 int num = 1;
20120 if (num == 0)
20121 {
20122 }
20123 if (num == 0)
20124 {
20125 }
20127 int num2 = 2;
20128 long num3 = 0L;
20129 int num4 = genRand.Next(num2);
20131 long num5 = 0L;
20132 int num6 = genRand2.Next((int)num5, (int)num3);
20133 int num7 = WorldGen.genRand.Next((int)num5, (int)num3);
20135 int num8 = 3;
20136 int num9 = 6;
20137 int num10 = genRand3.Next(num8, num9);
20139 int num11 = 2;
20140 int num12 = 6;
20141 int num13 = genRand4.Next(num11, num12);
20142 }
20143
20144 // Token: 0x06002F28 RID: 12072 RVA: 0x001EAE28 File Offset: 0x001E9028
20146 {
20147 if (!true)
20148 {
20149 }
20150 long num = 0L;
20152 int num2 = 20;
20153 int num3 = genRand.Next(num2, (int)num);
20154 int num4 = WorldGen.genRand.Next(num2, (int)num);
20155 }
20156
20157 // Token: 0x06002F29 RID: 12073 RVA: 0x001EAEF0 File Offset: 0x001E90F0
20159 {
20160 int num = 1;
20161 if (num == 0)
20162 {
20163 }
20164 if (num == 0)
20165 {
20166 }
20168 int num2 = 150;
20169 int num3 = 190;
20170 int num4 = genRand.Next(num2, num3);
20171 if (num4 == 0)
20172 {
20173 }
20174 if (num4 == 0)
20175 {
20176 }
20178 int num5 = 4;
20179 int num6 = genRand2.Next(num2, num5);
20180 }
20181
20182 // Token: 0x06002F2A RID: 12074 RVA: 0x001EBC18 File Offset: 0x001E9E18
20184 {
20185 int num = 1;
20186 if (num == 0)
20187 {
20188 }
20189 if (num == 0)
20190 {
20191 }
20192 if (num == 0)
20193 {
20194 }
20195 Tile tile;
20196 bool flag = tile.active();
20197 Tile tile2;
20198 ushort type = tile2.type;
20199 }
20200
20201 // Token: 0x06002F2B RID: 12075 RVA: 0x001EC2FC File Offset: 0x001EA4FC
20203 {
20204 int num = 1;
20205 if (num == 0)
20206 {
20207 }
20208 if (num == 0)
20209 {
20210 }
20213 }
20214
20215 // Token: 0x06002F2C RID: 12076 RVA: 0x001EC468 File Offset: 0x001EA668
20217 {
20218 int num = 1;
20219 long num2 = 0L;
20220 if (num == 0)
20221 {
20222 }
20224 int num3 = 200;
20225 int num4 = genRand.Next((int)num2, num3);
20226 if (32768 == 0)
20227 {
20228 }
20229 if (32752 == 0)
20230 {
20231 }
20232 }
20233
20234 // Token: 0x06002F2D RID: 12077 RVA: 0x001EC4A8 File Offset: 0x001EA6A8
20236 {
20237 int num = 1;
20238 if (num == 0)
20239 {
20240 }
20241 if (num == 0)
20242 {
20243 }
20244 if (num == 0)
20245 {
20246 }
20247 if (num == 0)
20248 {
20249 }
20250 Tile tile;
20251 ushort type = tile.type;
20252 }
20253
20254 // Token: 0x06002F2E RID: 12078 RVA: 0x001EC518 File Offset: 0x001EA718
20256 {
20257 int num = 1;
20258 if (num == 0)
20259 {
20260 }
20261 if (num == 0)
20262 {
20263 }
20265 int num2 = 40;
20266 int num3 = 50;
20267 int num4 = genRand.Next(num2, num3);
20268 }
20269
20270 // Token: 0x06002F2F RID: 12079 RVA: 0x001EC548 File Offset: 0x001EA748
20272 {
20273 int num = 1;
20274 if (num == 0)
20275 {
20276 }
20277 if (num == 0)
20278 {
20279 }
20281 int num2 = 4;
20282 if (genRand.Next(num2) != 0)
20283 {
20284 return;
20285 }
20286 if (num == 0)
20287 {
20288 }
20290 int num3 = 2;
20291 long num4 = 0L;
20292 int num5 = genRand2.Next(num3);
20293 if (false)
20294 {
20295 if (num == 0)
20296 {
20297 }
20298 int num6 = WorldGen.genRand.Next(num3, (int)num4);
20299 return;
20300 }
20301 int num7 = WorldGen.genRand.Next(num3, (int)num4);
20302 }
20303
20304 // Token: 0x06002F30 RID: 12080 RVA: 0x001EC750 File Offset: 0x001EA950
20306 {
20307 int num = 1;
20308 if (num == 0)
20309 {
20310 }
20311 if (num == 0)
20312 {
20313 }
20314 }
20315
20316 // Token: 0x06002F31 RID: 12081 RVA: 0x001EC878 File Offset: 0x001EAA78
20318 {
20319 int num = 1;
20320 if (num == 0)
20321 {
20322 }
20323 if (num == 0)
20324 {
20325 }
20326 Tile tile;
20327 ushort type = tile.type;
20328 Tile tile2;
20329 tile2.ResetToType(type);
20330 }
20331
20332 // Token: 0x06002F32 RID: 12082 RVA: 0x001EC8A8 File Offset: 0x001EAAA8
20334 {
20335 if (!true)
20336 {
20337 }
20338 int num = 2;
20339 if (false || num == 0)
20340 {
20341 }
20342 }
20343
20344 // Token: 0x06002F33 RID: 12083 RVA: 0x001EC924 File Offset: 0x001EAB24
20346 {
20347 if (!true)
20348 {
20349 }
20350 long num = 32752L;
20351 if (21846 == 0)
20352 {
20353 }
20354 if (num == 0L)
20355 {
20356 }
20358 if (num == 0L)
20359 {
20360 }
20361 if (num == 0L)
20362 {
20363 }
20365 if (num == 0L)
20366 {
20367 }
20368 }
20369
20370 // Token: 0x06002F34 RID: 12084 RVA: 0x001ECA34 File Offset: 0x001EAC34
20372 {
20373 int num = 1;
20374 if (num == 0)
20375 {
20376 }
20377 if (num == 0)
20378 {
20379 }
20380 Tile tile;
20381 ushort wall = tile.wall;
20382 }
20383
20384 // Token: 0x06002F35 RID: 12085 RVA: 0x001ECCF4 File Offset: 0x001EAEF4
20386 {
20387 int num = 1;
20388 if (num == 0)
20389 {
20390 }
20391 if (num == 0)
20392 {
20393 }
20394 if (num != 0)
20395 {
20396 }
20397 }
20398
20399 // Token: 0x06002F36 RID: 12086 RVA: 0x001ECD44 File Offset: 0x001EAF44
20401 {
20402 int num = 1;
20403 if (num == 0)
20404 {
20405 }
20406 if (num == 0)
20407 {
20408 }
20411 Tile tile;
20412 ushort wall = tile.wall;
20413 int num2;
20414 int num3;
20416 }
20417
20418 // Token: 0x06002F37 RID: 12087 RVA: 0x001ECD80 File Offset: 0x001EAF80
20420 {
20421 if (!true)
20422 {
20423 }
20425 int num = 32768;
20426 int num2;
20427 if (num2 == 0)
20428 {
20429 if (num == 0)
20430 {
20431 }
20433 int num3 = 2;
20434 int num4 = genRand2.Next(num3);
20435 }
20436 if (num == 0)
20437 {
20438 }
20439 if (num != 0)
20440 {
20441 return;
20442 }
20443 if (num == 0)
20444 {
20445 }
20446 long num5;
20447 if (num != 0)
20448 {
20449 num5 = 32752L;
20450 return;
20451 }
20452 if (num5 == 0L)
20453 {
20454 }
20456 }
20457
20458 // Token: 0x06002F38 RID: 12088 RVA: 0x001ECF50 File Offset: 0x001EB150
20460 {
20461 int num = 1;
20462 if (num == 0)
20463 {
20464 }
20465 if (num == 0)
20466 {
20467 }
20468 Tile tile;
20469 ushort type = tile.type;
20470 Tile tile2;
20471 ushort type2 = tile2.type;
20472 Tile tile3;
20473 ushort type3 = tile3.type;
20474 Tile tile4;
20475 ushort type4 = tile4.type;
20476 Tile tile5;
20477 ushort type5 = tile5.type;
20478 Tile tile6;
20479 ushort type6 = tile6.type;
20480 Tile tile7;
20481 ushort wall = tile7.wall;
20482 int num2 = 244;
20483 Tile tile8;
20484 tile8.wall = (ushort)num2;
20485 }
20486
20487 // Token: 0x06002F39 RID: 12089 RVA: 0x001ECFC8 File Offset: 0x001EB1C8
20489 {
20490 int num = 1;
20491 if (num == 0)
20492 {
20493 }
20494 if (num == 0)
20495 {
20496 }
20497 long num2 = 0L;
20499 int num3 = 281;
20500 int num4 = genRand.Next(num3, (int)num2);
20501 int num5 = WorldGen.genRand.Next(num3, (int)num2);
20502 }
20503
20504 // Token: 0x06002F3A RID: 12090 RVA: 0x001ED0A8 File Offset: 0x001EB2A8
20506 {
20507 int num = 1;
20508 if (num == 0)
20509 {
20510 }
20511 if (num == 0)
20512 {
20513 }
20514 if (num == 0)
20515 {
20516 }
20517 Tile tile;
20518 bool flag = tile.active();
20519 }
20520
20521 // Token: 0x06002F3B RID: 12091 RVA: 0x001ED0F4 File Offset: 0x001EB2F4
20523 {
20524 if (!true)
20525 {
20526 }
20528 double num = WorldGen.genRand.NextDouble();
20530 }
20531
20532 // Token: 0x06002F3C RID: 12092 RVA: 0x001ED1E4 File Offset: 0x001EB3E4
20534 {
20535 int num = 1;
20536 if (num == 0)
20537 {
20538 }
20539 if (num == 0)
20540 {
20541 }
20543 int num2 = 20;
20544 int num3 = 300;
20545 int num4 = 20;
20547 int num5 = 20;
20548 int num6 = 300;
20549 int num7 = 20;
20551 if (!false)
20552 {
20553 }
20554 if (!false)
20555 {
20556 }
20558 int num8 = 5;
20559 int num9 = genRand2.Next(num8);
20560 if (!false)
20561 {
20562 }
20563 double num10 = WorldGen.genRand.NextDouble();
20565 double num11 = genRand3.NextDouble();
20566 }
20567
20568 // Token: 0x06002F3D RID: 12093 RVA: 0x001ED294 File Offset: 0x001EB494
20570 {
20571 if (!true)
20572 {
20573 }
20576 long num = 32752L;
20578 int num2 = 7;
20579 int num3 = 12;
20580 int num4 = genRand3.Next(num2, num3);
20581 if (!false)
20582 {
20583 }
20585 if (num == 0L)
20586 {
20587 }
20588 int num5 = 40;
20589 int num6 = genRand4.Next(num5, num3);
20590 if (num == 0L)
20591 {
20592 }
20594 if (num == 0L)
20595 {
20596 }
20597 int num7 = genRand5.Next(num5, num3);
20599 int num8 = 2;
20600 int num9 = 4;
20601 int num10 = genRand6.Next(num8, num9);
20603 int num11 = 2;
20604 int num12 = 4;
20605 int num13 = genRand7.Next(num11, num12);
20606 Tile tile;
20607 ushort type = tile.type;
20608 Tile tile2;
20609 bool flag = tile2.active();
20610 Tile tile3;
20611 ushort type2 = tile3.type;
20612 Tile tile4;
20613 ushort type3 = tile4.type;
20614 Tile tile5;
20615 ushort type4 = tile5.type;
20616 Tile tile6;
20617 ushort type5 = tile6.type;
20618 Tile tile7;
20619 ushort type6 = tile7.type;
20620 Tile tile8;
20621 ushort wall = tile8.wall;
20622 Tile tile9;
20623 ushort wall2 = tile9.wall;
20624 }
20625
20626 // Token: 0x06002F3E RID: 12094 RVA: 0x001ED518 File Offset: 0x001EB718
20628 {
20629 int num = 1;
20630 if (num == 0)
20631 {
20632 }
20633 long num2 = 0L;
20634 if (num == 0)
20635 {
20636 }
20637 if (num != 0)
20638 {
20639 if (num == 0)
20640 {
20641 }
20643 }
20644 if (num == 0)
20645 {
20646 }
20647 int num3 = 1;
20648 long num4 = 0L;
20649 Liquid.worldGenTilesIgnoreWater(num3 != 0);
20650 Liquid.QuickWater(3, (int)num4, (int)num2);
20651 if (num == 0)
20652 {
20653 }
20655 }
20656
20657 // Token: 0x06002F3F RID: 12095 RVA: 0x001ED580 File Offset: 0x001EB780
20659 {
20660 int num = 1;
20661 if (num == 0)
20662 {
20663 }
20664 if (num == 0)
20665 {
20666 }
20667 Tile tile;
20668 bool flag = tile.active();
20669 }
20670
20671 // Token: 0x06002F40 RID: 12096 RVA: 0x001ED5C4 File Offset: 0x001EB7C4
20673 {
20674 int num = 1;
20675 if (num == 0)
20676 {
20677 }
20678 if (num == 0)
20679 {
20680 if (num == 0)
20681 {
20682 }
20683 int num2 = 39447;
20685 int num3 = 2;
20686 long num4 = 0L;
20687 int num5 = genRand.Next(num3);
20688 if (num == 0)
20689 {
20690 }
20692 if (num2 == 0)
20693 {
20694 }
20696 int num6 = 100;
20697 int num7 = genRand3.Next(num6, (int)num4);
20698 int num8;
20699 bool flag = WorldGen.PlaceOasis(num8, num7);
20700 }
20701 }
20702
20703 // Token: 0x06002F41 RID: 12097 RVA: 0x001ED634 File Offset: 0x001EB834
20705 {
20706 int num = 1;
20707 if (num == 0)
20708 {
20709 }
20710 int num2;
20711 int num3;
20712 int num5;
20713 if (num != 0)
20714 {
20715 if (num == 0)
20716 {
20717 }
20718 num2 = 32768;
20719 num3 = 49152;
20720 if (num == 0)
20721 {
20722 }
20724 if (num2 == 0)
20725 {
20726 }
20728 if (num2 == 0)
20729 {
20730 }
20731 int num4 = 100;
20733 }
20735 int num6 = 2;
20736 if (genRand3.Next(num6) == 0)
20737 {
20738 Tile tile;
20739 bool flag2 = tile.active();
20740 Tile tile2;
20741 ushort type = tile2.type;
20742 Tile tile3;
20743 bool flag3 = tile3.active();
20744 Tile tile4;
20745 byte liquid = tile4.liquid;
20746 Tile tile5;
20747 bool flag4 = tile5.active();
20748 Tile tile6;
20749 byte liquid2 = tile6.liquid;
20750 if (num2 == 0)
20751 {
20752 }
20754 int num7 = 5;
20755 int num8 = genRand4.Next(num7);
20757 int num9 = 2;
20758 if (genRand5.Next(num9) == 0)
20759 {
20761 int num10 = 10;
20762 int num11 = genRand6.Next(num10);
20763 }
20765 int num12 = 3;
20766 if (genRand7.Next(num12) == 0)
20767 {
20769 int num13 = 15;
20770 int num14 = genRand8.Next(num13);
20771 }
20773 int num15 = 4;
20774 if (genRand9.Next(num15) != 0)
20775 {
20776 bool flag5 = WorldGen.ShellPile(num5, num3);
20777 }
20779 int num16 = 2;
20780 int num17 = 4;
20781 int num18 = genRand10.Next(num16, num17);
20782 if (WorldGen.genRand.Next(num18) == 0)
20783 {
20785 int num19 = 10;
20786 int num20 = 35;
20788 }
20789 if (WorldGen.genRand.Next(num18) == 0)
20790 {
20792 int num21 = 40;
20793 int num22 = 65;
20795 }
20796 if (WorldGen.genRand.Next(num18) == 0)
20797 {
20799 int num23 = 70;
20800 int num24 = 95;
20802 }
20803 if (WorldGen.genRand.Next(num18) == 0)
20804 {
20806 int num25 = 100;
20807 int num26 = 125;
20809 }
20810 if (WorldGen.genRand.Next(num18) == 0)
20811 {
20813 int num27 = 10;
20814 int num28 = 25;
20816 }
20817 }
20819 int num29 = 2;
20820 if (genRand16.Next(num29) == 0)
20821 {
20822 Tile tile7;
20823 bool flag11 = tile7.active();
20824 Tile tile8;
20825 ushort type2 = tile8.type;
20826 Tile tile9;
20827 bool flag12 = tile9.active();
20828 Tile tile10;
20829 byte liquid3 = tile10.liquid;
20830 Tile tile11;
20831 bool flag13 = tile11.active();
20832 Tile tile12;
20833 byte liquid4 = tile12.liquid;
20834 if (num2 == 0)
20835 {
20836 }
20838 int num30 = 5;
20839 int num31 = genRand17.Next(num30);
20841 int num32 = 2;
20842 if (genRand18.Next(num32) == 0)
20843 {
20845 int num33 = 10;
20846 int num34 = genRand19.Next(num33);
20847 }
20849 int num35 = 3;
20850 if (genRand20.Next(num35) == 0)
20851 {
20853 int num36 = 15;
20854 int num37 = genRand21.Next(num36);
20855 }
20857 int num38 = 4;
20858 if (genRand22.Next(num38) != 0)
20859 {
20861 }
20863 int num39 = 2;
20864 int num40 = 4;
20865 int num41 = genRand23.Next(num39, num40);
20866 if (WorldGen.genRand.Next(num41) == 0)
20867 {
20869 int num42 = 10;
20870 int num43 = 35;
20872 }
20873 if (WorldGen.genRand.Next(num41) == 0)
20874 {
20876 int num44 = 40;
20877 int num45 = 65;
20879 }
20880 if (WorldGen.genRand.Next(num41) == 0)
20881 {
20883 int num46 = 70;
20884 int num47 = 95;
20886 }
20887 if (WorldGen.genRand.Next(num41) == 0)
20888 {
20890 int num48 = 100;
20891 int num49 = 125;
20893 }
20894 if (WorldGen.genRand.Next(num41) == 0)
20895 {
20897 int num50 = 10;
20898 int num51 = 25;
20900 }
20901 }
20902 }
20903
20904 // Token: 0x06002F42 RID: 12098 RVA: 0x001EDACC File Offset: 0x001EBCCC
20906 {
20907 if (!true)
20908 {
20909 }
20910 int num = 1;
20911 if (num == 0)
20912 {
20913 }
20914 if (num == 0)
20915 {
20916 }
20917 }
20918
20919 // Token: 0x06002F43 RID: 12099 RVA: 0x001EDED8 File Offset: 0x001EC0D8
20921 {
20922 int num = 1;
20923 if (num == 0)
20924 {
20925 }
20926 if (num == 0)
20927 {
20928 }
20929 int num2 = 20;
20930 if (num == 0)
20931 {
20932 }
20933 int num3 = 20;
20934 long num4 = 0L;
20935 bool flag = WorldGen.SolidTile(num2, num3, num4 != 0L);
20936 long num5 = 0L;
20937 Tile tile;
20938 bool flag2 = tile.active();
20939 long num6 = 0L;
20940 bool flag3 = WorldGen.SolidTile(num2, (int)num5, num6 != 0L);
20941 Tile tile2;
20942 bool flag4 = tile2.active();
20943 Tile tile3;
20944 byte liquid = tile3.liquid;
20945 Tile tile4;
20946 byte liquid2 = tile4.liquid;
20948 int num7 = 8;
20949 int num8 = 20;
20950 int num9 = genRand.Next(num7, num8);
20952 int num10 = 8;
20953 int num11 = 20;
20954 int num12 = genRand2.Next(num10, num11);
20955 Tile tile5;
20956 bool flag5 = tile5.halfBrick();
20957 }
20958
20959 // Token: 0x06002F44 RID: 12100 RVA: 0x001EE05C File Offset: 0x001EC25C
20961 {
20962 int num = 1;
20963 if (num == 0)
20964 {
20965 }
20966 if (num != 0)
20967 {
20968 if (num == 0)
20969 {
20970 }
20972 }
20973 int num2 = 10;
20974 if (num == 0)
20975 {
20976 }
20977 Tile tile;
20978 byte liquid = tile.liquid;
20979 Tile tile2;
20980 bool flag = tile2.lava();
20981 WorldGen.MakeWateryIceThing(num2, 43147264);
20982 }
20983
20984 // Token: 0x06002F45 RID: 12101 RVA: 0x001EE0A0 File Offset: 0x001EC2A0
20986 {
20987 int num = 1;
20988 if (num == 0)
20989 {
20990 }
20991 if (num == 0)
20992 {
20993 }
20994 long num2 = 32752L;
20995 progress.Set(5040000.0);
20996 if (num2 == 0L)
20997 {
20998 }
20999 }
21000
21001 // Token: 0x06002F46 RID: 12102 RVA: 0x001EE1E8 File Offset: 0x001EC3E8
21003 {
21004 int num = 1;
21005 if (num == 0)
21006 {
21007 }
21008 if (num != 0)
21009 {
21010 }
21012 long num2 = 0L;
21013 double num3 = Main.starGameMath(0.2);
21014 long num4 = 0L;
21015 int num5 = WorldGen.genRand.Next((int)num4, (int)num2);
21016 int num6 = WorldGen.genRand.Next((int)num4, (int)num2);
21017 bool flag = WorldGen.AddLifeCrystal(WorldGen.genRand.Next((int)num4, (int)num2), num6);
21018 }
21019
21020 // Token: 0x06002F47 RID: 12103 RVA: 0x001EE270 File Offset: 0x001EC470
21022 {
21023 int num = 1;
21024 if (num == 0)
21025 {
21026 }
21027 long num2 = 0L;
21028 if (num == 0)
21029 {
21030 }
21031 long num3 = 32752L;
21032 if (num3 == 0L)
21033 {
21034 }
21035 int num4;
21036 if (num3 != 0L)
21037 {
21038 if (num3 == 0L)
21039 {
21040 }
21041 if (num3 != 0L || num3 == 0L)
21042 {
21043 }
21044 num4 = 26215;
21045 }
21046 if (num4 == 0)
21047 {
21048 }
21049 int num5 = 4829;
21050 long num7;
21051 if (num4 != 0)
21052 {
21053 if (num4 == 0)
21054 {
21055 }
21056 double num6 = Main.starGameMath(0.2);
21057 num7 = 32752L;
21058 }
21059 if (num7 == 0L)
21060 {
21061 }
21062 if (num7 == 0L)
21063 {
21064 }
21066 if (num5 == 0)
21067 {
21068 }
21069 int num8 = 20;
21070 int num9 = genRand.Next(num8, (int)num2);
21071 int num10 = WorldGen.genRand.Next(num8, (int)num2);
21072 if (num5 != 0)
21073 {
21074 if (num5 == 0)
21075 {
21076 }
21078 if (num5 == 0)
21079 {
21080 }
21081 int num11 = genRand2.Next(num8, (int)num2);
21082 }
21083 bool flag = WorldGen.oceanDepths(num9, num10);
21084 Tile tile;
21085 bool flag2 = tile.active();
21086 }
21087
21088 // Token: 0x06002F48 RID: 12104 RVA: 0x001EE37C File Offset: 0x001EC57C
21090 {
21091 int num = 1;
21092 if (num == 0)
21093 {
21094 }
21095 if (num == 0)
21096 {
21097 }
21098 int num2 = 257;
21099 num.m_value = num2;
21100 if (num == 0)
21101 {
21102 }
21103 if (num2 == 0)
21104 {
21105 }
21110 double num3 = Main.starGameMath(0.2);
21111 }
21112
21113 // Token: 0x06002F49 RID: 12105 RVA: 0x001EE564 File Offset: 0x001EC764
21115 {
21116 if (!true)
21117 {
21118 }
21119 long num = 0L;
21121 int num2 = 200;
21122 int num3 = genRand.Next(num2, (int)num);
21123 int num4 = WorldGen.genRand.Next(num2, (int)num);
21124 int num5 = WorldGen.genRand.Next(num2, (int)num);
21125 }
21126
21127 // Token: 0x06002F4A RID: 12106 RVA: 0x001EE648 File Offset: 0x001EC848
21129 {
21130 int num = 1;
21131 if (num == 0)
21132 {
21133 }
21134 if (num == 0)
21135 {
21136 }
21139 int num2 = 2;
21140 int num3 = genRand.Next(num2);
21141 int num4 = 10;
21142 long num5 = 0L;
21143 long num6 = 0L;
21144 long num7 = 0L;
21145 bool flag = WorldGen.AddBuriedChest(num3, num2, nextJungleChestItem, num5 != 0L, num4, num6 != 0L, (ushort)num7);
21146 long num8 = 0L;
21147 long num9 = 0L;
21148 long num10 = 0L;
21149 WorldGen.KillTile(43147264, num2, num8 != 0L, num9 != 0L, num10 != 0L);
21150 }
21151
21152 // Token: 0x06002F4B RID: 12107 RVA: 0x001EE700 File Offset: 0x001EC900
21154 {
21155 if (!true)
21156 {
21157 }
21161 Tile tile;
21162 byte liquid = tile.liquid;
21163 }
21164
21165 // Token: 0x06002F4C RID: 12108 RVA: 0x001EE8A4 File Offset: 0x001ECAA4
21167 {
21168 int num = 1;
21169 if (num == 0)
21170 {
21171 }
21172 long num2 = 0L;
21173 if (num == 0)
21174 {
21175 }
21176 int num3 = 1;
21178 int num4 = 200;
21179 int num5 = genRand.Next(num4, (int)num2);
21180 int num6 = WorldGen.genRand.Next(num4, (int)num2);
21181 int num7;
21182 if (num3 != 0)
21183 {
21184 if (num3 == 0)
21185 {
21186 }
21188 if (num3 == 0)
21189 {
21190 }
21191 num7 = genRand2.Next(num4, (int)num2);
21192 }
21193 if (num3 == 0)
21194 {
21195 }
21196 int num8 = 1;
21197 long num9 = 0L;
21198 int num10 = WorldGen.countTiles(num5, num7, num9 != 0L, num8 != 0);
21200 if (num3 == 0)
21201 {
21202 }
21203 int num11 = 200;
21204 int num12 = genRand3.Next(num11, (int)num9);
21205 int num13 = WorldGen.genRand.Next(num11, (int)num9);
21206 int num14;
21207 if (num3 != 0)
21208 {
21209 if (num3 == 0)
21210 {
21211 }
21213 if (num3 == 0)
21214 {
21215 }
21216 num14 = genRand4.Next(num11, (int)num9);
21217 }
21218 if (num3 == 0)
21219 {
21220 }
21221 int num15 = 1;
21222 long num16 = 0L;
21223 int num17 = WorldGen.countTiles(num12, num14, num16 != 0L, num15 != 0);
21225 if (num17 == 0)
21226 {
21227 }
21228 if (num17 == 0 || num17 == 0)
21229 {
21230 }
21231 if (num17 == 0)
21232 {
21233 }
21234 }
21235
21236 // Token: 0x06002F4D RID: 12109 RVA: 0x001EE9B4 File Offset: 0x001ECBB4
21238 {
21239 int num = 1;
21240 if (num == 0)
21241 {
21242 }
21243 if (num == 0)
21244 {
21245 if (num == 0)
21246 {
21247 }
21248 long num2 = 0L;
21249 if (num == 0)
21250 {
21251 }
21252 int num3 = 300;
21253 if (num3 == 0)
21254 {
21255 }
21256 if (num3 == 0)
21257 {
21258 }
21259 int num4 = 4829;
21260 double num5;
21261 if (num4 != 0)
21262 {
21263 if (num4 == 0)
21264 {
21265 }
21266 num5 = Main.starGameMath(0.2);
21267 }
21268 progress.Set(num5);
21270 if (num3 == 0)
21271 {
21272 }
21273 int num6 = 200;
21274 int num7 = genRand.Next(num6, (int)num2);
21275 int num8 = WorldGen.genRand.Next(num6, (int)num2);
21276 int num9;
21277 if (num3 != 0)
21278 {
21279 if (num3 == 0)
21280 {
21281 }
21283 if (num3 == 0)
21284 {
21285 }
21286 num9 = genRand2.Next(num6, (int)num2);
21287 }
21288 if (num3 == 0)
21289 {
21290 }
21291 long num10 = 0L;
21292 long num11 = 0L;
21293 int num12 = WorldGen.countTiles(num7, num9, num10 != 0L, num11 != 0L);
21294 if (num3 == 0)
21295 {
21296 }
21298 if (num3 == 0)
21299 {
21300 }
21301 int num13 = 200;
21302 int num14 = genRand3.Next(num13, (int)num10);
21303 int num15 = WorldGen.genRand.Next(num13, (int)num10);
21304 int num16;
21305 if (num3 != 0)
21306 {
21307 if (num3 == 0)
21308 {
21309 }
21311 if (num3 == 0)
21312 {
21313 }
21314 num16 = genRand4.Next(num13, (int)num10);
21315 }
21316 if (num3 == 0)
21317 {
21318 }
21319 long num17 = 0L;
21320 long num18 = 0L;
21321 int num19 = WorldGen.countTiles(num14, num16, num17 != 0L, num18 != 0L);
21322 return;
21323 }
21324 }
21325
21326 // Token: 0x06002F4E RID: 12110 RVA: 0x001EEAF0 File Offset: 0x001ECCF0
21328 {
21329 if (!true)
21330 {
21331 }
21332 WorldGen.randMoss(false);
21333 }
21334
21335 // Token: 0x06002F4F RID: 12111 RVA: 0x001EEEB0 File Offset: 0x001ED0B0
21337 {
21338 if (!true)
21339 {
21340 }
21341 if (!true)
21342 {
21343 }
21345 }
21346
21347 // Token: 0x06002F50 RID: 12112 RVA: 0x001EEECC File Offset: 0x001ED0CC
21349 {
21350 int num = 1;
21351 if (num == 0)
21352 {
21353 }
21354 if (num == 0)
21355 {
21356 }
21357 if (1500 == 0)
21358 {
21359 }
21360 }
21361
21362 // Token: 0x06002F51 RID: 12113 RVA: 0x001EF1C0 File Offset: 0x001ED3C0
21364 {
21365 int num = 1;
21366 if (num == 0)
21367 {
21368 }
21369 long num2 = 0L;
21370 if (num == 0)
21371 {
21372 }
21374 int num3 = 10;
21375 if (genRand.Next(num3) != 0)
21376 {
21377 }
21378 WorldGen.GrowUndergroundTree((int)num2, 43147264);
21379 }
21380
21381 // Token: 0x06002F52 RID: 12114 RVA: 0x001EF1FC File Offset: 0x001ED3FC
21383 {
21384 if (!true)
21385 {
21386 }
21387 }
21388
21389 // Token: 0x06002F53 RID: 12115 RVA: 0x001EF214 File Offset: 0x001ED414
21391 {
21392 int num = 1;
21393 if (num == 0)
21394 {
21395 }
21396 if (num != 0)
21397 {
21398 if (num == 0)
21399 {
21400 }
21402 }
21403 if (num == 0)
21404 {
21405 }
21406 int num2 = 20;
21407 if (num == 0)
21408 {
21409 }
21410 int num3 = 20;
21411 if (num == 0)
21412 {
21413 }
21414 bool flag = WorldGen.oceanDepths(num2, num3);
21416 int num4 = 4;
21417 int num5 = 7;
21418 int num6 = genRand.Next(num4, num5);
21419 Tile tile;
21420 bool flag2 = tile.active();
21421 Tile tile2;
21422 bool flag3 = tile2.active();
21423 Tile tile3;
21424 ushort type = tile3.type;
21425 Tile tile4;
21426 ushort type2 = tile4.type;
21427 Tile tile5;
21428 ushort type3 = tile5.type;
21429 Tile tile6;
21430 bool flag4 = tile6.active();
21431 Tile tile7;
21432 ushort type4 = tile7.type;
21433 Tile tile8;
21434 ushort type5 = tile8.type;
21435 Tile tile9;
21436 ushort type6 = tile9.type;
21437 }
21438
21439 // Token: 0x06002F54 RID: 12116 RVA: 0x001EF358 File Offset: 0x001ED558
21441 {
21442 int num = 1;
21443 if (num == 0)
21444 {
21445 }
21446 int num2 = 1;
21447 if (num == 0)
21448 {
21449 }
21450 long num3 = 0L;
21451 if (num == 0)
21452 {
21453 }
21454 if (num2 != 0)
21455 {
21456 if (num2 == 0)
21457 {
21458 }
21460 if (num2 == 0)
21461 {
21462 }
21463 int num4 = 50;
21464 int num5 = genRand.Next(num4, (int)num3);
21465 int num6 = WorldGen.genRand.Next(num4, (int)num3);
21466 if (num2 == 0)
21467 {
21468 }
21469 Tile tile;
21470 bool flag = tile.active();
21471 if (num2 == 0)
21472 {
21473 }
21474 return;
21475 }
21476 if (num2 == 0)
21477 {
21478 }
21479 if (num2 != 0)
21480 {
21481 if (num2 == 0)
21482 {
21483 }
21484 double num7 = Main.starGameMath(0.2);
21485 }
21486 long num8 = 0L;
21487 long num9 = 0L;
21489 if (num8 == 0L)
21490 {
21491 }
21492 if (num8 == 0L)
21493 {
21494 }
21495 int num11;
21496 int num10 = genRand2.Next((int)num9, num11);
21497 }
21498
21499 // Token: 0x06002F55 RID: 12117 RVA: 0x001EF6AC File Offset: 0x001ED8AC
21501 {
21502 int num = 1;
21503 if (num == 0)
21504 {
21505 }
21506 long num2 = 0L;
21507 if (num == 0)
21508 {
21509 }
21511 int num3 = 1;
21512 int num4 = genRand.Next(num3, (int)num2);
21513 int num5 = WorldGen.genRand.Next(num3, (int)num2);
21514 Tile tile;
21515 ushort wall = tile.wall;
21516 Tile tile2;
21517 ushort wall2 = tile2.wall;
21518 Tile tile3;
21519 bool flag = tile3.active();
21520 }
21521
21522 // Token: 0x06002F56 RID: 12118 RVA: 0x001EF734 File Offset: 0x001ED934
21524 {
21525 if (!true)
21526 {
21527 }
21528 Tile tile;
21529 bool flag = tile.active();
21530 Tile tile2;
21531 ushort type = tile2.type;
21532 Tile tile3;
21533 bool flag2 = tile3.active();
21534 Tile tile4;
21535 bool flag3 = tile4.active();
21536 Tile tile5;
21537 bool flag4 = tile5.active();
21538 }
21539
21540 // Token: 0x06002F57 RID: 12119 RVA: 0x001EFA8C File Offset: 0x001EDC8C
21542 {
21543 if (!true)
21544 {
21545 }
21547 long num = 0L;
21549 if (num != 0L)
21550 {
21551 return;
21552 }
21553 }
21554
21555 // Token: 0x06002F58 RID: 12120 RVA: 0x001EFB68 File Offset: 0x001EDD68
21557 {
21558 int num = 1;
21559 if (num == 0)
21560 {
21561 }
21562 if (num == 0)
21563 {
21564 }
21565 }
21566
21567 // Token: 0x06002F59 RID: 12121 RVA: 0x001EFD14 File Offset: 0x001EDF14
21569 {
21570 int num = 1;
21571 if (num == 0)
21572 {
21573 }
21574 if (num != 0)
21575 {
21576 if (num == 0)
21577 {
21578 }
21579 if (num == 0)
21580 {
21581 }
21582 return;
21583 }
21584 }
21585
21586 // Token: 0x06002F5A RID: 12122 RVA: 0x001EFF14 File Offset: 0x001EE114
21588 {
21589 int num = 1;
21590 if (num == 0)
21591 {
21592 }
21593 long num2 = 0L;
21594 if (num == 0)
21595 {
21596 }
21597 if (num == 0)
21598 {
21599 }
21600 if (num == 0 || num == 0)
21601 {
21602 }
21604 int num3 = 25;
21605 int num4 = genRand.Next(num3, (int)num2);
21606 int num5 = WorldGen.genRand.Next(num3, (int)num2);
21607 bool flag = WorldGen.oceanDepths(num4, num5);
21608 }
21609
21610 // Token: 0x06002F5B RID: 12123 RVA: 0x001F15B8 File Offset: 0x001EF7B8
21612 {
21613 int num = 1;
21614 if (num == 0)
21615 {
21616 }
21617 int num2;
21618 if (num != 0)
21619 {
21620 if (num == 0)
21621 {
21622 }
21623 if (num == 0)
21624 {
21626 num2 = 2;
21627 if (genRand.Next(num2) != 0)
21628 {
21629 }
21630 }
21631 }
21632 int num3 = 5;
21634 Tile tile;
21635 bool flag = tile.active();
21636 }
21637
21638 // Token: 0x06002F5C RID: 12124 RVA: 0x001F16C4 File Offset: 0x001EF8C4
21640 {
21641 int num = 1;
21642 if (num == 0)
21643 {
21644 }
21645 int num2 = 3500;
21646 if (num == 0)
21647 {
21648 }
21649 if (num == 0)
21650 {
21651 }
21652 if (num == 0)
21653 {
21654 }
21656 int num3 = 4;
21657 if (genRand.Next(num3) == 0)
21658 {
21659 if (num == 0)
21660 {
21661 }
21662 Tile tile;
21663 bool flag = tile.active();
21664 if (num == 0)
21665 {
21666 }
21667 Tile tile2;
21668 ushort type = tile2.type;
21669 if (num == 0)
21670 {
21671 }
21672 Tile tile3;
21673 ushort wall = tile3.wall;
21674 if (num == 0)
21675 {
21676 }
21677 Tile tile4;
21678 ushort wall2 = tile4.wall;
21679 if (num == 0)
21680 {
21681 }
21682 long num4 = 0L;
21683 Tile tile5;
21684 ushort wall3 = tile5.wall;
21685 if (num == 0)
21686 {
21687 }
21688 long num5 = 0L;
21689 bool flag2 = WorldGen.SolidTile(0, (int)num4, num5 != 0L);
21690 if (num == 0)
21691 {
21692 }
21693 Tile tile6;
21694 ushort wall4 = tile6.wall;
21695 if (num == 0)
21696 {
21697 }
21698 long num6 = 0L;
21699 Tile tile7;
21700 ushort wall5 = tile7.wall;
21701 if (num == 0)
21702 {
21703 }
21704 long num7 = 0L;
21705 bool flag3 = WorldGen.SolidTile(0, (int)num6, num7 != 0L);
21706 if (num == 0)
21707 {
21708 }
21709 int num8 = WorldGen.countDirtTiles(0, (int)num6);
21710 int num9;
21711 int num10;
21712 if (num2 != 0)
21713 {
21714 if (num2 == 0)
21715 {
21716 }
21718 num9 = 3;
21720 return;
21721 }
21722 int num11 = 63;
21724 }
21725 }
21726
21727 // Token: 0x06002F5D RID: 12125 RVA: 0x001F1804 File Offset: 0x001EFA04
21729 {
21730 int num = 1;
21731 if (num == 0)
21732 {
21733 }
21734 int num4;
21735 if (num != 0)
21736 {
21737 if (num == 0)
21738 {
21739 }
21740 int num2 = 1;
21741 if (num == 0)
21742 {
21743 }
21744 int num3;
21745 if (num != 0)
21746 {
21747 if (num2 == 0)
21748 {
21749 }
21750 num3 = 1;
21751 }
21752 int spawnTileX = Main.spawnTileX;
21753 int spawnTileY = Main.spawnTileY;
21754 if (num3 == 0)
21755 {
21756 }
21757 num4 = 1;
21758 return;
21759 }
21760 if (num4 != 0)
21761 {
21764 if (num4 == 0)
21765 {
21766 }
21769 return;
21770 }
21771 int num5;
21772 if (num5 == 0)
21773 {
21774 }
21775 int num6;
21776 if (num5 != 0)
21777 {
21780 if (num5 == 0)
21781 {
21782 }
21785 num6 = 1;
21786 return;
21787 }
21788 if (num6 == 0)
21789 {
21790 }
21791 int num7;
21792 if (num6 != 0)
21793 {
21796 if (num6 == 0)
21797 {
21798 }
21801 num7 = 1;
21802 return;
21803 }
21804 if (num7 == 0)
21805 {
21806 }
21807 if ("PartyGirlNames.Amanda" == null)
21808 {
21809 }
21812 if (num7 == 0)
21813 {
21814 }
21815 if ("SlimeNames_Rainbow.Slimestar" != null)
21816 {
21819 return;
21820 }
21823 }
21824
21825 // Token: 0x06002F5E RID: 12126 RVA: 0x001F1A3C File Offset: 0x001EFC3C
21827 {
21828 int num = 1;
21829 if (num == 0)
21830 {
21831 }
21832 if (num == 0)
21833 {
21834 }
21835 long num2 = 0L;
21836 progress.Set((double)(-755914244));
21837 if (num == 0)
21838 {
21839 }
21840 if (num == 0)
21841 {
21842 }
21843 int num3 = WorldGen.genRand.Next((int)num2);
21845 int num4 = 10;
21846 int num5 = genRand.Next(num4);
21848 int num6 = 10;
21849 int num7 = genRand2.Next(num6);
21850 }
21851
21852 // Token: 0x06002F5F RID: 12127 RVA: 0x001F1AD0 File Offset: 0x001EFCD0
21854 {
21855 int num = 1;
21856 if (num == 0)
21857 {
21858 }
21859 long num2 = 0L;
21860 if (num == 0)
21861 {
21862 }
21863 if (num == 0)
21864 {
21865 if (num == 0)
21866 {
21867 }
21868 if (num == 0)
21869 {
21871 int num3 = 50;
21872 int num4 = genRand.Next(num3, (int)num2);
21874 int num5 = 25;
21875 int num6 = 50;
21876 int num7 = genRand2.Next(num5, num6);
21877 int num8 = 20;
21878 bool flag = WorldGen.GrowEpicTree(42178960, num8);
21879 return;
21880 }
21881 }
21882 WorldGen.AddTrees(false);
21883 }
21884
21885 // Token: 0x06002F60 RID: 12128 RVA: 0x001F1B44 File Offset: 0x001EFD44
21887 {
21888 int num = 1;
21889 if (num == 0)
21890 {
21891 }
21892 progress.Set(1.7);
21893 if (num == 0)
21894 {
21895 }
21897 }
21898
21899 // Token: 0x06002F61 RID: 12129 RVA: 0x001F1B70 File Offset: 0x001EFD70
21901 {
21902 if (!true)
21903 {
21904 }
21908 int num = 100;
21909 int num2 = genRand2.Next(num, underworldLayer);
21910 long num3 = 0L;
21911 int num4;
21913 }
21914
21915 // Token: 0x06002F62 RID: 12130 RVA: 0x001F1BD0 File Offset: 0x001EFDD0
21917 {
21918 int num = 1;
21919 int num2 = 100;
21920 if (num == 0)
21921 {
21922 }
21923 if (50 == 0)
21924 {
21925 }
21926 Tile tile;
21927 ushort wall = tile.wall;
21929 int num3 = 3;
21930 if (genRand.Next(num3) == 0)
21931 {
21932 long num4 = 0L;
21933 WorldGen.PlaceTight(num2, 43147264, num4 != 0L);
21934 }
21935 Tile tile2;
21936 bool flag = tile2.active();
21938 int num5 = 10;
21939 if (genRand2.Next(num5) != 0)
21940 {
21942 int num6 = 2;
21943 int num7 = 5;
21944 int num8 = genRand3.Next(num6, num7);
21945 long num9 = 0L;
21946 bool flag2 = WorldGen.SolidTile(0, num6, num9 != 0L);
21947 return;
21948 }
21949 }
21950
21951 // Token: 0x06002F63 RID: 12131 RVA: 0x001F1C88 File Offset: 0x001EFE88
21953 {
21954 int num = 1;
21955 if (num == 0)
21956 {
21957 }
21958 if (num == 0)
21959 {
21960 }
21961 if (num != 0)
21962 {
21963 int num2 = 40;
21964 if (num == 0)
21965 {
21966 }
21967 if (num == 0)
21968 {
21969 }
21970 Tile tile;
21971 bool flag = tile.active();
21972 Tile tile2;
21973 ushort type = tile2.type;
21975 int num3 = 15;
21976 if (genRand.Next(num3) == 0)
21977 {
21980 int num4 = 5;
21981 int num5 = genRand2.Next(num4);
21982 int num6 = 254;
21984 }
21985 return;
21986 }
21987 Tile tile3;
21988 ushort type2 = tile3.type;
21989 Tile tile4;
21990 bool flag2 = tile4.nactive();
21991 Tile tile5;
21992 bool flag3 = tile5.active();
21993 }
21994
21995 // Token: 0x06002F64 RID: 12132 RVA: 0x001F1D90 File Offset: 0x001EFF90
21997 {
21998 int num = 1;
21999 long num2 = 0L;
22000 if (num == 0)
22001 {
22002 }
22003 if (num == 0)
22004 {
22005 }
22006 Tile tile;
22007 bool flag = tile.active();
22008 Tile tile2;
22009 ushort type = tile2.type;
22010 long num3 = 0L;
22011 Tile tile3;
22012 bool flag2 = tile3.active();
22013 bool flag3 = WorldGen.GrowTree((int)num2, (int)num3);
22014 long num4 = 0L;
22015 Tile tile4;
22016 bool flag4 = tile4.active();
22017 bool flag5 = WorldGen.GrowTree((int)num2, (int)num4);
22018 long num5 = 0L;
22019 Tile tile5;
22020 bool flag6 = tile5.active();
22021 bool flag7 = WorldGen.GrowTree((int)num2, (int)num5);
22022 Tile tile6;
22023 bool flag8 = tile6.active();
22024 Tile tile7;
22025 ushort type2 = tile7.type;
22026 Tile tile8;
22027 bool flag9 = tile8.active();
22028 }
22029
22030 // Token: 0x06002F65 RID: 12133 RVA: 0x001F1E1C File Offset: 0x001F001C
22032 {
22033 int num = 1;
22034 if (num == 0)
22035 {
22036 }
22037 if (num == 0)
22038 {
22039 }
22041 int num2 = 40;
22042 int num3 = WorldGen.genRand.Next(num2);
22043 Tile tile;
22044 bool flag = tile.active();
22045 }
22046
22047 // Token: 0x06002F66 RID: 12134 RVA: 0x001F1EDC File Offset: 0x001F00DC
22049 {
22050 int num = 1;
22051 if (num == 0)
22052 {
22053 }
22054 int num2 = 5;
22055 if (num == 0)
22056 {
22057 }
22058 long num3 = 32752L;
22059 long num4 = 0L;
22060 Tile tile;
22061 bool flag = tile.active();
22062 bool flag2 = WorldGen.GrowMoreVines(num2, (int)num4);
22063 Tile tile2;
22064 ushort wall = tile2.wall;
22065 Tile tile3;
22066 ushort wall2 = tile3.wall;
22067 Tile tile4;
22068 ushort wall3 = tile4.wall;
22069 Tile tile5;
22070 ushort wall4 = tile5.wall;
22071 if (num3 == 0L)
22072 {
22073 }
22074 int num7;
22075 if (num3 != 0L)
22076 {
22077 if (num3 == 0L)
22078 {
22079 }
22081 int num5 = 5;
22082 int num6 = genRand.Next(num5);
22083 num7 = 382;
22084 }
22085 if (num7 == 0)
22086 {
22087 }
22089 int num8 = 5;
22090 int num9 = genRand2.Next(num8);
22092 int num10 = 1;
22093 int num11 = 10;
22094 int num12 = genRand3.Next(num10, num11);
22095 }
22096
22097 // Token: 0x06002F67 RID: 12135 RVA: 0x001F2450 File Offset: 0x001F0650
22099 {
22100 int num = 1;
22101 if (num == 0)
22102 {
22103 }
22104 long num2 = 0L;
22105 if (num == 0)
22106 {
22107 }
22109 int num3 = 100;
22110 int num4 = genRand.Next(num3, (int)num2);
22112 int num5 = 15;
22113 int num6 = 30;
22114 int num7 = genRand2.Next(num5, num6);
22116 int num8 = 15;
22117 int num9 = 30;
22118 int num10 = genRand3.Next(num8, num9);
22120 int num11 = 15;
22121 int num12 = 45;
22122 int num13 = genRand4.Next(num11, num12);
22124 int num14 = 15;
22125 int num15 = 45;
22126 int num16 = genRand5.Next(num14, num15);
22128 long num17 = 32752L;
22129 int num18 = genRand6.Next(num14, num15);
22130 if (num17 == 0L)
22131 {
22132 }
22133 }
22134
22135 // Token: 0x06002F68 RID: 12136 RVA: 0x001F2810 File Offset: 0x001F0A10
22137 {
22138 int num = 1;
22139 if (num == 0)
22140 {
22141 }
22142 long num2 = 0L;
22143 if (num == 0)
22144 {
22145 }
22146 if (num == 0)
22147 {
22148 }
22150 int num3 = 20;
22151 int num4 = genRand.Next(num3, (int)num2);
22153 int num5 = 4;
22154 int num6 = 10;
22155 int num7 = genRand2.Next(num5, num6);
22157 int num8 = 15;
22158 int num9 = 30;
22159 int num10 = genRand3.Next(num8, num9);
22161 int num11 = 8;
22162 int num12 = 17;
22163 int num13 = genRand4.Next(num11, num12);
22165 int num14 = 8;
22166 int num15 = 17;
22167 int num16 = genRand5.Next(num14, num15);
22169 long num17 = 32752L;
22170 int num18 = genRand6.Next(num14, num15);
22171 Tile tile;
22172 bool flag = tile.active();
22173 if (num17 == 0L)
22174 {
22175 }
22176 if (num17 == 0L)
22177 {
22178 }
22179 Tile tile2;
22180 ushort type = tile2.type;
22181 Tile tile3;
22182 ushort type2 = tile3.type;
22183 }
22184
22185 // Token: 0x06002F69 RID: 12137 RVA: 0x001F2948 File Offset: 0x001F0B48
22187 {
22188 int num = 1;
22189 if (num == 0)
22190 {
22191 }
22192 if (num != 0)
22193 {
22194 return;
22195 }
22197 }
22198
22199 // Token: 0x06002F6A RID: 12138 RVA: 0x001F2A50 File Offset: 0x001F0C50
22201 {
22202 int num = 1;
22203 if (num == 0)
22204 {
22205 }
22206 if (num == 0)
22207 {
22208 }
22211 Tile tile;
22212 bool flag = tile.active();
22213 Tile tile2;
22214 bool flag2 = tile2.lava();
22215 Tile tile3;
22216 ushort wall = tile3.wall;
22217 Tile tile4;
22218 ushort wall2 = tile4.wall;
22220 int num2 = 12;
22221 int num3 = genRand3.Next(num2);
22222 }
22223
22224 // Token: 0x06002F6B RID: 12139 RVA: 0x001F2B98 File Offset: 0x001F0D98
22226 {
22227 int num = 1;
22228 if (num == 0)
22229 {
22230 }
22231 if (num == 0)
22232 {
22233 }
22234 Tile tile;
22235 bool flag = tile.active();
22236 Tile tile2;
22237 ushort type = tile2.type;
22238 }
22239
22240 // Token: 0x06002F6C RID: 12140 RVA: 0x001F2BDC File Offset: 0x001F0DDC
22242 {
22243 int num = 1;
22244 if (num == 0)
22245 {
22246 }
22247 if (num == 0)
22248 {
22249 }
22250 Tile tile;
22251 bool flag = tile.active();
22252 Tile tile2;
22253 ushort type = tile2.type;
22254 }
22255
22256 // Token: 0x06002F6D RID: 12141 RVA: 0x001F2C64 File Offset: 0x001F0E64
22258 {
22259 int num = 1;
22260 if (num == 0)
22261 {
22262 }
22263 int num2 = 1;
22264 if (num == 0)
22265 {
22266 }
22267 if (num2 == 0)
22268 {
22269 }
22270 int num3 = 1;
22271 Tile tile;
22272 tile.active(num3 != 0);
22273 int num4 = 225;
22274 tile.type = (ushort)num4;
22275 long num5 = 0L;
22276 tile.slope((byte)num5);
22277 long num6 = 0L;
22278 tile.halfBrick(num6 != 0L);
22279 }
22280
22281 // Token: 0x06002F6E RID: 12142 RVA: 0x001F2CC4 File Offset: 0x001F0EC4
22283 {
22284 int num = 1;
22285 if (num == 0)
22286 {
22287 }
22288 if (num != 0)
22289 {
22290 if (num == 0)
22291 {
22292 }
22293 }
22294 if (num == 0)
22295 {
22296 }
22297 long num2 = 0L;
22298 if (num == 0)
22299 {
22300 }
22301 if (num != 0)
22302 {
22303 if (num == 0)
22304 {
22305 }
22307 }
22308 if (num == 0)
22309 {
22310 }
22311 int num3 = 1;
22312 long num4 = 0L;
22313 Liquid.worldGenTilesIgnoreWater(num3 != 0);
22314 Liquid.QuickWater(3, (int)num4, (int)num2);
22315 if (num == 0)
22316 {
22317 }
22319 }
22320
22321 // Token: 0x06002F6F RID: 12143 RVA: 0x001F2D38 File Offset: 0x001F0F38
22323 {
22324 int num = 1;
22325 if (num == 0)
22326 {
22327 }
22328 if (num == 0)
22329 {
22330 }
22331 int num2 = 8;
22332 if (num == 0)
22333 {
22334 }
22336 int num3 = 3;
22337 int num4 = 13;
22338 int num5 = genRand.Next(num3, num4);
22340 int num6 = 3;
22341 int num7 = 13;
22342 int num8 = genRand2.Next(num6, num7);
22344 int num9 = 2;
22345 int num10 = 6;
22346 int num11 = genRand3.Next(num9, num10);
22348 int num12 = 2;
22349 int num13 = 6;
22350 int num14 = genRand4.Next(num12, num13);
22351 if (num2 == 0)
22352 {
22353 }
22354 if (32768 == 0)
22355 {
22356 }
22357 long num15 = 0L;
22358 bool flag = WorldGen.InWorld(0, num12, (int)num15);
22359 Tile tile;
22360 bool flag2 = tile.active();
22361 Tile tile2;
22362 ushort type = tile2.type;
22364 long num16 = 0L;
22365 double num17 = genRand5.NextDouble();
22366 bool flag3 = WorldGen.GrowPalmTree(0, (int)num16);
22367 bool flag4 = WorldGen.PlantSeaOat(0, (int)num16);
22369 int num18 = 2;
22370 if (genRand6.Next(num18) == 0)
22371 {
22372 bool flag5 = WorldGen.GrowSeaOat(0, num18);
22373 }
22375 int num19 = 2;
22376 if (genRand7.Next(num19) == 0)
22377 {
22378 bool flag6 = WorldGen.GrowSeaOat(0, num19);
22379 }
22380 int num20 = 530;
22381 WorldGen.PlaceOasisPlant(0, num19, (ushort)num20);
22382 }
22383
22384 // Token: 0x06002F70 RID: 12144 RVA: 0x001F3068 File Offset: 0x001F1268
22386 {
22387 int num = 1;
22388 if (num == 0)
22389 {
22390 }
22391 if (num == 0)
22392 {
22393 }
22394 if (num == 0)
22395 {
22396 }
22397 }
22398
22399 // Token: 0x06002F71 RID: 12145 RVA: 0x001F353C File Offset: 0x001F173C
22401 {
22402 int num = 1;
22403 if (num == 0)
22404 {
22405 }
22406 int num2 = 1;
22407 Tile tile;
22408 tile.active(num2 != 0);
22409 int num3 = 237;
22410 tile.type = (ushort)num3;
22411 if (num == 0)
22412 {
22413 }
22414 int num4 = 1;
22415 Tile tile2;
22416 tile2.active(num4 != 0);
22417 long num5 = 0L;
22418 tile2.slope((byte)num5);
22419 long num6 = 0L;
22420 tile2.halfBrick(num6 != 0L);
22421 int num7 = 226;
22422 tile2.type = (ushort)num7;
22423 }
22424
22425 // Token: 0x06002F72 RID: 12146 RVA: 0x001F35B0 File Offset: 0x001F17B0
22427 {
22428 int num = 1;
22429 if (num == 0)
22430 {
22431 }
22432 if (num == 0)
22433 {
22434 }
22435 if (num == 0)
22436 {
22437 }
22440 if (list._size == 0)
22441 {
22442 }
22444 int size = list._size;
22445 int num2 = genRand2.Next(size);
22447 int num3 = 20;
22448 int num4 = 50;
22449 int num5 = 200;
22450 int num6 = 50;
22452 if (num3 == 0)
22453 {
22454 }
22455 }
22456
22457 // Token: 0x06002F73 RID: 12147 RVA: 0x001F37C4 File Offset: 0x001F19C4
22459 {
22460 int num = 1;
22461 if (num == 0)
22462 {
22463 }
22464 if (num == 0)
22465 {
22466 }
22467 long num2 = 32752L;
22468 if (num2 == 0L)
22469 {
22470 }
22471 if (num2 == 0L || num2 == 0L)
22472 {
22473 }
22474 int num3 = 20;
22475 if (num2 == 0L)
22476 {
22477 }
22478 int num4 = 1;
22480 int num5 = 5;
22481 if (genRand.Next(num5) != 0)
22482 {
22483 return;
22484 }
22485 Tile tile;
22486 byte liquid = tile.liquid;
22487 Tile tile2;
22488 bool flag = tile2.active();
22490 int num6 = 2;
22491 if (genRand2.Next(num6) != 0)
22492 {
22495 int num7 = 14;
22496 int num8 = genRand3.Next(num7);
22497 return;
22498 }
22499 }
22500
22501 // Token: 0x06002F74 RID: 12148 RVA: 0x001F38E8 File Offset: 0x001F1AE8
22503 {
22504 int num;
22505 int num2;
22506 int num3;
22507 for (;;)
22508 {
22509 num = 1;
22510 num2 = 20;
22511 if (num == 0)
22512 {
22513 }
22514 if (num == 0)
22515 {
22516 }
22517 if (num == 0)
22518 {
22519 }
22520 if (num != 0)
22521 {
22522 break;
22523 }
22524 if (num == 0)
22525 {
22526 }
22527 if (num != 0)
22528 {
22529 break;
22530 }
22531 if (num3 == 0)
22532 {
22533 }
22535 int num4 = 5;
22536 if (genRand.Next(num4) != 0)
22537 {
22538 goto Block_1;
22539 }
22540 }
22541 if (num == 0)
22542 {
22543 }
22544 Tile tile;
22545 byte liquid = tile.liquid;
22546 if (num == 0)
22547 {
22548 }
22550 int num5 = 7;
22552 bool flag = WorldGen.TryGrowingTreeByType(0, num2, 43147264);
22553 return;
22554 Block_1:
22555 if (num3 == 0)
22556 {
22557 }
22558 bool flag2 = WorldGen.oceanDepths(num2, 43147264);
22559 if (num3 == 0)
22560 {
22561 }
22562 Tile tile2;
22563 bool flag3 = tile2.active();
22564 if (num3 == 0)
22565 {
22566 }
22568 int num6 = 5;
22569 if (genRand3.Next(num6) == 0)
22570 {
22571 if (num3 == 0)
22572 {
22573 }
22574 Tile tile3;
22575 ushort type = tile3.type;
22576 Tile tile4;
22577 ushort type2 = tile4.type;
22578 long num7 = 0L;
22579 WorldGen.PlaceTight(num2, 43147264, num7 != 0L);
22580 }
22581 }
22582
22583 // Token: 0x06002F75 RID: 12149 RVA: 0x001F3A38 File Offset: 0x001F1C38
22585 {
22586 if (!true)
22587 {
22588 }
22589 Tile tile;
22590 bool flag = tile.wire();
22591 }
22592
22593 // Token: 0x06002F76 RID: 12150 RVA: 0x001F3A58 File Offset: 0x001F1C58
22595 {
22596 int num = 1;
22597 if (num == 0)
22598 {
22599 }
22600 int num2 = 32768;
22601 if (num == 0)
22602 {
22603 }
22604 if (num == 0)
22605 {
22606 }
22607 long num3 = 0L;
22608 if (num == 0)
22609 {
22610 }
22611 if (num2 == 0)
22612 {
22613 }
22614 long num4 = 0L;
22615 if (num2 == 0)
22616 {
22617 }
22618 long num5 = 0L;
22619 Tile tile;
22620 bool flag = tile.active();
22621 long num6 = 0L;
22622 bool flag2 = WorldGen.SolidTile((int)num3, (int)num5, num6 != 0L);
22623 if (num2 == 0)
22624 {
22625 }
22626 Tile tile2;
22627 bool flag3 = tile2.active();
22628 Tile tile3;
22629 ushort wall = tile3.wall;
22630 bool flag4 = WorldGen.oceanDepths((int)num3, (int)num4);
22631 Tile tile4;
22632 ushort type = tile4.type;
22633 Tile tile5;
22634 ushort type2 = tile5.type;
22635 }
22636
22637 // Token: 0x040038F6 RID: 14582
22638 public static readonly WorldGen.<>c <>9;
22639
22640 // Token: 0x040038F7 RID: 14583
22641 public static WorldGenLegacyMethod <>9__277_0;
22642
22643 // Token: 0x040038F8 RID: 14584
22644 public static WorldGenLegacyMethod <>9__277_1;
22645
22646 // Token: 0x040038F9 RID: 14585
22647 public static WorldGenLegacyMethod <>9__277_2;
22648
22649 // Token: 0x040038FA RID: 14586
22650 public static WorldGenLegacyMethod <>9__277_3;
22651
22652 // Token: 0x040038FB RID: 14587
22653 public static WorldGenLegacyMethod <>9__277_4;
22654
22655 // Token: 0x040038FC RID: 14588
22656 public static WorldGenLegacyMethod <>9__277_5;
22657
22658 // Token: 0x040038FD RID: 14589
22659 public static WorldGenLegacyMethod <>9__277_6;
22660
22661 // Token: 0x040038FE RID: 14590
22662 public static WorldGenLegacyMethod <>9__277_7;
22663
22664 // Token: 0x040038FF RID: 14591
22665 public static WorldGenLegacyMethod <>9__277_8;
22666
22667 // Token: 0x04003900 RID: 14592
22668 public static WorldGenLegacyMethod <>9__277_9;
22669
22670 // Token: 0x04003901 RID: 14593
22671 public static WorldGenLegacyMethod <>9__277_10;
22672
22673 // Token: 0x04003902 RID: 14594
22674 public static WorldGenLegacyMethod <>9__277_11;
22675
22676 // Token: 0x04003903 RID: 14595
22677 public static WorldGenLegacyMethod <>9__277_12;
22678
22679 // Token: 0x04003904 RID: 14596
22680 public static WorldGenLegacyMethod <>9__277_13;
22681
22682 // Token: 0x04003905 RID: 14597
22683 public static WorldGenLegacyMethod <>9__277_14;
22684
22685 // Token: 0x04003906 RID: 14598
22686 public static WorldGenLegacyMethod <>9__277_15;
22687
22688 // Token: 0x04003907 RID: 14599
22689 public static WorldGenLegacyMethod <>9__277_16;
22690
22691 // Token: 0x04003908 RID: 14600
22692 public static WorldGenLegacyMethod <>9__277_17;
22693
22694 // Token: 0x04003909 RID: 14601
22695 public static WorldGenLegacyMethod <>9__277_18;
22696
22697 // Token: 0x0400390A RID: 14602
22698 public static WorldGenLegacyMethod <>9__277_19;
22699
22700 // Token: 0x0400390B RID: 14603
22701 public static WorldGenLegacyMethod <>9__277_20;
22702
22703 // Token: 0x0400390C RID: 14604
22704 public static WorldGenLegacyMethod <>9__277_21;
22705
22706 // Token: 0x0400390D RID: 14605
22707 public static WorldGenLegacyMethod <>9__277_22;
22708
22709 // Token: 0x0400390E RID: 14606
22710 public static WorldGenLegacyMethod <>9__277_23;
22711
22712 // Token: 0x0400390F RID: 14607
22713 public static WorldGenLegacyMethod <>9__277_24;
22714
22715 // Token: 0x04003910 RID: 14608
22716 public static WorldGenLegacyMethod <>9__277_25;
22717
22718 // Token: 0x04003911 RID: 14609
22719 public static WorldGenLegacyMethod <>9__277_26;
22720
22721 // Token: 0x04003912 RID: 14610
22722 public static WorldGenLegacyMethod <>9__277_27;
22723
22724 // Token: 0x04003913 RID: 14611
22725 public static WorldGenLegacyMethod <>9__277_28;
22726
22727 // Token: 0x04003914 RID: 14612
22728 public static WorldGenLegacyMethod <>9__277_29;
22729
22730 // Token: 0x04003915 RID: 14613
22731 public static WorldGenLegacyMethod <>9__277_30;
22732
22733 // Token: 0x04003916 RID: 14614
22734 public static WorldGenLegacyMethod <>9__277_31;
22735
22736 // Token: 0x04003917 RID: 14615
22737 public static WorldGenLegacyMethod <>9__277_32;
22738
22739 // Token: 0x04003918 RID: 14616
22740 public static WorldGenLegacyMethod <>9__277_33;
22741
22742 // Token: 0x04003919 RID: 14617
22743 public static WorldGenLegacyMethod <>9__277_34;
22744
22745 // Token: 0x0400391A RID: 14618
22746 public static WorldGenLegacyMethod <>9__277_35;
22747
22748 // Token: 0x0400391B RID: 14619
22749 public static WorldGenLegacyMethod <>9__277_36;
22750
22751 // Token: 0x0400391C RID: 14620
22752 public static WorldGenLegacyMethod <>9__277_37;
22753
22754 // Token: 0x0400391D RID: 14621
22755 public static WorldGenLegacyMethod <>9__277_38;
22756
22757 // Token: 0x0400391E RID: 14622
22758 public static WorldGenLegacyMethod <>9__277_39;
22759
22760 // Token: 0x0400391F RID: 14623
22761 public static WorldGenLegacyMethod <>9__277_40;
22762
22763 // Token: 0x04003920 RID: 14624
22764 public static WorldGenLegacyMethod <>9__277_41;
22765
22766 // Token: 0x04003921 RID: 14625
22767 public static WorldGenLegacyMethod <>9__277_42;
22768
22769 // Token: 0x04003922 RID: 14626
22770 public static WorldGenLegacyMethod <>9__277_43;
22771
22772 // Token: 0x04003923 RID: 14627
22773 public static WorldGenLegacyMethod <>9__277_44;
22774
22775 // Token: 0x04003924 RID: 14628
22776 public static WorldGenLegacyMethod <>9__277_45;
22777
22778 // Token: 0x04003925 RID: 14629
22779 public static WorldGenLegacyMethod <>9__277_46;
22780
22781 // Token: 0x04003926 RID: 14630
22782 public static WorldGenLegacyMethod <>9__277_47;
22783
22784 // Token: 0x04003927 RID: 14631
22785 public static WorldGenLegacyMethod <>9__277_48;
22786
22787 // Token: 0x04003928 RID: 14632
22788 public static WorldGenLegacyMethod <>9__277_49;
22789
22790 // Token: 0x04003929 RID: 14633
22791 public static WorldGenLegacyMethod <>9__277_50;
22792
22793 // Token: 0x0400392A RID: 14634
22794 public static WorldGenLegacyMethod <>9__277_51;
22795
22796 // Token: 0x0400392B RID: 14635
22797 public static WorldGenLegacyMethod <>9__277_52;
22798
22799 // Token: 0x0400392C RID: 14636
22800 public static WorldGenLegacyMethod <>9__277_53;
22801
22802 // Token: 0x0400392D RID: 14637
22803 public static WorldGenLegacyMethod <>9__277_54;
22804
22805 // Token: 0x0400392E RID: 14638
22806 public static WorldGenLegacyMethod <>9__277_55;
22807
22808 // Token: 0x0400392F RID: 14639
22809 public static WorldGenLegacyMethod <>9__277_56;
22810
22811 // Token: 0x04003930 RID: 14640
22812 public static WorldGenLegacyMethod <>9__277_57;
22813
22814 // Token: 0x04003931 RID: 14641
22815 public static WorldGenLegacyMethod <>9__277_58;
22816
22817 // Token: 0x04003932 RID: 14642
22818 public static WorldGenLegacyMethod <>9__277_59;
22819
22820 // Token: 0x04003933 RID: 14643
22821 public static WorldGenLegacyMethod <>9__277_60;
22822
22823 // Token: 0x04003934 RID: 14644
22824 public static WorldGenLegacyMethod <>9__277_61;
22825
22826 // Token: 0x04003935 RID: 14645
22827 public static WorldGenLegacyMethod <>9__277_62;
22828
22829 // Token: 0x04003936 RID: 14646
22830 public static WorldGenLegacyMethod <>9__277_63;
22831
22832 // Token: 0x04003937 RID: 14647
22833 public static WorldGenLegacyMethod <>9__277_64;
22834
22835 // Token: 0x04003938 RID: 14648
22836 public static WorldGenLegacyMethod <>9__277_65;
22837
22838 // Token: 0x04003939 RID: 14649
22839 public static WorldGenLegacyMethod <>9__277_66;
22840
22841 // Token: 0x0400393A RID: 14650
22842 public static WorldGenLegacyMethod <>9__277_67;
22843
22844 // Token: 0x0400393B RID: 14651
22845 public static WorldGenLegacyMethod <>9__277_68;
22846
22847 // Token: 0x0400393C RID: 14652
22848 public static WorldGenLegacyMethod <>9__277_69;
22849
22850 // Token: 0x0400393D RID: 14653
22851 public static WorldGenLegacyMethod <>9__277_70;
22852
22853 // Token: 0x0400393E RID: 14654
22854 public static WorldGenLegacyMethod <>9__277_71;
22855
22856 // Token: 0x0400393F RID: 14655
22857 public static WorldGenLegacyMethod <>9__277_72;
22858
22859 // Token: 0x04003940 RID: 14656
22860 public static WorldGenLegacyMethod <>9__277_73;
22861
22862 // Token: 0x04003941 RID: 14657
22863 public static WorldGenLegacyMethod <>9__277_74;
22864
22865 // Token: 0x04003942 RID: 14658
22866 public static WorldGenLegacyMethod <>9__277_75;
22867
22868 // Token: 0x04003943 RID: 14659
22869 public static WorldGenLegacyMethod <>9__277_76;
22870
22871 // Token: 0x04003944 RID: 14660
22872 public static WorldGenLegacyMethod <>9__277_77;
22873
22874 // Token: 0x04003945 RID: 14661
22875 public static WorldGenLegacyMethod <>9__277_78;
22876
22877 // Token: 0x04003946 RID: 14662
22878 public static WorldGenLegacyMethod <>9__277_79;
22879
22880 // Token: 0x04003947 RID: 14663
22881 public static WorldGenLegacyMethod <>9__277_80;
22882
22883 // Token: 0x04003948 RID: 14664
22884 public static WorldGenLegacyMethod <>9__277_81;
22885
22886 // Token: 0x04003949 RID: 14665
22887 public static WorldGenLegacyMethod <>9__277_82;
22888
22889 // Token: 0x0400394A RID: 14666
22890 public static WorldGenLegacyMethod <>9__277_83;
22891
22892 // Token: 0x0400394B RID: 14667
22893 public static WorldGenLegacyMethod <>9__277_84;
22894
22895 // Token: 0x0400394C RID: 14668
22896 public static WorldGenLegacyMethod <>9__277_85;
22897
22898 // Token: 0x0400394D RID: 14669
22899 public static WorldGenLegacyMethod <>9__277_86;
22900
22901 // Token: 0x0400394E RID: 14670
22902 public static WorldGenLegacyMethod <>9__277_87;
22903
22904 // Token: 0x0400394F RID: 14671
22905 public static WorldGenLegacyMethod <>9__277_88;
22906
22907 // Token: 0x04003950 RID: 14672
22908 public static WorldGenLegacyMethod <>9__277_89;
22909
22910 // Token: 0x04003951 RID: 14673
22911 public static WorldGenLegacyMethod <>9__277_90;
22912
22913 // Token: 0x04003952 RID: 14674
22914 public static WorldGenLegacyMethod <>9__277_91;
22915
22916 // Token: 0x04003953 RID: 14675
22917 public static WorldGenLegacyMethod <>9__277_92;
22918
22919 // Token: 0x04003954 RID: 14676
22920 public static WorldGenLegacyMethod <>9__277_93;
22921
22922 // Token: 0x04003955 RID: 14677
22923 public static WorldGenLegacyMethod <>9__277_94;
22924
22925 // Token: 0x04003956 RID: 14678
22926 public static WorldGenLegacyMethod <>9__277_95;
22927
22928 // Token: 0x04003957 RID: 14679
22929 public static WorldGenLegacyMethod <>9__277_96;
22930
22931 // Token: 0x04003958 RID: 14680
22932 public static WorldGenLegacyMethod <>9__277_97;
22933
22934 // Token: 0x04003959 RID: 14681
22935 public static WorldGenLegacyMethod <>9__277_98;
22936
22937 // Token: 0x0400395A RID: 14682
22938 public static WorldGenLegacyMethod <>9__277_99;
22939
22940 // Token: 0x0400395B RID: 14683
22941 public static WorldGenLegacyMethod <>9__277_100;
22942
22943 // Token: 0x0400395C RID: 14684
22944 public static WorldGenLegacyMethod <>9__277_101;
22945
22946 // Token: 0x0400395D RID: 14685
22947 public static WorldGenLegacyMethod <>9__277_102;
22948
22949 // Token: 0x0400395E RID: 14686
22950 public static WorldGenLegacyMethod <>9__277_103;
22951
22952 // Token: 0x0400395F RID: 14687
22953 public static WorldGenLegacyMethod <>9__277_104;
22954 }
22955 }
22956}
class f__AnonymousType0<< Count > j__TPar
static void ExecuteSnippetsOnly()
static void WriteLine(object value)
Definition Console.cs:134
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static void Exit(object obj)
Definition Monitor.cs:47
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
static Thread CurrentThread
Definition Thread.cs:381
static void StopTrackedSounds()
static int CreateChest(int X, int Y, int id=-1)
Definition Chest.cs:366
static bool NearOtherChests(int x, int y)
Definition Chest.cs:333
static bool EmptyTile(int i, int j, bool ignoreTiles=false)
Definition Collision.cs:428
static bool SolidTiles(Vector2 position, int width, int height)
Vector2 velocity
Definition Dust.cs:441
Rectangle Hitbox
Definition Entity.cs:414
static void WallFrame(int i, int j, bool resetFrame=false)
Definition Framing.cs:328
static Tile GetTileSafely(Vector2 position)
Definition Framing.cs:356
Vector2 velocity
Definition Gore.cs:445
static void LoadWorld(bool loadFromCloud)
Definition WorldFile.cs:201
static void CacheSaveTime()
Definition WorldFile.cs:50
static void tilesIgnoreWater(bool ignoreSolids)
Definition Liquid.cs:36
static void AddWater(int x, int y)
Definition Liquid.cs:196
static string GetTextValue(string key)
Definition Language.cs:54
static bool LogicClient
Definition Main.cs:5513
static double starGameMath(double value=1.0)
Definition Main.cs:17023
static int mapTimeMax
Definition Main.cs:1175
static int spawnTileY
Definition Main.cs:2365
static bool NetHost
Definition Main.cs:5544
static int myPlayer
Definition Main.cs:2337
static void ResetWindCounter(bool resetExtreme=false)
Definition Main.cs:15466
static void checkHalloween()
Definition Main.cs:7445
static string worldPathName
Definition Main.cs:5362
static WorldSections sectionManager
Definition Main.cs:447
static bool loadMapLock
Definition Main.cs:1049
static void NewText(string newText, byte R=255, byte G=255, byte B=255)
Definition Main.cs:17778
static void GoToWorldSelect()
Definition Main.cs:14004
static bool NetClient
Definition Main.cs:5438
static bool NetClientOnly
Definition Main.cs:5407
static int spawnTileX
Definition Main.cs:2351
static void ToggleGameplayUpdates(bool state)
Definition Main.cs:3758
static WorldMap Map
Definition Main.cs:1875
static PlayerFileData ActivePlayerFileData
Definition Main.cs:2701
static bool LogicHost
Definition Main.cs:5469
static void UpdateTimeRate()
Definition Main.cs:6697
static bool mapEnabled
Definition Main.cs:1231
static int UnderworldLayer
Definition Main.cs:5133
static bool mapReady
Definition Main.cs:1091
static bool gameMenu
Definition Main.cs:2673
static Player LocalPlayer
Definition Main.cs:5267
static bool SaveSettings()
Definition Main.cs:5792
static void checkXMas()
Definition Main.cs:7436
static bool SettingsSavePending
Definition Main.cs:3343
static void ResetMapData()
Definition MapHelper.cs:34
void Allocate(int maxWidth, int maxHeight)
Definition WorldMap.cs:109
static void ResetBadgerHatTime()
Definition NPC.cs:5203
static void ResetKillCount()
Definition NPC.cs:5027
static bool AnyNPCs(int Type)
Definition NPC.cs:7102
static IEntitySource GetSpawnSourceForTownSpawn()
Definition NPC.cs:7700
static void sendWater(int x, int y)
static void ResetSections()
Definition Netplay.cs:86
static int GetSectionX(int x)
Definition Netplay.cs:487
static int GetSectionY(int y)
Definition Netplay.cs:493
static TileObjectData GetTileData(int type, int style, int alternate=0)
bool HasItem(int type)
Definition Player.cs:19341
void InterruptItemUsageIfOverTile(int tileTypeToBeOver)
Definition Player.cs:1854
bool ZoneGlowshroom
Definition Player.cs:830
static void SavePlayer(PlayerFileData playerFile, bool skipMapSave=false, bool forceSave=false)
Definition Player.cs:18657
static Vector2 GetRainFallVelocity()
Definition Rain.cs:39
static void SetSHeader(int tileIndex, short sHeader)
Definition TileData.cs:249
static void Copy(string source, string destination, bool cloud=false, bool overwrite=true)
static void Delete(string path, bool cloud=false)
static void ClearAll()
Definition Wiring.cs:62
static void SkipWire(int x, int y)
Definition Wiring.cs:46
static void HitSwitch(int i, int j)
Definition Wiring.cs:90
bool EndInvoke(int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight, IAsyncResult result)
GetTreeFoliageDataMethod(object @object, IntPtr method)
bool Invoke(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
IAsyncResult BeginInvoke(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight, AsyncCallback callback, object @object)
static WorldGen.GrowTreeSettings GemTree_Topaz
static WorldGen.GrowTreeSettings GemTree_Amber
static bool TryGetFromItemId(int itemType, [Out] WorldGen.GrowTreeSettings profile)
static WorldGen.GrowTreeSettings GemTree_Amethyst
static WorldGen.GrowTreeSettings GemTree_Ruby
static WorldGen.GrowTreeSettings GemTree_Emerald
static WorldGen.GrowTreeSettings VanityTree_Sakura
static bool TryGetFromTreeId(int tileType, [Out] WorldGen.GrowTreeSettings profile)
static WorldGen.GrowTreeSettings VanityTree_Willow
static WorldGen.GrowTreeSettings GemTree_Sappphire
static WorldGen.GrowTreeSettings GemTree_Diamond
static WorldGen.GrowTreeSettings Tree_Ash
static void ProcessWorldGenConfig(WorldGenConfiguration config)
static void Initialize()
delegate void WorldGenConfigProcessEvent(WorldGenConfiguration config)
static Action OnWorldLoad
static WorldGen.Hooks.WorldGenConfigProcessEvent OnWorldGenConfigProcess
static void WorldLoaded()
static void Spider(int x, int y)
static void Wall(int x, int y, int wallType)
static void Moss(int x, int y)
static void Wall2(int x, int y, int wallType)
static void Gem(int x, int y)
static bool Gemmable(int type)
static void WallDungeon(int x, int y, int wallType)
void Setup(int x, int y, bool jungle, bool lavaOk)
static int[] treeShakeX
static int[] roomX
static void OreRunner(int i, int j, double strength, int steps, ushort type)
Definition WorldGen.cs:9858
static void GrowAlch(int x, int y)
Definition WorldGen.cs:8853
static int hallowBG
static int[,] trapDiag
static void LocalUserQuitOnMainThread(object localUserContext)
Definition WorldGen.cs:1093
static bool GeneratePlanteraBulbOnAllMechsDefeated()
static void GetDesiredStalagtiteStyle(int x, int j, [Out] bool fail, [Out] int desiredStyle, [Out] int height, [Out] int y)
Definition WorldGen.cs:7655
static void SetGemTreeDrops(int gemType, int seedType, Tile tileCache, int dropItem, int secondaryItem)
static bool tempRemixWorldGen
static void UpdateWorld()
static void serverLoadWorldCallBack()
Definition WorldGen.cs:1388
static int _lastSeed
static bool loadFailed
static void PlaceChand(int x, int y, ushort type, int style=0)
static void Place6x3(int x, int y, ushort type, int direction=-1, int style=0)
static void StartImpendingDoom(int countdownTime)
static bool IsTileTypeFitForTree(ushort type)
Definition WorldGen.cs:4823
static void GetStalagtiteStyle(int x, int y, [Out] int style, [Out] bool fail)
Definition WorldGen.cs:7668
static bool TileEmpty(int i, int j)
static void CheckRockGolemHead(int x, int y)
static Point RandomRectanglePoint(int x, int y, int width, int height)
Definition WorldGen.cs:3393
static void SetVanityTreeDrops(int dropType, Tile tileCache, int dropItem)
static void AddGenerationPass(string name, WorldGenLegacyMethod method)
Definition WorldGen.cs:2181
static readonly int cactusWaterHeight
static void TileMergeAttempt(int myType, bool[] lookfor, int up, int down, int left, int right)
static bool destroyObject
static void UpdateWorld_GrassGrowth(int i, int j, int minI, int maxI, int minJ, int maxJ, bool underground)
static void PaintTheDungeon(byte tilePaintColor, byte wallPaintColor)
Definition WorldGen.cs:2936
static int tileReframeCount
static void MakeDungeon_Traps(int failCount, int failMax, int numAdd)
Definition WorldGen.cs:6342
static void FixChand(int i, int j)
static void HellRoom(int i, int j, int width, int height, byte type=76, byte wall=13)
Definition WorldGen.cs:6004
static void Check1xX(int x, int j, short type)
Definition WorldGen.cs:7452
static bool AttemptToGrowTreeFromSapling(int x, int y, bool underground)
static void CloseThreadTime()
static EntitySource_ShakeTree GetProjectileSource_ShakeTree(int x, int y)
Definition WorldGen.cs:98
static bool mergeRight
static bool NoNearbyGlowTulips(int i, int j)
static bool GetGemTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static int SmallConsecutivesEliminated
static void randMoss(bool justNeon=false)
Definition WorldGen.cs:2029
static bool growGrassUnderground
static int WorldGenParam_Evil
static bool ActiveAndWalkableTile(int i, int j)
static void CloudIsland(int i, int j)
static void setWorldSize()
Definition WorldGen.cs:973
static void templeCleaner(int x, int y)
Definition WorldGen.cs:6024
static void oceanCave(int i, int j)
static bool IsTreeType(int tree)
static void Check3x2(int i, int j, int type)
Definition WorldGen.cs:9929
static bool BiomeTileCheck(int x, int y)
Definition WorldGen.cs:2549
static ? Rectangle GetTileVisualHitbox(int x, int y)
static int totalEvil2
static int mushroomBG
static void FixHeart(int i, int j)
static void CrimEnt(Vector2D position, int crimDir)
static void Place2x3Wall(int x, int y, ushort type, int style)
Definition WorldGen.cs:8273
static double MakeDungeon_GroundFurniture(int wallType)
Definition WorldGen.cs:6494
static void ChlorophyteDefense(int x, int y)
const int InfectionAndGrassSpreadOuterWorldBuffer
static void PlaceOasisPlant(int X, int Y, ushort type=530)
Definition WorldGen.cs:9671
static void Check2x2(int i, int j, int type)
Definition WorldGen.cs:9775
static bool IsChestRigged(int x, int y)
Definition WorldGen.cs:7267
static bool IsAContainer(Tile t)
Definition WorldGen.cs:9831
static bool nearPicture(int x, int y)
Definition WorldGen.cs:6143
static void SmashAltar(int i, int j)
Definition WorldGen.cs:9891
static void CheckTree(int i, int j)
static bool AllowedToSpreadInfections
static bool PlaceLiquid(int x, int y, byte liquidType, byte amount)
Definition WorldGen.cs:146
static bool TryToggleLight(int x, int y, bool? forcedState, bool skipWires)
static PaintingEntry RandHousePictureDesert()
Definition WorldGen.cs:6762
static int maxTreeShakes
static Color coatingColor(int coating)
Definition WorldGen.cs:8107
static bool SolidTileNoAttach(int i, int j)
static bool< GenerateWorld > g__Main_tile_halfBrick(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static bool BottomEdgeCanBeAttachedTo(int i, int j)
static Player GetPlayerForTile(int x, int y)
static void FinishTenthAnniversaryWorld()
Definition WorldGen.cs:2717
static void GetTreeBottom(int i, int j, [Out] int x, [Out] int y)
static void Check2xX(int i, int j, ushort type)
Definition WorldGen.cs:7499
static bool LogFrames
static int jungleBG
static void PaintTheMushrooms()
Definition WorldGen.cs:2784
static int totalSolid
static bool placeTNTBarrel(int x, int y)
Definition WorldGen.cs:1823
static bool remixWorldGen
static bool SolidTile(short tileSHeader, ushort tileType)
static void FixHearts()
static void PlantAlch()
Definition WorldGen.cs:8980
static void PlaceLogicTiles(int x, int y, int type, int style=0)
Definition WorldGen.cs:8549
static bool BlockBelowMakesSandConvertIntoHardenedSand(int i, int j)
static int treeBG2
static int totalEvil
static void AddShadowOrb(int x, int y)
Definition WorldGen.cs:5842
static void ClearAllBrokenTraps()
Definition WorldGen.cs:3286
static bool TryGrowingGlowTulip(int i, int j)
static int totalSolid2
static void MakeDungeon(int x, int y)
Definition WorldGen.cs:6324
static void SwitchMonolith(int i, int j)
static void CheckTallGate(int x, int y, int type)
static bool SolidTile(Tile testTile)
static void JustQuit()
Definition WorldGen.cs:1048
static void ReplaceTile_DoActualReplacement_Area(ushort targetType, int targetStyle, int topLeftX, int topLeftY, int areaSizeX, int areaSizeY)
static bool threadInProgress
static void paintEffect(int x, int y, byte color, byte oldColor)
Definition WorldGen.cs:8141
static bool IsLockedDoor(Tile t)
static bool TopEdgeCanBeAttachedTo(int i, int j)
static void Check1x2Top(int x, int j, ushort type)
Definition WorldGen.cs:9469
static void CheckAchievement_RealEstateAndTownSlimes()
Definition WorldGen.cs:685
static void CheckRoom(int x, int y)
Definition WorldGen.cs:895
static bool ReplaceTile_IsValidSolid(int type)
const bool BUBBLES_SOLID_STATE_FOR_HOUSING
static bool GetAshTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static Point RandomRectanglePoint(Rectangle rectangle)
Definition WorldGen.cs:3368
static void Place3x2(int x, int y, ushort type, int style=0)
static PaintingEntry RandBonePicture()
Definition WorldGen.cs:6716
static double MakeDungeon_Banners(int[] roomWall, double count)
Definition WorldGen.cs:6367
static ushort randGemTile()
Definition WorldGen.cs:2005
static void SectionTileFrameWithCheck(int startX, int startY, int endX, int endY)
static int HardModeProgress
static bool HasValidGroundForGlowTulipBelowSpot(int x, int y)
static int treeBG3
static bool PlaceSmallPile(int i, int j, int X, int Y, ushort type=185)
Definition WorldGen.cs:9487
static int shadowOrbCount
static bool IsThereASpawnablePrioritizedTownNPC_Old(int x, int y)
Definition WorldGen.cs:378
static bool SolidTileAllowRightSlope(int i, int j)
static bool CanKillTile(int i, int j, [Out] bool blockDamaged)
static void TryProtectingSpawnedItems()
Definition WorldGen.cs:5652
static int[] roomY
static bool placeLavaTrap(int x, int y)
Definition WorldGen.cs:1767
static bool PlaceWire2(int i, int j)
static TownRoomManager TownManager
static void NotTheBees()
Definition WorldGen.cs:3035
static int currentStack
static void PlaceUnderwaterPlant(ushort type, int x, int y)
static bool CanPoundTile(int x, int y)
static void CheckLilyPad(int x, int y)
static Vector2D templePather(Vector2D templePath, int destX, int destY)
Definition WorldGen.cs:6040
static void SpawnTravelNPC()
Definition WorldGen.cs:435
static int treeBG4
static bool OpenDoor(int i, int j, int direction)
Definition WorldGen.cs:7392
static bool Place2x2Horizontal(int x, int y, ushort type, int Style=0)
Definition WorldGen.cs:8064
static bool GrowShroom(int i, int y)
Definition WorldGen.cs:5550
static void PaintTheSand(byte tilePaintColor, byte wallPaintColor)
Definition WorldGen.cs:2846
static bool ValidateTypes()
Definition WorldGen.cs:2636
static bool Housing_CheckIfIsCeiling(int i, int j)
Definition WorldGen.cs:853
static bool ScoreRoom_IsThisRoomOccupiedBySomeone(int ignoreNPC=-1, int npcTypeAsking=-1)
Definition WorldGen.cs:780
static int numTileCount
static bool KillTile_ShouldDropSeeds(int x, int y)
static EntitySource_TileBreak GetNPCSource_TileBreak(int x, int y)
Definition WorldGen.cs:87
const int WorldSizeMediumX
static void Check6x3(int i, int j, int type)
static void FinishNotTheBees()
Definition WorldGen.cs:3060
static void CheckDoorOpen(int i, int j, Tile tileCache)
static void PerformCachedMapTileUpdates()
static void OreHelper(int X, int Y)
Definition WorldGen.cs:2284
static bool TileIsExposedToAir(int x, int y)
static bool CheckSpecialTownNPCSpawningConditions(int type)
Definition WorldGen.cs:399
static void UpdateWorld_OvergroundTile(int i, int j, bool checkNPCSpawns, int wallDist)
static bool IsTileReplacable(int x, int y)
static void WaitForFileSync()
Definition WorldGen.cs:1076
static void BroadcastText(NetworkText text, Vector4 color)
static int TileType(int x, int y)
static byte tBlood
static bool loadBackup
static void SwitchMB(int i, int j)
static List< WorldGen.nextCountDirtNode > _dirtCountOpenNodes
const int WorldSizeLargeX
static void SetForestBGSet(int style, int[] mountainSet, int[] treeSet)
Definition WorldGen.cs:1486
static bool IsItATrap(Tile tile)
Definition WorldGen.cs:3260
static bool noLiquidCheck
static int roomCeilingsCount
static bool GrowLivingTree_HorizontalTunnel(int i, int j)
Definition WorldGen.cs:4480
static bool InAPlaceWithWind(int x, int y, int width, int height)
static void tileCounterKill()
Definition WorldGen.cs:2173
static void TreeGrowFX(int x, int y, int height, int treeGore, bool hitTree=false)
Definition WorldGen.cs:4737
static void LaunchRocketSmall(int x, int y, bool fromWiring)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static void Check3x3(int i, int j, int type)
static int globalTileReframeCount
static Thread ConversionThread
const bool USE_FRAMING_SKIP_FOR_UNIMPORTANT_TILES_IN_WORLDGEN
static bool meteor(int i, int j, bool ignorePlayers=false)
Definition WorldGen.cs:948
static void moveRoom(int x, int y, int n)
Definition WorldGen.cs:335
static void SwitchCannon(int i, int j)
static void PlantCactus(int i, int j)
static void UndoSpawnedItemProtection()
Definition WorldGen.cs:5670
static bool everythingWorldGen
static void DropDoorItem(int x, int y, int doorStyle)
static void PoundPlatform(int x, int y)
static void Housing_GetTestedRoomBounds([Out] int startX, [Out] int endX, [Out] int startY, [Out] int endY)
Definition WorldGen.cs:821
static void CheckAlch(int x, int y)
Definition WorldGen.cs:8992
static bool AttemptToGeneratePlanteraBulbAt(int i, int j, bool forceBulb)
static void KillTile_GetItemDrops(int x, int y, Tile tileCache, [Out] int dropItem, [Out] int dropItemStack, [Out] int secondaryItem, [Out] int secondaryItemStack, bool includeLargeObjectDrops=false)
static void FinishDrunkGen()
Definition WorldGen.cs:3173
static void GrowCheckSeaweed(int x, int y)
static void saveAndPlay()
Definition WorldGen.cs:1339
static void Scan3By3(int topLeftX, int topLeftY, [Out] bool isEmpty, [Out] bool hasFloor)
Definition WorldGen.cs:2705
static void QueuePostGenAction(Action< StructureMap > action)
Definition WorldGen.cs:3354
static void MakeDungeon_Lights(ushort tileType, int failCount, int failMax, int numAdd, int[] roomWall)
Definition WorldGen.cs:6353
static bool GrowPalmTree(int i, int y)
Definition WorldGen.cs:3453
static void MakeWateryIceThing(int i, int j)
static int GetWorldUpdateRate()
static bool IsBackgroundConsideredTheSame(int oldBG, int newBG)
Definition WorldGen.cs:1552
static readonly int cactusWaterWidth
static void CheckBamboo(int x, int y)
static void KillTile_DropItems(int x, int y, Tile tileCache, bool includeLargeObjectDrops=false)
static void GrowCactus(int i, int j)
static int GetItemDrop_Chair(int style)
Definition WorldGen.cs:7964
static void Check3x2Wall(int x, int y)
Definition WorldGen.cs:8325
static bool ThreadWaiting
static bool TryGrowingTreeByType(int treeTileType, int checkedX, int checkedY)
Definition WorldGen.cs:5228
static int shroomCount
static bool KillWire3(int i, int j)
static bool AttemptReorientingStinkbugBlocker(int x, int y, int wall, int style)
static bool noTrapsWorldGen
static int roomY2
static bool NoNearbyAbigailsFlower(int i, int j)
static PaintingEntry RandPictureTile()
Definition WorldGen.cs:6849
static bool GrowLivingTree(int i, int j, bool patch=false)
Definition WorldGen.cs:4027
static bool roomTorch
static void Check1x1(int x, int y, int type)
Definition WorldGen.cs:8475
static readonly int shimmerSafetyDistance
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static int prioritizedTownNPCType
static void BroadcastText(NetworkText text, int r, int g, int b)
static bool worldBackup
static bool noMapUpdate
static bool tenthAnniversaryWorldGen
static void setBG(int bg, int style)
Definition WorldGen.cs:1481
static bool PoundTile(int i, int j)
static int[] tileCounterX
static void MessageLunarApocalypse()
static bool gen
static void CheckOrb(int i, int j, int type)
static bool IsLockedDoor(int x, int y)
static void Check3x4(int i, int j, int type)
Definition WorldGen.cs:9963
static void CheckCannon(int i, int j, int type)
static int FillWallHolesInColumn(int x, int startY, int endY)
Definition WorldGen.cs:2093
static void SonOfLakinater(int i, int j, double strengthMultiplier=1.0)
static void CountTileTypesInArea(int[] tileTypeCounts, int startX, int endX, int startY, int endY)
Definition WorldGen.cs:789
static int SmallConsecutivesFound
static int underworldBG
static bool OasisPlantWaterCheck(int x, int y, bool boost=false)
Definition WorldGen.cs:9662
static void CheckOnTable1x1(int x, int y, int type)
Definition WorldGen.cs:7993
static bool placingTraps
static bool SolidTile3(int i, int j)
static UnifiedRandom genRand
Definition WorldGen.cs:38
static ushort neonMossType
static int CountNearBlocksTypes(int i, int j, int radius, int cap, ushort tiletypes)
static void CreateNewWorld([Optional] GenerationProgress progress)
Definition WorldGen.cs:1037
static void CheckSign(int x, int y, ushort type)
Definition WorldGen.cs:8031
static void Check2x3Wall(int x, int y)
Definition WorldGen.cs:8289
static void DiamondTileFrame(int i, int j)
static void PlaceSunflower(int x, int y, ushort type=27)
static bool CanUnderwaterPlantGrowHere(ushort type, int x, int y, bool ignoreSelf)
static void GetVineTop(int i, int j, [Out] int x, [Out] int y)
static int totalBlood2
static bool roomEvil
static void RandomizeBackgrounds(UnifiedRandom random)
Definition WorldGen.cs:1524
static int sharedRoomX
static TreeTopsInfo TreeTops
static int corruptBG
static bool CloseDoor(int i, int j, bool forced=false)
Definition WorldGen.cs:5761
static List< Point > ShimmerTiles
static bool ReplaceTile_IsValidChest(int type)
static void Check1x2(int x, int j, ushort type)
Definition WorldGen.cs:7975
static void FloatingIsland(int i, int j)
static void Place1x2(int x, int y, ushort type, int style)
Definition WorldGen.cs:9389
static int roomX2
static bool< GenerateWorld > g__Main_tile_lava(int x, int y, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_3)
static bool nearPicture2(int x, int y)
Definition WorldGen.cs:6167
static void TileMergeAttempt(int myType, bool[] lookfor, bool[] exclude, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static int[] treeShakeY
static bool PlaceLilyPad(int x, int j)
static bool checkPlantDye(int i, int j, bool exoticPlant=false)
static void Caverer(int X, int Y)
static readonly int oceanDistance
static Vector2D digTunnel(double X, double Y, double xDir, double yDir, int Steps, int Size, bool Wet=false)
static void TileMergeAttempt(int myType, int lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void DungeonEnt(int i, int j, ushort tileType, int wallType)
Definition WorldGen.cs:7137
static bool loadSuccess
static bool EmptyTileCheck(int startX, int endX, int startY, int endY, int ignoreID=-1)
Definition WorldGen.cs:5620
static bool GrowTreeWithSettings(int checkedX, int checkedY, WorldGen.GrowTreeSettings settings)
Definition WorldGen.cs:5257
static int numTreeShakes
static bool SeaOatWaterCheck(int x, int y)
static void JoinLocalWorld()
Definition WorldGen.cs:1269
static void CheckPot(int i, int j, int type=28)
static void CheckOasisPlant(int i, int j, int type=530)
Definition WorldGen.cs:9682
static void Place4x2(int x, int y, ushort type, int direction=-1, int style=0)
static void RefreshSection(int sectionX, int sectionY)
static void CheckStinkbugBlocker(int x, int y)
static bool ShiftTallGate(int x, int y, bool closing, bool forced=false)
static void SpreadDesertWalls(int wallDist, int i, int j)
static void GiveItemGoodPrefixes(Item item)
Definition WorldGen.cs:2996
static bool roomHasEchoStinkbug
static bool fossilBreak
static void CheckWoman(int i, int j)
Definition WorldGen.cs:9334
static int GetItemDrop_Benches(int style)
Definition WorldGen.cs:7952
static void RandomizeWeather()
Definition WorldGen.cs:1491
static bool KillWire4(int i, int j)
static int GetWaterDepth(int x, int y)
static void CheckLogicTiles(int x, int y, int type)
Definition WorldGen.cs:8523
static void RangeFrame(int startX, int startY, int endX, int endY)
static bool IsRoomConsideredAlreadyOccupied(int spawnTileX, int spawnTileY, int npcTypeToSpawn)
Definition WorldGen.cs:676
static void PaintTheClouds(byte tilePaintColor, byte wallPaintColor)
Definition WorldGen.cs:2922
static bool WouldTileReplacementWork(ushort attemptingToReplaceWith, int x, int y)
static void CheckDye(int x, int y)
static int _lastFrame
static void BroadcastText(NetworkText text, Color color)
static bool PlaceWire3(int i, int j)
static bool CanKillTile(int i, int j)
static void ChasmRunner(int i, int j, int steps, bool makeOrb=false)
static bool roomChair
static void Check3x1(int i, int j, int type)
Definition WorldGen.cs:9911
static void saveToonWhilePlayingCallBack(object threadContext)
Definition WorldGen.cs:1347
static bool SolidTile2(Tile testTile)
static bool crimson
static bool paintWall(int x, int y, byte color, bool broadCast=false)
Definition WorldGen.cs:8226
static void smCallBack(object threadContext)
Definition WorldGen.cs:5678
static bool PlaceOasis(int X, int Y)
Definition WorldGen.cs:2515
static int totalGood2
static int RollRandomForestBGStyle(UnifiedRandom random)
Definition WorldGen.cs:1535
static void PlaceMB(int X, int y, ushort type, int style)
static void MudWallRunner(int i, int j)
static ManagedThread worldGenThread
static void SectionTileFrame(int sectionStartX, int sectionStartY, int sectionEndXInclusive, int sectionEndYInclusive)
static bool badOceanCaveTiles(int x, int y)
static void DungeonStairs(int i, int j, ushort tileType, int wallType)
Definition WorldGen.cs:6875
static void BroadcastText(NetworkText text, byte r, byte g, byte b)
static void PlaceDresserDirect(int x, int y, ushort type, int style, int id)
static int CheckTileBreakability(int x, int y)
static void PlaceXmasTree(int x, int y, ushort type=171)
Definition WorldGen.cs:7871
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static void GERunner(int i, int j, double speedX=0.0, double speedY=0.0, bool good=true)
static bool UpdateStalagtiteStyle(int x, int j)
Definition WorldGen.cs:7610
static int[] tileCounterY
static void CheckProjectilePressurePad_GetPossiblePlacementDirections(int i, int j, [Out] bool canUp, [Out] bool canLeft, [Out] bool canRight, [Out] bool canDown)
static Point PlaceCatTail(int x, int j)
static void ShutDownServer()
Definition WorldGen.cs:1071
static void AddGenerationPass(string name, double weight, WorldGenLegacyMethod method)
Definition WorldGen.cs:2197
static void Check5x4(int i, int j, int type)
Definition WorldGen.cs:9983
static bool CacheUpdateMapTile(int i, int j, bool addToList=true)
static void DesertCloudIsland(int i, int j)
static bool ShiftTrapdoor(int x, int y, bool playerAbove, int onlyCloseOrOpen=-1)
static int GetWorldSize()
Definition WorldGen.cs:992
static int lavaCount
static int maxWallOut2
static void GrowSpike(int i, int j, ushort spikeType, ushort landType)
Definition WorldGen.cs:8771
static void FinishRemixWorld()
Definition WorldGen.cs:3223
static void ScoreRoom(int ignoreNPC=-1, int npcTypeAskingToScoreRoom=-1)
Definition WorldGen.cs:812
static bool tempTenthAnniversaryWorldGen
static bool MoveTownNPC(int x, int y, int n)
Definition WorldGen.cs:222
static void GrowLivingTree_MakePassage(int j, int W, int minl, int minr, bool noSecretRoom=false)
Definition WorldGen.cs:4572
static void RenameWorldCallBack(object threadContext)
Definition WorldGen.cs:1125
static void TreeGrowFXCheck(int x, int y)
Definition WorldGen.cs:4678
const int WorldSizeSmallY
static int GetTileTypeCountByCategory(int[] tileTypeCounts, TileScanGroup group)
Definition WorldGen.cs:805
static void AddHellHouses()
Definition WorldGen.cs:5880
static bool ThreadRunning
static bool SavingPlayer
static bool checkUnderground(int x, int y)
Definition WorldGen.cs:2205
static MysticLogFairiesEvent mysticLogsEvent
static bool dontStarveWorldGen
static int lastMaxTilesX
static void StartHardmode()
Definition WorldGen.cs:5640
static bool InAPlaceWithWind(Vector2 position, int width, int height)
static bool spawnEye
static void FinaliseHardModeOnMainThread(object data)
Definition WorldGen.cs:5687
static void ShimmerCleanUp()
Definition WorldGen.cs:6191
static int countWires(int x, int y, int size)
Definition WorldGen.cs:1879
static bool IsThereASpawnablePrioritizedTownNPC(int x, int y, bool canSpawnNewTownNPC)
Definition WorldGen.cs:364
static void IslandHouse(int i, int j, int islandStyle)
static bool drunkWorldGenText
static bool KillWire(int i, int j)
static Queue< Point > ExploitDestroyQueue
static void Mountinater(int i, int j)
static void Place3x2Wall(int x, int y, ushort type, int style)
Definition WorldGen.cs:8309
static void tileCountAndDestroy()
Definition WorldGen.cs:2130
static void GetBiomeInfluence(int startX, int endX, int startY, int endY, [Out] int corruptCount, [Out] int crimsonCount, [Out] int hallowedCount)
Definition WorldGen.cs:9704
static int PlaceXmasTree_Direct(int x, int y, int type, int style, int dir, int alternate)
Definition WorldGen.cs:7843
static void CheckWeaponsRack(int i, int j)
Definition WorldGen.cs:9216
static List< WorldGen.nextCountNode > _countAvailableNodes
static int RollRandomSeaShellStyle()
Definition WorldGen.cs:8447
static void RandomizeTreeStyle()
Definition WorldGen.cs:1557
static void HellFort(int i, int j, ushort tileType=75, byte wallType=14)
Definition WorldGen.cs:5916
static int sandCount
static void TileMergeAttemptFrametest(int i, int j, int myType, int lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static int hiScore
static bool UpdateMapTile(int i, int j, bool addToList=true)
static bool oceanDepths(int x, int y)
Definition WorldGen.cs:2605
static void FixSunflowers()
static bool roomHasStinkbug
static bool TryKillingReplaceableTile(int x, int y, int tileType)
static int FindAHomelessNPC()
Definition WorldGen.cs:652
static void GrowPumpkin(int i, int j, int type)
static Point[] heartPos
static bool StartRoomCheck(int x, int y)
Definition WorldGen.cs:882
static void Place1x1(int x, int y, int type, int style=0)
Definition WorldGen.cs:8459
static bool< GenerateWorld > g__Main_tile_active(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
const int WorldSizeSmallX
static bool PlayerLOS(int x, int y)
static void ConsumePostGenActions(StructureMap structures)
Definition WorldGen.cs:3362
static object WaitingLock
static void nextDirtCount(int x, int y)
Definition WorldGen.cs:1939
static readonly Vertical64BitStrips bitStrip
static void TreeGrowFX_AshShake(int x, int y, int height, bool hitTree=false)
Definition WorldGen.cs:4746
static readonly int beachDistance
const int strip_w
static bool KillWall_CheckFailure(bool fail, Tile tileCache)
static ushort lastTileCounterSearch
static void plantDye(int i, int j, bool exoticPlant=false)
static void UpdateDesertHiveBounds(int x, int y)
Definition WorldGen.cs:2619
static bool IsThisAMushroomTree(int i, int j)
static int[] CountTileTypesInWorld(params int[] oreTypes)
static void PaintTheTemple(byte tilePaintColor, byte wallPaintColor)
Definition WorldGen.cs:2908
static bool RoomNeeds(int npcType)
Definition WorldGen.cs:715
static bool AddBuriedChest(Point point, int contain=0, bool notNearOtherChests=false, int Style=-1)
Definition WorldGen.cs:7257
static bool canSpawn
static void TileMergeAttempt(int myType, bool[] lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void FinishNoTraps()
Definition WorldGen.cs:3099
static void CheckDoorClosed(int i, int j, Tile tileCache, int type)
static void PlaceCannon(int x, int y, ushort type, int style=0)
static void PaintThePyramids(byte tilePaintColor, byte wallPaintColor)
Definition WorldGen.cs:2894
static bool GrowDungeonTree(int i, int j, bool patch=false)
Definition WorldGen.cs:4455
static void CheckChand(int i, int j, int type)
static void KillWall_PlaySounds(int i, int j, Tile tileCache)
static bool PlaceWire4(int i, int j)
static void SetupStatueList()
Definition WorldGen.cs:67
static bool TryKillingTreesAboveIfTheyWouldBecomeInvalid(int i, int j, int newFloorType)
static void setXmasTree(int x, int y, int obj, int style)
Definition WorldGen.cs:7825
static void Reframe(int x, int y, bool resetFrame=false)
static void PlaceJunglePlant(int X2, int Y2, ushort type, int styleX, int styleY)
Definition WorldGen.cs:9721
static void Place2x1(int x, int y, ushort type, int style=0)
Definition WorldGen.cs:9567
static void TileFrameDoWork(int i, int j, bool resetFrame, bool noBreak, bool mapCheck)
static void CaveOpenater(int i, int j)
static string statusText
static void templePart2()
Definition WorldGen.cs:6127
const int MaxCachedUpdates
static void SaveAndQuitCallBack(object threadContext)
Definition WorldGen.cs:1082
static bool SolidTileAllowTopSlope(int i, int j)
static void clearWorld()
Definition WorldGen.cs:1452
static void PlaceDye(int x, int y, int style)
static void CheckChest(int i, int j, int type)
static void Check3x3Wall(int x, int y)
Definition WorldGen.cs:8255
static void Check2x5(int i, int j, int type)
static bool TryGrowingAbigailsFlower(int i, int j)
static int GetDresserItemDrop(int style)
Definition WorldGen.cs:9951
static void PlaceGnome(int x, int y, int style)
static bool roomDoor
static int[] mossType
static void EveryTileFrame()
static List< Color > _coatingColors
static void Check2x2Style(int i, int j, int type)
static void SwitchFountain(int i, int j)
static bool GrowMoreVines(int x, int y)
Definition WorldGen.cs:8784
static void QuickFindHome(int npc)
Definition WorldGen.cs:742
static void Convert(int i, int j, int conversionType, int size=4)
static int KillTile_MakeTileDust(int i, int j, Tile tileCache)
static Rectangle fallingBlockRegion
static void RandomizeBackgroundBasedOnPlayer(UnifiedRandom random, Player player)
Definition WorldGen.cs:1510
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
static DateTime ThreadStarted
static void AttemptFossilShattering(int i, int j, Tile tileCache, bool fail)
static void ImproveAllChestContents()
Definition WorldGen.cs:2984
static void RefreshStrip(int xStart, int yStart, int xEnd, int yEnd, int totalEcho, int totalFramed)
static bool generatingWorld
static void GetTreeLeaf(int x, Tile topTile, Tile t, int treeHeight, [Out] int treeFrame, [Out] int passStyle)
Definition WorldGen.cs:4730
static int tileCounterNum
static unsafe void< GenerateWorld > g__Main_tile_slope_set(int _tileOffset, short slope, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_2)
static int grassSpread
static int CanPlaceProjectilePressurePad(int x, int y, int type=442, int style=0, int direction=0, int alternate=0)
static bool noTileActions
static void MineHouse(int i, int j)
static bool roomTable
static void Check4x3Wall(int x, int y)
Definition WorldGen.cs:8361
static void joinLocalWorldCallBack(object threadContext)
Definition WorldGen.cs:1277
static byte< GenerateWorld > g__Main_tile_slope(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static void Check4x2(int i, int j, int type)
Definition WorldGen.cs:9644
static bool GrowEpicTree(int i, int y)
Definition WorldGen.cs:3483
static void playWorld()
Definition WorldGen.cs:1321
static void SetWorldSizeOnMainThread(object data)
Definition WorldGen.cs:1428
static void SaveAndQuit()
Definition WorldGen.cs:1108
static int altarCount
static bool DungeonPitTrap(int i, int j, ushort tileType, int wallType)
Definition WorldGen.cs:7007
static ushort< GenerateWorld > g__Main_tile_type(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static double TuneOceanDepth(int count, double depth, bool floridaStyle=false)
Definition WorldGen.cs:3306
static bool ShimmerMakeBiome(int X, int Y)
Definition WorldGen.cs:6231
static void ReplaceTile_DoActualReplacement_Single(ushort targetType, int targetStyle, int topLeftX, int topLeftY, Tile t)
static IEntitySource GetProjectileSource_PlayerOrWires(int x, int y, bool fromWiring, Player player)
Definition WorldGen.cs:110
static void Check2x1(int i, int y, ushort type)
Definition WorldGen.cs:9539
static void DungeonHalls(int i, int j, ushort tileType, int wallType, bool forceX=false)
Definition WorldGen.cs:7039
static void TileMergeAttemptWeird(int myType, int changeTo, bool[] exclude, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void neonMossBiome(int i, int j, int maxY=99999)
Definition WorldGen.cs:2041
static int spawnHardBoss
static bool SpawnFallingBlockProjectile(int i, int j, Tile tileCache, Tile tileTopCache, Tile tileBottomCache, int type)
static int maxStack
static bool Chlorophyte(int i, int j)
static void outerTempled(int x, int y)
Definition WorldGen.cs:6067
static void CheckPalmTree(int i, int j)
static bool noMapUpdateRefresh
static bool BlockBelowMakesSandFall(int i, int j)
static bool ScoreRoom_CanBeHomeSpot(int x, int y)
Definition WorldGen.cs:842
static bool SkipFramingBecauseOfGen
static bool SolidOrSlopedTile(int x, int y)
static bool SlopeTile(int i, int j, int slope=0, bool noEffects=false)
static void CloudLake(int i, int j)
static bool GrowSeaOat(int x, int y)
static int bestX
static void TrySpawningTownNPC(int x, int y)
static void CountTiles(int X)
static bool SavingSettings
static void SnowCloudIsland(int i, int j)
static void GetSandfallProjData(int type, [Out] int projType, [Out] int dmg)
static int totalX
static bool< GenerateWorld > g__SolidTileL(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static bool PlaceBamboo(int x, int y)
static void CheckTrapDoor(int x, int y, int type)
static bool Housing_CheckIfInRoom(int i, int j)
Definition WorldGen.cs:866
static bool paintTile(int x, int y, byte color, bool broadCast=false)
Definition WorldGen.cs:8177
static bool MarblePileWithStatues(int X, int Y)
Definition WorldGen.cs:2360
static bool RightEdgeCanBeAttachedTo(int i, int j)
static void CactusFrame(int i, int j)
static bool KillWire2(int i, int j)
static bool FillWallHolesInSpot(int originX, int originY, int maxWallsThreshold)
Definition WorldGen.cs:2122
static void GrowDungeonTree_MakePassage(int j, int W, int minl, int minr, bool noSecretRoom=false)
Definition WorldGen.cs:4515
static void UnlockDoor(int i, int j)
Definition WorldGen.cs:7371
static void CheckProjectilePressurePad(int i, int j)
static void CheckPile(int i, int y)
Definition WorldGen.cs:9527
static unsafe void< GenerateWorld > g__Main_tile_halfBrick_set(int _tileOffset, bool halfBrick, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_2)
static bool Statue(int x, int y, byte paint)
Definition WorldGen.cs:2457
static void RenameWorld(WorldFileData data, string newName, [Optional] Action< string > callback)
Definition WorldGen.cs:1120
static Point RandomWorldPoint(int top=0, int right=0, int bottom=0, int left=0)
Definition WorldGen.cs:3428
static bool ReplaceTile_IsValidCampfire(int type)
static void ExecuteThreadTime()
static void CheckTight(int x, int j)
Definition WorldGen.cs:7678
static void PaintTheLivingTrees(byte livingTreePaintColor, byte livingTreeWallPaintColor)
Definition WorldGen.cs:2950
const int WorldSizeLargeY
static void KillWall(int i, int j, bool fail=false)
static void paintCoatEffect(int x, int y, byte paintCoatId, List< Color > oldColors)
Definition WorldGen.cs:8159
static bool EmptyLiquid(int x, int y)
Definition WorldGen.cs:116
static void SpawnThingsFromPot(int i, int j, int x2, int y2, int style)
static int totalBlood
static void CheckSuper(int x, int y, int type)
Definition WorldGen.cs:9759
static bool CheckTileAnchors(int sx, int sy, int w, int h, int mode, AnchorType anchor)
static void ShimmerMakeBiomeOpening(int direction, int X, int Y, int caveOpenningSize)
Definition WorldGen.cs:6255
static int PlatformProperSides(int x, int y, bool acceptNonOpposing=false)
static int MossConversion(int thisType, int otherType)
static int tileCounter(int x, int y)
Definition WorldGen.cs:2144
static void GenerateWorld(int seed, [Optional] GenerationProgress customProgressObject)
Definition WorldGen.cs:2661
static TownNPCRoomCheckFailureReason roomCheckFailureReason
static void UpdateWorld_UndergroundTile(int i, int j, bool checkNPCSpawns, int wallDist)
static void Place3x3Wall(int x, int y, ushort type, int style)
Definition WorldGen.cs:8239
static bool CanKillTile(int i, int j, WorldGen.SpecialKillTileContext context)
static void ScanTileColumnAndRemoveClumps(int x)
Definition WorldGen.cs:2270
static void CheckSunflower(int i, int j, int type=27)
static void Shimminate()
Definition WorldGen.cs:6272
static int GetTileMossColor(int tileType)
static bool SolidTile(int i, int j, bool noDoors=false)
static bool ShellPile(int X, int Y)
Definition WorldGen.cs:2329
static TownNPCSpawnResult SpawnTownNPC(int x, int y)
Definition WorldGen.cs:443
static int maxRoomTiles
static void PlayLiquidChangeSound(TileChangeType eventType, int x, int y, int count=1)
Definition WorldGen.cs:190
static bool GemTreeWallTest(int wallType)
Definition WorldGen.cs:5181
static bool IsOpenDoorAnchorFrame(int x, int y)
static int desertBG
static bool CheckCactus(int i, int j)
static bool CheckTileFrames(int type, int sx, int sy, int w, int h, int styleX, int frameXinc, int styleY, int frameYinc)
static void hardUpdateWorld(int i, int j)
static void Check3x6(int i, int j, int type)
static bool IsPalmOasisTree(int x)
Definition WorldGen.cs:3474
static int tileCounterMax
static bool roomOccupied
static unsafe void< GenerateWorld > g__TileActiveSet(int _tileOffset, bool isActive, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_2)
static bool DefaultTreeWallTest(int wallType)
Definition WorldGen.cs:5172
static Point GetAdjustedFloorPosition(int x, int y)
Definition WorldGen.cs:2683
static void AddUpAlignmentCounts(bool clearCounts=false)
static void Place2x2(int x, int y, ushort type, int style)
static void CheckGolf1x1(int x, int y, int type)
Definition WorldGen.cs:8499
static bool ReplaceTile_IsValidPlatform(int type)
static PaintingEntry RandHousePicture()
Definition WorldGen.cs:6788
static int KillWall_GetItemDrops(Tile tileCache)
static bool[] houseTile
static bool DoesWindBlowAtThisHeight(int tileY)
static int crimsonBG
static int totalGood
static readonly int cactusWaterLimit
static string currentWorldSeed
static bool IsFitToPlaceFlowerIn(int x, int y, int typeAttemptedToPlace)
static void FixSunflower(int i, int j)
static UnifiedRandom _genRand
static void CheckTreeWithSettings(int x, int y, WorldGen.CheckTreeSettings settings)
static short< GenerateWorld > g__Main_tile_frameX(int x, int y, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_3)
static void CheckGnome(int x, int j)
static void ReplaceTile_EliminateNaturalExtras(int x, int y)
static bool SolidTile(Point p)
static int totalD
static void RandomizeMoonState(UnifiedRandom random, bool garenteeNewStyle=false)
Definition WorldGen.cs:1501
static void nextCount(int x, int y, bool jungle=false, bool lavaOk=false)
Definition WorldGen.cs:1916
static void KillWall_DropItems(int i, int j, Tile tileCache)
static void KillTile_GetTreeDrops(int i, int j, Tile tileCache, bool bonusWood, int dropItem, int secondaryItem)
static void PaintThePurityGrass(byte tilePaintColor, byte wallPaintColor)
Definition WorldGen.cs:2889
static int heartCount
static void KillWall_MakeWallDust(int i, int j, Tile tileCache)
static bool mergeUp
static void PrefixItemFromOptions(Item item, int[] options)
Definition WorldGen.cs:3025
static TileChangeType GetLiquidChangeType(int liquidType, int otherLiquidType)
Definition WorldGen.cs:195
static bool mayanTrap(int x2, int y2)
Definition WorldGen.cs:1653
static void PlacePumpkin(int x, int superY)
static void Check3x5(int i, int j, int type)
static void GetCactusType(int tileX, int tileY, int frameX, int frameY, [Out] bool evil, [Out] bool good, [Out] bool crimson)
Definition WorldGen.cs:9699
static void saveToonWhilePlaying()
Definition WorldGen.cs:1380
static void DestroyHeart(int i, int j)
const int ItemSpawnProtectionTime
static bool HasValidGroundForAbigailsFlowerBelowSpot(int x, int y)
static bool BunnyCannonCanFire()
static int treeBG1
static void SpreadGrass(int i, int j, int dirt=0, int grass=2, bool repeat=true, [Optional] TileColorCache color)
static void UnspawnTravelNPC()
Definition WorldGen.cs:423
static bool EligibleForSpawnProtection(Item item)
Definition WorldGen.cs:5660
static byte tEvil
static bool PlacePot(int x, int y, ushort type=28, int style=0)
static int[] roomCeilingX
static bool IsBelowANonHammeredPlatform(int x, int y)
Definition WorldGen.cs:7534
static void WaitForThreadTime()
static void GrowLivingTreePassageRoom(int minl, int minr, int Y)
Definition WorldGen.cs:4640
static void RandomizeCaveBackgrounds()
Definition WorldGen.cs:1611
static void LaunchRocket(int x, int y, bool fromWiring)
static int GetCampfireItemDrop(int style)
Definition WorldGen.cs:9957
static void Shimmerator(int x, int y, bool jungle=false, bool lavaOk=false)
Definition WorldGen.cs:6297
static bool IsItATrigger(Tile tile)
Definition WorldGen.cs:3273
static void HellHouse(int i, int j, byte type=76, byte wall=13)
Definition WorldGen.cs:5954
static bool GrowTree(int i, int y)
Definition WorldGen.cs:4828
static void PlaceMan(int i, int j, int dir)
Definition WorldGen.cs:9086
static void AddGenerationPass(GenPass pass)
Definition WorldGen.cs:2189
static int snowBG
static bool GetCommonTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static void Place6x4Wall(int x, int y, ushort type, int style)
Definition WorldGen.cs:8381
static int CountGrowingPlantTiles(int x, int y, int range, int type)
static void MoveReplaceTileAnchor(int x, int y, ushort targetType, Tile t)
static void saveAndPlayCallBack(object threadContext)
Definition WorldGen.cs:1327
static bool currentlyTryingToUseAlternateHousingSpot
static void MatureTheHerbPlants()
Definition WorldGen.cs:8813
static void dropXmasTree(int x, int y, int obj)
Definition WorldGen.cs:7763
static int checkXmasTreeDrop(int x, int y, int obj)
Definition WorldGen.cs:7721
static bool PlantSeaOat(int x, int y)
static void GetRidOfCultists()
static void Place1x2Top(int x, int y, ushort type, int style)
Definition WorldGen.cs:9420
static void ShimmerRemoveWater()
Definition WorldGen.cs:6206
static bool SolidTileAllowLeftSlope(int i, int j)
static bool LeftEdgeCanBeAttachedTo(int i, int j)
static void dropMeteor()
Definition WorldGen.cs:903
const int WorldSizeMediumY
static bool ReplaceTile_IsValidTorch(int type)
static bool[] gem
static int countDirtTiles(int x, int y)
Definition WorldGen.cs:1929
static int rockCount
static void ShakeTree(int i, int j)
static WorldGenerator _generator
static void UpdateLunarApocalypse()
static double oceanLevel
Definition WorldGen.cs:2576
static bool PlaceWire(int i, int j)
static bool SolidTile2(int i, int j)
static void Place4x3Wall(int x, int y, ushort type, int style)
Definition WorldGen.cs:8345
static void Place1xX(int x, int y, ushort type, int style=0)
Definition WorldGen.cs:7697
static int iceCount
static void ResetTreeShakes()
static void PlaceWall(int i, int j, int type, bool mute=false)
static void TileMergeAttemptFrametest(int i, int j, int myType, bool[] lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void Place3x1(int x, int y, ushort type, int style=0)
static Point GetTopLeftAndStyles(int x, int y, int w, int h, int frameXinc, int frameYinc)
static void TriggerLunarApocalypse()
static bool worldCleared
static EntitySource_TileBreak GetProjectileSource_TileBreak(int x, int y)
Definition WorldGen.cs:82
static void CheckUnderwaterPlant(ushort type, int x, int y)
static void ExplodeMine(int i, int j, bool fromWiring)
Definition WorldGen.cs:5598
static void playWorldCallBack(object threadContext)
Definition WorldGen.cs:1133
static bool AddBuriedChest(int i, int j, int contain=0, bool notNearOtherChests=false, int Style=-1, bool trySlope=false, ushort chestTileType=0)
Definition WorldGen.cs:7339
static void GrowGlowTulips()
Definition WorldGen.cs:8805
static void ToggleGemLock(int i, int j, bool on)
Definition WorldGen.cs:9267
static void PlaceStatueTrap(int x, int y)
Definition WorldGen.cs:72
static void PlaceUncheckedStalactite(int x, int y, bool preferSmall, int variation, bool spiders)
Definition WorldGen.cs:7576
static bool IsNPCEvictable(int n)
Definition WorldGen.cs:344
static void PlaceOnTable1x1(int x, int y, int type, int style=0)
Definition WorldGen.cs:8573
static void GrowWeb(int i, int j)
static void GetSectionBounds(int sectionStartX, int sectionStartY, int sectionEndXInclusive, int sectionEndYInclusive, [Out] int tileStartX, [Out] int tileEndX, [Out] int tileStartY, [Out] int tileEndY)
static bool PlatformProperTopFrame(short frameX)
static void FixChands()
static void DirtyRockRunner(int i, int j)
static int GetTreeFrame(Tile t)
static int maxCount
static int spawnDelay
static void CrimStart(int i, int j)
static bool SolidTileAllowBottomSlope(int i, int j)
static void ReplaceTIle_DoActualReplacement(ushort targetType, int targetStyle, int topLeftX, int topLeftY, Tile t)
static void CheckTorch(int x, int y)
static void DontStarveTryWateringTile(int x, int y)
static int roomY1
static int oceanBG
static void Place3x3(int x, int y, ushort type, int style=0)
static bool IsDungeon(int x, int y)
Definition WorldGen.cs:7315
static int _genRandSeed
static void ResetGenerator()
Definition WorldGen.cs:1638
static bool PlaceObject(int x, int y, int type, bool mute=false, int style=0, int alternate=0, int random=-1, int direction=-1)
static bool drunkWorldGen
static void StopMergingByInvsibility(int currentMerge, Tile block, bool wantedInvisibilityState)
static EntitySource_ShakeTree GetItemSource_ShakeTree(int x, int y)
Definition WorldGen.cs:104
static bool skipFramingDuringGen
static PaintingEntry RandHellPicture()
Definition WorldGen.cs:6736
static int GetNextJungleChestItem()
Definition WorldGen.cs:2229
static void KillTile_PlaySounds(int i, int j, bool fail, Tile tileCache)
static void TileRunner(int i, int j, double strength, int steps, int type, bool addTile=false, double speedX=0.0, double speedY=0.0, bool noYChange=false, bool overRide=true, int ignoreTileType=-1)
static void worldGenCallback(object threadContext)
Definition WorldGen.cs:1019
static int maxTileCount
static bool PlaceDoor(int i, int j, int type, int style=0)
Definition WorldGen.cs:5701
static int[] roomCeilingY
static bool ReplaceTile_IsValidDresser(int type)
static void BroadcastText(NetworkText text, Vector3 color)
static int KillTile_GetTileDustAmount(bool fail, Tile tileCache)
static BackgroundChangeFlashInfo BackgroundsCache
static bool IsUndergroundDesert(int x, int y)
Definition WorldGen.cs:7291
static int GetItemDrop_PicnicTables(int style)
Definition WorldGen.cs:7958
static bool paintCoatWall(int x, int y, byte paintCoatId, bool broadcast=false)
Definition WorldGen.cs:8211
static bool PlaceAlch(int x, int y, int style)
Definition WorldGen.cs:8594
static List< Color > coatingColors(Tile tile, bool block)
Definition WorldGen.cs:8113
static int bestY
static void GrowUndergroundTree(int i, int y)
Definition WorldGen.cs:5474
static int lastMaxTilesY
static bool ReplaceWall(int x, int y, ushort targetWall)
static bool VanityTreeGroundTest(int tileType)
Definition WorldGen.cs:5214
static void ConvertSkyIslands(int convertType, bool growTrees)
Definition WorldGen.cs:2970
static bool Pyramid(int i, int j)
Definition WorldGen.cs:3855
static bool InWorld(int x, int y, int fluff=0)
Definition WorldGen.cs:1952
static byte tGood
static void ShootFromCannon(int x, int y, int angle, int ammo, int Damage, float KnockBack, int owner, bool fromWire)
static List< WorldGen.PendingRefame > pendingGlobalFrames
static bool PlaceSign(int x, int y, ushort type, int Style=0)
Definition WorldGen.cs:8057
static void TileMergeAttempt(int myType, int lookfor, int up, int down, int left, int right)
static void ShroomPatch(int i, int j)
static bool IsRope(int x, int y)
static bool IsRoomConsideredOccupiedForNPCIndex(int npc)
Definition WorldGen.cs:760
static void PlantCheck(int x, int y)
static bool PlaceActuator(int i, int j)
static int GetChestItemDrop(int x, int y, int type)
static bool WillWaterPlacedHereStayPut(int x, int y)
static void Place3x4(int x, int y, ushort type, int style)
static void CheckMB(int i, int j, int type)
static bool AnchorValid(Tile tileCache, AnchorType anchor)
static void CrimVein(Vector2D position, Vector2D velocity)
static void CheckFoodPlatter(int x, int y, int type)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)
static void SquareTileFrame(int i, int j, bool resetFrame=true)
static bool CheckSeaOat(int x, int y)
static List< WorldGen.nextCountDirtNode > _dirtCountAvailableNodes
static bool OrePatch(int X, int Y)
Definition WorldGen.cs:2485
static bool nearbyChlorophyte(int i, int j)
static void FinaliseOnMainThread(object threadContext)
Definition WorldGen.cs:1301
static bool GetVanityTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static void RefreshSections(int startX, int startY, int endX, int endY)
static bool CanCutTile(int x, int y, TileCuttingContext context)
static void gemCave(int x, int y)
Definition WorldGen.cs:1979
static void Place5x4(int x, int y, ushort type, int style)
static void PaintTheTrees()
Definition WorldGen.cs:2811
static bool placeTrap(int x2, int y2, int type=-1)
Definition WorldGen.cs:1847
static bool shadowOrbSmashed
static bool< GenerateWorld > g__Main_tile_honey(int x, int y, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_3)
static void WavyCaverer(int startX, int startY, double waveStrengthScalar, double wavePercentScalar, int steps, int type)
static bool GemTreeGroundTest(int tileType)
Definition WorldGen.cs:5205
static void PlaceBanner(int x, int y, ushort type, int style=0)
Definition WorldGen.cs:9024
static IEntitySource GetItemSource_FromTreeShake(int x, int y)
static bool stopDrops
static void CheckXmasTree(int x, int y)
Definition WorldGen.cs:7889
static int randGem()
Definition WorldGen.cs:1994
static bool StonePatch(int X, int Y)
Definition WorldGen.cs:2294
static bool AllowsSandfall(Tile tileTopCache)
static bool IsHarvestableHerbWithSeed(int type, int style)
static void WaterCheck()
static void makeTemple(int x, int y)
Definition WorldGen.cs:6085
static void CheckJunglePlant(int i, int j, int type)
Definition WorldGen.cs:9726
static void CheckCatTail(int x, int j)
static bool NearFriendlyWall(int x, int y)
static bool notTheBees
static bool spawnMeteor
static bool getGoodWorldGen
static bool paintCoatTile(int x, int y, byte paintCoatId, bool broadcast=false)
Definition WorldGen.cs:8190
static ManagedThread serverLoadWorld()
Definition WorldGen.cs:1418
static bool mergeDown
static void PlaceTight(int x, int y, bool spiders=false)
Definition WorldGen.cs:7552
static void ChasmRunnerSideways(int i, int j, int direction, int steps)
static bool WouldTileReplacementBeBlockedByLiquid(int x, int y, int liquidType)
static Queue< Action< StructureMap > > _postGenActions
static void AddTrees(bool undergroundOnly=false)
Definition WorldGen.cs:5583
static void ClearBrokenTraps(Point startTileCoords, List< Point > pointsWeAlreadyWentOver)
Definition WorldGen.cs:3300
static int roomX1
static int[] tileCounts
static bool SolidTile3(Tile t)
static int countTiles(int x, int y, bool jungle=false, bool lavaOk=false)
Definition WorldGen.cs:1906
static void CrimPlaceHearts()
static bool CanPlaceSink(int x, int y, ushort type, int style)
static bool HasAnyWireNearby(int sourceX, int sourceY, int boxSpread)
static bool mergeLeft
static void Place2x2Style(int x, int y, ushort type, int style=0)
static void ShimmeratorNext(int x, int y)
Definition WorldGen.cs:6311
static int catTailDistance
static void CheckBanner(int x, int j, byte type)
Definition WorldGen.cs:9006
static uint[] CachedMapTileUpdates
static void GrowCatTail(int x, int j)
static bool ReplaceTile(int x, int y, ushort targetType, int targetStyle)
static IEntitySource GetItemSource_FromWallBreak(int x, int y)
static void Place2xX(int x, int y, ushort type, int style=0)
Definition WorldGen.cs:7947
static int numRoomTiles
static Point RandomWorldPoint(int padding)
Definition WorldGen.cs:3418
static void setMoss(int x, int y)
Definition WorldGen.cs:2071
static bool IsSafeFromRain(int startX, int startY)
static double MakeDungeon_Pictures(int[] roomWall, double count)
Definition WorldGen.cs:6411
const int strip_h
static bool PlaceSandTrap(int i, int j)
Definition WorldGen.cs:6928
static void Cavinator(int i, int j, int steps)
static void SpawnPlanteraThorns(Vector2 position)
static bool SolidTile(Tile tileCache, bool noDoors=false)
static bool CheckBoulderChest(int i, int j)
Definition WorldGen.cs:9807
static void FinishGetGoodWorld()
Definition WorldGen.cs:3083
static void PlaceChestDirect(int x, int y, ushort type, int style, int id)
static void DungeonRoom(int i, int j, ushort tileType, int wallType)
Definition WorldGen.cs:7079
static List< WorldGen.nextCountNode > _countOpenNodes
static bool AddLifeCrystal(int i, int j)
Definition WorldGen.cs:5787
static bool IsTileALeafyTreeTop(int i, int j)
Definition WorldGen.cs:4809
static int PlaceChest(int x, int y, ushort type=21, bool notNearOtherChests=false, int style=0)
static TreeTypes GetTreeType(int tileType)
static bool CheckTileBreakability2_ShouldTileSurvive(int x, int y)
static void CheckMan(int i, int j)
Definition WorldGen.cs:9279
static bool SolidOrSlopedTile(Tile tile)
static void kickOut(int n)
Definition WorldGen.cs:355
static bool IsTileNearby(int x, int y, int type, int distance)
Definition WorldGen.cs:1817
static void Lakinater(int i, int j, double strengthMultiplier=1.0)
static void PlaceWoman(int i, int j, int dir)
Definition WorldGen.cs:9151
static void tileCounterNext(int x, int y)
Definition WorldGen.cs:2155
static void FillWallHolesInArea(Rectangle worldCoordsArea)
Definition WorldGen.cs:2079
static bool AshTreeGroundTest(int tileType)
Definition WorldGen.cs:5223
static Color paintColor(int color)
Definition WorldGen.cs:8098
static void KillTile_DropBait(int i, int j, Tile tileCache)
static bool KillActuator(int i, int j)
static void Check6x4Wall(int x, int y)
Definition WorldGen.cs:8397
static int GetHollowTreeFoliageStyle()
static EntitySource_ShakeTree GetNPCSource_ShakeTree(int x, int y)
Definition WorldGen.cs:92
static int CachedMapTileUpdateCount
static bool IsGeneratingHardMode
static int GetItemDrop_Toilet(int style)
Definition WorldGen.cs:7970
bool SectionNeedsRefresh(int x, int y)
void SetSectionAsRefreshed(int x, int y)
bool SectionLoaded(int x, int y)
bool SectionFramed(int x, int y)
static void CheckThreadTerminiate()
static void EndThreadProfiling()
Definition Profiler.cs:20
static DateTime Now
Definition DateTime.cs:530
byte color()
Definition Tile.cs:802
bool wire4()
Definition Tile.cs:1097
bool wire3()
Definition Tile.cs:1067
void liquidType(int liquidType)
Definition Tile.cs:936
bool nactive()
Definition Tile.cs:1187
bool topSlope()
Definition Tile.cs:644
void ClearBlockPaintAndCoating()
Definition Tile.cs:1429
byte liquid
Definition Tile.cs:110
bool IsLoaded
Definition Tile.cs:34
bool inActive()
Definition Tile.cs:1211
void ResetToType(ushort type)
Definition Tile.cs:1298
short frameY
Definition Tile.cs:285
ushort type
Definition Tile.cs:58
short frameX
Definition Tile.cs:244
bool invisibleBlock()
Definition Tile.cs:494
bool active()
Definition Tile.cs:1241
static void StartNewSearch()
Definition Tile.cs:343
int blockType()
Definition Tile.cs:795
byte slope()
Definition Tile.cs:740
bool lava()
Definition Tile.cs:845
bool shimmer()
Definition Tile.cs:905
ushort wall
Definition Tile.cs:85
bool wire2()
Definition Tile.cs:1037
void ClearTile()
Definition Tile.cs:368
bool actuator()
Definition Tile.cs:1157
ushort TileSeachUID
Definition Tile.cs:323
bool wire()
Definition Tile.cs:1007
bool halfBrick()
Definition Tile.cs:1127
delegate bool GroundValidTest(int groundTileType)
WorldGen.CheckTreeSettings.GroundValidTest IsGroundValid
WorldGen.GrowTreeSettings.IsTileFitForTreeGroundTest GroundTest
delegate bool IsWallTypeFitForTreeBack(int wallType)
delegate bool IsTileFitForTreeGroundTest(int tileType)
WorldGen.GrowTreeSettings.IsWallTypeFitForTreeBack WallTest
void Cull(int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)