added king slime lore
This commit is contained in:
1 parent
919db12f3f
commit
6d9cea577e
3 files changed
+41
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 340 B |
Reference in new issue
Block a user