Ejemplo n.º 1
0
        ////////////////

        public override bool CanTownNPCSpawn(int numTownNPCs, int money)
        {
            var myworld = ModContent.GetInstance <TheLunaticWorld>();

            if (myworld.GameLogic == null)
            {
                throw new ModHelpersException("Game logic not initialized.");
            }

            if (myworld.GameLogic.KillSurfaceTownNPCs)
            {
                return(false);
            }
            return(TheLunaticTownNPC.WantsToSpawn());
        }
        ////

        static TheLunaticTownNPC()
        {
            TheLunaticTownNPC.AlertedToImpendingDoom = false;
            TheLunaticTownNPC.AmHere = false;

            TheLunaticTownNPC.InitializeReplies();

            TheLunaticTownNPC.PossibleNames = new string[] {
                "Whateley",
                "Dunwich",
                "Waite",
                "Olmstead",
                "Marsh",
                "Jenkin",
                "Jermyn",
                "Mason",
                "Alhazred",
                "Castro"
            };
        }