Fix medical conditions' effects not working#4066
Open
screret wants to merge 73 commits intoGregTechCEu:1.20.1from
Open
Fix medical conditions' effects not working#4066screret wants to merge 73 commits intoGregTechCEu:1.20.1from
screret wants to merge 73 commits intoGregTechCEu:1.20.1from
Conversation
… shortcuts for others
…yer> has: Carcinogenic" looks bad fixes GregTechCEu#2780
most uses required the concrete class anyway
… even less than the other conditions
…he tracker for efficiency
…te time comparing
…on> [progression]`
# Conflicts: # src/main/resources/assets/gtceu/lang/uk_ua.json
# Conflicts: # gradle/scripts/repositories.gradle
jurrejelle
previously approved these changes
Feb 8, 2026
Contributor
|
declared 8.0.0 |
Contributor
Author
|
I switched the base branch to 1.20.1-v8.0.0 because of the retarget and then discovered that the pipe model rework hasn't been merged to that, so I undid the base branch change. |
…tead of global game time (spreads out the updating over multiple ticks instead of everything happening on the dot)
…ring mining speed)
…eed if underwater with an aqua affinity helmet
…default value is 7x too high
…solute minimum threshold as it made the code a lot more convoluted
…s static factory methods instead so what they're for is slightly clearer
# Conflicts: # src/main/java/com/gregtechceu/gtceu/api/capability/GTCapabilityHelper.java # src/main/java/com/gregtechceu/gtceu/api/capability/forge/GTCapability.java # src/test/java/com/gregtechceu/gtceu/gametest/util/TestUtils.java
# Conflicts: # src/main/java/com/gregtechceu/gtceu/api/data/chemical/material/properties/HazardProperty.java # src/main/java/com/gregtechceu/gtceu/common/CommonEventListener.java # src/main/java/com/gregtechceu/gtceu/common/machine/electric/AirScrubberMachine.java # src/test/java/com/gregtechceu/gtceu/gametest/util/TestUtils.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/medical_condition querycommand's output nicer to read.I also chose to remove berylliosis and silicosis entirely, as they didn't actually do much and were just annoying to have around.
Implementation Details
/medical_condition querymakes sense. It now display something like this (1) instead of the previous (2)new display
old display
Outcome
How Was This Tested
I wrote actual tests for a feature! (for once, lol)
I also tested this in game quite extensively, mostly by running
/medical_condition apply @s gtceu:carcinogen <amount>over and over with different numbers in the 1-36000 range and observing what attributes changed & by how much with/attribute @s <attribute id> get.I also tested some other conditions such as arsenicosis and CO poisoning, they also worked correctly.
Same was done for holding items by having a stack plutonium blocks in my inventory and tracking the cancer point gain with
/medical_condition queryand current symptoms with/medical_condition query symptoms.Additional Information
Balance people should look over the tweaks at least a bit
Potential Compatibility Issues
The change to a "real" registry could make some people have issues but, as already mentioned, I don't know anyone who used the system.