1
1
using HarmonyLib ;
2
+ using LudeonTK ;
2
3
using RimWorld ;
3
4
using System . Collections . Generic ;
4
5
using System . Linq ;
@@ -33,73 +34,73 @@ static void SpawnZombie(ZombieType type, bool appearDirectly)
33
34
_ = tickManager . allZombiesCached . Add ( zombie ) ;
34
35
}
35
36
36
- [ DebugAction ( "Zombieland" , "Spawn: Zombie (dig out)" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
37
+ [ DebugAction ( "Zombieland" , "Spawn: Zombie (dig out)" ) ]
37
38
private static void SpawnZombieDigOut ( )
38
39
{
39
40
SpawnZombie ( ZombieType . Normal , false ) ;
40
41
}
41
42
42
- [ DebugAction ( "Zombieland" , "Spawn: Zombie (standing)" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
43
+ [ DebugAction ( "Zombieland" , "Spawn: Zombie (standing)" ) ]
43
44
private static void SpawnZombieStanding ( )
44
45
{
45
46
SpawnZombie ( ZombieType . Normal , true ) ;
46
47
}
47
48
48
- [ DebugAction ( "Zombieland" , "Spawn: Suicide bomber" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
49
+ [ DebugAction ( "Zombieland" , "Spawn: Suicide bomber" ) ]
49
50
private static void SpawnSuicideBomber ( )
50
51
{
51
52
SpawnZombie ( ZombieType . SuicideBomber , true ) ;
52
53
}
53
54
54
- [ DebugAction ( "Zombieland" , "Spawn: Toxic Splasher" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
55
+ [ DebugAction ( "Zombieland" , "Spawn: Toxic Splasher" ) ]
55
56
private static void SpawnToxicSplasher ( )
56
57
{
57
58
SpawnZombie ( ZombieType . ToxicSplasher , true ) ;
58
59
}
59
60
60
- [ DebugAction ( "Zombieland" , "Spawn: Tanky Operator" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
61
+ [ DebugAction ( "Zombieland" , "Spawn: Tanky Operator" ) ]
61
62
private static void SpawnTankyOperator ( )
62
63
{
63
64
SpawnZombie ( ZombieType . TankyOperator , true ) ;
64
65
}
65
66
66
- [ DebugAction ( "Zombieland" , "Spawn: Miner" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
67
+ [ DebugAction ( "Zombieland" , "Spawn: Miner" ) ]
67
68
private static void SpawnMiner ( )
68
69
{
69
70
SpawnZombie ( ZombieType . Miner , true ) ;
70
71
}
71
72
72
- [ DebugAction ( "Zombieland" , "Spawn: Electrifier" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
73
+ [ DebugAction ( "Zombieland" , "Spawn: Electrifier" ) ]
73
74
private static void SpawnElectrifier ( )
74
75
{
75
76
SpawnZombie ( ZombieType . Electrifier , true ) ;
76
77
}
77
78
78
- [ DebugAction ( "Zombieland" , "Spawn: Albino" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
79
+ [ DebugAction ( "Zombieland" , "Spawn: Albino" ) ]
79
80
private static void SpawnAlbino ( )
80
81
{
81
82
SpawnZombie ( ZombieType . Albino , true ) ;
82
83
}
83
84
84
- [ DebugAction ( "Zombieland" , "Spawn: Dark Slimer" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
85
+ [ DebugAction ( "Zombieland" , "Spawn: Dark Slimer" ) ]
85
86
private static void SpawnDarkSlimer ( )
86
87
{
87
88
SpawnZombie ( ZombieType . DarkSlimer , true ) ;
88
89
}
89
90
90
- [ DebugAction ( "Zombieland" , "Spawn: Healer" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
91
+ [ DebugAction ( "Zombieland" , "Spawn: Healer" ) ]
91
92
private static void SpawnHealer ( )
92
93
{
93
94
SpawnZombie ( ZombieType . Healer , true ) ;
94
95
}
95
96
96
- [ DebugAction ( "Zombieland" , "Spawn: Random zombie" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
97
+ [ DebugAction ( "Zombieland" , "Spawn: Random zombie" ) ]
97
98
private static void SpawnRandomZombie ( )
98
99
{
99
100
SpawnZombie ( ZombieType . Random , true ) ;
100
101
}
101
102
102
- [ DebugAction ( "Zombieland" , "Trigger: Incident" , false , false , false , 0 , false , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
103
+ [ DebugAction ( "Zombieland" , "Trigger: Incident" ) ]
103
104
private static void TriggerZombieIncident ( )
104
105
{
105
106
var tm = Find . CurrentMap . GetComponent < TickManager > ( ) ;
@@ -112,55 +113,55 @@ private static void TriggerZombieIncident()
112
113
}
113
114
}
114
115
115
- [ DebugAction ( "Zombieland" , "Trigger: Spitter Event" , false , false , false , 0 , false , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
116
+ [ DebugAction ( "Zombieland" , "Trigger: Spitter Event" ) ]
116
117
private static void SpawnZombieSpitterEvent ( )
117
118
{
118
119
ZombieSpitter . Spawn ( Find . CurrentMap ) ;
119
120
}
120
121
121
- [ DebugAction ( "Zombieland" , "Spawn: Incident (4)" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
122
+ [ DebugAction ( "Zombieland" , "Spawn: Incident (4)" ) ]
122
123
private static void SpawnZombieIncident_4 ( )
123
124
{
124
125
_ = ZombiesRising . TryExecute ( Find . CurrentMap , 4 , UI . MouseCell ( ) , false , true ) ;
125
126
}
126
127
127
- [ DebugAction ( "Zombieland" , "Spawn: Incident (25)" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
128
+ [ DebugAction ( "Zombieland" , "Spawn: Incident (25)" ) ]
128
129
private static void SpawnZombieIncident_25 ( )
129
130
{
130
131
_ = ZombiesRising . TryExecute ( Find . CurrentMap , 25 , UI . MouseCell ( ) , false , true ) ;
131
132
}
132
133
133
- [ DebugAction ( "Zombieland" , "Spawn: Incident (100)" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
134
+ [ DebugAction ( "Zombieland" , "Spawn: Incident (100)" ) ]
134
135
private static void SpawnZombieIncident_100 ( )
135
136
{
136
137
_ = ZombiesRising . TryExecute ( Find . CurrentMap , 100 , UI . MouseCell ( ) , false , true ) ;
137
138
}
138
139
139
- [ DebugAction ( "Zombieland" , "Spawn: Incident (200)" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
140
+ [ DebugAction ( "Zombieland" , "Spawn: Incident (200)" ) ]
140
141
private static void SpawnZombieIncident_200 ( )
141
142
{
142
143
_ = ZombiesRising . TryExecute ( Find . CurrentMap , 200 , UI . MouseCell ( ) , false , true ) ;
143
144
}
144
145
145
- [ DebugAction ( "Zombieland" , "Spawn: Zombie Blob" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
146
+ [ DebugAction ( "Zombieland" , "Spawn: Zombie Blob" ) ]
146
147
private static void SpawnZombieBlob ( )
147
148
{
148
149
ZombieBlob . Spawn ( Find . CurrentMap , UI . MouseCell ( ) ) ;
149
150
}
150
151
151
- [ DebugAction ( "Zombieland" , "Spawn: Add Blob Cell" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
152
+ [ DebugAction ( "Zombieland" , "Spawn: Add Blob Cell" ) ]
152
153
private static void AddBlobCell ( )
153
154
{
154
155
ZombieBlob . AddCell ( Find . CurrentMap , UI . MouseCell ( ) ) ;
155
156
}
156
157
157
- [ DebugAction ( "Zombieland" , "Spawn: Zombie Spitter" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
158
+ [ DebugAction ( "Zombieland" , "Spawn: Zombie Spitter" ) ]
158
159
private static void SpawnZombieSpitterOnCell ( )
159
160
{
160
161
ZombieSpitter . Spawn ( Find . CurrentMap , UI . MouseCell ( ) ) ;
161
162
}
162
163
163
- [ DebugAction ( "Zombieland" , "Remove: All Zombies" , false , false , false , 0 , false , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
164
+ [ DebugAction ( "Zombieland" , "Remove: All Zombies" ) ]
164
165
private static void RemoveAllZombies ( )
165
166
{
166
167
var things = Find . CurrentMap . listerThings . AllThings . ToArray ( ) ;
@@ -171,7 +172,7 @@ private static void RemoveAllZombies()
171
172
}
172
173
}
173
174
174
- [ DebugAction ( "Zombieland" , "Convert: Make Zombie" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
175
+ [ DebugAction ( "Zombieland" , "Convert: Make Zombie" ) ]
175
176
private static void ConvertToZombie ( )
176
177
{
177
178
var map = Find . CurrentMap ;
@@ -183,7 +184,7 @@ private static void ConvertToZombie()
183
184
}
184
185
}
185
186
186
- [ DebugAction ( "Zombieland" , "Apply: Trigger rotting" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
187
+ [ DebugAction ( "Zombieland" , "Apply: Trigger rotting" ) ]
187
188
private static void ApplyTriggerRotting ( )
188
189
{
189
190
foreach ( var thing in Find . CurrentMap . thingGrid . ThingsAt ( UI . MouseCell ( ) ) )
@@ -194,7 +195,7 @@ private static void ApplyTriggerRotting()
194
195
}
195
196
}
196
197
197
- [ DebugAction ( "Zombieland" , "Apply: Add zombie bite" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
198
+ [ DebugAction ( "Zombieland" , "Apply: Add zombie bite" ) ]
198
199
private static void ApplyAddZombieBite ( )
199
200
{
200
201
foreach ( var thing in Find . CurrentMap . thingGrid . ThingsAt ( UI . MouseCell ( ) ) )
@@ -221,7 +222,7 @@ private static void ApplyAddZombieBite()
221
222
}
222
223
}
223
224
224
- [ DebugAction ( "Zombieland" , "Apply: Remove infections" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
225
+ [ DebugAction ( "Zombieland" , "Apply: Remove infections" ) ]
225
226
private static void ApplyRemoveInfections ( )
226
227
{
227
228
var tmpHediffInjuryZombieBites = new List < Hediff_Injury_ZombieBite > ( ) ;
@@ -242,7 +243,7 @@ private static void ApplyRemoveInfections()
242
243
}
243
244
}
244
245
245
- [ DebugAction ( "Zombieland" , "Apply: Zombie raging" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
246
+ [ DebugAction ( "Zombieland" , "Apply: Zombie raging" ) ]
246
247
private static void ApplyZombieRaging ( )
247
248
{
248
249
foreach ( var thing in Find . CurrentMap . thingGrid . ThingsAt ( UI . MouseCell ( ) ) )
@@ -253,7 +254,7 @@ private static void ApplyZombieRaging()
253
254
}
254
255
}
255
256
256
- [ DebugAction ( "Zombieland" , "Apply: Add 1% bloodloss" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
257
+ [ DebugAction ( "Zombieland" , "Apply: Add 1% bloodloss" ) ]
257
258
private static void ApplyHalfConsciousness ( )
258
259
{
259
260
foreach ( var thing in Find . CurrentMap . thingGrid . ThingsAt ( UI . MouseCell ( ) ) )
@@ -270,7 +271,7 @@ private static void ApplyHalfConsciousness()
270
271
}
271
272
}
272
273
273
- [ DebugAction ( "Zombieland" , "Create Decontamination Quest" , false , false , false , 0 , false , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
274
+ [ DebugAction ( "Zombieland" , "Create Decontamination Quest" ) ]
274
275
private static void CreateDecontaminationQuest ( )
275
276
{
276
277
ContaminationManager . Instance . DecontaminationQuest ( ) ;
@@ -309,25 +310,25 @@ void contaminate(IntVec3 cell)
309
310
}
310
311
}
311
312
312
- [ DebugAction ( "Zombieland" , "Apply: Add 0.01 contamination" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
313
+ [ DebugAction ( "Zombieland" , "Apply: Add 0.01 contamination" ) ]
313
314
private static void AddVeryLittleContamination ( )
314
315
{
315
316
FloodFillContamination ( UI . MouseCell ( ) , 0.01f , 500 ) ;
316
317
}
317
318
318
- [ DebugAction ( "Zombieland" , "Apply: Add 0.1 contamination" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
319
+ [ DebugAction ( "Zombieland" , "Apply: Add 0.1 contamination" ) ]
319
320
private static void AddLittleContamination ( )
320
321
{
321
322
FloodFillContamination ( UI . MouseCell ( ) , 0.1f , 500 ) ;
322
323
}
323
324
324
- [ DebugAction ( "Zombieland" , "Apply: Add 1.0 contamination" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
325
+ [ DebugAction ( "Zombieland" , "Apply: Add 1.0 contamination" ) ]
325
326
private static void AddSomeContamination ( )
326
327
{
327
328
FloodFillContamination ( UI . MouseCell ( ) , 1f , 500 ) ;
328
329
}
329
330
330
- [ DebugAction ( "Zombieland" , "Apply: Clear contamination" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
331
+ [ DebugAction ( "Zombieland" , "Apply: Clear contamination" ) ]
331
332
private static void ClearContamination ( )
332
333
{
333
334
var cell = UI . MouseCell ( ) ;
@@ -336,7 +337,7 @@ private static void ClearContamination()
336
337
map . thingGrid . ThingsAt ( cell ) . Do ( thing => thing . ClearContamination ( ) ) ;
337
338
}
338
339
339
- [ DebugAction ( "Zombieland" , "Apply: Add 0.1 floor contamination" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
340
+ [ DebugAction ( "Zombieland" , "Apply: Add 0.1 floor contamination" ) ]
340
341
private static void AddSomeFloorContamination ( )
341
342
{
342
343
var cell = UI . MouseCell ( ) ;
@@ -348,7 +349,7 @@ private static void AddSomeFloorContamination()
348
349
}
349
350
}
350
351
351
- [ DebugAction ( "Zombieland" , "Apply: Clear floor contamination" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
352
+ [ DebugAction ( "Zombieland" , "Apply: Clear floor contamination" ) ]
352
353
private static void ClearFloorContamination ( )
353
354
{
354
355
var cell = UI . MouseCell ( ) ;
@@ -357,7 +358,7 @@ private static void ClearFloorContamination()
357
358
map . SetContamination ( cell , 0 ) ;
358
359
}
359
360
360
- [ DebugAction ( "Zombieland" , "Apply: Contamination effect" , false , false , false , 0 , false , actionType = DebugActionType . ToolMap , allowedGameStates = AllowedGameStates . PlayingOnMap ) ]
361
+ [ DebugAction ( "Zombieland" , "Apply: Contamination effect" ) ]
361
362
private static void ContaminationEffect ( )
362
363
{
363
364
var map = Find . CurrentMap ;
0 commit comments