-
Notifications
You must be signed in to change notification settings - Fork 15
/
tsorcRevamp.cs
3744 lines (3434 loc) · 203 KB
/
tsorcRevamp.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Security.Cryptography;
using System.Threading.Tasks;
using System.Windows.Forms;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.GameContent.ItemDropRules;
using Terraria.GameContent.UI;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
using Terraria.ModLoader.IO;
using Terraria.UI;
using tsorcRevamp.Banners;
using tsorcRevamp.Buffs.Runeterra.Summon;
using tsorcRevamp.Buffs.Weapons.Summon;
using tsorcRevamp.Items;
using tsorcRevamp.Items.BossBags;
using tsorcRevamp.Items.Lore;
using tsorcRevamp.Items.Materials;
using tsorcRevamp.Items.Pets;
using tsorcRevamp.Items.Potions;
using tsorcRevamp.Items.Weapons.Summon;
using tsorcRevamp.Items.Weapons.Summon.Runeterra;
using tsorcRevamp.NPCs.Bosses;
using tsorcRevamp.NPCs.Bosses.JungleWyvern;
using tsorcRevamp.NPCs.Bosses.Okiku.FinalForm;
using tsorcRevamp.NPCs.Bosses.Okiku.FirstForm;
using tsorcRevamp.NPCs.Bosses.Okiku.SecondForm;
using tsorcRevamp.NPCs.Bosses.Okiku.ThirdForm;
using tsorcRevamp.NPCs.Bosses.Pinwheel;
using tsorcRevamp.NPCs.Bosses.PrimeV2;
using tsorcRevamp.NPCs.Bosses.Serris;
using tsorcRevamp.NPCs.Bosses.SuperHardMode;
using tsorcRevamp.NPCs.Bosses.SuperHardMode.Fiends;
using tsorcRevamp.NPCs.Bosses.SuperHardMode.GhostWyvernMage;
using tsorcRevamp.NPCs.Bosses.SuperHardMode.HellkiteDragon;
using tsorcRevamp.NPCs.Bosses.SuperHardMode.Seath;
using tsorcRevamp.NPCs.Bosses.WyvernMage;
using tsorcRevamp.NPCs.Enemies;
using tsorcRevamp.NPCs.Enemies.JungleWyvernJuvenile;
using tsorcRevamp.NPCs.Enemies.ParasyticWorm;
using tsorcRevamp.NPCs.Enemies.SuperHardMode.SerpentOfTheAbyss;
using tsorcRevamp.NPCs.Special;
using tsorcRevamp.Projectiles.Summon;
using tsorcRevamp.Projectiles.Summon.Archer;
using tsorcRevamp.Projectiles.Summon.NullSprite;
using tsorcRevamp.Projectiles.Summon.Phoenix;
using tsorcRevamp.Projectiles.Summon.Runeterra.CirclingProjectiles;
using tsorcRevamp.Projectiles.Summon.SamuraiBeetle;
using tsorcRevamp.Projectiles.Summon.SunsetQuasar;
using tsorcRevamp.Projectiles.Summon.Tetsujin;
using tsorcRevamp.Projectiles.Summon.EtherianWyvern;
using tsorcRevamp.Projectiles.Summon.PhotonicDownpour;
using tsorcRevamp.Projectiles.Summon.ShatteredReflection;
using tsorcRevamp.Projectiles.Summon.TripleThreat;
using tsorcRevamp.Tiles;
using tsorcRevamp.Tiles.BuffStations;
using tsorcRevamp.Tiles.Relics;
using tsorcRevamp.Tiles.Trophies;
using tsorcRevamp.UI;
using tsorcRevamp.Utilities;
using static tsorcRevamp.ILEdits;
using static tsorcRevamp.MethodSwaps;
using System.Linq;
namespace tsorcRevamp
{
public class tsorcRevamp : Mod
{
public class tsorcItemDropRuleConditions
{
public static IItemDropRuleCondition SuperHardmodeRule;
public static IItemDropRuleCondition FirstBagRule;
public static IItemDropRuleCondition CursedRule;
public static IItemDropRuleCondition FirstBagCursedRule;
public static IItemDropRuleCondition AdventureModeRule;
public static IItemDropRuleCondition NonAdventureModeRule;
public static IItemDropRuleCondition NonExpertFirstKillRule;
public static IItemDropRuleCondition DownedSkeletronRule;
}
public enum BossExtras
{
EstusFlaskShard = 0b1000,
GuardianSoul = 0b0100,
StaminaVessel = 0b0010,
SublimeBoneDust = 0b0001,
DarkSoulsOnly = 0b0000,
SoulVessel = 0b10000
};
public static ModKeybind toggleDragoonBoots;
public static ModKeybind reflectionShiftKey;
public static ModKeybind specialAbility;
public static ModKeybind NecromancersSpell;
public static ModKeybind KrakensCast;
public static ModKeybind WolfRing;
public static ModKeybind WingsOfSeath;
public static ModKeybind Shunpo;
public static bool isAdventureMap = false;
public static int DarkSoulCustomCurrencyId;
internal bool UICooldown = false;
internal bool worldButtonClicked = false;
internal static int worldDownloadFailures = 0;
internal static int RemixworldDownloadFailures = 0;
internal static int musicModDownloadFailures = 0;
public static List<int> KillAllowed;
public static List<int> PlaceAllowed;
public static List<int> DroppableTiles = new List<int>();
public static List<int> Unbreakable;
public static List<int> IgnoredTiles;
public static List<int> CrossModTiles;
public static List<int> PlaceAllowedModTiles;
public static List<int> BannedItems;
public static List<int> RestrictedHooks;
public static List<int> DisabledRecipes;
public static List<int> GiantWormSegments;
public static List<int> DevourerSegments;
public static List<int> TombCrawlerSegments;
public static List<int> DiggerSegments;
public static List<int> LeechSegments;
public static List<int> SeekerSegments;
public static List<int> DuneSplicerSegments;
public static List<int> StardustWormSegments;
public static List<int> CrawltipedeSegments;
public static List<int> EaterOfWorldsSegments;
public static List<int> DestroyerSegments;
public static List<int> JungleWyvernSegments;
public static List<int> JuvenileJungleWyvernSegments;
public static List<int> ParasyticWormSegments;
public static List<int> SerpentOfTheAbyssSegments;
public static List<int> MechaDragonSegments;
public static List<int> SerrisSegments;
public static List<int> GhostDragonSegments;
public static List<int> HellkiteDragonSegments;
public static List<int> LichKingSerpentSegments;
public static List<int> SeathSegments;
public static List<int> UntargetableNPCs;
public static List<int> MageNPCs;
public static List<int> VanillaMeleeBlackList;
public static Dictionary<BossExtras, (IItemDropRuleCondition Condition, int ID)> BossExtrasDescription;
public static Dictionary<int, BossExtras> AssignedBossExtras;
public static Dictionary<int, int> BossBagIDtoNPCID;
public static Dictionary<int, List<int>> RemovedBossBagLoot;
public static Dictionary<int, List<IItemDropRule>> AddedBossBagLoot;
public static Dictionary<int, List<(int ID, int Count)>> ModifiedRecipes;
public static Dictionary<int, Vector2> WhipTipBases;
public static Dictionary<int, float> WhipRanges;
internal BonfireUIState BonfireUIState;
internal UserInterface _bonfireUIState; //"but zeo!", you say
internal DarkSoulCounterUIState DarkSoulCounterUIState;
internal UserInterface _darkSoulCounterUIState; //"prefacing a name with an underscore is supposed to be for private fields!"
internal UserInterface EmeraldHeraldUserInterface;
internal EstusFlaskUIState EstusFlaskUIState;
internal CeruleanFlaskUIState CeruleanFlaskUIState;
internal UserInterface _estusFlaskUIState; //okay
internal UserInterface _ceruleanFlaskUIState; //idk what to say
internal PotionBagUIState PotionUIState;
internal UserInterface PotionBagUserInterface;
internal CustomMapUIState DownloadUIState;
internal UserInterface DownloadUI;
internal MapMarkersUIState MarkerState;
internal UserInterface MarkerInterface;
public static FieldInfo AudioLockInfo;
public static FieldInfo ActiveSoundInstancesInfo;
public static FieldInfo AreSoundsPausedInfo;
public static FieldInfo TrackedSoundsInfo;
public static Effect TheAbyssEffect;
public static Effect RetShockwaveEffect;
public static Effect SpazShockwaveEffect;
public static Effect CatShockwaveEffect;
//public static Effect AttraidiesEffect;
public static bool MusicNeedsUpdate = false;
public static bool justUpdatedMusic = false;
public static bool ReloadNeeded = false;
public static bool SpecialReloadNeeded = false;
public static bool DownloadingMusic = false;
public static float MusicDownloadProgress = 0;
public static string newMapUpdateString = "";
public static string newRemixMapUpdateString = "";
public static float MapDownloadProgress = 0;
public static float MapDownloadTotalBytes = 0;
public static float RemixMapDownloadProgress = 0;
public static float RemixMapDownloadTotalBytes = 0;
public static ModKeybind DodgerollKey;
//public static ModHotKey SwordflipKey;
internal static bool[] CustomDungeonWalls;
public static bool ActuationBypassActive = false;
public static int MarkerSelected = -1;
public static SoapstoneTileEntity NearbySoapstone;
public static bool NearbySoapstoneMouse;
public static float NearbySoapstoneMouseDistance;
public static Texture2D NoiseTurbulent;
public static Texture2D NoiseSplotchy;
public static Texture2D NoiseWavy;
public static Texture2D NoiseCircuit;
public static Texture2D NoiseVoronoi;
public static Texture2D NoiseMarble;
public static Texture2D NoiseSmooth;
public static Texture2D NoiseSwirly;
public static Texture2D NoisePerlin;
public override void Load()
{
TextureAssets.Npc[NPCID.Deerclops] = ModContent.Request<Texture2D>("tsorcRevamp/NPCs/Bosses/AncestralSpirit");
TextureAssets.NpcHeadBoss[39] = ModContent.Request<Texture2D>("tsorcRevamp/NPCs/Bosses/AncestralSpirit_Head_Boss");
TextureAssets.Gore[GoreID.DeerclopsHead] = ModContent.Request<Texture2D>("tsorcRevamp/Gores/AncestorSpirit_Gore_1");
TextureAssets.Gore[GoreID.DeerclopsAntler] = ModContent.Request<Texture2D>("tsorcRevamp/Gores/AncestorSpirit_Gore_3");
TextureAssets.Gore[GoreID.DeerclopsBody] = ModContent.Request<Texture2D>("tsorcRevamp/Gores/AncestorSpirit_Gore_5");
TextureAssets.Gore[GoreID.DeerclopsArm] = ModContent.Request<Texture2D>("tsorcRevamp/Gores/AncestorSpirit_Gore_6");
TextureAssets.Gore[GoreID.DeerclopsLeg] = ModContent.Request<Texture2D>("tsorcRevamp/Gores/AncestorSpirit_Gore_7");
toggleDragoonBoots = KeybindLoader.RegisterKeybind(this, "Dragoon Boots", Microsoft.Xna.Framework.Input.Keys.Z);
reflectionShiftKey = KeybindLoader.RegisterKeybind(this, "Reflection Shift", Microsoft.Xna.Framework.Input.Keys.O);
DodgerollKey = KeybindLoader.RegisterKeybind(this, "Dodge Roll", Microsoft.Xna.Framework.Input.Keys.LeftAlt);
specialAbility = KeybindLoader.RegisterKeybind(this, "Special Ability", Microsoft.Xna.Framework.Input.Keys.Q);
WolfRing = KeybindLoader.RegisterKeybind(this, "Wolf Ring", Microsoft.Xna.Framework.Input.Keys.Y);
WingsOfSeath = KeybindLoader.RegisterKeybind(this, "Wings of Seath speed toggle", Microsoft.Xna.Framework.Input.Keys.U);
//armor set bonus keybinds
NecromancersSpell = KeybindLoader.RegisterKeybind(this, "Necromancers Spell", Microsoft.Xna.Framework.Input.Keys.V);
KrakensCast = KeybindLoader.RegisterKeybind(this, "Krakens Cast", Microsoft.Xna.Framework.Input.Keys.V);
Shunpo = KeybindLoader.RegisterKeybind(this, "Shunpo", Microsoft.Xna.Framework.Input.Keys.V);
//SwordflipKey = KeybindLoader.RegisterKeybind(this, "Sword Flip", Microsoft.Xna.Framework.Input.Keys.P);
DarkSoulCustomCurrencyId = CustomCurrencyManager.RegisterCurrency(new DarkSoulCustomCurrency(ModContent.ItemType<SoulCoin>(), 99999L));
BonfireUIState = new BonfireUIState();
_bonfireUIState = new UserInterface();
DarkSoulCounterUIState = new DarkSoulCounterUIState();
//if (!Main.dedServ) DarkSoulCounterUIState.Activate();
_darkSoulCounterUIState = new UserInterface();
EstusFlaskUIState = new EstusFlaskUIState();
//if (!Main.dedServ) EstusFlaskUIState.Activate();
_estusFlaskUIState = new UserInterface();
CeruleanFlaskUIState = new CeruleanFlaskUIState();
_ceruleanFlaskUIState = new UserInterface();
PotionUIState = new PotionBagUIState();
PotionBagUserInterface = new UserInterface();
DownloadUIState = new CustomMapUIState();
DownloadUI = new UserInterface();
MarkerState = new MapMarkersUIState();
MarkerInterface = new UserInterface();
ApplyMethodSwaps();
ApplyILs();
PopulateArrays();
if (Main.dedServ)
return;
BonfireUIState.Activate();
_bonfireUIState.SetState(BonfireUIState);
_darkSoulCounterUIState.SetState(DarkSoulCounterUIState);
_estusFlaskUIState.SetState(EstusFlaskUIState);
_ceruleanFlaskUIState.SetState(CeruleanFlaskUIState);
PotionBagUserInterface.SetState(PotionUIState);
DownloadUI.SetState(DownloadUIState);
MarkerState.Activate();
MarkerInterface.SetState(MarkerState);
Main.QueueMainThreadAction(TransparentTextureHandler.TransparentTextureFix);
tsorcRevamp Instance = this;
SpazmatismV2.secondStageHeadSlot = AddBossHeadTexture("tsorcRevamp/NPCs/Bosses/SpazmatismV2_Head_Boss_2", -1);
RetinazerV2.secondStageHeadSlot = AddBossHeadTexture("tsorcRevamp/NPCs/Bosses/RetinazerV2_Head_Boss_2", -1);
Cataluminance.secondStageHeadSlot = AddBossHeadTexture("tsorcRevamp/NPCs/Bosses/Cataluminance_Head_Boss_2", -1);
TheAbyssEffect = ModContent.Request<Effect>("tsorcRevamp/Effects/ScreenFilters/TheAbyssShader", ReLogic.Content.AssetRequestMode.ImmediateLoad).Value;
Filters.Scene["tsorcRevamp:TheAbyss"] = new Filter(new ScreenShaderData(new Terraria.Ref<Effect>(TheAbyssEffect), "TheAbyssShaderPass").UseImage("Images/Misc/noise"), EffectPriority.Low);
RetShockwaveEffect = ModContent.Request<Effect>("tsorcRevamp/Effects/ScreenFilters/TriadShockwave", ReLogic.Content.AssetRequestMode.ImmediateLoad).Value;
Filters.Scene["tsorcRevamp:RetShockwave"] = new Filter(new ScreenShaderData(new Terraria.Ref<Effect>(RetShockwaveEffect), "TriadShockwavePass").UseImage("Images/Misc/noise"), EffectPriority.VeryHigh);
SpazShockwaveEffect = ModContent.Request<Effect>("tsorcRevamp/Effects/ScreenFilters/TriadShockwave", ReLogic.Content.AssetRequestMode.ImmediateLoad).Value;
Filters.Scene["tsorcRevamp:SpazShockwave"] = new Filter(new ScreenShaderData(new Terraria.Ref<Effect>(SpazShockwaveEffect), "TriadShockwavePass").UseImage("Images/Misc/noise"), EffectPriority.VeryHigh);
CatShockwaveEffect = ModContent.Request<Effect>("tsorcRevamp/Effects/ScreenFilters/TriadShockwave", ReLogic.Content.AssetRequestMode.ImmediateLoad).Value;
Filters.Scene["tsorcRevamp:CatShockwave"] = new Filter(new ScreenShaderData(new Terraria.Ref<Effect>(CatShockwaveEffect), "TriadShockwavePass").UseImage("Images/Misc/noise"), EffectPriority.VeryHigh);
NoiseTurbulent = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/TurbulentNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseSplotchy = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/SplotchyNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseWavy = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/WavyNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseCircuit = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/CircuitNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseVoronoi = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/VoronoiNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseMarble = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/MarbleNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseSmooth = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/SmoothNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoiseSwirly = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/SwirlyNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
NoisePerlin = (Texture2D)ModContent.Request<Texture2D>("tsorcRevamp/Textures/Noise/PerlinNoise", ReLogic.Content.AssetRequestMode.ImmediateLoad);
//AttraidiesEffect = Instance.GetEffect("Effects/ScreenFilters/AttraidiesShader");
//Filters.Scene["tsorcRevamp:AttraidiesShader"] = new Filter(new ScreenShaderData(new Terraria.Ref<Effect>(AttraidiesEffect), "AttraidiesShaderPass").UseImage("Images/Misc/noise"), EffectPriority.Low);
EmeraldHeraldUserInterface = new UserInterface();
/*
if (!Main.dedServ)
{
Main.instance.LoadNPC(NPCID.TheDestroyer);
TextureAssets.Npc[NPCID.TheDestroyer] = ModContent.Request<Texture2D>("NPCs/Bosses/TheDestroyer/NPC_134");
Main.instance.LoadNPC(NPCID.TheDestroyerBody);
TextureAssets.Npc[NPCID.TheDestroyerBody] = ModContent.Request<Texture2D>("NPCs/Bosses/TheDestroyer/NPC_135");
Main.instance.LoadNPC(NPCID.TheDestroyerTail);
TextureAssets.Npc[NPCID.TheDestroyerTail] = ModContent.Request<Texture2D>("NPCs/Bosses/TheDestroyer/NPC_136");
Main.instance.LoadGore(156);
TextureAssets.Gore[156] = ModContent.Request<Texture2D>("NPCs/Bosses/TheDestroyer/Gore_156");
Main.instance.LoadNPC(NPCID.Probe);
TextureAssets.Npc[NPCID.Probe] = ModContent.Request<Texture2D>("NPCs/Bosses/TheDestroyer/NPC_139");
}*/
UpdateCheck();
}
private void PopulateArrays()
{
#region tsorcItemDropRuleConditions class
tsorcItemDropRuleConditions.SuperHardmodeRule = new SuperHardmodeRule();
tsorcItemDropRuleConditions.FirstBagRule = new FirstBagRule();
tsorcItemDropRuleConditions.CursedRule = new CursedRule();
tsorcItemDropRuleConditions.FirstBagCursedRule = new FirstBagCursedRule();
tsorcItemDropRuleConditions.AdventureModeRule = new AdventureModeRule();
tsorcItemDropRuleConditions.NonAdventureModeRule = new NonAdventureModeRule();
tsorcItemDropRuleConditions.NonExpertFirstKillRule = new NonExpertFirstKillRule();
tsorcItemDropRuleConditions.DownedSkeletronRule = new DownedSkeletronRule();
#endregion
//--------
#region Unbreakable list
Unbreakable = new List<int>() {
TileID.Platforms, TileID.Signs, TileID.Teleporter, TileID.TeleportationPylon, //platforms, altars, signs, teleporters, pylons, 22 ie demonite ore was removed here as it should be breakable
TileID.MusicBoxes, TileID.LunarMonolith, TileID.BloodMoonMonolith, TileID.VoidMonolith, //music boxes, all monoliths
TileID.Rope, TileID.Chain, TileID.VineRope, TileID.SilkRope, TileID.WebRope, //all ropes and chain
TileID.Spikes, TileID.WoodenSpikes, TileID.LandMine, TileID.RollingCactus, //spikes, jungle spikes, land mines, rolling cactus
TileID.Statues, TileID.AlphabetStatues, TileID.BoulderStatue, TileID.Traps, TileID.Boulder, TileID.Explosives, TileID.Firework, TileID.Detonator, TileID.FakeContainers, TileID.FakeContainers2, //all statues, traps, boulders, explosives, party rockets, detonator, trapped chests
TileID.ActiveStoneBlock, TileID.InactiveStoneBlock, TileID.Bubble, TileID.Grate, TileID.GrateClosed, TileID.LunarOre, //toggled stone blocks, bubbles, grates open and closed, Luminite
TileID.Lever, TileID.PressurePlates, TileID.Switches, TileID.InletPump, TileID.OutletPump, TileID.Timers, TileID.LogicGateLamp, TileID.LogicGate, TileID.ConveyorBeltLeft, TileID.ConveyorBeltRight, TileID.LogicSensor, TileID.WirePipe, TileID.AnnouncementBox, TileID.WeightedPressurePlate, TileID.WireBulb, TileID.GemLocks, TileID.ProjectilePressurePad, // ALL (other) WIRING
ItemID.RedLight, ItemID.GreenLight, TileID.DesertFossil
};
#endregion
//--------
#region KillAllowed list
KillAllowed = new List<int>() {
//6, 7, 8, 9, 22, 37, 58, 63, 64, 65, 66, 67, 67, 68, 107, 108, 111, 166, 167, 168, 169, 211, 221, 222, 223, //All Ores
//50, //books (Boss tome can be bought, or a few books can be found in the village for crafting it)
//56, 79, 85, //obsidian, beds, tombstones (misc notable disables)
TileID.Torches, TileID.Bottles, // torches, tabled bottles
TileID.Heart, TileID.LifeFruit, TileID.ManaCrystal,
TileID.Trees, TileID.Saplings, TileID.MushroomTrees, TileID.PalmTree, TileID.Bamboo, TileID.TreeAmethyst, TileID.TreeTopaz, TileID.TreeSapphire, TileID.TreeEmerald, TileID.TreeRuby, TileID.TreeDiamond, TileID.TreeAmber, TileID.GemSaplings, TileID.VanityTreeSakuraSaplings, TileID.VanityTreeSakura, TileID.VanityTreeWillowSaplings, TileID.VanityTreeYellowWillow, // all trees and saplings
TileID.Tables, TileID.Tables2, TileID.Kegs, TileID.Blendomatic, TileID.MeatGrinder, TileID.DyeVat, TileID.ImbuingStation, TileID.TeaKettle, //tables, specialized crafting stations
TileID.Anvils, TileID.Furnaces, TileID.WorkBenches, TileID.Hellforge, TileID.Loom, TileID.CookingPots, TileID.Bookcases, TileID.Sawmill, TileID.TinkerersWorkbench, TileID.AdamantiteForge, TileID.MythrilAnvil, TileID.Sinks, TileID.Autohammer, TileID.HeavyWorkBench, TileID.AlchemyTable, TileID.LunarCraftingStation, //core crafting stations
TileID.Solidifier, TileID.BoneWelder, TileID.FleshCloningVat, TileID.GlassKiln, TileID.LihzahrdFurnace, TileID.LivingLoom, TileID.SkyMill, TileID.IceMachine, TileID.SteampunkBoiler, TileID.HoneyDispenser, TileID.LesionStation, //theme furniture crafting stations
TileID.Containers, TileID.Containers2, TileID.PiggyBank, TileID.Safes, TileID.DefendersForge, TileID.Banners, TileID.WarTableBanner, TileID.SharpeningStation, TileID.AmmoBox, TileID.CrystalBall, TileID.BewitchingTable, TileID.WarTable, TileID.CatBast, TileID.SliceOfCake, //chests, piggy bank, safe, defenders forge, banners, buff stations
TileID.Candles, TileID.WaterCandle, TileID.PlatinumCandle, TileID.PeaceCandle, TileID.ClayPot, TileID.Cannon, TileID.BeachPiles, TileID.Crystals, //all candles, clay pot, cannons, seashells, crystal/gelatin shards
TileID.MushroomPlants, TileID.Cactus, TileID.Coral, TileID.ImmatureHerbs, TileID.MatureHerbs, TileID.BloomingHerbs, TileID.DyePlants, TileID.Pumpkins, TileID.GardenGnome,//mushrooms, cactus, coral, all forms of herbs, dye plants, pumpkins, garden gnome
TileID.Mannequin, TileID.Womannequin, TileID.DisplayDoll, TileID.Painting3X3, TileID.GolfTrophies, TileID.MasterTrophyBase, //all mannequins, trophies and relics
TileID.BreakableIce, TileID.MagicalIceBlock, TileID.SeaweedPlanter, TileID.AbigailsFlower, //thin ice (breakable kind), Ice Rod's ice, seaweed/herb planters, abigail's flower
TileID.CrackedBlueDungeonBrick, TileID.CrackedGreenDungeonBrick, TileID.CrackedPinkDungeonBrick,
TileID.Sunflower, TileID.Pots, TileID.Cobweb, TileID.Vines, TileID.JungleVines, TileID.HallowedVines, TileID.CrimsonVines, TileID.VineFlowers, TileID.MushroomVines, //sunflower, pots, cobwebs, all cuttable vine
TileID.ShadowOrbs, TileID.CorruptThorns, TileID.JungleThorns, TileID.CrimsonThorns, TileID.Sand, TileID.Pearlsand, TileID.Ebonsand, TileID.Crimsand, TileID.Silt, TileID.Slush, TileID.LandMine, TileID.RollingCactus, //orbs/hearts, all thorns, all sands, land mines, rolling cactus
TileID.Stalactite, TileID.ExposedGems, TileID.SmallPiles, TileID.LargePiles, TileID.LargePiles2, TileID.PlantDetritus, TileID.OasisPlants, TileID.Larva, TileID.PlanteraBulb, TileID.AntlionLarva, //all ambient objects (background breakables), QB Larva, Plantera Bulb
TileID.Campfire, TileID.HangingLanterns, //Sunflowers, Campfires, Lanterns(including Heart Lantern and Star in a Bottle)
TileID.Sundial, TileID.Moondial, //Sundial, Moondial
TileID.LivingFire, TileID.LivingCursedFire, TileID.LivingDemonFire, TileID.LivingFrostFire, TileID.LivingIchor,
TileID.CopperCoinPile, TileID.SilverCoinPile, TileID.GoldCoinPile, TileID.PlatinumCoinPile
};
#endregion
//--------
#region PlaceAllowed list
PlaceAllowed = new List<int>() {
TileID.Torches, TileID.Bottles, // torches, tabled bottles
TileID.Trees, TileID.Saplings, TileID.MushroomTrees, TileID.PalmTree, TileID.Bamboo, TileID.TreeAmethyst, TileID.TreeTopaz, TileID.TreeSapphire, TileID.TreeEmerald, TileID.TreeRuby, TileID.TreeDiamond, TileID.TreeAmber, TileID.GemSaplings, TileID.VanityTreeSakuraSaplings, TileID.VanityTreeSakura, TileID.VanityTreeWillowSaplings, TileID.VanityTreeYellowWillow, // all trees and saplings
TileID.Tables, TileID.Tables2, TileID.Kegs, TileID.Blendomatic, TileID.MeatGrinder, TileID.DyeVat, TileID.ImbuingStation, TileID.TeaKettle, //tables, specialized crafting stations
TileID.Anvils, TileID.Furnaces, TileID.WorkBenches, TileID.Hellforge, TileID.Loom, TileID.CookingPots, TileID.Bookcases, TileID.Sawmill, TileID.TinkerersWorkbench, TileID.AdamantiteForge, TileID.MythrilAnvil, TileID.Sinks, TileID.Autohammer, TileID.HeavyWorkBench, TileID.AlchemyTable, TileID.LunarCraftingStation, //core crafting stations
TileID.Solidifier, TileID.BoneWelder, TileID.FleshCloningVat, TileID.GlassKiln, TileID.LihzahrdFurnace, TileID.LivingLoom, TileID.SkyMill, TileID.IceMachine, TileID.SteampunkBoiler, TileID.HoneyDispenser, TileID.LesionStation, //theme furniture crafting stations
TileID.Containers, TileID.Containers2, TileID.PiggyBank, TileID.Safes, TileID.DefendersForge, TileID.Banners, TileID.WarTableBanner, TileID.SharpeningStation, TileID.AmmoBox, TileID.CrystalBall, TileID.BewitchingTable, TileID.WarTable, TileID.CatBast, TileID.SliceOfCake, //chests, piggy bank, safe, defenders forge, banners, buff stations
TileID.Candles, TileID.WaterCandle, TileID.PlatinumCandle, TileID.PeaceCandle, TileID.ClayPot, TileID.Cannon, TileID.BeachPiles, //all candles, clay pot, cannons, seashells
TileID.MushroomPlants, TileID.Cactus, TileID.Coral, TileID.ImmatureHerbs, TileID.MatureHerbs, TileID.BloomingHerbs, TileID.DyePlants, TileID.Pumpkins, TileID.GardenGnome, //mushrooms, cactus, coral, all forms of herbs, dye plants, pumpkins, garden gnome
TileID.Mannequin, TileID.Womannequin, TileID.DisplayDoll, TileID.Painting3X3, TileID.GolfTrophies, TileID.MasterTrophyBase, //all mannequins, trophies and relics
TileID.SeaweedPlanter, //seaweed/herb planters
TileID.Sunflower, TileID.Campfire, TileID.HangingLanterns, //Sunflowers, Campfires, Lanterns(including Heart Lantern and Star in a Bottle)
TileID.Sundial, TileID.Moondial, //Sundial, Moondial
TileID.Grass,
TileID.CopperCoinPile, TileID.SilverCoinPile, TileID.GoldCoinPile, TileID.PlatinumCoinPile,
TileID.Pigronata
};
#endregion
//--------
#region IgnoredTiles list
IgnoredTiles = new List<int>() {
TileID.Torches, TileID.Heart, TileID.LifeFruit, TileID.Banners,
TileID.Trees, TileID.Saplings, TileID.MushroomTrees, TileID.PalmTree, TileID.Bamboo, TileID.TreeAmethyst, TileID.TreeTopaz, TileID.TreeSapphire, TileID.TreeEmerald, TileID.TreeRuby, TileID.TreeDiamond, TileID.TreeAmber, TileID.GemSaplings, TileID.VanityTreeSakuraSaplings, TileID.VanityTreeSakura, TileID.VanityTreeWillowSaplings, TileID.VanityTreeYellowWillow, // all trees and saplings
TileID.Crystals, TileID.BeachPiles, TileID.BreakableIce, TileID.AbigailsFlower, //crystal/gelatin shards, seashells, thin ice (breakable kind), abigail's flower
TileID.MushroomPlants, TileID.Cactus, TileID.Coral, TileID.ImmatureHerbs, TileID.MatureHerbs, TileID.BloomingHerbs, TileID.DyePlants, TileID.Pumpkins, //mushrooms, cactus, coral, all forms of herbs, dye plants, pumpkins
TileID.Sunflower, TileID.Pots, TileID.Cobweb, TileID.Vines, TileID.JungleVines, TileID.HallowedVines, TileID.CrimsonVines, TileID.VineFlowers, TileID.MushroomVines, //sunflower, pots, cobwebs, all cuttable vine
TileID.ShadowOrbs, TileID.CorruptThorns, TileID.JungleThorns, TileID.CrimsonThorns, TileID.LandMine, TileID.RollingCactus, //orbs/hearts, all thorns, land mines, rolling cactus
TileID.Stalactite, TileID.ExposedGems, TileID.SmallPiles, TileID.LargePiles, TileID.LargePiles2, TileID.PlantDetritus, TileID.OasisPlants, TileID.Larva, TileID.PlanteraBulb, TileID.AntlionLarva, //all ambient objects (background breakables), QB Larva, Plantera Bulb
TileID.Plants, TileID.Plants2, TileID.CorruptPlants, TileID.JunglePlants, TileID.JunglePlants2, TileID.HallowedPlants, TileID.HallowedPlants2, TileID.LongMoss, TileID.CrimsonPlants, TileID.LilyPad, TileID.Cattail, TileID.SeaOats, TileID.OasisPlants, TileID.Seaweed, //cuttable plants - all biomes
TileID.Lever, TileID.PressurePlates, TileID.Switches, TileID.InletPump, TileID.OutletPump, TileID.Timers, TileID.LogicGateLamp, TileID.LogicGate, TileID.ConveyorBeltLeft, TileID.ConveyorBeltRight, TileID.LogicSensor, TileID.WirePipe, TileID.AnnouncementBox, TileID.WeightedPressurePlate, TileID.WireBulb, TileID.GemLocks, TileID.ProjectilePressurePad, //wiring, incl pressure plates
TileID.WoodenBeam, TileID.LivingFire, TileID.LivingFrostFire, TileID.LivingCursedFire, TileID.LivingDemonFire, TileID.LivingUltrabrightFire, TileID.ChimneySmoke,
TileID.Pigronata
};
#endregion
//--------
#region CrossModTiles list
CrossModTiles = new List<int>();
Mod MagicStorage;
if (ModLoader.TryGetMod("MagicStorage", out MagicStorage))
{
CrossModTiles.Add(MagicStorage.Find<ModTile>("CraftingAccess").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("RemoteAccess").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("StorageAccess").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("StorageComponent").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("StorageHeart").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("StorageUnit").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("StorageConnector").Type);
CrossModTiles.Add(MagicStorage.Find<ModTile>("EnvironmentAccess").Type);
}
Mod MagicStorageExtra;
if (ModLoader.TryGetMod("MagicStorageExtra", out MagicStorageExtra))
{
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("CraftingAccess").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("CreativeStorageUnit").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("RemoteAccess").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("StorageAccess").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("StorageComponent").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("StorageHeart").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("StorageUnit").Type);
CrossModTiles.Add(MagicStorageExtra.Find<ModTile>("StorageConnector").Type);
}
#endregion
//--------
#region PlaceAllowedModTiles list
PlaceAllowedModTiles = new List<int>()
{
ModContent.TileType<NecromancyAltarTile>(),
ModContent.TileType<EnemyBannerTile>(),
ModContent.TileType<AncestralSpiritTrophyTile>(), ModContent.TileType<AncestralSpiritRelicTile>(),
ModContent.TileType<TheRageTrophyTile>(), ModContent.TileType<TheRageRelicTile>(),
ModContent.TileType<TheSorrowTrophyTile>(), ModContent.TileType<TheSorrowRelicTile>(),
ModContent.TileType<TheHunterTrophyTile>(), ModContent.TileType<TheHunterRelicTile>(),
ModContent.TileType<TheMachineTrophyTile>(), ModContent.TileType<TheMachineRelicTile>(),
ModContent.TileType<RetinazerTrophyTile>(), ModContent.TileType<SpazmatismTrophyTile>(), ModContent.TileType<CataluminanceTrophyTile>(), ModContent.TileType<TheTriadRelicTile>()
};
#endregion
//--------
#region DroppableTiles list
DroppableTiles = new List<int>()
{
TileID.AbigailsFlower,
TileID.Crystals,
TileID.Heart,
TileID.LifeFruit,
TileID.ManaCrystal,
TileID.ShadowOrbs,
//TileID.Cobweb,
TileID.Plants,
TileID.Plants2,
TileID.CorruptPlants,
TileID.CrimsonPlants,
TileID.HallowedPlants,
TileID.HallowedPlants2,
TileID.JungleGrass,
TileID.JunglePlants,
TileID.JunglePlants2,
TileID.BloomingHerbs,
TileID.ImmatureHerbs,
TileID.MatureHerbs,
TileID.MushroomGrass,
TileID.MushroomPlants,
TileID.MushroomTrees,
TileID.MushroomVines,
TileID.Trees,
TileID.TreeAmber,
TileID.TreeAmethyst,
TileID.TreeAsh,
TileID.TreeDiamond,
TileID.TreeEmerald,
TileID.TreeRuby,
TileID.TreeSapphire,
TileID.TreeTopaz,
TileID.ChristmasTree,
TileID.PalmTree,
TileID.PineTree,
TileID.VanityTreeSakura,
TileID.VanityTreeSakuraSaplings,
TileID.VanityTreeWillowSaplings,
TileID.VanityTreeYellowWillow,
TileID.Books,
TileID.Pigronata
};
#endregion
//--------
#region BannedItems list
BannedItems = new List<int>()
{
ItemID.RodofDiscord,
ItemID.CorruptionKey,
ItemID.CrimsonKey,
ItemID.HallowedKey,
ItemID.JungleKey,
ItemID.FrozenKey,
ItemID.MechanicalEye,
ItemID.MechanicalSkull,
ItemID.MechanicalWorm
};
#endregion
//--------
#region RestrictedHooks list
RestrictedHooks = new List<int>()
{
ItemID.SlimeHook,
ItemID.SquirrelHook,
ItemID.BatHook,
ItemID.CandyCaneHook,
ItemID.FishHook
};
#endregion
//--------
#region DisabledRecipes list
DisabledRecipes = new List<int>()
{
#region Accessories IDs
ItemID.ObsidianSkull,
ItemID.BalloonHorseshoeSharkron,
ItemID.BlueHorseshoeBalloon,
ItemID.WhiteHorseshoeBalloon,
ItemID.YellowHorseshoeBalloon,
ItemID.BalloonHorseshoeFart,
ItemID.BalloonHorseshoeHoney
#endregion
,
#region Armor IDs
#region Multiclass
ItemID.HallowedPlateMail,
ItemID.HallowedGreaves
#endregion
,
#region Mage
ItemID.JungleHat,
ItemID.JungleShirt,
ItemID.JunglePants
,
ItemID.MeteorHelmet,
ItemID.MeteorSuit,
ItemID.MeteorLeggings
,
ItemID.HallowedHeadgear
,
ItemID.SpectreHood,
ItemID.SpectreMask,
ItemID.SpectreRobe,
ItemID.SpectrePants
#endregion
,
#region Melee
ItemID.MoltenHelmet,
ItemID.MoltenBreastplate,
ItemID.MoltenGreaves
,
ItemID.HallowedMask
,
ItemID.TurtleHelmet,
ItemID.TurtleScaleMail,
ItemID.TurtleLeggings
,
ItemID.BeetleHelmet,
ItemID.BeetleShell,
ItemID.BeetleScaleMail,
ItemID.BeetleLeggings
#endregion
,
#region Ranged
ItemID.NecroHelmet,
ItemID.NecroBreastplate,
ItemID.NecroGreaves
,
ItemID.HallowedHelmet
,
ItemID.ShroomiteHeadgear,
ItemID.ShroomiteHelmet,
ItemID.ShroomiteMask,
ItemID.ShroomiteBreastplate,
ItemID.ShroomiteLeggings
#endregion
,
#region Summoner
ItemID.ObsidianHelm,
ItemID.ObsidianShirt,
ItemID.ObsidianPants
,
ItemID.SpiderBreastplate,
ItemID.SpiderGreaves
,
ItemID.HallowedHood
,
ItemID.SpookyHelmet,
ItemID.SpookyBreastplate,
ItemID.SpookyLeggings
#endregion
#endregion
,
#region BossSummoners IDs
ItemID.GoblinBattleStandard,
ItemID.SlimeCrown,
ItemID.SuspiciousLookingEye,
ItemID.WormFood,
ItemID.BloodySpine,
ItemID.Abeemination,
ItemID.DeerThing,
ItemID.MechanicalEye,
ItemID.MechanicalSkull,
ItemID.MechanicalWorm,
ItemID.CelestialSigil
#endregion
,
#region Large Gems IDs
ItemID.LargeAmber,
ItemID.LargeAmethyst,
ItemID.LargeDiamond,
ItemID.LargeEmerald,
ItemID.LargeRuby,
ItemID.LargeSapphire,
ItemID.LargeTopaz
#endregion
,
#region Pickaxes IDs
ItemID.MoltenPickaxe,
ItemID.CobaltDrill,
ItemID.CobaltPickaxe,
ItemID.PalladiumDrill,
ItemID.PalladiumPickaxe,
ItemID.MythrilDrill,
ItemID.MythrilPickaxe,
ItemID.OrichalcumDrill,
ItemID.OrichalcumPickaxe,
ItemID.AdamantiteDrill,
ItemID.AdamantitePickaxe,
ItemID.TitaniumDrill,
ItemID.TitaniumPickaxe,
ItemID.Drax,
ItemID.PickaxeAxe
#endregion
,
#region Potions
ItemID.FlaskofFire, // default recipe which contains Hellstone Ore
ModContent.ItemType<ArmorDrugPotion>(),
ItemID.ObsidianSkinPotion
#endregion
,
#region Ropes IDs
ItemID.RopeCoil,
ItemID.VineRopeCoil,
ItemID.WebRope,
ItemID.SilkRope,
ItemID.WebRopeCoil,
ItemID.SilkRopeCoil
#endregion
,
#region Weapon IDs
#region Mage
// nothing here yet
#endregion
// ,
#region Melee
ItemID.BladeofGrass,
ItemID.Excalibur
#endregion
,
#region Ranged
ItemID.Sandgun
#endregion
,
#region Summoner
#region Whips
ItemID.ThornWhip,
ItemID.BoneWhip,
ItemID.CoolWhip,
ItemID.SwordWhip,
#endregion
#region Minions
ItemID.SpiderStaff
#endregion
#region Sentries
#endregion
#endregion
#endregion
,
#region Wings IDs
ItemID.AngelWings,
ItemID.DemonWings,
ItemID.FairyWings,
ItemID.HarpyWings,
ItemID.ButterflyWings,
ItemID.BoneWings,
ItemID.FlameWings,
ItemID.FrozenWings,
ItemID.BatWings,
ItemID.BeeWings,
ItemID.TatteredFairyWings,
ItemID.SpookyWings,
ItemID.GhostWings,
ItemID.BeetleWings,
ItemID.WingsSolar,
ItemID.WingsNebula,
ItemID.WingsStardust,
ItemID.WingsVortex
#endregion
,
#region Blocks/Furniture
ItemID.DirtBlock, ItemID.StoneBlock, ItemID.Wood, ItemID.WoodenDoor, ItemID.StoneWall, ItemID.DirtWall, ItemID.WoodenChair,
ItemID.EbonstoneBlock, ItemID.WoodWall, ItemID.WoodPlatform, ItemID.CopperChandelier, ItemID.SilverChandelier, ItemID.GoldChandelier,
ItemID.GrayBrick, ItemID.GrayBrickWall, ItemID.RedBrick, ItemID.RedBrickWall, ItemID.ClayBlock, ItemID.BlueBrick, ItemID.BlueBrickWall,
ItemID.ChainLantern, ItemID.GreenBrick, ItemID.GreenBrickWall, ItemID.PinkBrick, ItemID.PinkBrickWall, ItemID.GoldBrick, ItemID.GoldBrickWall,
ItemID.SilverBrick, ItemID.SilverBrickWall, ItemID.CopperBrick, ItemID.CopperBrickWall, ItemID.Sign, ItemID.MudBlock, ItemID.ObsidianBrick,
ItemID.HellstoneBrick, ItemID.Bed, ItemID.Piano, ItemID.Dresser, ItemID.Bench, ItemID.Bathtub, ItemID.LampPost, ItemID.TikiTorch,
ItemID.CookingPot, ItemID.Candelabra, ItemID.Throne, ItemID.Bowl, ItemID.Toilet, ItemID.GrandfatherClock, ItemID.ArmorStatue,
ItemID.GlassWall, ItemID.PearlsandBlock, ItemID.PearlstoneBlock, ItemID.PearlstoneBrick, ItemID.IridescentBrick, ItemID.MudstoneBlock,
ItemID.CobaltBrick, ItemID.MythrilBrick, ItemID.PearlstoneBrickWall, ItemID.IridescentBrickWall, ItemID.MudstoneBrickWall,
ItemID.CobaltBrickWall, ItemID.MythrilBrickWall, ItemID.SiltBlock, ItemID.SwordStatue, ItemID.ShieldStatue, ItemID.BatStatue,
ItemID.FishStatue, ItemID.BunnyStatue, ItemID.ReaperStatue, ItemID.WomanStatue, ItemID.GargoyleStatue, ItemID.GloomStatue,
ItemID.CrabStatue, ItemID.HammerStatue, ItemID.PotionStatue, ItemID.SpearStatue, ItemID.CrossStatue, ItemID.BowStatue, ItemID.BoomerangStatue,
ItemID.BootStatue, ItemID.BirdStatue, ItemID.AxeStatue, ItemID.TreeStatue, ItemID.AnvilStatue, ItemID.PickaxeStatue, ItemID.PillarStatue,
ItemID.PotStatue, ItemID.SunflowerStatue, ItemID.PlankedWall, ItemID.WoodenBeam, ItemID.ActiveStoneBlock, ItemID.InactiveStoneBlock,
ItemID.Boulder, ItemID.DemoniteBrick, ItemID.Explosives, ItemID.InletPump, ItemID.OutletPump, ItemID.Timer1Second, ItemID.Timer3Second,
ItemID.Timer5Second, ItemID.CandyCaneBlock, ItemID.CandyCaneWall, ItemID.GreenCandyCaneBlock, ItemID.GreenCandyCaneWall, ItemID.SnowBlock,
ItemID.SnowBrick, ItemID.SnowBrickWall, ItemID.AdamantiteBeam, ItemID.AdamantiteBeamWall, ItemID.DemoniteBrickWall, ItemID.SandstoneBrick,
ItemID.SandstoneBrickWall, ItemID.EbonstoneBrick, ItemID.EbonstoneBrickWall, ItemID.RedStucco, ItemID.YellowStucco, ItemID.GreenStucco,
ItemID.GrayStucco, ItemID.RedStuccoWall, ItemID.YellowStuccoWall, ItemID.GreenStuccoWall, ItemID.GrayStuccoWall, ItemID.Ebonwood,
ItemID.RichMahogany, ItemID.Pearlwood, ItemID.EbonwoodWall, ItemID.RichMahoganyWall, ItemID.PearlwoodWall, ItemID.EbonwoodPlatform,
ItemID.RichMahoganyPlatform, ItemID.PearlwoodPlatform, ItemID.BonePlatform, ItemID.EbonwoodPiano, ItemID.RichMahoganyPiano,
ItemID.PearlwoodPiano, ItemID.EbonwoodBed, ItemID.RichMahoganyBed, ItemID.PearlwoodBed, ItemID.EbonwoodDresser, ItemID.RichMahoganyDresser,
ItemID.PearlwoodDresser, ItemID.EbonwoodDoor, ItemID.RichMahoganyDoor, ItemID.PearlwoodDoor, ItemID.RainbowBrick, ItemID.RainbowBrickWall,
ItemID.IceBlock, ItemID.TinChandelier, ItemID.TungstenChandelier, ItemID.PlatinumChandelier, ItemID.PlatinumCandelabra, ItemID.TinBrick,
ItemID.TungstenBrick, ItemID.PlatinumBrick, ItemID.TinBrickWall, ItemID.TungstenBrickWall, ItemID.PlatinumBrickWall, ItemID.CactusWall,
ItemID.Cloud, ItemID.CloudWall, ItemID.SlimeBlock, ItemID.FleshBlock, ItemID.MushroomWall, ItemID.RainCloud, ItemID.BoneBlock,
ItemID.FrozenSlimeBlock, ItemID.BoneBlockWall, ItemID.SlimeBlockWall, ItemID.FleshBlockWall, ItemID.AsphaltBlock, ItemID.CactusDoor,
ItemID.FleshDoor, ItemID.MushroomDoor, ItemID.LivingWoodDoor, ItemID.BoneDoor, ItemID.SunplateBlock, ItemID.DiscWall, ItemID.CrimstoneBlock,
ItemID.SkywareDoor//currently up to ID 837
#endregion
};
#endregion
//--------
#region AssignedBossExtras dictionary
AssignedBossExtras = new Dictionary<int, BossExtras>()
{
#region Vanilla
{ ItemID.KingSlimeBossBag , BossExtras.StaminaVessel },
{ ItemID.EyeOfCthulhuBossBag , BossExtras.StaminaVessel
| BossExtras.SublimeBoneDust },
{ ItemID.EaterOfWorldsBossBag , BossExtras.EstusFlaskShard },
{ ItemID.BrainOfCthulhuBossBag , BossExtras.StaminaVessel },
{ ItemID.QueenBeeBossBag , BossExtras.DarkSoulsOnly },
{ ItemID.SkeletronBossBag , BossExtras.SublimeBoneDust },
{ ItemID.WallOfFleshBossBag , BossExtras.EstusFlaskShard },
{ ItemID.DestroyerBossBag , BossExtras.EstusFlaskShard },
{ ItemID.TwinsBossBag , BossExtras.DarkSoulsOnly },
{ ItemID.SkeletronPrimeBossBag , BossExtras.SublimeBoneDust },
{ ItemID.PlanteraBossBag , BossExtras.StaminaVessel },
{ ItemID.GolemBossBag , BossExtras.DarkSoulsOnly },
{ ItemID.FishronBossBag , BossExtras.StaminaVessel },
{ ItemID.CultistBossBag , BossExtras.DarkSoulsOnly },
{ ItemID.MoonLordBossBag , BossExtras.DarkSoulsOnly },
{ ItemID.QueenSlimeBossBag , BossExtras.StaminaVessel },
{ ItemID.FairyQueenBossBag , BossExtras.DarkSoulsOnly },
{ ItemID.BossBagBetsy , BossExtras.DarkSoulsOnly },
{ ItemID.DeerclopsBossBag , BossExtras.DarkSoulsOnly },
#endregion
//--------
#region tsorc
{ ModContent.ItemType<PinwheelBag>() , BossExtras.EstusFlaskShard },
{ ModContent.ItemType<OolacileDemonBag>() , BossExtras.SublimeBoneDust },
{ ModContent.ItemType<SlograBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<GaibonBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<JungleWyvernBag>() , BossExtras.EstusFlaskShard },
{ ModContent.ItemType<AncestralSpiritBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<AncientDemonBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<HeroOfLumeliaBag>() , BossExtras.SublimeBoneDust },
{ ModContent.ItemType<TheRageBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<TheSorrowBag>() , BossExtras.EstusFlaskShard },
{ ModContent.ItemType<TheHunterBag>() , BossExtras.SublimeBoneDust },
{ ModContent.ItemType<TheMachineBag>() , BossExtras.SublimeBoneDust },
{ ModContent.ItemType<TriadBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<WyvernMageBag>() , BossExtras.SoulVessel },
{ ModContent.ItemType<SerrisBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<DeathBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<MindflayerIllusionBag>() , BossExtras.StaminaVessel },
{ ModContent.ItemType<AttraidiesBag>() , BossExtras.EstusFlaskShard },
{ ModContent.ItemType<KrakenBag>() , BossExtras.GuardianSoul
| BossExtras.StaminaVessel
| BossExtras.EstusFlaskShard },
{ ModContent.ItemType<MarilithBag>() , BossExtras.GuardianSoul
| BossExtras.StaminaVessel
| BossExtras.EstusFlaskShard },
{ ModContent.ItemType<LichBag>() , BossExtras.GuardianSoul
| BossExtras.StaminaVessel },
{ ModContent.ItemType<BlightBag>() , BossExtras.GuardianSoul },
{ ModContent.ItemType<ChaosBag>() , BossExtras.GuardianSoul
| BossExtras.SublimeBoneDust },
{ ModContent.ItemType<WyvernMageShadowBag>() , BossExtras.SoulVessel
| BossExtras.SublimeBoneDust },
{ ModContent.ItemType<OolacileSorcererBag>() , BossExtras.GuardianSoul },
{ ModContent.ItemType<ArtoriasBag>() , BossExtras.GuardianSoul
| BossExtras.StaminaVessel },
{ ModContent.ItemType<HellkiteBag>() , BossExtras.GuardianSoul },
{ ModContent.ItemType<SeathBag>() , BossExtras.SublimeBoneDust },
{ ModContent.ItemType<WitchkingBag>() , BossExtras.GuardianSoul },
{ ModContent.ItemType<DarkCloudBag>() , BossExtras.DarkSoulsOnly },
{ ModContent.ItemType<GwynBag>() , BossExtras.DarkSoulsOnly }
#endregion
};
#endregion
//--------
#region BossExtrasDescription dictionary
BossExtrasDescription = new Dictionary<BossExtras, (IItemDropRuleCondition Condition, int ID)>()
{
{ BossExtras.EstusFlaskShard , ( tsorcItemDropRuleConditions.FirstBagCursedRule , ModContent.ItemType<EstusFlaskShard>() ) },
{ BossExtras.GuardianSoul , ( tsorcItemDropRuleConditions.FirstBagRule , ModContent.ItemType<GuardianSoul>() ) },
{ BossExtras.StaminaVessel , ( tsorcItemDropRuleConditions.FirstBagRule , ModContent.ItemType<StaminaVessel>() ) },
{ BossExtras.SublimeBoneDust , ( tsorcItemDropRuleConditions.FirstBagCursedRule , ModContent.ItemType<SublimeBoneDust>() ) },
{ BossExtras.SoulVessel , ( tsorcItemDropRuleConditions.FirstBagCursedRule , ModContent.ItemType<SoulVessel>() ) }
};
#endregion
//--------
#region BossBagIDtoNPCID dictionary
BossBagIDtoNPCID = new Dictionary<int, int>()
{
#region Vanilla
{ ItemID.KingSlimeBossBag , NPCID.KingSlime },
{ ItemID.EyeOfCthulhuBossBag , NPCID.EyeofCthulhu },
{ ItemID.EaterOfWorldsBossBag , NPCID.EaterofWorldsHead },
{ ItemID.BrainOfCthulhuBossBag , NPCID.BrainofCthulhu },
{ ItemID.QueenBeeBossBag , NPCID.QueenBee },
{ ItemID.SkeletronBossBag , NPCID.SkeletronHead },
{ ItemID.WallOfFleshBossBag , NPCID.WallofFlesh },
{ ItemID.DestroyerBossBag , NPCID.TheDestroyer },
{ ItemID.TwinsBossBag , NPCID.Retinazer }, // and also NPCID.Spazmatism
{ ItemID.SkeletronPrimeBossBag , NPCID.SkeletronPrime }, // but it doesn't really matter
{ ItemID.PlanteraBossBag , NPCID.Plantera }, // while their values are the same
{ ItemID.GolemBossBag , NPCID.Golem },
{ ItemID.FishronBossBag , NPCID.DukeFishron },
{ ItemID.CultistBossBag , NPCID.CultistBoss },
{ ItemID.MoonLordBossBag , NPCID.MoonLordCore },
{ ItemID.QueenSlimeBossBag , NPCID.QueenSlimeBoss },
{ ItemID.FairyQueenBossBag , NPCID.HallowBoss },
{ ItemID.BossBagBetsy , NPCID.DD2Betsy },
{ ItemID.DeerclopsBossBag , NPCID.Deerclops },
#endregion
//--------
#region tsorc
{ ModContent.ItemType<PinwheelBag>() , ModContent.NPCType<Pinwheel>() },
{ ModContent.ItemType<OolacileDemonBag>() , ModContent.NPCType<AncientOolacileDemon>() },
{ ModContent.ItemType<SlograBag>() , ModContent.NPCType<Slogra>() },
{ ModContent.ItemType<GaibonBag>() , ModContent.NPCType<Gaibon>() },
{ ModContent.ItemType<JungleWyvernBag>() , ModContent.NPCType<JungleWyvernHead>() },
{ ModContent.ItemType<AncientDemonBag>() , ModContent.NPCType<AncientDemon>() },
{ ModContent.ItemType<HeroOfLumeliaBag>() , ModContent.NPCType<HeroofLumelia>() },
{ ModContent.ItemType<TheRageBag>() , ModContent.NPCType<TheRage>() },
{ ModContent.ItemType<TheSorrowBag>() , ModContent.NPCType<TheSorrow>() },
{ ModContent.ItemType<TheHunterBag>() , ModContent.NPCType<TheHunter>() },
{ ModContent.ItemType<TheMachineBag>() , ModContent.NPCType<TheMachine>() },
{ ModContent.ItemType<TriadBag>() , ModContent.NPCType<Cataluminance>() },
{ ModContent.ItemType<WyvernMageBag>() , ModContent.NPCType<WyvernMage>() },
{ ModContent.ItemType<SerrisBag>() , ModContent.NPCType<SerrisX>() },
{ ModContent.ItemType<DeathBag>() , ModContent.NPCType<Death>() },
{ ModContent.ItemType<MindflayerIllusionBag>() , ModContent.NPCType<BrokenOkiku>() },
{ ModContent.ItemType<AttraidiesBag>() , ModContent.NPCType<Attraidies>() },
{ ModContent.ItemType<KrakenBag>() , ModContent.NPCType<WaterFiendKraken>() },
{ ModContent.ItemType<MarilithBag>() , ModContent.NPCType<FireFiendMarilith>() },
{ ModContent.ItemType<LichBag>() , ModContent.NPCType<EarthFiendLich>() },
{ ModContent.ItemType<BlightBag>() , ModContent.NPCType<Blight>() },
{ ModContent.ItemType<ChaosBag>() , ModContent.NPCType<Chaos>() },
{ ModContent.ItemType<WyvernMageShadowBag>() , ModContent.NPCType<WyvernMageShadow>() },
{ ModContent.ItemType<OolacileSorcererBag>() , ModContent.NPCType<AbysmalOolacileSorcerer>() },
{ ModContent.ItemType<ArtoriasBag>() , ModContent.NPCType<Artorias>() },
{ ModContent.ItemType<HellkiteBag>() , ModContent.NPCType<HellkiteDragonHead>() },
{ ModContent.ItemType<SeathBag>() , ModContent.NPCType<SeathTheScalelessHead>() },
{ ModContent.ItemType<WitchkingBag>() , ModContent.NPCType<Witchking>() },
{ ModContent.ItemType<DarkCloudBag>() , ModContent.NPCType<DarkCloud>() },
{ ModContent.ItemType<GwynBag>() , ModContent.NPCType<Gwyn>() }
#endregion
};
#endregion
//--------
#region RemovedBossBagLoot dictionary
RemovedBossBagLoot = new Dictionary<int, List<int>>()
{
#region Vanilla
{ ItemID.KingSlimeBossBag , new List<int>()
{
ItemID.SlimySaddle
} },
{ ItemID.EyeOfCthulhuBossBag , new List<int>()
{
ItemID.CorruptSeeds
}
},
{ ItemID.EaterOfWorldsBossBag , new List<int>() },
{ ItemID.BrainOfCthulhuBossBag , new List<int>() },
{ ItemID.QueenBeeBossBag , new List<int>() },
{ ItemID.SkeletronBossBag , new List<int>() },
{ ItemID.WallOfFleshBossBag , new List<int>() },
{ ItemID.DestroyerBossBag , new List<int>() },
{ ItemID.TwinsBossBag , new List<int>() },
{ ItemID.SkeletronPrimeBossBag , new List<int>() },
{ ItemID.PlanteraBossBag , new List<int>() },
{ ItemID.GolemBossBag , new List<int>()
{
ItemID.Picksaw
} },
{ ItemID.FishronBossBag , new List<int>() },
{ ItemID.CultistBossBag , new List<int>() },
{ ItemID.MoonLordBossBag , new List<int>() },
{ ItemID.QueenSlimeBossBag , new List<int>() },
{ ItemID.FairyQueenBossBag , new List<int>() },
{ ItemID.BossBagBetsy , new List<int>() },
{ ItemID.DeerclopsBossBag , new List<int>() }
#endregion
};
#endregion
//--------
#region AddedBossBagLoot dictionary
AddedBossBagLoot = new Dictionary<int, List<IItemDropRule>>()
{
#region Vanilla
{ ItemID.KingSlimeBossBag , new List<IItemDropRule>() {
ItemDropRule.Common(ItemID.SlimySaddle),
ItemDropRule.Common(ItemID.Katana)
} },
{ ItemID.EyeOfCthulhuBossBag , new List<IItemDropRule>()
{
ItemDropRule.Common(ItemID.HermesBoots),
ItemDropRule.Common(ItemID.HerosHat),
ItemDropRule.Common(ItemID.HerosPants),
ItemDropRule.Common(ItemID.HerosShirt)
} },
{ ItemID.EaterOfWorldsBossBag , new List<IItemDropRule>()
{
ItemDropRule.ByCondition(tsorcItemDropRuleConditions.FirstBagRule, ModContent.ItemType<DarkSoul>(), 1, 5000, 5000),
ItemDropRule.Common(ItemID.GoldCoin, 1, 5, 7),
} },
{ ItemID.BrainOfCthulhuBossBag , new List<IItemDropRule>() },
{ ItemID.QueenBeeBossBag , new List<IItemDropRule>() },
{ ItemID.SkeletronBossBag , new List<IItemDropRule>()
{
ItemDropRule.Common(ModContent.ItemType<MiakodaFull>())
} },
{ ItemID.WallOfFleshBossBag , new List<IItemDropRule>()
{
ItemDropRule.Common(ItemID.MoltenPickaxe)
} },
{ ItemID.DestroyerBossBag , new List<IItemDropRule>()
{
ItemDropRule.Common(ModContent.ItemType<CrestOfCorruption>()),
ItemDropRule.Common(ModContent.ItemType<RTQ2>())
} },
{ ItemID.SkeletronPrimeBossBag , new List<IItemDropRule>()
{
ItemDropRule.Common(ModContent.ItemType<CrestOfSteel>())
} },
{ ItemID.PlanteraBossBag , new List<IItemDropRule>()
{
ItemDropRule.Common(ModContent.ItemType<CrestOfLife>()),