Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Talisman of Remedium no longer wastes durability trying to remove permanent debuffs. It also accepts the Unbreaking enchant. #36

Merged
merged 4 commits into from
Dec 26, 2023

Conversation

AbdielKavash
Copy link
Member

This PR contains three changes:

  • The Talisman of Remedium now ignores any debuffs that have a duration of < 1 second. This means it will not attempt to remove permanent debuffs caused by picking up containers using a dolly, by wielding a TiC cleaver, from hunger, etc.

  • The talisman also attempts to detect other "permanent" debuffs, which are being reapplied to the player even after removed. For example, debuffs for holding a super tank, or from standing in poison or fire. If a player is affected by such a debuff, the talisman will not keep consuming durability or making noise trying to remove the debuff. The debuff will then be silently removed when the condition that keeps reapplying it stops doing so. (E.g., when the player places down the super tank.)

  • Finally, the talisman can now be enchanted with the Unbreaking enchant using any standard means. The enchant functions identically to other tools; i.e., adds a chance not to consume durability with every use.

I have also planned to support the Repair enchant; however it seems to be hardcoded in base TC to only check items in the player's hotbar and armor slots. If anyone (@Alastors ?) wants to poke at it and make it apply to bauble slots too, I would be happy to add support.

@Dream-Master Dream-Master requested a review from a team December 24, 2023 22:01
@Dream-Master Dream-Master merged commit 0c75584 into GTNewHorizons:master Dec 26, 2023
1 check passed
@AbdielKavash AbdielKavash deleted the Talisman-of-Remedium branch January 12, 2024 13:47
@GrieverStormborn
Copy link

GrieverStormborn commented Jan 14, 2024

I am having issues with the talisman voiding itself after enchanting it with unbreaking III, not sure if it's related to this issue. Submitted the bug here: GTNewHorizons/GT-New-Horizons-Modpack#15347

Edit: Apologies, I assumed the Remedium item did not accept the unbreaking enchant before, and that this was already live on 2.5.1.

DrParadox7 pushed a commit to DrParadox7/ThaumicTinkerer that referenced this pull request Jun 12, 2024
…manent debuffs. It also accepts the Unbreaking enchant. (GTNewHorizons#36)

* Talisman of Remedium accepts Unbreaking enchant.

* Talisman of Remedium no longer removes debuffs with duration < 1 second.

* Talisman of Remedium does not waste durability trying to remove "permanent" debuffs.

* Use a map on player's UUID instead of single variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants