Town NPCs in the Bestiary have places to go

This commit is contained in:
ben-tk committed 2022-08-22 16:08:52 -04:00
1 parent 64bfbc9e54
commit 507e413e0f
6 files changed
+23 -3

No files matched your search

+4
View File
@@ -40,6 +40,10 @@ namespace CalamityMod.NPCs.TownNPCs
.SetNPCAffection(NPCID.Wizard, AffectionLevel.Like)
.SetNPCAffection(NPCID.Cyborg, AffectionLevel.Dislike)
;
NPCID.Sets.NPCBestiaryDrawModifiers drawModifiers = new NPCID.Sets.NPCBestiaryDrawModifiers(0) {
Velocity = 1f // Draws the NPC in the bestiary as if its walking +1 tiles in the x direction
};
NPCID.Sets.NPCBestiaryDrawOffset.Add(NPC.type, drawModifiers);
}
public override void SetDefaults()
+4
View File
@@ -44,6 +44,10 @@ namespace CalamityMod.NPCs.TownNPCs
.SetNPCAffection(NPCID.GoblinTinkerer, AffectionLevel.Hate)
.SetNPCAffection(NPCID.Angler, AffectionLevel.Hate)
;
NPCID.Sets.NPCBestiaryDrawModifiers drawModifiers = new NPCID.Sets.NPCBestiaryDrawModifiers(0) {
Velocity = 1f // Draws the NPC in the bestiary as if its walking +1 tiles in the x direction
};
NPCID.Sets.NPCBestiaryDrawOffset.Add(NPC.type, drawModifiers);
}
public override void SetDefaults()
+4
View File
@@ -37,6 +37,10 @@ namespace CalamityMod.NPCs.TownNPCs
.SetNPCAffection(NPCID.Demolitionist, AffectionLevel.Dislike)
.SetNPCAffection(NPCID.Angler, AffectionLevel.Hate)
;
NPCID.Sets.NPCBestiaryDrawModifiers drawModifiers = new NPCID.Sets.NPCBestiaryDrawModifiers(0) {
Velocity = 1f // Draws the NPC in the bestiary as if its walking +1 tiles in the x direction
};
NPCID.Sets.NPCBestiaryDrawOffset.Add(NPC.type, drawModifiers);
}
public override void SetDefaults()
+4
View File
@@ -54,6 +54,10 @@ namespace CalamityMod.NPCs.TownNPCs
.SetNPCAffection(NPCID.GoblinTinkerer, AffectionLevel.Like)
.SetNPCAffection(NPCID.Dryad, AffectionLevel.Dislike)
;
NPCID.Sets.NPCBestiaryDrawModifiers drawModifiers = new NPCID.Sets.NPCBestiaryDrawModifiers(0) {
Velocity = 1f // Draws the NPC in the bestiary as if its walking +1 tiles in the x direction
};
NPCID.Sets.NPCBestiaryDrawOffset.Add(NPC.type, drawModifiers);
}
public override void SetDefaults()
+4
View File
@@ -37,6 +37,10 @@ namespace CalamityMod.NPCs.TownNPCs
.SetNPCAffection(NPCID.Clothier, AffectionLevel.Like)
.SetNPCAffection(NPCID.PartyGirl, AffectionLevel.Dislike)
;
NPCID.Sets.NPCBestiaryDrawModifiers drawModifiers = new NPCID.Sets.NPCBestiaryDrawModifiers(0) {
Velocity = 1f // Draws the NPC in the bestiary as if its walking +1 tiles in the x direction
};
NPCID.Sets.NPCBestiaryDrawOffset.Add(NPC.type, drawModifiers);
}
public override void SetDefaults()
+3 -3
View File
@@ -737,11 +737,11 @@ namespace CalamityMod.World
if (YStartWhitelist.Contains(type) ||
OtherTilesForSulphSeaToDestroy.Contains(type))
{
Main.tile[trueX, y].Get<TileWallWireStateData>().HasTile = false;
CalamityUtils.ParanoidTileRetrieval(trueX, y).Get<TileWallWireStateData>().HasTile = false;
}
if (WallsForSulphSeaToDestroy.Contains(Main.tile[trueX, y].WallType))
if (WallsForSulphSeaToDestroy.Contains(CalamityUtils.ParanoidTileRetrieval(trueX, y).WallType))
{
Main.tile[trueX, y].WallType = 0;
CalamityUtils.ParanoidTileRetrieval(trueX, y).WallType = 0;
}
}
}