shpc scales past plantera on gfb

This commit is contained in:
GinYuH committed 2023-07-27 20:58:44 -07:00
1 parent f141d79420
commit fc8dacf183
2 files changed
+29 -1

No files matched your search

+26
View File
@@ -5,6 +5,7 @@ using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using System.Collections.Generic;
using CalamityMod.Sounds;
namespace CalamityMod.Items.Weapons.Magic
@@ -92,6 +93,31 @@ namespace CalamityMod.Items.Weapons.Magic
}
}
public override void ModifyWeaponDamage(Player player, ref StatModifier damage)
{
// scaling legendary!!!!
if (Main.zenithWorld)
{
bool plantera = NPC.downedPlantBoss;
bool golem = NPC.downedGolemBoss;
bool cultist = NPC.downedAncientCultist;
bool moonLord = NPC.downedMoonlord;
bool providence = DownedBossSystem.downedProvidence;
bool devourerOfGods = DownedBossSystem.downedDoG;
bool yharon = DownedBossSystem.downedYharon;
float damageMult = 1f +
(plantera ? 0.1f : 0f) + //1.1
(golem ? 0.15f : 0f) + //1.25
(cultist ? 3.5f : 0f) + //4.75
(moonLord ? 4.5f : 0f) + //9.25
(providence ? 7.5f : 0f) + //16.75
(devourerOfGods ? 2.5f : 0f) + //19.25
(yharon ? 30f : 0f); //49.25
damage *= damageMult;
}
}
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
public override void AddRecipes()
{
CreateRecipe().
@@ -682,11 +682,13 @@ ShiftingSands: {
SHPC: {
DisplayName: SHPC
Tooltip:
Tooltip: "[GFB]"
TooltipNormal:
'''
Fires plasma orbs that linger and emit massive explosions
Press <right> to fire powerful energy beams
'''
TooltipGFB: It scales again :)
}
SkyGlaze: {