Files
CalamityModPublic/Items/Accessories/SummonLevelMeter.cs
T
Andrew Marheine b48ccb305b 1 - Silva Ranged bonus now applies a 10% increase to ranged damage once the silva invincibility wears off.
2 - Summoner proficiency minion slots max out at 2 instead of 3.
3 - Alcohol Poisoning, Holy Inferno and Abyss air cancel out Nebula armor regen.
4 - Death Mode Space and Underworld heat/cold no longer affect you if you're in front of a wall.
5 - Silva Summoner bonus no longer gives +2 max minions after the invincibility wears off.
6 - Energy Staff fires slower because it was OP from what I've been told.
7 - Desert Scourge body and tail are no longer invulnerable while outside the desert.
8 - DoG phase 2 moves a bit slower.
9 - Providence fires less spears when at lower HP amounts.
10 - Dragonfolly takes a bit longer to charge.
2020-11-02 00:19:43 -06:00

125 lines
4.1 KiB
C#

using CalamityMod.CalPlayer;
using System.Collections.Generic;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class SummonLevelMeter : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Summon Level Meter");
Tooltip.SetDefault("Tells you how high your summon proficiency is");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 6, 0, 0);
item.rare = 1;
item.accessory = true;
}
public override void ModifyTooltips(List<TooltipLine> list)
{
int level = Main.player[Main.myPlayer].Calamity().summonLevel;
int exactLevel = Main.player[Main.myPlayer].Calamity().exactSummonLevel;
int damageGain = 0;
int minionKB = 0;
int minionSlots = 0;
switch (exactLevel)
{
case 0:
break;
case 1:
damageGain = 1;
break;
case 2:
damageGain = 2;
break;
case 3:
damageGain = 2;
minionKB = 30;
break;
case 4:
damageGain = 3;
minionKB = 30;
break;
case 5:
damageGain = 3;
minionKB = 60;
break;
case 6:
damageGain = 4;
minionKB = 90;
break;
case 7:
damageGain = 4;
minionKB = 120;
break;
case 8:
damageGain = 5;
minionKB = 150;
break;
case 9:
damageGain = 6;
minionKB = 180;
minionSlots = 1;
break;
case 10:
damageGain = 6;
minionKB = 180;
minionSlots = 1;
break;
case 11:
damageGain = 7;
minionKB = 210;
minionSlots = 1;
break;
case 12:
damageGain = 8;
minionKB = 240;
minionSlots = 1;
break;
case 13:
damageGain = 9;
minionKB = 270;
minionSlots = 1;
break;
case 14:
damageGain = 10;
minionKB = 300;
minionSlots = 1;
break;
case 15:
damageGain = 12;
minionKB = 300;
minionSlots = 2;
break;
}
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
{
line2.text = "Tells you how high your summon proficiency is\n" +
"While equipped you will gain summon proficiency faster\n" +
"The higher your summon level the higher your minion damage, knockback, and slots\n" +
"Summon proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" +
"Summon level (max of 15): " + exactLevel + "\n" +
"Minion damage increase: " + damageGain + "%\n" +
"Minion knockback increase: " + minionKB + "%\n" +
"Minion slot increase: " + minionSlots;
}
}
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.fasterSummonLevel = true;
}
}
}