Definition at line 49052 of file Item.cs.
49053 {
49055 for (
int j = 0;
j < 200;
j++)
49056 {
49059 {
49060 continue;
49061 }
49065 {
49067 }
49069 {
49071 }
49073 {
49075 }
49079 if (
num4 >= 0 && Main.npc[
num4].active)
49080 {
49082 }
49083 else
49084 {
49086 }
49087 if (!(
num3 < num) || !(
num3 + num < 999000000f))
49088 {
49089 continue;
49090 }
49093 {
49094 float num5 = (float)Main.rand.Next(50, 76) * 0.01f;
49096 {
49097 num5 += (float)Main.rand.Next(51) * 0.01f;
49098 }
49100 {
49101 num5 += (float)Main.rand.Next(26) * 0.01f;
49102 }
49104 {
49106 }
49109 {
49111 }
49113 {
49115 }
49120 {
49122 }
49123 nPC.extraValue +=
num7;
49124 if (Main.netMode == 0)
49125 {
49127 }
49128 else
49129 {
49131 }
49133 {
49136 }
49137 NetMessage.SendData(21, -1, -1, null, i);
49138 }
49139 }
49140 }
static bool[] CantTakeLunchMoney
void SetDefaults(int Type=0)
References Terraria.Entity.active, Terraria.ID.NPCID.Sets.CantTakeLunchMoney, Terraria.Entity.height, Terraria.Main.netMode, Terraria.Main.npc, Terraria.Entity.position, Terraria.Main.rand, Terraria.NetMessage.SendData(), Terraria.Item.SetDefaults(), Terraria.Item.stack, Terraria.Item.type, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.
Referenced by Terraria.Item.UpdateItem().