Monolith Sword mentions AP in tooltip

This commit is contained in:
Altixal committed 2026-02-10 18:19:35 +07:00
1 parent 9464ff9f5d
commit 64e241973d
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -4,6 +4,7 @@ using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
@@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee
public class MonolithSword : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public static int ArmorPenetration = 15;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration);
public override void SetDefaults()
{
Item.damage = 30;
@@ -25,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.useTurn = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.ArmorPenetration = 15;
Item.ArmorPenetration = ArmorPenetration;
}
public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
{
@@ -868,7 +868,7 @@ MirrorBlade: {
MonolithSword: {
DisplayName: Monolith Sword
Tooltip: ""
Tooltip: "{$Common.ArmorPenetration}"
}
MonstrousKnives: {