50177 {
50178
50179
50180
50181
50182
50183
50184
50185
50186
50187
50188
50189
50190
50191
50192
50193
50194
50195
50196
50198 {
50199 for (
int j = 0;
j < 10;
j++)
50200 {
50202 }
50203 for (
int k = 0;
k < 3;
k++)
50204 {
50206 }
50210 if (Main.netMode == 2)
50211 {
50212 NetMessage.SendData(21, -1, -1, null, i);
50213 }
50214 }
50216 {
50217 for (
int l = 0;
l < 20;
l++)
50218 {
50219 Dust.NewDust(
position,
width,
height, 15,
velocity.X,
velocity.Y, 150, Color.Lerp(Color.CornflowerBlue, Color.Indigo, Main.rand.NextFloat()), 1.2f);
50220 }
50224 if (Main.netMode == 2)
50225 {
50226 NetMessage.SendData(21, -1, -1, null, i);
50227 }
50228 }
50230 {
50231 int num = Main.rand.Next(18, 24);
50232 for (
int m = 0;
m <
num;
m++)
50233 {
50234 int num2 = Dust.NewDust(
base.Center, 0, 0, 61, 0
f, 0
f, 0,
default(Color), 1.7f);
50236 obj.velocity *= 8
f;
50237 Main.dust[
num2].velocity.Y -= 1
f;
50238 Main.dust[
num2].position = Vector2.Lerp(Main.dust[
num2].position,
base.Center, 0.5f);
50239 Main.dust[
num2].noGravity =
true;
50240 Main.dust[
num2].noLight =
true;
50241 }
50245 if (Main.netMode == 2)
50246 {
50247 NetMessage.SendData(21, -1, -1, null, i);
50248 }
50249 }
50250 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
int height
The height of this Entity's hitbox, in pixels.
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
bool beingGrabbed
If true, then this item is currently being grabbed by a player. Items being grabbed by the player ca...
int timeSinceItemSpawned
A value that increases every tick an item is in the world. Defaults to the value in F:Terraria....
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....