Town NPCs in the Bestiary have places to go
This commit is contained in:
1 parent
64bfbc9e54
commit
507e413e0f
6 files changed
+23
-3
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user