Jelly changes
reverted grand gelatin changes nerfed vital jelly jump boost buffed vital jelly movement speed Adjusted some jelly drop chances green jellyfish now overrides loot in PHM to prevent crossmod shenanigans
This commit is contained in:
1 parent
355af8053a
commit
7ddbcdf4e3
4 files changed
+23
-14
No files matched your search
@@ -1,4 +1,3 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -13,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
DisplayName.SetDefault("Grand Gelatin");
|
||||
Tooltip.SetDefault("10% increased movement speed\n" +
|
||||
"200% increased jump speed\n" +
|
||||
"+40 max life and mana\n" +
|
||||
"+20 max life and mana\n" +
|
||||
"Standing still boosts life and mana regen");
|
||||
}
|
||||
|
||||
@@ -29,9 +28,9 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.5f : 2.0f;
|
||||
player.statLifeMax2 += 40;
|
||||
player.statManaMax2 += 40;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.5f : 2f;
|
||||
player.statLifeMax2 += 20;
|
||||
player.statManaMax2 += 20;
|
||||
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
|
||||
{
|
||||
player.lifeRegen += 2;
|
||||
@@ -45,7 +44,6 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ModContent.ItemType<ManaJelly>());
|
||||
recipe.AddIngredient(ModContent.ItemType<LifeJelly>());
|
||||
recipe.AddIngredient(ModContent.ItemType<VitalJelly>());
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 3);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -8,23 +8,23 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vital Jelly");
|
||||
Tooltip.SetDefault("10% increased movement speed\n" +
|
||||
"200% increased jump speed");
|
||||
Tooltip.SetDefault("20% increased movement speed\n" +
|
||||
"120% increased jump speed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 24;
|
||||
item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
item.rare = 4;
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = 3;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.5f : 2.0f;
|
||||
player.moveSpeed += 0.2f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -213,7 +213,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 5, 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<LifeJelly>(), Main.expertMode ? 5 : 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<ManaJelly>(), Main.expertMode ? 5 : 7);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<VitalJelly>(), Main.hardMode, Main.expertMode ? 5 : 7, 1, 1);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<VitalJelly>(), Main.expertMode ? 5 : 7);
|
||||
float necklaceDropRate = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : 0.01f;
|
||||
DropHelper.DropItemChance(npc, ItemID.JellyfishNecklace, necklaceDropRate);
|
||||
}
|
||||
|
||||
@@ -380,6 +380,17 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
}
|
||||
//Since Calamity makes it spawn in pre-hardmode, don't want to cause other mods to freak out if they use it as a tier gate (like a new weapon or something)
|
||||
else if (npc.type == NPCID.GreenJellyfish && !Main.hardMode)
|
||||
{
|
||||
DropHelper.DropItem(npc, ItemID.Glowstick, 1, 4);
|
||||
DropHelper.DropItemChance(npc, ItemID.JellyfishNecklace, 0.1f);
|
||||
DropHelper.DropItemChance(npc, ItemID.Megaphone, Main.expertMode ? 0.2f : 0.1f);
|
||||
DropHelper.DropItemCondition(npc, ItemID.JellyfishNecklace, CalamityWorld.defiled, DropHelper.DefiledDropRateFloat);
|
||||
DropHelper.DropItemCondition(npc, ItemID.Megaphone, CalamityWorld.defiled, DropHelper.DefiledDropRateFloat);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<VitalJelly>(), Main.expertMode ? 5 : 7);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1428,7 +1439,7 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
|
||||
case NPCID.PinkJellyfish:
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<LifeJelly>(), Main.expertMode ? 5 : 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<LifeJelly>(), Main.expertMode ? 20 : 25);
|
||||
break;
|
||||
|
||||
case NPCID.BlueJellyfish:
|
||||
|
||||
Reference in new issue
Block a user