-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathFargoSets.cs
More file actions
180 lines (163 loc) · 6.03 KB
/
FargoSets.cs
File metadata and controls
180 lines (163 loc) · 6.03 KB
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
using Fargowiltas.Items.Misc;
using Fargowiltas.Items.Tiles;
using Fargowiltas.NPCs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using static Fargowiltas.Items.FargoGlobalItem;
using static Terraria.ModLoader.ModContent;
namespace Fargowiltas
{
public class FargoSets : ModSystem
{
public class Items
{
public static bool[] MechanicalAccessory;
public static bool[] InfoAccessory;
public static bool[] SquirrelSellsDirectly;
public static bool[] NonBuffPotion;
public static bool[] PotionCannotBeInfinite;
public static bool[] BuffStation;
public static List<ShopTooltip>[] RegisteredShopTooltips;
}
public class Tiles
{
public static bool[] InstaCannotDestroy;
public static bool[] DungeonTile;
public static bool[] HardmodeOre;
public static bool[] EvilAltars;
}
public class Walls
{
public static bool[] InstaCannotDestroy;
public static bool[] DungeonWall;
}
public class NPCs
{
public static int[] SwarmHealth;
}
public override void PostSetupContent()
{
#region Items
SetFactory itemFactory = ItemID.Sets.Factory;
Items.MechanicalAccessory = itemFactory.CreateBoolSet(false,
ItemID.MechanicalLens,
ItemID.WireKite,
//ItemID.Ruler,
ItemID.LaserRuler,
ItemID.PaintSprayer,
ItemID.ArchitectGizmoPack,
ItemID.HandOfCreation,
ItemID.ActuationAccessory,
ItemID.EncumberingStone,
ItemID.DontHurtCrittersBook,
ItemID.DontHurtComboBook,
ItemID.DontHurtNatureBook,
ItemID.LucyTheAxe);
Items.InfoAccessory = itemFactory.CreateBoolSet(false,
ItemID.CopperWatch,
ItemID.TinWatch,
ItemID.SilverWatch,
ItemID.TungstenWatch,
ItemID.GoldWatch,
ItemID.PlatinumWatch,
ItemID.Compass,
ItemID.DepthMeter,
ItemID.GPS,
ItemID.PDA,
ItemID.CellPhone,
5358,
5359,
5360,
5361,
ItemID.GoblinTech,
ItemID.DPSMeter,
ItemID.MetalDetector,
ItemID.Stopwatch,
ItemID.LifeformAnalyzer,
ItemID.FishermansGuide,
ItemID.WeatherRadio,
ItemID.Sextant,
ItemID.Radar,
ItemID.TallyCounter,
ItemID.FishFinder,
ItemID.REK);
Items.SquirrelSellsDirectly = itemFactory.CreateBoolSet(false,
ItemID.CellPhone,
ItemID.Shellphone,
ItemID.ShellphoneDummy,
ItemID.ShellphoneHell,
ItemID.ShellphoneOcean,
ItemID.ShellphoneSpawn,
ItemID.AnkhShield,
ItemID.RodofDiscord,
ItemID.TerrasparkBoots,
ItemID.TorchGodsFavor,
ItemID.HandOfCreation,
ItemID.Zenith,
ItemType<Omnistation>(),
ItemType<Omnistation2>(),
ItemType<CrucibleCosmos>(),
ItemType<ElementalAssembler>(),
ItemType<MultitaskCenter>(),
ItemType<PortableSundial>(),
ItemType<BattleCry>());
Items.NonBuffPotion = itemFactory.CreateBoolSet(false,
ItemID.RecallPotion,
ItemID.PotionOfReturn,
ItemID.WormholePotion,
ItemID.TeleportationPotion,
ItemType<BigSuckPotion>());
Items.PotionCannotBeInfinite = itemFactory.CreateBoolSet(false,
ItemID.BottledHoney);
Items.BuffStation = itemFactory.CreateBoolSet(false,
ItemID.SharpeningStation,
ItemID.AmmoBox,
ItemID.CrystalBall,
ItemID.BewitchingTable,
ItemID.WarTable);
Items.RegisteredShopTooltips = itemFactory.CreateCustomSet<List<ShopTooltip>>(null);
#endregion
#region Tiles
SetFactory tileFactory = TileID.Sets.Factory;
Tiles.InstaCannotDestroy = tileFactory.CreateBoolSet(false);
Tiles.DungeonTile = tileFactory.CreateBoolSet(false,
TileID.BlueDungeonBrick,
TileID.GreenDungeonBrick,
TileID.PinkDungeonBrick);
Tiles.HardmodeOre = tileFactory.CreateBoolSet(false,
TileID.Cobalt,
TileID.Palladium,
TileID.Mythril,
TileID.Orichalcum,
TileID.Adamantite,
TileID.Titanium);
Tiles.EvilAltars = tileFactory.CreateBoolSet(false,
TileID.DemonAltar);
#endregion
#region Walls
SetFactory wallFactory = WallID.Sets.Factory;
Walls.InstaCannotDestroy = wallFactory.CreateBoolSet(false);
Walls.DungeonWall = wallFactory.CreateBoolSet(false,
WallID.BlueDungeonSlabUnsafe,
WallID.BlueDungeonTileUnsafe,
WallID.BlueDungeonUnsafe,
WallID.GreenDungeonSlabUnsafe,
WallID.GreenDungeonTileUnsafe,
WallID.GreenDungeonUnsafe,
WallID.PinkDungeonSlabUnsafe,
WallID.PinkDungeonTileUnsafe,
WallID.PinkDungeonUnsafe);
#endregion
#region NPCs
SetFactory npcFactory = NPCID.Sets.Factory;
NPCs.SwarmHealth = npcFactory.CreateIntSet(0);
#endregion
}
}
}