Definition at line 1478 of file WorldGen.cs.
1479 {
1481 {
1482 string newText = Lang.inter[40].Value;
1484 {
1487 break;
1490 break;
1493 break;
1496 break;
1499 break;
1500 }
1501 Main.NewText(
newText,
byte.MaxValue, 240, 20);
1502 return false;
1503 }
1505 {
1506 int num = 0;
1510 {
1512 num++;
1513 }
1515 {
1517 num++;
1518 }
1520 {
1522 num++;
1523 }
1525 {
1527 num++;
1528 }
1529 string key =
"Game.HouseMissing_" +
num2;
1532 return false;
1533 }
1536 {
1537 type = Main.npc[
n].type;
1538 }
1541 {
1542 Main.NewText(
Language.
GetTextValue(
"TownNPCHousingFailureReasons.RoomHasAStinkbug"),
byte.MaxValue, 240, 20);
1543 return false;
1544 }
1546 {
1547 Main.NewText(
Language.
GetTextValue(
"TownNPCHousingFailureReasons.RoomHasAnEchoStinkbug"),
byte.MaxValue, 240, 20);
1548 return false;
1549 }
1552 {
1554 {
1555 Main.NewText(Lang.inter[41].Value, byte.MaxValue, 240, 20);
1556 }
1558 {
1559 Main.NewText(Lang.inter[42].Value, byte.MaxValue, 240, 20);
1560 }
1561 else
1562 {
1563 Main.NewText(Lang.inter[40].Value, byte.MaxValue, 240, 20);
1564 }
1565 return false;
1566 }
1568 {
1569 Main.NewText(Lang.inter[55].Value +
" " + Main.npc[
n].TypeName,
byte.MaxValue, 240, 20);
1570 return false;
1571 }
1572 return true;
1573 }
static string GetTextValue(string key)
static bool CheckSpecialTownNPCSpawningConditions(int type)
static int prioritizedTownNPCType
static bool roomHasEchoStinkbug
static void ScoreRoom(int ignoreNPC=-1, int npcTypeAskingToScoreRoom=-1)
static bool roomHasStinkbug
static bool StartRoomCheck(int x, int y)
static bool RoomNeeds(int npcType)
static TownNPCRoomCheckFailureReason roomCheckFailureReason
TownNPCRoomCheckFailureReason
References System.array, Terraria.WorldGen.CheckSpecialTownNPCSpawningConditions(), Terraria.Localization.Language.GetTextValue(), Terraria.WorldGen.hiScore, Terraria.Lang.inter, Terraria.ID.NPCID.Sets.IsTownPet, System.key, Terraria.Main.NewText(), Terraria.Main.npc, Terraria.WorldGen.prioritizedTownNPCType, Terraria.WorldGen.roomChair, Terraria.WorldGen.roomCheckFailureReason, Terraria.WorldGen.roomDoor, Terraria.WorldGen.roomEvil, Terraria.WorldGen.roomHasEchoStinkbug, Terraria.WorldGen.roomHasStinkbug, Terraria.WorldGen.RoomNeeds(), Terraria.WorldGen.roomOccupied, Terraria.WorldGen.roomTable, Terraria.WorldGen.roomTorch, Terraria.WorldGen.ScoreRoom(), Terraria.WorldGen.StartRoomCheck(), and System.type.
Referenced by Terraria.Main.DrawInterface_38_MouseCarriedObject(), and Terraria.Initializers.UILinksInitializer.Load().