2 - Changed Slime God lore effect. 3 - Buffed Community base stats. 4 - Added projectile damage function calls in all boss files. 5 - Polterghast charge attack syncs. 6 - Provi AI refactor. 7 - Changed Ravager fight. 8 - Changed Signus fight. 9 - Death Mode Skeletron respawns all 4 hands when at 33% HP.
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.LoreItems
|
|
{
|
|
public class KnowledgeSlimeGod : LoreItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("The Slime God");
|
|
Tooltip.SetDefault("It is a travesty, one of the most threatening biological terrors ever created.\n" +
|
|
"If this creature were allowed to combine every slime on the planet it would become nearly unstoppable.\n" +
|
|
"Favorite this item to become slimed and able to slide around on tiles, at the cost of reduced defense.\n" +
|
|
"This effect does not work with mounts.");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 20;
|
|
item.height = 20;
|
|
item.rare = 4;
|
|
item.consumable = false;
|
|
}
|
|
|
|
public override bool CanUseItem(Player player)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public override void UpdateInventory(Player player)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
if (player.mount.Active || !item.favorited)
|
|
return;
|
|
|
|
modPlayer.slimeGodLore = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe r = new ModRecipe(mod);
|
|
r.SetResult(this);
|
|
r.AddTile(TileID.Bookcases);
|
|
r.AddIngredient(ModContent.ItemType<SlimeGodTrophy>());
|
|
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
|
|
r.AddRecipe();
|
|
}
|
|
}
|
|
}
|