108509 {
108510
108511
108512
108513
108514
108515
108516
108517
108518
108519
108520
108521
108523 {
108524 if (Main.netMode == 0)
108525 {
108526 Item.ShimmerEffect(
base.Center);
108527 }
108528 else
108529 {
108530 NetMessage.SendData(146, -1, -1,
null, 0, (
int)
base.Center.X, (
int)
base.Center.Y);
108531 }
108534 if (Main.netMode == 2)
108535 {
108538 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
108539 }
108540 }
108542 {
108544 if (Main.netMode == 0)
108545 {
108546 Item.ShimmerEffect(
base.Center);
108547 }
108548 else
108549 {
108550 NetMessage.SendData(146, -1, -1,
null, 0, (
int)
base.Center.X, (
int)
base.Center.Y);
108551 }
108552 }
108554 {
108556 Main.item[
num].stack = 1;
108557 Main.item[
num].shimmerTime = 1
f;
108558 Main.item[
num].shimmered =
true;
108559 Main.item[
num].shimmerWet =
true;
108560 Main.item[
num].wet =
true;
108561 Item
obj = Main.item[
num];
108562 obj.velocity *= 0.1f;
108563 Main.item[
num].playerIndexTheItemIsReservedFor = Main.myPlayer;
108564 NetMessage.SendData(145, -1, -1,
null,
num, 1
f);
108565 if (Main.netMode == 0)
108566 {
108567 Item.ShimmerEffect(
base.Center);
108568 }
108569 else
108570 {
108571 NetMessage.SendData(146, -1, -1,
null, 0, (
int)
base.Center.X, (
int)
base.Center.Y);
108572 }
108575 if (Main.netMode == 2)
108576 {
108579 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
108580 }
108581 }
108583 {
108592 {
108594 }
108595 }
108596 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
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.
static int[] ShimmerTransformToNPC
Associates an NPC type (F:Terraria.NPC.type) with the NPC type it will turn into when submerged in sh...
static int[] ShimmerTransformToItem
If not -1 for a given NPC type (F:Terraria.NPC.type), then that NPC will transform into the retrieved...
static bool[] ShimmerTownTransform
If true for a given NPC type (F:Terraria.NPC.type), then that NPC is a town NPC with an alternate shi...
int FindBuffIndex(int type)
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
void DelBuff(int buffIndex)
Removes the buff at the provided index and shuffles the remaining buff indexes down to fill the gap....
float shimmerTransparency
IEntitySource GetItemSource_Misc(int itemSourceId)
void Transform(int newType)
int life
The current life of the NPC. Automatically set to the value of F:Terraria.NPC.lifeMax at the end of S...