warrior's ambition item setup and locale

This commit is contained in:
2026-01-28 18:22:14 +01:00
parent d006a3fbaf
commit 4aebc3a261
8 changed files with 258 additions and 3 deletions
+5
View File
@@ -25,6 +25,11 @@ public class SummonersAmbition : ModItem {
Item.noUseGraphic = true;
ItemID.Sets.ShimmerTransformToItem[Type] = 0;
}
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player) {
YhtPlayer modPlayer = player.GetModPlayer<YhtPlayer>();
return !modPlayer.hasAmbitionEquipped() && base.CanAccessoryBeEquippedWith(equippedItem, incomingItem, player);
}
public override void UpdateAccessory(Player player, bool hideVisual) {
YhtPlayer modPlayer = player.GetModPlayer<YhtPlayer>();