diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b614c38804..c7e6ce9aaa 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -230,6 +230,7 @@ namespace CalamityMod.CalPlayer public bool adrenalineBoostThree = false; // Lore + public bool kingSlimeLore = false; public bool desertScourgeLore = false; public bool eaterOfWorldsLore = false; public bool hiveMindLore = false; @@ -973,6 +974,7 @@ namespace CalamityMod.CalPlayer dsSetBonus = false; wearingRogueArmor = false; + kingSlimeLore = false; desertScourgeLore = false; eaterOfWorldsLore = false; hiveMindLore = false; @@ -3739,6 +3741,11 @@ namespace CalamityMod.CalPlayer { projRefRareLifeRegenCounter--; } + if(kingSlimeLore) + { + player.moveSpeed += 0.05f; + player.jumpSpeedBoost += player.autoJump ? 0f : 0.1f; + } if (desertScourgeLore) { player.statDefense += 5; diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/KnowledgeKingSlime.cs new file mode 100644 index 0000000000..f18b87d134 --- /dev/null +++ b/Items/LoreItems/KnowledgeKingSlime.cs @@ -0,0 +1,34 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + public class KnowledgeKingSlime : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("King Slime"); + Tooltip.SetDefault("Only a fool could be caught by this pitiful excuse for a hunter.\n" + + "Unfortunately, our world has no shortage of those.\n" + + "Place in your inventory to gain a slight movement speed and jump boost."); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.rare = 1; + item.consumable = false; + } + + public override bool CanUseItem(Player player) + { + return false; + } + + public override void UpdateInventory(Player player) + { + player.Calamity().kingSlimeLore = true; + } + } +} diff --git a/Items/LoreItems/KnowledgeKingSlime.png b/Items/LoreItems/KnowledgeKingSlime.png new file mode 100644 index 0000000000..4d7497c375 Binary files /dev/null and b/Items/LoreItems/KnowledgeKingSlime.png differ