Minor Orichalcum buffs
This commit is contained in:
1 parent
5d074f9172
commit
e9558e09d7
4 files changed
+42
-1
No files matched your search
@@ -540,6 +540,10 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.MythrilGreaves)
|
||||
EditTooltipByNum(0, (line) => line.text = $"{MythrilArmorSetChange.LeggingsCritChanceBoost + 10}% increased critical strike chance");
|
||||
|
||||
// Orichalcum Breastplate.
|
||||
if (item.type == ItemID.OrichalcumBreastplate)
|
||||
EditTooltipByNum(0, (line) => line.text = $"{OrichalcumArmorSetChange.ChestplateCritChanceBoost + 6}% increased critical strike chance");
|
||||
|
||||
// Reduce DD2 armor piece bonuses because they're overpowered
|
||||
// Squire armor
|
||||
if (item.type == ItemID.SquirePlating)
|
||||
|
||||
@@ -297,9 +297,14 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ObsidianSwordfish, Do(AutoReuse, TrueMelee, DamageExact(45)) },
|
||||
{ ItemID.OnyxBlaster, pointBlank },
|
||||
{ ItemID.OpticStaff, Do(AutoReuse, UseExact(25), DamageRatio(0.75f)) }, // NOTE: Optic Staff minions have local iframes, so they should be much better overall
|
||||
{ ItemID.OrichalcumBreastplate, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.OrichalcumChainsaw, Do(TrueMelee, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.OrichalcumDrill, Do(TrueMelee, PickPower(160), UseTimeExact(4)) },
|
||||
{ ItemID.OrichalcumHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(98), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.OrichalcumHeadgear, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.OrichalcumHelmet, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.OrichalcumLeggings, Do(DefenseDelta(+4)) },
|
||||
{ ItemID.OrichalcumMask, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.OrichalcumPickaxe, Do(PickPower(160), UseTimeExact(8)) },
|
||||
{ ItemID.OrichalcumRepeater, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
{ ItemID.OrichalcumSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(82)) },
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.VanillaArmorChanges
|
||||
{
|
||||
public class OrichalcumArmorSetChange : VanillaArmorChange
|
||||
{
|
||||
public override int? HeadPieceID => ItemID.OrichalcumHelmet;
|
||||
|
||||
public override int? BodyPieceID => ItemID.OrichalcumBreastplate;
|
||||
|
||||
public override int? LegPieceID => ItemID.OrichalcumLeggings;
|
||||
|
||||
public override int[] AlternativeHeadPieceIDs => new int[] { ItemID.OrichalcumHeadgear, ItemID.OrichalcumMask };
|
||||
|
||||
public override string ArmorSetName => "Orichalcum";
|
||||
|
||||
public const int ChestplateCritChanceBoost = 4;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player)
|
||||
{
|
||||
player.Calamity().AllCritBoost(ChestplateCritChanceBoost);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -318,11 +318,17 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
case ProjectileID.Retanimini:
|
||||
case ProjectileID.MiniRetinaLaser:
|
||||
case ProjectileID.FlowerPetal:
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.usesIDStaticNPCImmunity = false;
|
||||
break;
|
||||
|
||||
case ProjectileID.FlowerPetal:
|
||||
projectile.MaxUpdates = 4;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.usesIDStaticNPCImmunity = false;
|
||||
break;
|
||||
|
||||
case ProjectileID.Spazmamini:
|
||||
projectile.usesIDStaticNPCImmunity = true;
|
||||
|
||||
Reference in new issue
Block a user