forge required for more dialogue
This commit is contained in:
1 parent
65b625250b
commit
720a6437ca
4 files changed
+20
-3
No files matched your search
@@ -1179,6 +1179,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Draedon Summoning
|
||||
public bool AbleToSelectExoMech = false;
|
||||
public bool HasTalkedAtCodebreaker = false;
|
||||
public bool HasCraftedDraedonsForge = false;
|
||||
public List<ulong> SeenDraedonDialogs = new();
|
||||
#endregion Draedon Summoning
|
||||
|
||||
@@ -1313,6 +1314,7 @@ namespace CalamityMod.CalPlayer
|
||||
boost.AddWithCondition("newCalamitasInventory", newCalamitasInventory);
|
||||
boost.AddWithCondition("GivenBrimstoneLocus", GivenBrimstoneLocus);
|
||||
boost.AddWithCondition("HasTalkedAtCodebreaker", HasTalkedAtCodebreaker);
|
||||
boost.AddWithCondition("HasCraftedDraedonsForge", HasCraftedDraedonsForge);
|
||||
|
||||
// Calculate the new total time of all sessions at the instant of this player save.
|
||||
TimeSpan newSessionTotal = previousSessionTotal.Add(CalamityMod.SpeedrunTimer.Elapsed);
|
||||
@@ -1403,6 +1405,7 @@ namespace CalamityMod.CalPlayer
|
||||
newCalamitasInventory = boost.Contains("newCalamitasInventory");
|
||||
GivenBrimstoneLocus = boost.Contains("GivenBrimstoneLocus");
|
||||
HasTalkedAtCodebreaker = boost.Contains("HasTalkedAtCodebreaker");
|
||||
HasCraftedDraedonsForge = boost.Contains("HasCraftedDraedonsForge");
|
||||
|
||||
// Load rage if it's there, which it will be for any players saved with 1.5.
|
||||
// Older players have "stress" instead, which will be ignored. This is intentional.
|
||||
|
||||
@@ -9,6 +9,20 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
public class DraedonsForge : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Terraria.On_Recipe.ConsumeForCraft += DraeforgeUnlockDetour;
|
||||
}
|
||||
|
||||
private static bool DraeforgeUnlockDetour(On_Recipe.orig_ConsumeForCraft orig, Recipe self, Item item, Item requiredItem, ref int stackRequired)
|
||||
{
|
||||
if (self.HasTile(ModContent.TileType<Tiles.Furniture.CraftingStations.DraedonsForge>()))
|
||||
{
|
||||
Main.LocalPlayer.Calamity().HasCraftedDraedonsForge = true;
|
||||
}
|
||||
return orig(self, item, requiredItem, ref stackRequired);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 58;
|
||||
|
||||
@@ -110,7 +110,7 @@ Cooldowns: {
|
||||
SandsmokeBombActive: Sandsmoke Bomb Duration
|
||||
SandsmokeBombCooldown: Sandsmoke Bomb Cooldown
|
||||
SilvaRevive: Silva Revive Cooldown
|
||||
SpeedBlasterBoost: Speed Blaster Boost
|
||||
SpeedBlasterBoost: Speed Blaster Boost
|
||||
SpongeDurability: Sponge Barrier Durability
|
||||
SpongeRecharge: Sponge Barrier Recharge
|
||||
TarragonCloak: Tarragon Cloak Cooldown
|
||||
@@ -154,7 +154,7 @@ Communication: {
|
||||
}
|
||||
|
||||
WhoAreYouPart2: {
|
||||
Inquiry: Introduction 2
|
||||
Inquiry: Task Complete
|
||||
Response:
|
||||
'''
|
||||
Excellent. I can tell that you have successfully taken advantage of the Exo Prisms. Before you waste your breath asking me how I know, Exo Prisms, along with many other parts of my machines, have tracking devices embedded within to both monitor my creations and prevent theft.\n\n
|
||||
|
||||
@@ -394,7 +394,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
{
|
||||
// Skip/isolate the introduction text as needed.
|
||||
string inquiry = dialog.Inquiry;
|
||||
if (!Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker && !DialogOptions[0].HasBeenSeen)
|
||||
if (!Main.LocalPlayer.Calamity().HasCraftedDraedonsForge)
|
||||
{
|
||||
if (inquiry != DialogOptions[0].Inquiry)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user