Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Initialize_Items()

static void Terraria.Main.Initialize_Items ( )
inlinestaticprivate

Definition at line 6166 of file Main.cs.

6167 {
6168 for (int i = 0; i < ItemID.Count; i++)
6169 {
6170 Item item = new Item();
6171 item.SetDefaults(i);
6172 if (item.headSlot > 0)
6173 {
6174 Item.headType[item.headSlot] = item.type;
6175 }
6176 if (item.bodySlot > 0)
6177 {
6178 Item.bodyType[item.bodySlot] = item.type;
6179 }
6180 if (item.legSlot > 0)
6181 {
6182 Item.legType[item.legSlot] = item.type;
6183 }
6184 switch (item.type)
6185 {
6186 case 683:
6187 case 723:
6188 case 726:
6189 case 739:
6190 case 740:
6191 case 741:
6192 case 742:
6193 case 743:
6194 case 744:
6195 case 788:
6196 case 1296:
6197 case 1308:
6198 case 1326:
6199 case 1444:
6200 case 1445:
6201 case 1446:
6202 case 1801:
6203 case 1930:
6204 case 1931:
6205 case 2188:
6206 case 2750:
6207 case 3006:
6208 case 3051:
6209 case 3209:
6210 case 3210:
6211 case 3377:
6212 case 3476:
6213 case 3569:
6214 case 3571:
6215 case 3787:
6216 case 3852:
6217 case 3870:
6218 case 4062:
6219 case 5065:
6220 Item.staff[item.type] = true;
6221 break;
6222 case 1827:
6223 Item.claw[item.type] = true;
6224 break;
6225 }
6226 }
6227 }
static readonly short Count
Definition ItemID.cs:12138
static Item[] item
Definition Main.cs:1681

References Terraria.Item.bodyType, Terraria.Item.claw, Terraria.ID.ItemID.Count, Terraria.Item.headType, System.Text.RegularExpressions.i, Terraria.Main.item, Terraria.Item.legType, and Terraria.Item.staff.

Referenced by Terraria.Main.Initialize_AlmostEverything().