diff --git a/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java b/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java index ac68331f..7edab882 100644 --- a/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java +++ b/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java @@ -30,6 +30,7 @@ import net.minecraft.potion.PotionEffect; import net.minecraft.util.IIcon; import net.minecraft.util.StatCollector; import net.minecraft.world.World; +import org.apache.commons.lang3.ArrayUtils; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.research.ResearchPage; @@ -140,6 +141,7 @@ public class ItemCleansingTalisman extends ItemBase implements IBauble { if (player.ticksExisted % 20 == 0) { if (player instanceof EntityPlayer) { boolean removed = false; + int damage = 1; Collection potions = player.getActivePotionEffects(); @@ -156,13 +158,19 @@ public class ItemCleansingTalisman extends ItemBase implements IBauble { if (badEffect) { player.removePotionEffect(id); removed = true; - break; + int[] warpPotionIDs = new int[]{Config.potionBlurredID, Config.potionDeathGazeID, Config.potionInfVisExhaustID, Config.potionSunScornedID, Config.potionUnHungerID}; + if (ArrayUtils.contains(warpPotionIDs, potion.getPotionID())) { + damage = 10; + } + break; } } if (removed) { - par1ItemStack.damageItem(1, player); - par2World.playSoundAtEntity(player, "thaumcraft:wand", 0.3F, 0.1F); + + + par1ItemStack.damageItem(damage, player); + par2World.playSoundAtEntity(player, "thaumcraft:wand", 0.3F, 0.1F); } } } diff --git a/src/main/resources/assets/ttinkerer/lang/en_US.lang b/src/main/resources/assets/ttinkerer/lang/en_US.lang index 2d9adc63..bc4e3503 100644 --- a/src/main/resources/assets/ttinkerer/lang/en_US.lang +++ b/src/main/resources/assets/ttinkerer/lang/en_US.lang @@ -292,7 +292,7 @@ ttresearch.page.FOCUS_DISLOCATION.1=The vis cost in applied in picking up the bl # -- TALISMAN OF REMEDIUM ttresearch.name.CLEANSING_TALISMAN=Talisman of Remedium ttresearch.lore.CLEANSING_TALISMAN=Mitsukake's Gift -ttresearch.page.CLEANSING_TALISMAN.0=You have studied life and the body and found that through the application of magic you can protect yourself from harmful outside influences by redirecting these effects to a construct. This talisman will dispel most harmful effects on the holder and keep them on itself, taking damage.

To enable or disable this ability, one would shift-right click on it. As expected, it only works whilst enabled. It must be worn in your amulet slot to take effect. +ttresearch.page.CLEANSING_TALISMAN.0=You have studied life and the body and found that through the application of magic you can protect yourself from harmful outside influences by redirecting these effects to a construct. This talisman will dispel most harmful effects on the holder and keep them on itself, taking damage. It will removed some effects stemming from warp, at an extreme durability cost.

To enable or disable this ability, one would shift-right click on it. As expected, it only works whilst enabled. It must be worn in your amulet slot to take effect. # -- HYPERENERGETIC NITOR ttresearch.name.BRIGHT_NITOR=Hyperenergetic Nitor