using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Media; namespace TerraMod { public class Game : Terraria.Main { public Game() { } static void Main() { Game game = new Game(); stopSpawns = false; game.Run(); } protected override void Update(GameTime gameTime) { foreach(Terraria.NPC n in Terraria.Main.npc) { if (n.name == "Guide") { n.life = 0; } //System.Console.WriteLine("NPC culled.\n"); } base.Update(gameTime); } //protected override void Draw(GameTime gameTime) //{ // base.Draw(gameTime); //} } }