public override bool?CanChat(NPC npc) { if (npc.townNPC || npc.type == NPCID.SkeletonMerchant) { if (SomeUtils.AssembleMode() || SomeUtils.AttackMode()) { return(false); } } return(null); }