Ammo Part2 errorfix
As Lunic Corps is a ranger ONLY armor set, the ammo bonus is supposed to be on the chest, not helmet.
This commit is contained in:
1 parent
78f71bcde5
commit
c54ce845e5
3 files changed
+10
-7
No files matched your search
@@ -27,8 +27,7 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
public static readonly SoundStyle BreakSound = new("CalamityMod/Sounds/Custom/RoverDriveBreak") { Volume = 0.75f };
|
||||
|
||||
public static float NonArrowDamageBoost = 0.15f;
|
||||
public static float AmmoReduction = 0.75f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(NonArrowDamageBoost.ToPercent(), (1f - AmmoReduction).ToPercent());
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(NonArrowDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusJumpSpeedBoost = 1f;
|
||||
@@ -95,8 +94,6 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.ammoCost *= AmmoReduction;
|
||||
player.bulletDamage += NonArrowDamageBoost;
|
||||
player.specialistDamage += NonArrowDamageBoost;
|
||||
player.nightVision = true;
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
|
||||
public static float RangedDamageBoost = 0.15f;
|
||||
public static int RangedCritBoost = 15; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent());
|
||||
public static float AmmoReduction = 0.75f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent(), (1f - AmmoReduction).ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -28,6 +29,8 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.ammoCost *= AmmoReduction;
|
||||
player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
}
|
||||
|
||||
@@ -301,7 +301,6 @@ LunicCorpsHelmet: {
|
||||
DisplayName: Lunic Corps Helmet
|
||||
Tooltip:
|
||||
'''
|
||||
{$Common.AmmoUseReduction@1}
|
||||
Increases non-bow damage by {0}%
|
||||
Improves vision and shows the location of enemies
|
||||
'''
|
||||
@@ -319,7 +318,11 @@ LunicCorpsHelmet: {
|
||||
|
||||
LunicCorpsVest: {
|
||||
DisplayName: Lunic Corps Vest
|
||||
Tooltip: "{$CommonItemTooltip.PercentIncreasedRangedDamageCritChance}"
|
||||
Tooltip:
|
||||
'''
|
||||
{$CommonItemTooltip.PercentIncreasedRangedDamageCritChance}
|
||||
{$Common.AmmoUseReduction@1}
|
||||
'''
|
||||
}
|
||||
|
||||
MolluskShelleggings: {
|
||||
|
||||
Reference in new issue
Block a user