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
CultistRitual.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000A4E RID: 2638
8 public class CultistRitual
9 {
10 // Token: 0x06004DAF RID: 19887 RVA: 0x00273FF4 File Offset: 0x002721F4
11 public static void UpdateTime()
12 {
13 if (!true)
14 {
15 }
17 }
18
19 // Token: 0x06004DB0 RID: 19888 RVA: 0x00274028 File Offset: 0x00272228
20 public static void CultistSlain()
21 {
22 }
23
24 // Token: 0x06004DB1 RID: 19889 RVA: 0x00274038 File Offset: 0x00272238
25 public static void TabletDestroyed()
26 {
27 }
28
29 // Token: 0x06004DB2 RID: 19890 RVA: 0x00274048 File Offset: 0x00272248
30 public static void TrySpawning(int x, int y)
31 {
32 int num = 1;
33 if (num == 0)
34 {
35 }
36 bool flag = WorldGen.PlayerLOS(0, y);
37 if (num == 0)
38 {
39 }
40 bool flag2 = WorldGen.PlayerLOS(0, y);
41 bool flag3 = CultistRitual.CheckRitual(x, y);
42 }
43
44 // Token: 0x06004DB3 RID: 19891 RVA: 0x00274078 File Offset: 0x00272278
45 private static bool CheckRitual(int x, int y)
46 {
47 bool flag = NPC.AnyNPCs(437);
48 bool flag2;
49 return flag2;
50 }
51
52 // Token: 0x06004DB4 RID: 19892 RVA: 0x00274094 File Offset: 0x00272294
53 public static bool CheckFloor(Vector2 Center, [Out] Point[] spawnPoints)
54 {
55 int num = 4;
56 long num2 = 0L;
57 bool flag = WorldGen.SolidTile(0, num, num2 != 0L);
58 if (!false)
59 {
60 }
61 long num3 = 0L;
63 long num4 = 0L;
64 ushort type = tileSafely.type;
65 bool flag5;
66 if (false)
67 {
68 if (!false)
69 {
70 }
71 bool flag2 = Collision.SolidTiles(42168472, (int)num4, (int)num3, 0);
72 if (!false)
73 {
74 }
75 bool flag3 = Collision.SolidTiles(42168472, (int)num4, (int)num3, 0);
76 if (!false)
77 {
78 }
79 bool flag4 = Collision.SolidTiles(42168472, (int)num4, (int)num3, 0);
80 if (!false)
81 {
82 }
83 flag5 = Collision.SolidTiles(42168472, (int)num4, (int)num3, 0);
84 }
85 return flag5;
86 }
87
88 // Token: 0x06004DB5 RID: 19893 RVA: 0x00274124 File Offset: 0x00272324
90 {
91 }
92
93 // Token: 0x040086A2 RID: 34466
94 public static int delay;
95
96 // Token: 0x040086A3 RID: 34467
97 public static int recheck;
98
99 // Token: 0x040086A4 RID: 34468
100 public const int delayStart = 86400;
101
102 // Token: 0x040086A5 RID: 34469
103 public const int respawnDelay = 43200;
104
105 // Token: 0x040086A6 RID: 34470
106 private const int timePerCultist = 3600;
107
108 // Token: 0x040086A7 RID: 34471
109 private const int recheckStart = 600;
110 }
111}
class f__AnonymousType0<< Count > j__TPar
static bool SolidTiles(Vector2 position, int width, int height)
static Tile GetTileSafely(Vector2 position)
Definition Framing.cs:356
static bool CheckRitual(int x, int y)
static bool CheckFloor(Vector2 Center, [Out] Point[] spawnPoints)
static void TrySpawning(int x, int y)
static bool NetClientOnly
Definition Main.cs:5407
static bool AnyNPCs(int Type)
Definition NPC.cs:7102
static bool SolidTile(short tileSHeader, ushort tileType)
static bool PlayerLOS(int x, int y)
ushort type
Definition Tile.cs:58