TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
AmmoID.cs
Go to the documentation of this file.
1using System.Collections.Generic;
3
4namespace Terraria.ID;
5
10public static class AmmoID
11{
12 public class Sets
13 {
19 {
20 {
21 759,
23 {
24 { 771, 134 },
25 { 772, 137 },
26 { 773, 140 },
27 { 774, 143 },
28 { 4445, 776 },
29 { 4446, 780 },
30 { 4457, 793 },
31 { 4458, 796 },
32 { 4459, 799 },
33 { 4447, 784 },
34 { 4448, 787 },
35 { 4449, 790 }
36 }
37 },
38 {
39 758,
41 {
42 { 771, 133 },
43 { 772, 136 },
44 { 773, 139 },
45 { 774, 142 },
46 { 4445, 777 },
47 { 4446, 781 },
48 { 4457, 794 },
49 { 4458, 797 },
50 { 4459, 800 },
51 { 4447, 785 },
52 { 4448, 788 },
53 { 4449, 791 }
54 }
55 },
56 {
57 760,
59 {
60 { 771, 135 },
61 { 772, 138 },
62 { 773, 141 },
63 { 774, 144 },
64 { 4445, 778 },
65 { 4446, 782 },
66 { 4457, 795 },
67 { 4458, 798 },
68 { 4459, 801 },
69 { 4447, 786 },
70 { 4448, 789 },
71 { 4449, 792 }
72 }
73 },
74 {
75 1946,
77 {
78 { 771, 338 },
79 { 772, 339 },
80 { 773, 340 },
81 { 774, 341 },
82 { 4445, 803 },
83 { 4446, 804 },
84 { 4457, 808 },
85 { 4458, 809 },
86 { 4459, 810 },
87 { 4447, 805 },
88 { 4448, 806 },
89 { 4449, 807 }
90 }
91 },
92 {
93 3930,
95 {
96 { 771, 715 },
97 { 772, 716 },
98 { 773, 717 },
99 { 774, 718 },
100 { 4445, 717 },
101 { 4446, 718 },
102 { 4457, 717 },
103 { 4458, 718 },
104 { 4459, 717 },
105 { 4447, 717 },
106 { 4448, 717 },
107 { 4449, 717 }
108 }
109 }
110 };
111
113
118 public static bool[] IsArrow = Factory.CreateBoolSet(false, Arrow, Stake);
119
124 public static bool[] IsBullet = Factory.CreateBoolSet(false, Bullet, CandyCorn);
125
130 public static bool[] IsSpecialist = Factory.CreateBoolSet(false, Rocket, StyngerBolt, JackOLantern, NailFriendly, Coin, Flare, Dart, Snowball, Sand, FallenStar, Gel);
131 }
132
133 public static int None = 0;
134
135 public static int Gel = 23;
136
137 public static int Arrow = 40;
138
139 public static int Coin = 71;
140
141 public static int FallenStar = 75;
142
143 public static int Bullet = 97;
144
145 public static int Sand = 169;
146
147 public static int Dart = 283;
148
149 public static int Rocket = 771;
150
151 public static int Solution = 780;
152
153 public static int Flare = 931;
154
155 public static int Snowball = 949;
156
157 public static int StyngerBolt = 1261;
158
159 public static int CandyCorn = 1783;
160
161 public static int JackOLantern = 1785;
162
163 public static int Stake = 1836;
164
165 public static int NailFriendly = 3108;
166}
static bool[] IsArrow
If true for a given item type (F:Terraria.Item.type), then items of that type are counted as arrows f...
Definition AmmoID.cs:118
static Dictionary< int, Dictionary< int, int > > SpecificLauncherAmmoProjectileMatches
Associates a launcher's item type (F:Terraria.Item.type) and an ammo's item type (F:Terraria....
Definition AmmoID.cs:18
static bool[] IsSpecialist
If true for a given item type (F:Terraria.Item.type), then items of that type are counted as speciali...
Definition AmmoID.cs:130
static bool[] IsBullet
If true for a given item type (F:Terraria.Item.type), then items of that type are counted as bullets ...
Definition AmmoID.cs:124
static SetFactory Factory
Definition AmmoID.cs:112
static int Bullet
Definition AmmoID.cs:143
static int Sand
Definition AmmoID.cs:145
static int CandyCorn
Definition AmmoID.cs:159
static int Flare
Definition AmmoID.cs:153
static int Dart
Definition AmmoID.cs:147
static int FallenStar
Definition AmmoID.cs:141
static int Gel
Definition AmmoID.cs:135
static int Arrow
Definition AmmoID.cs:137
static int Rocket
Definition AmmoID.cs:149
static int Snowball
Definition AmmoID.cs:155
static int Coin
Definition AmmoID.cs:139
static int None
Definition AmmoID.cs:133
static int JackOLantern
Definition AmmoID.cs:161
static int StyngerBolt
Definition AmmoID.cs:157
static int Stake
Definition AmmoID.cs:163
static int Solution
Definition AmmoID.cs:151
static int NailFriendly
Definition AmmoID.cs:165
AmmoID entries represent ammo types. Ammo items that share the same AmmoID value assigned to F:Terrar...
Definition AmmoID.cs:11
This serves as the central class from which item-related functions are carried out....
Definition ItemLoader.cs:26