sync and chat messages

This commit is contained in:
GinYuH authored and Cameron Ewell committed 2023-01-24 13:28:41 -05:00
1 parent 27fdd0735e
commit b730de9a2b
2 files changed
+9 -1

No files matched your search

+6 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Rarities;
using CalamityMod.Events;
using CalamityMod.Rarities;
using CalamityMod.World;
using Terraria;
using Terraria.ID;
@@ -31,14 +32,18 @@ namespace CalamityMod.Items
public override bool? UseItem(Player player)
{
CalamityNetcode.SyncWorld();
string key = "Mods.CalamityMod.SulphurSwitchLeft";
if (Abyss.AtLeftSideOfWorld)
{
Abyss.AtLeftSideOfWorld = false;
key = "Mods.CalamityMod.SulphurSwitchRight";
}
else
{
Abyss.AtLeftSideOfWorld = true;
}
CalamityUtils.DisplayLocalizedText(key, AcidRainEvent.TextColor);
return true;
}
}
+3
View File
@@ -212,6 +212,9 @@ namespace CalamityMod.Localization
new [] { "PhantomHeartText", "You have already used a Phantom Heart. It's probably good that you can't use another." },
new [] { "SlimeGodRun", "The Slime God flees to fight another day..." },
new [] { "SulphurSwitchLeft", "The Sulphurous Sea is now on the left side of the world." },
new [] { "SulphurSwitchRight", "The Sulphurous Sea is now on the right side of the world." },
};
}