From 159bb017045b09f4bbfb6ccb2df0274cbca0e9a9 Mon Sep 17 00:00:00 2001 From: GinYuH Date: Thu, 15 Sep 2022 22:39:56 -0700 Subject: [PATCH] bestiary grammar, friend no longer despawns --- NPCs/DraedonLabThings/Androomba.cs | 2 +- NPCs/TownNPCs/AndroombaFriendly.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NPCs/DraedonLabThings/Androomba.cs b/NPCs/DraedonLabThings/Androomba.cs index 8a79fc9eca..f056593e74 100644 --- a/NPCs/DraedonLabThings/Androomba.cs +++ b/NPCs/DraedonLabThings/Androomba.cs @@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.DraedonLabThings bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { // Will move to localization whenever that is cleaned up. - new FlavorTextBestiaryInfoElement("Slowly moving back and forth, these contraptions operate endlessly with the fruitless goal of cleaning the long, now abandoned labs.") + new FlavorTextBestiaryInfoElement("Slowly moving back and forth, these contraptions operate endlessly with the fruitless goal of cleaning the now long abandoned labs.") }); } diff --git a/NPCs/TownNPCs/AndroombaFriendly.cs b/NPCs/TownNPCs/AndroombaFriendly.cs index b37df585c3..f787d0e8c2 100644 --- a/NPCs/TownNPCs/AndroombaFriendly.cs +++ b/NPCs/TownNPCs/AndroombaFriendly.cs @@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.TownNPCs NPC.height = 16; NPC.lifeMax = 80; NPC.friendly = true; + NPC.townNPC = true; NPC.knockBackResist = 0f; NPC.noGravity = true; NPC.noTileCollide = false; @@ -41,6 +42,11 @@ namespace CalamityMod.NPCs.TownNPCs SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; } + public override bool CanChat() + { + return false; + } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) { bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {