Merge branch 'fixes-for-the-hotfix' of https://github.com/CalamityTeam/CalamityMod into fixes-for-the-hotfix
This commit is contained in:
commit
03226cb4ca
4 files changed
+12
-7
No files matched your search
@@ -246,8 +246,11 @@ namespace CalamityMod.Items
|
||||
{
|
||||
if (!item.IsAir && AppliedEnchantment.HasValue)
|
||||
{
|
||||
TooltipLine descriptionLine = new TooltipLine(mod, "Enchantment", CalamityUtils.ColorMessage(AppliedEnchantment.Value.Description, Color.DarkRed));
|
||||
tooltips.Add(descriptionLine);
|
||||
foreach (string line in AppliedEnchantment.Value.Description.Split('\n'))
|
||||
{
|
||||
TooltipLine descriptionLine = new TooltipLine(mod, "Enchantment", CalamityUtils.ColorMessage(line, Color.DarkRed));
|
||||
tooltips.Add(descriptionLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -197,7 +197,9 @@ namespace CalamityMod.UI.CalamitasEnchants
|
||||
{
|
||||
Vector2 vectorDrawPosition = descriptionDrawPositionTopLeft.ToVector2();
|
||||
Vector2 scale = new Vector2(0.8f, 0.825f) * MathHelper.Clamp(ResolutionRatio, 0.825f, 1f) * Main.UIScale;
|
||||
foreach (string line in Utils.WordwrapString(SelectedEnchantment.Value.Description, Main.fontMouseText, 400, 16, out _))
|
||||
|
||||
string unifiedDescription = SelectedEnchantment.Value.Description.Replace("\n", " ");
|
||||
foreach (string line in Utils.WordwrapString(unifiedDescription, Main.fontMouseText, 400, 16, out _))
|
||||
{
|
||||
if (string.IsNullOrEmpty(line))
|
||||
continue;
|
||||
|
||||
@@ -190,14 +190,14 @@ namespace CalamityMod.UI.CalamitasEnchants
|
||||
player => player.Calamity().closeProximityRewardEnchant = true,
|
||||
item => item.IsEnchantable() && item.damage > 0 && item.shoot > ProjectileID.None && !item.Calamity().trueMelee),
|
||||
|
||||
new Enchantment("Ephemeral", "Causes the damage output of this item to discharge from exhaustive use. Its damage returns naturally when not being used. It starts off with more damage than it normally would have.",
|
||||
new Enchantment("Ephemeral", "Causes the damage output of this item to discharge from exhaustive use.\nIts damage returns naturally when not being used. It starts off with more damage than it normally would have.",
|
||||
600,
|
||||
"CalamityMod/ExtraTextures/UI/EnchantmentSymbols/CurseIcon_Ephemeral",
|
||||
null,
|
||||
player => player.Calamity().dischargingItemEnchant = true,
|
||||
item => item.IsEnchantable() && item.damage > 0 && !item.summon),
|
||||
|
||||
new Enchantment("Hellbound", "Causes minions to be created with a 40 second timer. Once it runs out, they explode violently. Minions do more damage the longer they live and idly explode as well.",
|
||||
new Enchantment("Hellbound", "Causes minions to be created with a 40 second timer.\nOnce it runs out, they explode violently. Minions do more damage the longer they live and idly explode as well.",
|
||||
700,
|
||||
"CalamityMod/ExtraTextures/UI/EnchantmentSymbols/CurseIcon_Hellbound",
|
||||
null,
|
||||
@@ -255,7 +255,7 @@ namespace CalamityMod.UI.CalamitasEnchants
|
||||
player => player.Calamity().witheringWeaponEnchant = true,
|
||||
item => item.IsEnchantable() && item.damage > 0 && !item.summon),
|
||||
|
||||
new Enchantment("Persecuted", "When attacked, or over time, demon portals appear near you. If sufficiently damaged they are friendly; otherwise they attack you. They become angered if a portal is damaged.",
|
||||
new Enchantment("Persecuted", "When attacked, or over time, demon portals appear near you.\nIf sufficiently damaged they are friendly; otherwise they attack you. They become angered if a portal is damaged.",
|
||||
1100,
|
||||
"CalamityMod/ExtraTextures/UI/EnchantmentSymbols/CurseIcon_Persecuted",
|
||||
null,
|
||||
|
||||
+1
-1
@@ -225,7 +225,7 @@ namespace CalamityMod.UI
|
||||
ref Item playerHandItem = ref Main.mouseItem;
|
||||
|
||||
// Handle mouse click interactions.
|
||||
if (Main.mouseLeft && Main.mouseLeftRelease)
|
||||
if (Main.mouseLeft && Main.mouseLeftRelease && codebreakerTileEntity.DecryptionCountdown <= 0)
|
||||
{
|
||||
// If the player's hand item is empty and the codebreaker has a schematic, grab it.
|
||||
// This doesn't work if the Codebreaker is busy decrypting the schematic in question.
|
||||
|
||||
Reference in new issue
Block a user