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
CreativePowers.cs
Go to the documentation of this file.
1using System;
3using System.IO;
11using Terraria.Net;
12using Terraria.UI;
13
15{
16 // Token: 0x02000A36 RID: 2614
17 public class CreativePowers
18 {
19 // Token: 0x06004CA9 RID: 19625 RVA: 0x00272274 File Offset: 0x00270474
21 {
22 }
23
24 // Token: 0x02000A37 RID: 2615
26 {
27 // Token: 0x1700087B RID: 2171
28 // (get) Token: 0x06004CAA RID: 19626 RVA: 0x00272288 File Offset: 0x00270488
29 // (set) Token: 0x06004CAB RID: 19627 RVA: 0x0027229C File Offset: 0x0027049C
30 public ushort PowerId
31 {
33 get
34 {
35 return this.<PowerId>k__BackingField;
36 }
38 set
39 {
41 }
42 }
43
44 // Token: 0x1700087C RID: 2172
45 // (get) Token: 0x06004CAC RID: 19628 RVA: 0x002722B0 File Offset: 0x002704B0
46 // (set) Token: 0x06004CAD RID: 19629 RVA: 0x002722C4 File Offset: 0x002704C4
47 public string ServerConfigName
48 {
50 get
51 {
53 }
55 set
56 {
58 }
59 }
60
61 // Token: 0x1700087D RID: 2173
62 // (get) Token: 0x06004CAE RID: 19630 RVA: 0x002722D8 File Offset: 0x002704D8
63 // (set) Token: 0x06004CAF RID: 19631 RVA: 0x002722EC File Offset: 0x002704EC
77
78 // Token: 0x1700087E RID: 2174
79 // (get) Token: 0x06004CB0 RID: 19632 RVA: 0x00272300 File Offset: 0x00270500
80 // (set) Token: 0x06004CB1 RID: 19633 RVA: 0x00272314 File Offset: 0x00270514
94
95 // Token: 0x06004CB2 RID: 19634 RVA: 0x00272328 File Offset: 0x00270528
97 {
98 int num = 1;
100 if (num == 0)
101 {
102 }
104 bool flag;
105 return flag;
106 }
107
108 // Token: 0x06004CB3 RID: 19635 RVA: 0x0027234C File Offset: 0x0027054C
109 public void DeserializeNetMessage(BinaryReader reader, int userId)
110 {
111 this.Deserialize_SyncEveryone(reader, userId);
112 }
113
114 // Token: 0x06004CB4 RID: 19636 RVA: 0x0027237C File Offset: 0x0027057C
115 private void Deserialize_SyncEveryone(BinaryReader reader, int userId)
116 {
117 int num = 1;
119 if (num == 0)
120 {
121 }
122 if (32640 == 0)
123 {
124 }
125 bool netHost = Main.NetHost;
126 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, userId);
127 int myPlayer = Main.myPlayer;
129 long num2 = 0L;
130 this.SetEnabledState(43134976, num2 != 0L);
131 }
132
133 // Token: 0x06004CB5 RID: 19637 RVA: 0x002723D8 File Offset: 0x002705D8
134 public void SetEnabledState(int playerIndex, bool state)
135 {
136 if (this._perPlayerIsEnabled == null)
137 {
138 }
139 bool netHost = Main.NetHost;
140 ushort num = this.<PowerId>k__BackingField;
141 int num2 = 3;
143 }
144
145 // Token: 0x06004CB6 RID: 19638 RVA: 0x0027240C File Offset: 0x0027060C
146 public void DebugCall()
147 {
148 this.RequestUse();
149 }
150
151 // Token: 0x06004CB7 RID: 19639 RVA: 0x00272420 File Offset: 0x00270620
152 internal void RequestUse()
153 {
154 int num = 1;
155 ushort num2 = this.<PowerId>k__BackingField;
156 if (num == 0)
157 {
158 }
159 int num3 = 1;
161 int myPlayer = Main.myPlayer;
163 int myPlayer2 = Main.myPlayer;
164 }
165
166 // Token: 0x06004CB8 RID: 19640 RVA: 0x00272464 File Offset: 0x00270664
173
174 // Token: 0x06004CB9 RID: 19641 RVA: 0x00272488 File Offset: 0x00270688
176 {
177 int num = 1;
179 if (num == 0)
180 {
181 }
182 int num2 = 32640;
183 ushort num3 = this.<PowerId>k__BackingField;
184 if (num2 == 0)
185 {
186 }
187 long num4 = 0L;
189 BitsByte bitsByte = 0;
190 long num5 = 0L;
192 bitsByte[(int)num5] = num4 != 0L;
193 }
194
195 // Token: 0x06004CBA RID: 19642 RVA: 0x000021DB File Offset: 0x000003DB
197 {
198 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
199 }
200
201 // Token: 0x06004CBB RID: 19643 RVA: 0x002724EC File Offset: 0x002706EC
203 {
204 int num = 1;
206 if (num == 0)
207 {
208 }
209 int myPlayer = Main.myPlayer;
210 if (affectedElement.<IsMouseHovering>k__BackingField)
211 {
212 string powerNameKey = this._powerNameKey;
213 string text;
215 string text2 = this._powerNameKey + "_Description";
216 string powerNameKey2 = this._powerNameKey;
217 string text3 = powerNameKey2 + "_Unlock";
219 if (powerNameKey2 == null)
220 {
221 }
222 }
223 }
224
225 // Token: 0x06004CBC RID: 19644 RVA: 0x00272560 File Offset: 0x00270760
227 {
228 int myPlayer = Main.myPlayer;
229 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, myPlayer);
230 this.RequestUse();
231 }
232
233 // Token: 0x06004CBD RID: 19645
234 public abstract bool GetIsUnlocked();
235
236 // Token: 0x06004CBE RID: 19646 RVA: 0x00272584 File Offset: 0x00270784
238 {
239 }
240
241 // Token: 0x0400866A RID: 34410
243 private ushort <PowerId>k__BackingField;
244
245 // Token: 0x0400866B RID: 34411
247 private string <ServerConfigName>k__BackingField;
248
249 // Token: 0x0400866C RID: 34412
251 private PowerPermissionLevel <CurrentPermissionLevel>k__BackingField;
252
253 // Token: 0x0400866D RID: 34413
255 private PowerPermissionLevel <DefaultPermissionLevel>k__BackingField;
256
257 // Token: 0x0400866E RID: 34414
258 internal string _powerNameKey;
259
260 // Token: 0x0400866F RID: 34415
262
263 // Token: 0x04008670 RID: 34416
264 internal bool _defaultToggleState;
265
266 // Token: 0x04008671 RID: 34417
267 private bool[] _perPlayerIsEnabled;
268
269 // Token: 0x02000A38 RID: 2616
270 private enum SubMessageType : byte
271 {
272 // Token: 0x04008673 RID: 34419
274 // Token: 0x04008674 RID: 34420
276 }
277 }
278
279 // Token: 0x02000A39 RID: 2617
281 {
282 // Token: 0x1700087F RID: 2175
283 // (get) Token: 0x06004CBF RID: 19647 RVA: 0x00272598 File Offset: 0x00270798
284 // (set) Token: 0x06004CC0 RID: 19648 RVA: 0x002725AC File Offset: 0x002707AC
285 public ushort PowerId
286 {
288 get
289 {
290 return this.<PowerId>k__BackingField;
291 }
293 set
294 {
296 }
297 }
298
299 // Token: 0x17000880 RID: 2176
300 // (get) Token: 0x06004CC1 RID: 19649 RVA: 0x002725C0 File Offset: 0x002707C0
301 // (set) Token: 0x06004CC2 RID: 19650 RVA: 0x002725D4 File Offset: 0x002707D4
302 public string ServerConfigName
303 {
305 get
306 {
308 }
310 set
311 {
313 }
314 }
315
316 // Token: 0x17000881 RID: 2177
317 // (get) Token: 0x06004CC3 RID: 19651 RVA: 0x002725E8 File Offset: 0x002707E8
318 // (set) Token: 0x06004CC4 RID: 19652 RVA: 0x002725FC File Offset: 0x002707FC
320 {
322 get
323 {
325 }
327 set
328 {
330 }
331 }
332
333 // Token: 0x17000882 RID: 2178
334 // (get) Token: 0x06004CC5 RID: 19653 RVA: 0x00272610 File Offset: 0x00270810
335 // (set) Token: 0x06004CC6 RID: 19654 RVA: 0x00272624 File Offset: 0x00270824
337 {
339 get
340 {
342 }
344 set
345 {
347 }
348 }
349
350 // Token: 0x06004CC7 RID: 19655 RVA: 0x00272638 File Offset: 0x00270838
351 public bool GetRemappedSliderValueFor(int playerIndex, [Out] float value)
352 {
353 /*
354An exception occurred when decompiling this method (06004CC7)
355
356ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Creative.CreativePowers/APerPlayerSliderPower::GetRemappedSliderValueFor(System.Int32,System.Single)
357
358 ---> System.Exception: Basic block has to end with unconditional control flow.
359{
360 IL_000C:
361 stloc:float32[](var_2_12, ldfld:float32[](APerPlayerSliderPower::_cachePerPlayer, ldloc:APerPlayerSliderPower(this)))
362}
363
364 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
365 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
366 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
367 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
368 --- End of inner exception stack trace ---
369 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
370 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
371*/;
372 }
373
374 // Token: 0x06004CC8 RID: 19656
375 public abstract float RemapSliderValueToPowerValue(float sliderValue);
376
377 // Token: 0x06004CC9 RID: 19657 RVA: 0x0027265C File Offset: 0x0027085C
378 public void DeserializeNetMessage(BinaryReader reader, int userId)
379 {
380 bool netHost = Main.NetHost;
381 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, userId);
382 if (this._cachePerPlayer == null)
383 {
384 }
385 int myPlayer = Main.myPlayer;
386 }
387
388 // Token: 0x06004CCA RID: 19658
389 internal abstract void UpdateInfoFromSliderValueCache();
390
391 // Token: 0x06004CCB RID: 19659 RVA: 0x000021DB File Offset: 0x000003DB
393 {
394 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
395 }
396
397 // Token: 0x06004CCC RID: 19660 RVA: 0x0027268C File Offset: 0x0027088C
398 public void DebugCall()
399 {
400 ushort num = this.<PowerId>k__BackingField;
401 if (!true)
402 {
403 }
405 int myPlayer = Main.myPlayer;
406 }
407
408 // Token: 0x06004CCD RID: 19661
409 public abstract UIElement ProvideSlider();
410
411 // Token: 0x06004CCE RID: 19662 RVA: 0x002726B8 File Offset: 0x002708B8
412 internal float GetSliderValue()
413 {
414 /*
415An exception occurred when decompiling this method (06004CCE)
416
417ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Creative.CreativePowers/APerPlayerSliderPower::GetSliderValue()
418
419 ---> System.Exception: Basic block has to end with unconditional control flow.
420{
421 IL_0003:
422 stloc:bool(var_1_0A, callgetter:bool(Main::get_NetClientOnly))
423 brtrue(IL_0000, logicnot:bool(ldfld:bool(APerPlayerSliderPower::_needsToCommitChange, ldloc:APerPlayerSliderPower(this))))
424}
425
426 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
427 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
428 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
429 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
430 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
431 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
432 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
433 --- End of inner exception stack trace ---
434 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
435 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
436*/;
437 }
438
439 // Token: 0x06004CCF RID: 19663 RVA: 0x002726D8 File Offset: 0x002708D8
440 internal void SetValueKeyboard(float value)
441 {
442 if (this._needsToCommitChange)
443 {
445 return;
446 }
448 int myPlayer = Main.myPlayer;
449 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, myPlayer);
451 }
452
453 // Token: 0x06004CD0 RID: 19664 RVA: 0x00272714 File Offset: 0x00270914
454 internal void SetValueGamepad()
455 {
456 float sliderValue = this.GetSliderValue();
457 }
458
459 // Token: 0x06004CD1 RID: 19665 RVA: 0x00272728 File Offset: 0x00270928
460 public void PushChangeAndSetSlider(float value)
461 {
462 if (!true)
463 {
464 }
465 int myPlayer = Main.myPlayer;
466 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, myPlayer);
467 float num;
468 this.PushChange(num);
469 }
470
471 // Token: 0x06004CD2 RID: 19666 RVA: 0x00272754 File Offset: 0x00270954
482
483 // Token: 0x06004CD3 RID: 19667 RVA: 0x00272778 File Offset: 0x00270978
485 {
486 if (affectedElement.<IsMouseHovering>k__BackingField)
487 {
488 return;
489 }
491 }
492
493 // Token: 0x06004CD4 RID: 19668 RVA: 0x002727D8 File Offset: 0x002709D8
504
505 // Token: 0x06004CD5 RID: 19669 RVA: 0x0027280C File Offset: 0x00270A0C
506 internal void PushChange(float newSliderValue)
507 {
508 if (!true)
509 {
510 }
513 ushort num = this.<PowerId>k__BackingField;
514 if (!true)
515 {
516 }
518 int myPlayer = Main.myPlayer;
519 }
520
521 // Token: 0x06004CD6 RID: 19670 RVA: 0x0027284C File Offset: 0x00270A4C
522 public virtual void Reset()
523 {
524 float[] cachePerPlayer = this._cachePerPlayer;
525 float[] cachePerPlayer2 = this._cachePerPlayer;
526 }
527
528 // Token: 0x06004CD7 RID: 19671 RVA: 0x0027286C File Offset: 0x00270A6C
529 public virtual void ResetForPlayer(int playerIndex)
530 {
531 float[] cachePerPlayer = this._cachePerPlayer;
533 if (cachePerPlayer == null)
534 {
535 }
536 int myPlayer = Main.myPlayer;
540 }
541
542 // Token: 0x06004CD8 RID: 19672 RVA: 0x002728A8 File Offset: 0x00270AA8
544 {
545 }
546
547 // Token: 0x06004CD9 RID: 19673
548 public abstract bool GetIsUnlocked();
549
550 // Token: 0x06004CDA RID: 19674 RVA: 0x002728B8 File Offset: 0x00270AB8
552 {
553 if (!true)
554 {
555 }
558 base..ctor();
559 }
560
561 // Token: 0x04008675 RID: 34421
563 private ushort <PowerId>k__BackingField;
564
565 // Token: 0x04008676 RID: 34422
567 private string <ServerConfigName>k__BackingField;
568
569 // Token: 0x04008677 RID: 34423
571 private PowerPermissionLevel <CurrentPermissionLevel>k__BackingField;
572
573 // Token: 0x04008678 RID: 34424
575 private PowerPermissionLevel <DefaultPermissionLevel>k__BackingField;
576
577 // Token: 0x04008679 RID: 34425
579
580 // Token: 0x0400867A RID: 34426
582
583 // Token: 0x0400867B RID: 34427
584 internal string _powerNameKey;
585
586 // Token: 0x0400867C RID: 34428
587 internal float[] _cachePerPlayer;
588
589 // Token: 0x0400867D RID: 34429
590 internal float _sliderDefaultValue;
591
592 // Token: 0x0400867E RID: 34430
593 private float _currentTargetValue;
594
595 // Token: 0x0400867F RID: 34431
597
598 // Token: 0x04008680 RID: 34432
600 }
601
602 // Token: 0x02000A3A RID: 2618
603 public abstract class ASharedButtonPower : ICreativePower
604 {
605 // Token: 0x17000883 RID: 2179
606 // (get) Token: 0x06004CDB RID: 19675 RVA: 0x002728E0 File Offset: 0x00270AE0
607 // (set) Token: 0x06004CDC RID: 19676 RVA: 0x002728F4 File Offset: 0x00270AF4
608 public ushort PowerId
609 {
611 get
612 {
613 return this.<PowerId>k__BackingField;
614 }
616 set
617 {
619 }
620 }
621
622 // Token: 0x17000884 RID: 2180
623 // (get) Token: 0x06004CDD RID: 19677 RVA: 0x00272908 File Offset: 0x00270B08
624 // (set) Token: 0x06004CDE RID: 19678 RVA: 0x0027291C File Offset: 0x00270B1C
625 public string ServerConfigName
626 {
628 get
629 {
631 }
633 set
634 {
636 }
637 }
638
639 // Token: 0x17000885 RID: 2181
640 // (get) Token: 0x06004CDF RID: 19679 RVA: 0x00272930 File Offset: 0x00270B30
641 // (set) Token: 0x06004CE0 RID: 19680 RVA: 0x00272944 File Offset: 0x00270B44
643 {
645 get
646 {
648 }
650 set
651 {
653 }
654 }
655
656 // Token: 0x17000886 RID: 2182
657 // (get) Token: 0x06004CE1 RID: 19681 RVA: 0x00272958 File Offset: 0x00270B58
658 // (set) Token: 0x06004CE2 RID: 19682 RVA: 0x0027296C File Offset: 0x00270B6C
660 {
662 get
663 {
665 }
667 set
668 {
670 }
671 }
672
673 // Token: 0x06004CE3 RID: 19683 RVA: 0x00272980 File Offset: 0x00270B80
675 {
676 }
677
678 // Token: 0x06004CE4 RID: 19684 RVA: 0x00272994 File Offset: 0x00270B94
679 public void RequestUse()
680 {
681 ushort num = this.<PowerId>k__BackingField;
682 if (!true)
683 {
684 }
685 long num2 = 0L;
687 if (!true)
688 {
689 }
690 }
691
692 // Token: 0x06004CE5 RID: 19685 RVA: 0x002729B8 File Offset: 0x00270BB8
693 public void DeserializeNetMessage(BinaryReader reader, int userId)
694 {
695 if (!true)
696 {
697 }
698 bool netHost = Main.NetHost;
699 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, userId);
700 }
701
702 // Token: 0x06004CE6 RID: 19686
703 internal abstract void UsePower();
704
705 // Token: 0x06004CE7 RID: 19687
706 internal abstract void OnCreation();
707
708 // Token: 0x06004CE8 RID: 19688 RVA: 0x000021DB File Offset: 0x000003DB
710 {
711 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
712 }
713
714 // Token: 0x06004CE9 RID: 19689 RVA: 0x002729DC File Offset: 0x00270BDC
716 {
717 if (affectedElement.<IsMouseHovering>k__BackingField)
718 {
720 string descriptionKey = this._descriptionKey;
721 string powerNameKey = this._powerNameKey;
722 string text = powerNameKey + "_Unlock";
724 if (powerNameKey == null)
725 {
726 }
727 }
728 }
729
730 // Token: 0x06004CEA RID: 19690 RVA: 0x00272A28 File Offset: 0x00270C28
732 {
733 if (!true)
734 {
735 }
736 int myPlayer = Main.myPlayer;
737 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, myPlayer);
738 this.RequestUse();
739 }
740
741 // Token: 0x06004CEB RID: 19691
742 public abstract bool GetIsUnlocked();
743
744 // Token: 0x04008681 RID: 34433
746 private ushort <PowerId>k__BackingField;
747
748 // Token: 0x04008682 RID: 34434
750 private string <ServerConfigName>k__BackingField;
751
752 // Token: 0x04008683 RID: 34435
754 private PowerPermissionLevel <CurrentPermissionLevel>k__BackingField;
755
756 // Token: 0x04008684 RID: 34436
758 private PowerPermissionLevel <DefaultPermissionLevel>k__BackingField;
759
760 // Token: 0x04008685 RID: 34437
762
763 // Token: 0x04008686 RID: 34438
764 internal string _powerNameKey;
765
766 // Token: 0x04008687 RID: 34439
767 internal string _descriptionKey;
768 }
769
770 // Token: 0x02000A3B RID: 2619
772 {
773 // Token: 0x17000887 RID: 2183
774 // (get) Token: 0x06004CEC RID: 19692 RVA: 0x00272A50 File Offset: 0x00270C50
775 // (set) Token: 0x06004CED RID: 19693 RVA: 0x00272A64 File Offset: 0x00270C64
776 public ushort PowerId
777 {
779 get
780 {
781 return this.<PowerId>k__BackingField;
782 }
784 set
785 {
787 }
788 }
789
790 // Token: 0x17000888 RID: 2184
791 // (get) Token: 0x06004CEE RID: 19694 RVA: 0x00272A78 File Offset: 0x00270C78
792 // (set) Token: 0x06004CEF RID: 19695 RVA: 0x00272A8C File Offset: 0x00270C8C
793 public string ServerConfigName
794 {
796 get
797 {
799 }
801 set
802 {
804 }
805 }
806
807 // Token: 0x17000889 RID: 2185
808 // (get) Token: 0x06004CF0 RID: 19696 RVA: 0x00272AA0 File Offset: 0x00270CA0
809 // (set) Token: 0x06004CF1 RID: 19697 RVA: 0x00272AB4 File Offset: 0x00270CB4
811 {
813 get
814 {
816 }
818 set
819 {
821 }
822 }
823
824 // Token: 0x1700088A RID: 2186
825 // (get) Token: 0x06004CF2 RID: 19698 RVA: 0x00272AC8 File Offset: 0x00270CC8
826 // (set) Token: 0x06004CF3 RID: 19699 RVA: 0x00272ADC File Offset: 0x00270CDC
828 {
830 get
831 {
833 }
835 set
836 {
838 }
839 }
840
841 // Token: 0x1700088B RID: 2187
842 // (get) Token: 0x06004CF4 RID: 19700 RVA: 0x00272AF0 File Offset: 0x00270CF0
843 // (set) Token: 0x06004CF5 RID: 19701 RVA: 0x00272B04 File Offset: 0x00270D04
844 public bool Enabled
845 {
847 get
848 {
849 return this.<Enabled>k__BackingField;
850 }
852 private set
853 {
854 }
855 }
856
857 // Token: 0x06004CF6 RID: 19702 RVA: 0x00272B14 File Offset: 0x00270D14
858 public void SetPowerInfo(bool enabled)
859 {
860 }
861
862 // Token: 0x06004CF7 RID: 19703 RVA: 0x00272B24 File Offset: 0x00270D24
863 public void Reset()
864 {
865 }
866
867 // Token: 0x06004CF8 RID: 19704 RVA: 0x00272B34 File Offset: 0x00270D34
869 {
870 ushort num = this.<PowerId>k__BackingField;
871 if (!true)
872 {
873 }
875 bool flag = this.<Enabled>k__BackingField;
876 }
877
878 // Token: 0x06004CF9 RID: 19705 RVA: 0x00272B60 File Offset: 0x00270D60
879 public void DeserializeNetMessage(BinaryReader reader, int userId)
880 {
881 bool netHost = Main.NetHost;
882 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, userId);
883 bool netHost2 = Main.NetHost;
885 bool flag2 = this.<Enabled>k__BackingField;
886 }
887
888 // Token: 0x06004CFA RID: 19706 RVA: 0x00272BA4 File Offset: 0x00270DA4
889 public void RequestUse()
890 {
891 ushort num = this.<PowerId>k__BackingField;
892 if (!true)
893 {
894 }
896 bool flag = this.<Enabled>k__BackingField;
897 }
898
899 // Token: 0x06004CFB RID: 19707 RVA: 0x000021DB File Offset: 0x000003DB
901 {
902 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
903 }
904
905 // Token: 0x06004CFC RID: 19708 RVA: 0x00272BD0 File Offset: 0x00270DD0
907 {
908 bool flag = this.<Enabled>k__BackingField;
909 if (affectedElement.<IsMouseHovering>k__BackingField)
910 {
911 string text;
914 }
915 }
916
917 // Token: 0x06004CFD RID: 19709 RVA: 0x00272C00 File Offset: 0x00270E00
919 {
920 if (!true)
921 {
922 }
923 int myPlayer = Main.myPlayer;
924 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, myPlayer);
925 this.RequestUse();
926 }
927
928 // Token: 0x06004CFE RID: 19710
929 internal abstract void CustomizeButton(UIElement button);
930
931 // Token: 0x06004CFF RID: 19711
932 internal abstract string GetButtonTextKey();
933
934 // Token: 0x06004D00 RID: 19712
935 public abstract bool GetIsUnlocked();
936
937 // Token: 0x06004D01 RID: 19713 RVA: 0x00272C28 File Offset: 0x00270E28
939 {
940 }
941
942 // Token: 0x04008688 RID: 34440
944 private ushort <PowerId>k__BackingField;
945
946 // Token: 0x04008689 RID: 34441
948 private string <ServerConfigName>k__BackingField;
949
950 // Token: 0x0400868A RID: 34442
952 private PowerPermissionLevel <CurrentPermissionLevel>k__BackingField;
953
954 // Token: 0x0400868B RID: 34443
956 private PowerPermissionLevel <DefaultPermissionLevel>k__BackingField;
957
958 // Token: 0x0400868C RID: 34444
960 private bool <Enabled>k__BackingField;
961 }
962
963 // Token: 0x02000A3C RID: 2620
965 {
966 // Token: 0x1700088C RID: 2188
967 // (get) Token: 0x06004D02 RID: 19714 RVA: 0x00272C3C File Offset: 0x00270E3C
968 // (set) Token: 0x06004D03 RID: 19715 RVA: 0x00272C50 File Offset: 0x00270E50
969 public ushort PowerId
970 {
972 get
973 {
974 return this.<PowerId>k__BackingField;
975 }
977 set
978 {
980 }
981 }
982
983 // Token: 0x1700088D RID: 2189
984 // (get) Token: 0x06004D04 RID: 19716 RVA: 0x00272C64 File Offset: 0x00270E64
985 // (set) Token: 0x06004D05 RID: 19717 RVA: 0x00272C78 File Offset: 0x00270E78
986 public string ServerConfigName
987 {
989 get
990 {
992 }
994 set
995 {
997 }
998 }
999
1000 // Token: 0x1700088E RID: 2190
1001 // (get) Token: 0x06004D06 RID: 19718 RVA: 0x00272C8C File Offset: 0x00270E8C
1002 // (set) Token: 0x06004D07 RID: 19719 RVA: 0x00272CA0 File Offset: 0x00270EA0
1004 {
1006 get
1007 {
1009 }
1011 set
1012 {
1014 }
1015 }
1016
1017 // Token: 0x1700088F RID: 2191
1018 // (get) Token: 0x06004D08 RID: 19720 RVA: 0x00272CB4 File Offset: 0x00270EB4
1019 // (set) Token: 0x06004D09 RID: 19721 RVA: 0x00272CC8 File Offset: 0x00270EC8
1021 {
1023 get
1024 {
1026 }
1028 set
1029 {
1031 }
1032 }
1033
1034 // Token: 0x06004D0A RID: 19722 RVA: 0x00272CDC File Offset: 0x00270EDC
1035 public void DeserializeNetMessage(BinaryReader reader, int userId)
1036 {
1037 bool netHost = Main.NetHost;
1038 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, userId);
1039 bool netHost2 = Main.NetHost;
1041 }
1042
1043 // Token: 0x06004D0B RID: 19723
1044 internal abstract void UpdateInfoFromSliderValueCache();
1045
1046 // Token: 0x06004D0C RID: 19724 RVA: 0x000021DB File Offset: 0x000003DB
1048 {
1049 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1050 }
1051
1052 // Token: 0x06004D0D RID: 19725 RVA: 0x00272D18 File Offset: 0x00270F18
1053 public void DebugCall()
1054 {
1055 ushort num = this.<PowerId>k__BackingField;
1056 if (!true)
1057 {
1058 }
1060 }
1061
1062 // Token: 0x06004D0E RID: 19726
1063 public abstract UIElement ProvideSlider();
1064
1065 // Token: 0x06004D0F RID: 19727 RVA: 0x00272D3C File Offset: 0x00270F3C
1066 internal float GetSliderValue()
1067 {
1068 /*
1069An exception occurred when decompiling this method (06004D0F)
1070
1071ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Creative.CreativePowers/ASharedSliderPower::GetSliderValue()
1072
1073 ---> System.Exception: Basic block has to end with unconditional control flow.
1074{
1075 IL_0003:
1076 stloc:bool(var_1_0A, callgetter:bool(Main::get_NetClientOnly))
1077 stloc:bool(var_2_11, ldfld:bool(ASharedSliderPower::_needsToCommitChange, ldloc:ASharedSliderPower(this)))
1078 stloc:float32(var_3_18, ldfld:float32(ASharedSliderPower::_currentTargetValue, ldloc:ASharedSliderPower(this)))
1079}
1080
1081 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
1082 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
1083 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
1084 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
1085 --- End of inner exception stack trace ---
1086 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
1087 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
1088*/;
1089 }
1090
1091 // Token: 0x06004D10 RID: 19728 RVA: 0x00272D64 File Offset: 0x00270F64
1092 internal virtual float GetSliderValueInner()
1093 {
1094 /*
1095An exception occurred when decompiling this method (06004D10)
1096
1097ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Creative.CreativePowers/ASharedSliderPower::GetSliderValueInner()
1098
1099 ---> System.Exception: Basic block has to end with unconditional control flow.
1100{
1101 Block_0:
1102 stloc:float32(var_0_06, ldfld:float32(ASharedSliderPower::_sliderCurrentValueCache, ldloc:ASharedSliderPower(this)))
1103}
1104
1105 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
1106 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
1107 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
1108 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
1109 --- End of inner exception stack trace ---
1110 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
1111 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
1112*/;
1113 }
1114
1115 // Token: 0x06004D11 RID: 19729 RVA: 0x00272D78 File Offset: 0x00270F78
1116 internal void SetValueKeyboard(float value)
1117 {
1118 if (this._needsToCommitChange)
1119 {
1121 return;
1122 }
1123 this.SetValueKeyboardForced(value);
1124 }
1125
1126 // Token: 0x06004D12 RID: 19730 RVA: 0x00272DA0 File Offset: 0x00270FA0
1127 internal void SetValueKeyboardForced(float value)
1128 {
1129 if (!true)
1130 {
1131 }
1132 int myPlayer = Main.myPlayer;
1133 bool flag = CreativePowersHelper.IsAvailableForPlayer(this, myPlayer);
1135 }
1136
1137 // Token: 0x06004D13 RID: 19731 RVA: 0x00272DC8 File Offset: 0x00270FC8
1138 internal void SetValueGamepad()
1139 {
1140 float sliderValue = this.GetSliderValue();
1141 }
1142
1143 // Token: 0x06004D14 RID: 19732 RVA: 0x00272DDC File Offset: 0x00270FDC
1154
1155 // Token: 0x06004D15 RID: 19733 RVA: 0x00272E00 File Offset: 0x00271000
1157 {
1158 if (affectedElement.<IsMouseHovering>k__BackingField)
1159 {
1160 return;
1161 }
1162 this.AttemptPushingChange();
1163 }
1164
1165 // Token: 0x06004D16 RID: 19734 RVA: 0x00272E60 File Offset: 0x00271060
1167 {
1169 if (needsToCommitChange)
1170 {
1172 {
1173 }
1179 if (currentTargetValue == null)
1180 {
1181 }
1184 ushort num2 = this.<PowerId>k__BackingField;
1185 if (currentTargetValue == null)
1186 {
1187 }
1190 }
1191 }
1192
1193 // Token: 0x06004D17 RID: 19735 RVA: 0x00272EDC File Offset: 0x002710DC
1194 public virtual void Reset()
1195 {
1196 }
1197
1198 // Token: 0x06004D18 RID: 19736 RVA: 0x00272EEC File Offset: 0x002710EC
1207
1208 // Token: 0x06004D19 RID: 19737
1209 public abstract bool GetIsUnlocked();
1210
1211 // Token: 0x06004D1A RID: 19738 RVA: 0x00272F1C File Offset: 0x0027111C
1213 {
1214 if (!true)
1215 {
1216 }
1219 base..ctor();
1220 }
1221
1222 // Token: 0x0400868D RID: 34445
1224 private ushort <PowerId>k__BackingField;
1225
1226 // Token: 0x0400868E RID: 34446
1228 private string <ServerConfigName>k__BackingField;
1229
1230 // Token: 0x0400868F RID: 34447
1232 private PowerPermissionLevel <CurrentPermissionLevel>k__BackingField;
1233
1234 // Token: 0x04008690 RID: 34448
1236 private PowerPermissionLevel <DefaultPermissionLevel>k__BackingField;
1237
1238 // Token: 0x04008691 RID: 34449
1240
1241 // Token: 0x04008692 RID: 34450
1243
1244 // Token: 0x04008693 RID: 34451
1245 internal string _powerNameKey;
1246
1247 // Token: 0x04008694 RID: 34452
1248 internal bool _syncToJoiningPlayers = true;
1249
1250 // Token: 0x04008695 RID: 34453
1251 internal float _currentTargetValue;
1252
1253 // Token: 0x04008696 RID: 34454
1255
1256 // Token: 0x04008697 RID: 34455
1258 }
1259
1260 // Token: 0x02000A3D RID: 2621
1262 {
1263 // Token: 0x06004D1B RID: 19739 RVA: 0x00272F48 File Offset: 0x00271148
1265 {
1266 this._powerNameKey = "CreativePowers.Godmode";
1267 if ("CreativePowers.Godmode" == null)
1268 {
1269 }
1270 this._iconLocation = "CreativePowers.Godmode";
1271 }
1272
1273 // Token: 0x06004D1C RID: 19740 RVA: 0x00272F78 File Offset: 0x00271178
1274 public override bool GetIsUnlocked()
1275 {
1276 return true;
1277 }
1278
1279 // Token: 0x06004D1D RID: 19741 RVA: 0x00272F88 File Offset: 0x00271188
1280 public void Save(Player player, BinaryWriter writer)
1281 {
1282 if (!true)
1283 {
1284 }
1285 int myPlayer = Main.myPlayer;
1286 bool flag = base.IsEnabledForPlayer(myPlayer);
1287 }
1288
1289 // Token: 0x06004D1E RID: 19742 RVA: 0x00272FA8 File Offset: 0x002711A8
1296
1297 // Token: 0x06004D1F RID: 19743 RVA: 0x00272FCC File Offset: 0x002711CC
1298 public void Load(Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
1299 {
1300 Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass = player.savedPerPlayerFieldsThatArentInThePlayerClass;
1301 }
1302
1303 // Token: 0x06004D20 RID: 19744 RVA: 0x00272FE0 File Offset: 0x002711E0
1305 {
1306 Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass = player.savedPerPlayerFieldsThatArentInThePlayerClass;
1307 int whoAmI = player.whoAmI;
1308 bool godmodePowerEnabled = savedPerPlayerFieldsThatArentInThePlayerClass.godmodePowerEnabled;
1309 bool flag = base.IsEnabledForPlayer(whoAmI);
1310 }
1311 }
1312
1313 // Token: 0x02000A3E RID: 2622
1315 {
1316 // Token: 0x06004D21 RID: 19745 RVA: 0x00273014 File Offset: 0x00271214
1318 {
1319 this._powerNameKey = "CreativePowers.InfinitePlacementRange";
1320 if ("CreativePowers.InfinitePlacementRange" == null)
1321 {
1322 }
1323 this._iconLocation = "CreativePowers.InfinitePlacementRange";
1326 }
1327
1328 // Token: 0x06004D22 RID: 19746 RVA: 0x0027306C File Offset: 0x0027126C
1329 public override bool GetIsUnlocked()
1330 {
1331 return true;
1332 }
1333
1334 // Token: 0x06004D23 RID: 19747 RVA: 0x0027307C File Offset: 0x0027127C
1335 public void Save(Player player, BinaryWriter writer)
1336 {
1337 if (!true)
1338 {
1339 }
1340 int myPlayer = Main.myPlayer;
1341 bool flag = base.IsEnabledForPlayer(myPlayer);
1342 }
1343
1344 // Token: 0x06004D24 RID: 19748 RVA: 0x0027309C File Offset: 0x0027129C
1351
1352 // Token: 0x06004D25 RID: 19749 RVA: 0x002730C0 File Offset: 0x002712C0
1353 public void Load(Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
1354 {
1355 Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass = player.savedPerPlayerFieldsThatArentInThePlayerClass;
1356 }
1357
1358 // Token: 0x06004D26 RID: 19750 RVA: 0x002730D4 File Offset: 0x002712D4
1360 {
1361 Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass = player.savedPerPlayerFieldsThatArentInThePlayerClass;
1362 int whoAmI = player.whoAmI;
1363 bool farPlacementRangePowerEnabled = savedPerPlayerFieldsThatArentInThePlayerClass.farPlacementRangePowerEnabled;
1364 bool flag = base.IsEnabledForPlayer(whoAmI);
1365 }
1366 }
1367
1368 // Token: 0x02000A3F RID: 2623
1370 {
1371 // Token: 0x06004D27 RID: 19751 RVA: 0x00273108 File Offset: 0x00271308
1372 internal override void UsePower()
1373 {
1374 if (!true)
1375 {
1376 }
1378 }
1379
1380 // Token: 0x06004D28 RID: 19752 RVA: 0x0027312C File Offset: 0x0027132C
1381 internal override void OnCreation()
1382 {
1383 this._powerNameKey = "CreativePowers.StartDayImmediately";
1384 string text = "CreativePowers.StartDayImmediately" + "_Description";
1386 if (!true)
1387 {
1388 }
1390 }
1391
1392 // Token: 0x06004D29 RID: 19753 RVA: 0x00273168 File Offset: 0x00271368
1393 public override bool GetIsUnlocked()
1394 {
1395 return true;
1396 }
1397
1398 // Token: 0x06004D2A RID: 19754 RVA: 0x00273178 File Offset: 0x00271378
1400 {
1401 }
1402 }
1403
1404 // Token: 0x02000A40 RID: 2624
1406 {
1407 // Token: 0x06004D2B RID: 19755 RVA: 0x0027318C File Offset: 0x0027138C
1408 internal override void UsePower()
1409 {
1410 if (!true)
1411 {
1412 }
1414 }
1415
1416 // Token: 0x06004D2C RID: 19756 RVA: 0x002731B4 File Offset: 0x002713B4
1417 internal override void OnCreation()
1418 {
1419 this._powerNameKey = "CreativePowers.StartNightImmediately";
1420 string text = "CreativePowers.StartNightImmediately" + "_Description";
1422 if (!true)
1423 {
1424 }
1426 }
1427
1428 // Token: 0x06004D2D RID: 19757 RVA: 0x002731F0 File Offset: 0x002713F0
1429 public override bool GetIsUnlocked()
1430 {
1431 return true;
1432 }
1433
1434 // Token: 0x06004D2E RID: 19758 RVA: 0x00273200 File Offset: 0x00271400
1436 {
1437 }
1438 }
1439
1440 // Token: 0x02000A41 RID: 2625
1442 {
1443 // Token: 0x06004D2F RID: 19759 RVA: 0x00273214 File Offset: 0x00271414
1444 internal override void UsePower()
1445 {
1446 if (!true)
1447 {
1448 }
1450 }
1451
1452 // Token: 0x06004D30 RID: 19760 RVA: 0x0027323C File Offset: 0x0027143C
1453 internal override void OnCreation()
1454 {
1455 this._powerNameKey = "CreativePowers.StartNoonImmediately";
1456 string text = "CreativePowers.StartNoonImmediately" + "_Description";
1458 if (!true)
1459 {
1460 }
1462 }
1463
1464 // Token: 0x06004D31 RID: 19761 RVA: 0x00273278 File Offset: 0x00271478
1465 public override bool GetIsUnlocked()
1466 {
1467 return true;
1468 }
1469
1470 // Token: 0x06004D32 RID: 19762 RVA: 0x00273288 File Offset: 0x00271488
1472 {
1473 }
1474 }
1475
1476 // Token: 0x02000A42 RID: 2626
1478 {
1479 // Token: 0x06004D33 RID: 19763 RVA: 0x0027329C File Offset: 0x0027149C
1480 internal override void UsePower()
1481 {
1482 if (!true)
1483 {
1484 }
1486 }
1487
1488 // Token: 0x06004D34 RID: 19764 RVA: 0x002732C8 File Offset: 0x002714C8
1489 internal override void OnCreation()
1490 {
1491 this._powerNameKey = "CreativePowers.StartMidnightImmediately";
1492 string text = "CreativePowers.StartMidnightImmediately" + "_Description";
1494 if (!true)
1495 {
1496 }
1498 }
1499
1500 // Token: 0x06004D35 RID: 19765 RVA: 0x00273304 File Offset: 0x00271504
1501 public override bool GetIsUnlocked()
1502 {
1503 return true;
1504 }
1505
1506 // Token: 0x06004D36 RID: 19766 RVA: 0x00273314 File Offset: 0x00271514
1508 {
1509 }
1510 }
1511
1512 // Token: 0x02000A43 RID: 2627
1514 {
1515 // Token: 0x17000890 RID: 2192
1516 // (get) Token: 0x06004D37 RID: 19767 RVA: 0x00273328 File Offset: 0x00271528
1517 // (set) Token: 0x06004D38 RID: 19768 RVA: 0x0027333C File Offset: 0x0027153C
1519 {
1521 get
1522 {
1523 return this.<TargetTimeRate>k__BackingField;
1524 }
1526 private set
1527 {
1529 }
1530 }
1531
1532 // Token: 0x06004D39 RID: 19769 RVA: 0x00273350 File Offset: 0x00271550
1534 {
1535 this._powerNameKey = "CreativePowers.ModifyTimeRate";
1536 if ("CreativePowers.ModifyTimeRate" == null)
1537 {
1538 }
1539 this._iconLocation = "CreativePowers.ModifyTimeRate";
1540 }
1541
1542 // Token: 0x06004D3A RID: 19770 RVA: 0x00273380 File Offset: 0x00271580
1543 public override void Reset()
1544 {
1546 }
1547
1548 // Token: 0x06004D3B RID: 19771 RVA: 0x00273394 File Offset: 0x00271594
1549 internal override void UpdateInfoFromSliderValueCache()
1550 {
1552 if (!true)
1553 {
1554 }
1555 if (!true)
1556 {
1557 }
1558 }
1559
1560 // Token: 0x06004D3C RID: 19772 RVA: 0x002733BC File Offset: 0x002715BC
1561 public override UIElement ProvideSlider()
1562 {
1563 }
1564
1565 // Token: 0x06004D3D RID: 19773 RVA: 0x002733D4 File Offset: 0x002715D4
1569
1570 // Token: 0x06004D3E RID: 19774 RVA: 0x002733E4 File Offset: 0x002715E4
1574
1575 // Token: 0x06004D3F RID: 19775 RVA: 0x002733F4 File Offset: 0x002715F4
1579
1580 // Token: 0x06004D40 RID: 19776 RVA: 0x00273404 File Offset: 0x00271604
1582 {
1583 if (listeningElement != null)
1584 {
1585 }
1586 }
1587
1588 // Token: 0x06004D41 RID: 19777 RVA: 0x00273418 File Offset: 0x00271618
1590 {
1591 if (listeningElement != null)
1592 {
1593 }
1594 }
1595
1596 // Token: 0x06004D42 RID: 19778 RVA: 0x0027342C File Offset: 0x0027162C
1597 public override bool GetIsUnlocked()
1598 {
1599 return true;
1600 }
1601
1602 // Token: 0x06004D43 RID: 19779 RVA: 0x0027343C File Offset: 0x0027163C
1603 public void Save(BinaryWriter writer)
1604 {
1606 }
1607
1608 // Token: 0x06004D44 RID: 19780 RVA: 0x00273450 File Offset: 0x00271650
1610 {
1611 }
1612
1613 // Token: 0x06004D45 RID: 19781 RVA: 0x00273460 File Offset: 0x00271660
1615 {
1616 }
1617
1618 // Token: 0x06004D46 RID: 19782 RVA: 0x00273470 File Offset: 0x00271670
1620 {
1621 if (affectedElement.<IsMouseHovering>k__BackingField)
1622 {
1623 int num = this.<TargetTimeRate>k__BackingField;
1624 string text2;
1625 string text = "x" + text2;
1627 }
1628 }
1629
1630 // Token: 0x04008698 RID: 34456
1632 private int <TargetTimeRate>k__BackingField;
1633 }
1634
1635 // Token: 0x02000A44 RID: 2628
1637 {
1638 // Token: 0x17000891 RID: 2193
1639 // (get) Token: 0x06004D47 RID: 19783 RVA: 0x002734A0 File Offset: 0x002716A0
1640 // (set) Token: 0x06004D48 RID: 19784 RVA: 0x002734B4 File Offset: 0x002716B4
1642 {
1644 get
1645 {
1646 /*
1647An exception occurred when decompiling this method (06004D47)
1648
1649ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Creative.CreativePowers/DifficultySliderPower::get_StrengthMultiplierToGiveNPCs()
1650
1651 ---> System.Exception: Basic block has to end with unconditional control flow.
1652{
1653 Block_0:
1654 stloc:float32(var_0_06, ldfld:float32(DifficultySliderPower::<StrengthMultiplierToGiveNPCs>k__BackingField, ldloc:DifficultySliderPower(this)))
1655}
1656
1657 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
1658 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
1659 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
1660 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
1661 --- End of inner exception stack trace ---
1662 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
1663 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
1664*/;
1665 }
1667 private set
1668 {
1669 }
1670 }
1671
1672 // Token: 0x06004D49 RID: 19785 RVA: 0x002734C4 File Offset: 0x002716C4
1674 {
1675 this._powerNameKey = "CreativePowers.DifficultySlider";
1676 if ("CreativePowers.DifficultySlider" == null)
1677 {
1678 }
1679 this._iconLocation = "CreativePowers.DifficultySlider";
1680 }
1681
1682 // Token: 0x06004D4A RID: 19786 RVA: 0x002734F4 File Offset: 0x002716F4
1683 public override void Reset()
1684 {
1685 }
1686
1687 // Token: 0x06004D4B RID: 19787 RVA: 0x00273504 File Offset: 0x00271704
1688 internal override void UpdateInfoFromSliderValueCache()
1689 {
1691 if (!true)
1692 {
1693 }
1694 }
1695
1696 // Token: 0x06004D4C RID: 19788 RVA: 0x00273520 File Offset: 0x00271720
1697 public override UIElement ProvideSlider()
1698 {
1699 }
1700
1701 // Token: 0x06004D4D RID: 19789 RVA: 0x00273530 File Offset: 0x00271730
1705
1706 // Token: 0x06004D4E RID: 19790 RVA: 0x00273540 File Offset: 0x00271740
1710
1711 // Token: 0x06004D4F RID: 19791 RVA: 0x00273550 File Offset: 0x00271750
1715
1716 // Token: 0x06004D50 RID: 19792 RVA: 0x00273560 File Offset: 0x00271760
1720
1721 // Token: 0x06004D51 RID: 19793 RVA: 0x00273570 File Offset: 0x00271770
1723 {
1724 if (!true)
1725 {
1726 }
1727 }
1728
1729 // Token: 0x06004D52 RID: 19794 RVA: 0x00273590 File Offset: 0x00271790
1731 {
1732 }
1733
1734 // Token: 0x06004D53 RID: 19795 RVA: 0x002735A0 File Offset: 0x002717A0
1736 {
1737 }
1738
1739 // Token: 0x06004D54 RID: 19796 RVA: 0x002735B0 File Offset: 0x002717B0
1741 {
1742 if (affectedElement.<IsMouseHovering>k__BackingField)
1743 {
1744 string textValue = Language.GetTextValue("UI.Creative");
1745 }
1746 }
1747
1748 // Token: 0x06004D55 RID: 19797 RVA: 0x002735D0 File Offset: 0x002717D0
1750 {
1751 if (affectedElement.<IsMouseHovering>k__BackingField)
1752 {
1753 string textValue = Language.GetTextValue("UI.Normal");
1754 }
1755 }
1756
1757 // Token: 0x06004D56 RID: 19798 RVA: 0x002735F0 File Offset: 0x002717F0
1759 {
1760 if (affectedElement.<IsMouseHovering>k__BackingField)
1761 {
1762 string textValue = Language.GetTextValue("UI.Expert");
1763 }
1764 }
1765
1766 // Token: 0x06004D57 RID: 19799 RVA: 0x00273610 File Offset: 0x00271810
1768 {
1769 if (affectedElement.<IsMouseHovering>k__BackingField)
1770 {
1771 string textValue = Language.GetTextValue("UI.Master");
1772 }
1773 }
1774
1775 // Token: 0x06004D58 RID: 19800 RVA: 0x00273630 File Offset: 0x00271830
1777 {
1778 if (affectedElement.<IsMouseHovering>k__BackingField)
1779 {
1781 string text2;
1782 string text = "x" + text2;
1783 if (num == null)
1784 {
1785 }
1787 }
1788 bool masterMode = Main.masterMode;
1789 }
1790
1791 // Token: 0x06004D59 RID: 19801 RVA: 0x002736A4 File Offset: 0x002718A4
1792 public override bool GetIsUnlocked()
1793 {
1794 return true;
1795 }
1796
1797 // Token: 0x06004D5A RID: 19802 RVA: 0x002736B4 File Offset: 0x002718B4
1798 public void Save(BinaryWriter writer)
1799 {
1801 }
1802
1803 // Token: 0x06004D5B RID: 19803 RVA: 0x002736C8 File Offset: 0x002718C8
1805 {
1806 }
1807
1808 // Token: 0x06004D5C RID: 19804 RVA: 0x002736D8 File Offset: 0x002718D8
1810 {
1811 }
1812
1813 // Token: 0x04008699 RID: 34457
1815 private float <StrengthMultiplierToGiveNPCs>k__BackingField;
1816 }
1817
1818 // Token: 0x02000A45 RID: 2629
1820 {
1821 // Token: 0x06004D5D RID: 19805 RVA: 0x002736E8 File Offset: 0x002718E8
1823 {
1824 this._powerNameKey = "CreativePowers.ModifyWindDirectionAndStrength";
1825 if ("CreativePowers.ModifyWindDirectionAndStrength" == null)
1826 {
1827 }
1828 this._iconLocation = "CreativePowers.ModifyWindDirectionAndStrength";
1829 }
1830
1831 // Token: 0x06004D5E RID: 19806 RVA: 0x00273718 File Offset: 0x00271918
1832 internal override void UpdateInfoFromSliderValueCache()
1833 {
1835 }
1836
1837 // Token: 0x06004D5F RID: 19807 RVA: 0x00273730 File Offset: 0x00271930
1838 internal override float GetSliderValueInner()
1839 {
1840 if (!true)
1841 {
1842 return;
1843 }
1844 }
1845
1846 // Token: 0x06004D60 RID: 19808 RVA: 0x00273744 File Offset: 0x00271944
1847 public override bool GetIsUnlocked()
1848 {
1849 return true;
1850 }
1851
1852 // Token: 0x06004D61 RID: 19809 RVA: 0x00273754 File Offset: 0x00271954
1853 public override UIElement ProvideSlider()
1854 {
1855 /*
1856An exception occurred when decompiling this method (06004D61)
1857
1858ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.UIElement Terraria.GameContent.Creative.CreativePowers/ModifyWindDirectionAndStrength::ProvideSlider()
1859
1860 ---> System.Exception: Basic block has to end with unconditional control flow.
1861{
1862 Block_0:
1863 stloc:LocalizedText(var_2_0C, call:LocalizedText(Language::GetText, ldstr:string("CreativePowers.WindWest")))
1864 stloc:LocalizedText(var_4_19, call:LocalizedText(Language::GetText, ldstr:string("CreativePowers.WindEast")))
1865 stloc:LocalizedText(var_6_28, call:LocalizedText(Language::GetText, ldstr:string("CreativePowers.WindNone")))
1866}
1867
1868 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
1869 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
1870 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
1871 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
1872 --- End of inner exception stack trace ---
1873 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
1874 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
1875*/;
1876 }
1877
1878 // Token: 0x06004D62 RID: 19810 RVA: 0x00273790 File Offset: 0x00271990
1882
1883 // Token: 0x06004D63 RID: 19811 RVA: 0x002737A0 File Offset: 0x002719A0
1887
1888 // Token: 0x06004D64 RID: 19812 RVA: 0x002737B0 File Offset: 0x002719B0
1892
1893 // Token: 0x06004D65 RID: 19813 RVA: 0x002737C0 File Offset: 0x002719C0
1895 {
1896 if (listeningElement != null)
1897 {
1898 }
1899 }
1900
1901 // Token: 0x06004D66 RID: 19814 RVA: 0x002737D4 File Offset: 0x002719D4
1903 {
1904 if (listeningElement != null)
1905 {
1906 }
1907 }
1908
1909 // Token: 0x06004D67 RID: 19815 RVA: 0x002737E8 File Offset: 0x002719E8
1911 {
1912 bool <IsMouseHovering>k__BackingField = affectedElement.<IsMouseHovering>k__BackingField;
1913 if (<IsMouseHovering>k__BackingField)
1914 {
1915 if (!<IsMouseHovering>k__BackingField)
1916 {
1917 }
1918 return;
1919 }
1920 }
1921 }
1922
1923 // Token: 0x02000A46 RID: 2630
1925 {
1926 // Token: 0x06004D68 RID: 19816 RVA: 0x00273824 File Offset: 0x00271A24
1928 {
1929 this._powerNameKey = "CreativePowers.ModifyRainPower";
1930 if ("CreativePowers.ModifyRainPower" == null)
1931 {
1932 }
1933 this._iconLocation = "CreativePowers.ModifyRainPower";
1934 }
1935
1936 // Token: 0x06004D69 RID: 19817 RVA: 0x00273854 File Offset: 0x00271A54
1937 internal override void UpdateInfoFromSliderValueCache()
1938 {
1940 if (!true)
1941 {
1942 }
1943 Main.StopRain();
1944 }
1945
1946 // Token: 0x06004D6A RID: 19818 RVA: 0x0027388C File Offset: 0x00271A8C
1947 internal override float GetSliderValueInner()
1948 {
1949 /*
1950An exception occurred when decompiling this method (06004D6A)
1951
1952ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Creative.CreativePowers/ModifyRainPower::GetSliderValueInner()
1953
1954 ---> System.Exception: Basic block has to end with unconditional control flow.
1955{
1956 IL_0000:
1957 brtrue(IL_0000, ldc.i4:bool(1))
1958}
1959
1960 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
1961 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
1962 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
1963 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
1964 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
1965 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
1966 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
1967 --- End of inner exception stack trace ---
1968 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
1969 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
1970*/;
1971 }
1972
1973 // Token: 0x06004D6B RID: 19819 RVA: 0x0027389C File Offset: 0x00271A9C
1974 public override bool GetIsUnlocked()
1975 {
1976 return true;
1977 }
1978
1979 // Token: 0x06004D6C RID: 19820 RVA: 0x002738AC File Offset: 0x00271AAC
1980 public override UIElement ProvideSlider()
1981 {
1982 /*
1983An exception occurred when decompiling this method (06004D6C)
1984
1985ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.UIElement Terraria.GameContent.Creative.CreativePowers/ModifyRainPower::ProvideSlider()
1986
1987 ---> System.Exception: Basic block has to end with unconditional control flow.
1988{
1989 Block_0:
1990 stloc:LocalizedText(var_2_0C, call:LocalizedText(Language::GetText, ldstr:string("CreativePowers.WeatherMonsoon")))
1991 stloc:LocalizedText(var_4_19, call:LocalizedText(Language::GetText, ldstr:string("CreativePowers.WeatherClearSky")))
1992 stloc:LocalizedText(var_6_28, call:LocalizedText(Language::GetText, ldstr:string("CreativePowers.WeatherDrizzle")))
1993}
1994
1995 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
1996 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
1997 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
1998 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
1999 --- End of inner exception stack trace ---
2000 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
2001 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
2002*/;
2003 }
2004
2005 // Token: 0x06004D6D RID: 19821 RVA: 0x002738E8 File Offset: 0x00271AE8
2009
2010 // Token: 0x06004D6E RID: 19822 RVA: 0x002738F8 File Offset: 0x00271AF8
2014
2015 // Token: 0x06004D6F RID: 19823 RVA: 0x00273908 File Offset: 0x00271B08
2019
2020 // Token: 0x06004D70 RID: 19824 RVA: 0x00273918 File Offset: 0x00271B18
2022 {
2023 if (listeningElement != null)
2024 {
2025 }
2026 }
2027
2028 // Token: 0x06004D71 RID: 19825 RVA: 0x0027392C File Offset: 0x00271B2C
2030 {
2031 if (listeningElement != null)
2032 {
2033 }
2034 }
2035
2036 // Token: 0x06004D72 RID: 19826 RVA: 0x00273940 File Offset: 0x00271B40
2038 {
2039 bool <IsMouseHovering>k__BackingField = affectedElement.<IsMouseHovering>k__BackingField;
2040 if (<IsMouseHovering>k__BackingField)
2041 {
2042 if (!<IsMouseHovering>k__BackingField)
2043 {
2044 }
2046 }
2047 }
2048 }
2049
2050 // Token: 0x02000A47 RID: 2631
2052 {
2053 // Token: 0x06004D73 RID: 19827 RVA: 0x00273968 File Offset: 0x00271B68
2054 internal override void CustomizeButton(UIElement button)
2055 {
2056 if (!true)
2057 {
2058 }
2060 button.Append(uiimageFramed);
2061 }
2062
2063 // Token: 0x06004D74 RID: 19828 RVA: 0x00273980 File Offset: 0x00271B80
2064 internal override string GetButtonTextKey()
2065 {
2066 return "CreativePowers.FreezeTime";
2067 }
2068
2069 // Token: 0x06004D75 RID: 19829 RVA: 0x00273994 File Offset: 0x00271B94
2070 public override bool GetIsUnlocked()
2071 {
2072 return true;
2073 }
2074
2075 // Token: 0x06004D76 RID: 19830 RVA: 0x002739A4 File Offset: 0x00271BA4
2076 public void Save(BinaryWriter writer)
2077 {
2078 bool <Enabled>k__BackingField = this.<Enabled>k__BackingField;
2079 }
2080
2081 // Token: 0x06004D77 RID: 19831 RVA: 0x002739B8 File Offset: 0x00271BB8
2083 {
2084 this.<Enabled>k__BackingField = reader != null;
2085 }
2086
2087 // Token: 0x06004D78 RID: 19832 RVA: 0x002739CC File Offset: 0x00271BCC
2089 {
2090 }
2091
2092 // Token: 0x06004D79 RID: 19833 RVA: 0x002739DC File Offset: 0x00271BDC
2093 public FreezeTime()
2094 {
2095 }
2096 }
2097
2098 // Token: 0x02000A48 RID: 2632
2100 {
2101 // Token: 0x06004D7A RID: 19834 RVA: 0x002739F0 File Offset: 0x00271BF0
2102 internal override void CustomizeButton(UIElement button)
2103 {
2104 if (!true)
2105 {
2106 }
2108 button.Append(uiimageFramed);
2109 }
2110
2111 // Token: 0x06004D7B RID: 19835 RVA: 0x00273A08 File Offset: 0x00271C08
2112 internal override string GetButtonTextKey()
2113 {
2114 return "CreativePowers.FreezeWindDirectionAndStrength";
2115 }
2116
2117 // Token: 0x06004D7C RID: 19836 RVA: 0x00273A1C File Offset: 0x00271C1C
2118 public override bool GetIsUnlocked()
2119 {
2120 return true;
2121 }
2122
2123 // Token: 0x06004D7D RID: 19837 RVA: 0x00273A2C File Offset: 0x00271C2C
2124 public void Save(BinaryWriter writer)
2125 {
2126 bool <Enabled>k__BackingField = this.<Enabled>k__BackingField;
2127 }
2128
2129 // Token: 0x06004D7E RID: 19838 RVA: 0x00273A40 File Offset: 0x00271C40
2131 {
2132 this.<Enabled>k__BackingField = reader != null;
2133 }
2134
2135 // Token: 0x06004D7F RID: 19839 RVA: 0x00273A54 File Offset: 0x00271C54
2137 {
2138 }
2139
2140 // Token: 0x06004D80 RID: 19840 RVA: 0x00273A64 File Offset: 0x00271C64
2142 {
2143 }
2144 }
2145
2146 // Token: 0x02000A49 RID: 2633
2148 {
2149 // Token: 0x06004D81 RID: 19841 RVA: 0x00273A78 File Offset: 0x00271C78
2150 internal override void CustomizeButton(UIElement button)
2151 {
2152 if (!true)
2153 {
2154 }
2156 button.Append(uiimageFramed);
2157 }
2158
2159 // Token: 0x06004D82 RID: 19842 RVA: 0x00273A90 File Offset: 0x00271C90
2160 internal override string GetButtonTextKey()
2161 {
2162 return "CreativePowers.FreezeRainPower";
2163 }
2164
2165 // Token: 0x06004D83 RID: 19843 RVA: 0x00273AA4 File Offset: 0x00271CA4
2166 public override bool GetIsUnlocked()
2167 {
2168 return true;
2169 }
2170
2171 // Token: 0x06004D84 RID: 19844 RVA: 0x00273AB4 File Offset: 0x00271CB4
2172 public void Save(BinaryWriter writer)
2173 {
2174 bool <Enabled>k__BackingField = this.<Enabled>k__BackingField;
2175 }
2176
2177 // Token: 0x06004D85 RID: 19845 RVA: 0x00273AC8 File Offset: 0x00271CC8
2179 {
2180 this.<Enabled>k__BackingField = reader != null;
2181 }
2182
2183 // Token: 0x06004D86 RID: 19846 RVA: 0x00273ADC File Offset: 0x00271CDC
2185 {
2186 }
2187
2188 // Token: 0x06004D87 RID: 19847 RVA: 0x00273AEC File Offset: 0x00271CEC
2190 {
2191 }
2192 }
2193
2194 // Token: 0x02000A4A RID: 2634
2196 {
2197 // Token: 0x06004D88 RID: 19848 RVA: 0x00273B00 File Offset: 0x00271D00
2198 internal override void CustomizeButton(UIElement button)
2199 {
2200 if (!true)
2201 {
2202 }
2204 button.Append(uiimageFramed);
2205 }
2206
2207 // Token: 0x06004D89 RID: 19849 RVA: 0x00273B18 File Offset: 0x00271D18
2208 internal override string GetButtonTextKey()
2209 {
2210 return "CreativePowers.StopBiomeSpread";
2211 }
2212
2213 // Token: 0x06004D8A RID: 19850 RVA: 0x00273B2C File Offset: 0x00271D2C
2214 public override bool GetIsUnlocked()
2215 {
2216 return true;
2217 }
2218
2219 // Token: 0x06004D8B RID: 19851 RVA: 0x00273B3C File Offset: 0x00271D3C
2220 public void Save(BinaryWriter writer)
2221 {
2222 bool <Enabled>k__BackingField = this.<Enabled>k__BackingField;
2223 }
2224
2225 // Token: 0x06004D8C RID: 19852 RVA: 0x00273B50 File Offset: 0x00271D50
2227 {
2228 this.<Enabled>k__BackingField = reader != null;
2229 }
2230
2231 // Token: 0x06004D8D RID: 19853 RVA: 0x00273B64 File Offset: 0x00271D64
2233 {
2234 }
2235
2236 // Token: 0x06004D8E RID: 19854 RVA: 0x00273B74 File Offset: 0x00271D74
2238 {
2239 }
2240 }
2241
2242 // Token: 0x02000A4B RID: 2635
2244 {
2245 // Token: 0x17000892 RID: 2194
2246 // (get) Token: 0x06004D8F RID: 19855 RVA: 0x00273B88 File Offset: 0x00271D88
2247 // (set) Token: 0x06004D90 RID: 19856 RVA: 0x00273B9C File Offset: 0x00271D9C
2249 {
2251 get
2252 {
2253 /*
2254An exception occurred when decompiling this method (06004D8F)
2255
2256ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Creative.CreativePowers/SpawnRateSliderPerPlayerPower::get_StrengthMultiplierToGiveNPCs()
2257
2258 ---> System.Exception: Basic block has to end with unconditional control flow.
2259{
2260 Block_0:
2261 stloc:float32(var_0_06, ldfld:float32(SpawnRateSliderPerPlayerPower::<StrengthMultiplierToGiveNPCs>k__BackingField, ldloc:SpawnRateSliderPerPlayerPower(this)))
2262}
2263
2264 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
2265 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
2266 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
2267 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
2268 --- End of inner exception stack trace ---
2269 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
2270 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
2271*/;
2272 }
2274 private set
2275 {
2276 }
2277 }
2278
2279 // Token: 0x06004D91 RID: 19857 RVA: 0x00273BAC File Offset: 0x00271DAC
2281 {
2282 this._sliderDefaultValue = (float)16128;
2283 this._powerNameKey = "CreativePowers.NPCSpawnRateSlider";
2284 if ("CreativePowers.NPCSpawnRateSlider" == null)
2285 {
2286 }
2287 this._iconLocation = "CreativePowers.NPCSpawnRateSlider";
2288 }
2289
2290 // Token: 0x06004D92 RID: 19858 RVA: 0x00273BE8 File Offset: 0x00271DE8
2292 {
2293 /*
2294An exception occurred when decompiling this method (06004D92)
2295
2296ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Creative.CreativePowers/SpawnRateSliderPerPlayerPower::GetShouldDisableSpawnsFor(System.Int32)
2297
2298 ---> System.Exception: Basic block has to end with unconditional control flow.
2299{
2300 IL_000C:
2301 stloc:int32(var_3_13, callgetter:int32(Main::get_myPlayer))
2302 stloc:float32(var_4_1A, ldfld:float32(APerPlayerSliderPower::_sliderCurrentValueCache, ldloc:SpawnRateSliderPerPlayerPower[exp:APerPlayerSliderPower](this)))
2303 stloc:float32[](var_6_25, ldfld:float32[](APerPlayerSliderPower::_cachePerPlayer, ldloc:SpawnRateSliderPerPlayerPower[exp:APerPlayerSliderPower](this)))
2304}
2305
2306 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
2307 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
2308 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
2309 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
2310 --- End of inner exception stack trace ---
2311 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
2312 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
2313*/;
2314 }
2315
2316 // Token: 0x06004D93 RID: 19859 RVA: 0x00273C1C File Offset: 0x00271E1C
2317 internal override void UpdateInfoFromSliderValueCache()
2318 {
2319 }
2320
2321 // Token: 0x06004D94 RID: 19860 RVA: 0x00273C2C File Offset: 0x00271E2C
2322 public override float RemapSliderValueToPowerValue(float sliderValue)
2323 {
2324 if (!true)
2325 {
2326 }
2327 return float.Epsilon;
2328 }
2329
2330 // Token: 0x06004D95 RID: 19861 RVA: 0x00273C48 File Offset: 0x00271E48
2331 public override UIElement ProvideSlider()
2332 {
2333 }
2334
2335 // Token: 0x06004D96 RID: 19862 RVA: 0x00273C60 File Offset: 0x00271E60
2337 {
2338 if (listeningElement != null)
2339 {
2340 }
2341 }
2342
2343 // Token: 0x06004D97 RID: 19863 RVA: 0x00273C74 File Offset: 0x00271E74
2345 {
2346 if (listeningElement != null)
2347 {
2348 }
2349 }
2350
2351 // Token: 0x06004D98 RID: 19864 RVA: 0x00273C88 File Offset: 0x00271E88
2355
2356 // Token: 0x06004D99 RID: 19865 RVA: 0x00273C98 File Offset: 0x00271E98
2360
2361 // Token: 0x06004D9A RID: 19866 RVA: 0x00273CA8 File Offset: 0x00271EA8
2365
2366 // Token: 0x06004D9B RID: 19867 RVA: 0x00273CB8 File Offset: 0x00271EB8
2368 {
2369 if (affectedElement.<IsMouseHovering>k__BackingField)
2370 {
2371 float sliderValue = base.GetSliderValue();
2372 string text2;
2373 string text = "x" + text2;
2374 int myPlayer = Main.myPlayer;
2376 string textValue = Language.GetTextValue(this._powerNameKey + "EnemySpawnsDisabled");
2377 if ("EnemySpawnsDisabled" == null)
2378 {
2379 }
2380 if ("EnemySpawnsDisabled" == null)
2381 {
2382 }
2383 }
2384 }
2385
2386 // Token: 0x06004D9C RID: 19868 RVA: 0x00273D18 File Offset: 0x00271F18
2387 public override bool GetIsUnlocked()
2388 {
2389 return true;
2390 }
2391
2392 // Token: 0x06004D9D RID: 19869 RVA: 0x00273D28 File Offset: 0x00271F28
2393 public void Save(Player player, BinaryWriter writer)
2394 {
2396 }
2397
2398 // Token: 0x06004D9E RID: 19870 RVA: 0x00273D3C File Offset: 0x00271F3C
2405
2406 // Token: 0x06004D9F RID: 19871 RVA: 0x00273D60 File Offset: 0x00271F60
2407 public void Load(Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
2408 {
2409 Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass = player.savedPerPlayerFieldsThatArentInThePlayerClass;
2410 }
2411
2412 // Token: 0x06004DA0 RID: 19872 RVA: 0x00273D74 File Offset: 0x00271F74
2414 {
2415 float spawnRatePowerSliderValue = player.savedPerPlayerFieldsThatArentInThePlayerClass.spawnRatePowerSliderValue;
2416 }
2417
2418 // Token: 0x0400869A RID: 34458
2420 private float <StrengthMultiplierToGiveNPCs>k__BackingField;
2421 }
2422 }
2423}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
static void AddPermissionTextIfNeeded(ICreativePower power, string originalText)
static bool IsAvailableForPlayer(ICreativePower power, int playerIndex)
static UIImageFramed GetIconImage(Point iconLocation)
PowerPermissionLevel< DefaultPermissionLevel > k__BackingField
void ProvidePowerButtons(CreativePowerUIElementRequestInfo info, List< UIElement > elements)
PowerPermissionLevel< CurrentPermissionLevel > k__BackingField
GroupOptionButton< int > GetOptionButton(CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
bool GetRemappedSliderValueFor(int playerIndex, [Out] float value)
PowerPermissionLevel< CurrentPermissionLevel > k__BackingField
void ProvidePowerButtons(CreativePowerUIElementRequestInfo info, List< UIElement > elements)
void button_OnClick(UIMouseEvent evt, UIElement listeningElement)
PowerPermissionLevel< DefaultPermissionLevel > k__BackingField
PowerPermissionLevel< CurrentPermissionLevel > k__BackingField
void button_OnClick(UIMouseEvent evt, UIElement listeningElement)
void ProvidePowerButtons(CreativePowerUIElementRequestInfo info, List< UIElement > elements)
PowerPermissionLevel< DefaultPermissionLevel > k__BackingField
PowerPermissionLevel< DefaultPermissionLevel > k__BackingField
GroupOptionButton< int > GetOptionButton(CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
PowerPermissionLevel< CurrentPermissionLevel > k__BackingField
void ProvidePowerButtons(CreativePowerUIElementRequestInfo info, List< UIElement > elements)
PowerPermissionLevel< DefaultPermissionLevel > k__BackingField
void ProvidePowerButtons(CreativePowerUIElementRequestInfo info, List< UIElement > elements)
void button_OnClick(UIMouseEvent evt, UIElement listeningElement)
PowerPermissionLevel< CurrentPermissionLevel > k__BackingField
void Click_Expert(UIMouseEvent evt, UIElement listeningElement)
void Click_Normal(UIMouseEvent evt, UIElement listeningElement)
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Click_Journey(UIMouseEvent evt, UIElement listeningElement)
void Click_Master(UIMouseEvent evt, UIElement listeningElement)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
static void Button_OnMouseOut(UIMouseEvent evt, UIElement listeningElement)
static void Button_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
static void AddIndication(UIPanel panel, float yAnchor, string indicationText, string iconImagePath, UIElement.ElementEvent updateEvent, UIElement.MouseEvent clickEvent)
void Load(Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
void Save(Player player, BinaryWriter writer)
void UpdateSliderAndShowMultiplierMouseOver(UIElement affectedElement)
void middleText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void topText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void bottomText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOut(UIMouseEvent evt, UIElement listeningElement)
void UpdateSliderAndShowMultiplierMouseOver(UIElement affectedElement)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Button_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
void bottomText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOut(UIMouseEvent evt, UIElement listeningElement)
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void topText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void middleText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void bottomText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOut(UIMouseEvent evt, UIElement listeningElement)
void topText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void middleText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void topText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void bottomText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOut(UIMouseEvent evt, UIElement listeningElement)
void middleText_OnClick(UIMouseEvent evt, UIElement listeningElement)
void Button_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
void Load(Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
static NetPacket PreparePacket(ushort powerId, int specificInfoBytesInPacketCount)
static string GetTextValue(string key)
Definition Language.cs:54
static bool NetHost
Definition Main.cs:5544
static int myPlayer
Definition Main.cs:2337
static bool masterMode
Definition Main.cs:4176
static bool NetClientOnly
Definition Main.cs:5407
static void StopRain()
Definition Main.cs:17794
Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass
Definition Player.cs:23528
void Append(UIElement element)
Definition UIElement.cs:412
int CompareTo(object value)
Definition DateTime.cs:239
static DateTime UtcNow
Definition DateTime.cs:1318
BinaryWriter Writer
Definition NetPacket.cs:31