Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SimulationConditionSetters.cs
Go to the documentation of this file.
2
4
6{
7 public static FastConditionSetter HardMode = new FastConditionSetter(delegate
8 {
9 Main.hardMode = true;
10 }, delegate
11 {
12 Main.hardMode = false;
13 });
14
16 {
17 Main.GameMode = 1;
18 info.runningExpertMode = true;
19 }, delegate(SimulatorInfo info)
20 {
21 Main.GameMode = 0;
22 info.runningExpertMode = false;
23 });
24
25 public static FastConditionSetter Eclipse = new FastConditionSetter(delegate
26 {
27 Main.eclipse = true;
28 }, delegate
29 {
30 Main.eclipse = false;
31 });
32
34 {
35 Main.bloodMoon = true;
36 }, delegate
37 {
38 Main.bloodMoon = false;
39 });
40
42 {
43 NPC.downedMechBoss1 = (NPC.downedMechBoss2 = (NPC.downedMechBoss3 = (NPC.downedMechBossAny = true)));
44 }, delegate
45 {
46 NPC.downedMechBoss1 = (NPC.downedMechBoss2 = (NPC.downedMechBoss3 = (NPC.downedMechBossAny = false)));
47 });
48
50 {
51 NPC.downedPlantBoss = true;
52 }, delegate
53 {
54 NPC.downedPlantBoss = false;
55 });
56
58
60 {
61 Main._shouldUseWindyDayMusic = true;
62 }, delegate
63 {
64 Main._shouldUseWindyDayMusic = false;
65 });
66
67 public static FastConditionSetter MidDay = new FastConditionSetter(delegate
68 {
69 Main.dayTime = true;
70 Main.time = 27000.0;
71 }, delegate(SimulatorInfo info)
72 {
73 info.ReturnToOriginalDaytime();
74 });
75
77 {
78 Main.dayTime = false;
79 Main.time = 16200.0;
80 }, delegate(SimulatorInfo info)
81 {
82 info.ReturnToOriginalDaytime();
83 });
84
86 {
87 Main.slimeRain = true;
88 }, delegate
89 {
90 Main.slimeRain = false;
91 });
92
94
96
98
100}