Definition at line 51183 of file NPC.cs.
51184 {
51185
51186
51187
51188
51189
51190
51191
51192
51193
51194
51195
51197 Point point =
base.Center.ToTileCoordinates();
51198 Rectangle
value =
default(Rectangle);
51202 Rectangle
value2 =
default(Rectangle);
51209 {
51211 {
51212 Tile tile = Main.tile[i,
j];
51214 {
51215 continue;
51216 }
51217 short num4 = Main.tileOreFinderPriority[tile.type];
51219 {
51225 {
51227 {
51228 if (Main.tile[
k,
l].active() && Main.tile[
k,
l].type == tile.type)
51229 {
51231 }
51232 }
51233 }
51235 {
51237 }
51238 }
51240 {
51241 float num9 =
Distance(
new Vector2((
float)(i * 16 + 8), (
float)(
j * 16 + 8)));
51243 {
51246 treasureCoords.X = i;
51247 treasureCoords.Y =
j;
51248 }
51249 }
51250 }
51251 }
51253 }
float Distance(Vector2 Other)
static bool[] FriendlyFairyCanLureTo
static bool[] Ore
Indicates that the tile is an ore. Used in worldgen code for various purposes and by Fairies.
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
References Terraria.Tile.active(), Terraria.Entity.Bottom, Terraria.Entity.Distance(), Terraria.ID.TileID.Sets.FriendlyFairyCanLureTo, Terraria.SceneMetrics.IsValidForOreFinder(), Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.ID.TileID.Sets.Ore, Terraria.Entity.Right, Terraria.Main.tile, Terraria.Main.tileOreFinderPriority, Terraria.Tile.type, and Terraria.NPC.value.
Referenced by Terraria.NPC.AI_112_FairyCritter().