public void HighlightDowsedTarget() { if (this.TargetNpcWho != -1) { var npc = Main.npc[this.TargetNpcWho]; if (npc != null && npc.active) { RodItem.RenderDowseEffect(npc.Center, 4, Color.White); } } }
public void HighlightDowsedTiles() { foreach (var kv in this.DowsedTiles) { int block_type = kv.Key; foreach (var kv2 in kv.Value.PositionsOfStacks) { int tile_x = kv2.Key; foreach (var kv3 in kv2.Value) { int tile_y = kv3.Key; int stack = kv3.Value; if (stack == 0) { continue; } RodItem.RenderDowseEffect(new Vector2(tile_x * 16, tile_y * 16), stack, Color.White); } } } }