Add support for the Blood Iron Caps from Blood Arsenal. They now reduce the LP cost for the blood cores' regen and cause the Weakness 3 effect when used as a weapon just like the Alchemical Caps.

Blood Wood Cores already match the .startsWith("blood") for the Weakness check and have their own logic for blood iron caps, so nothing needs to be changed to support them.
This commit is contained in:
koolkrafter5 committed 2025-08-13 14:52:38 -04:00
1 parent 8b0863b572
commit b95d777e54
3 files changed
+6 -3

No files matched your search

@@ -498,7 +498,8 @@ public class FMEventHandler {
if (event.source.getEntity() != null && event.source.getEntity() instanceof EntityPlayer) {
ItemStack equip = ((EntityPlayer) event.source.getEntity()).getCurrentEquippedItem();
if (equip != null && equip.getItem() instanceof ItemWandCasting) {
if (((ItemWandCasting) equip.getItem()).getCap(equip).getTag().equals("alchemical")
String capTag = ((ItemWandCasting) equip.getItem()).getCap(equip).getTag();
if (capTag.equals("alchemical") || capTag.equals("blood_iron")
&& ((ItemWandCasting) equip.getItem()).getRod(equip).getTag().startsWith("blood")) {
event.entityLiving.addPotionEffect(new PotionEffect(Potion.weakness.id, 60, 2));
}
@@ -23,7 +23,8 @@ public class BloodStaffUpdate implements IWandRodOnUpdate {
SoulNetworkHandler.checkAndSetItemOwner(itemstack, player);
int cost;
if (((ItemWandCasting) itemstack.getItem()).getCap(itemstack).getTag().equals("alchemical"))
String capTag = ((ItemWandCasting) itemstack.getItem()).getCap(itemstack).getTag();
if (capTag.equals("alchemical") || capTag.equals("blood_iron"))
cost = Config.bloodvis - 1;
else cost = Config.bloodvis;
@@ -20,7 +20,8 @@ public class BloodWandUpdate implements IWandRodOnUpdate {
SoulNetworkHandler.checkAndSetItemOwner(itemstack, player);
int cost;
if (((ItemWandCasting) itemstack.getItem()).getCap(itemstack).getTag().equals("alchemical"))
String capTag = ((ItemWandCasting) itemstack.getItem()).getCap(itemstack).getTag();
if (capTag.equals("alchemical") || capTag.equals("blood_iron"))
cost = Config.bloodvis - 1;
else cost = Config.bloodvis;