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

Rework diseases to become datapacks #10361

Merged
merged 13 commits into from
Dec 1, 2024
Merged

Conversation

Thodor12
Copy link
Contributor

Changes proposed in this pull request

  • Diseases use datapacks in favor of configuration values
  • Upgraded the RandomCollection introduced in Rework lucky ores to become datapacks #10343 to allow for key based values
  • Improved code regarding diseases by using more up-to-date code

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

Review please

@uecasm
Copy link
Contributor

uecasm commented Oct 25, 2024

I was planning to do this (you beat me to it 😁) but only in 1.21 to reduce compatibility headaches. Also putting the files inside colony/diseases and not just diseases to reduce possible clashes with other mods (we already had to do that with quests). The latter at least I'd definitely still recommend doing.

# Conflicts:
#	src/main/java/com/minecolonies/api/compatibility/CompatibilityManager.java
# Conflicts:
#	src/main/java/com/minecolonies/core/entity/citizen/citizenhandlers/CitizenDiseaseHandler.java
#	src/main/resources/assets/minecolonies/lang/manual_en_us.json
# Conflicts:
#	src/main/resources/assets/minecolonies/lang/manual_en_us.json
Raycoms
Raycoms previously approved these changes Nov 25, 2024
Copy link
Contributor

@Raycoms Raycoms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, please do another testrun after the changes to make sure we don't break things =D

someaddons
someaddons previously approved these changes Nov 25, 2024
# Conflicts:
#	src/main/java/com/minecolonies/api/compatibility/CompatibilityManager.java
#	src/main/java/com/minecolonies/api/configuration/ServerConfiguration.java
#	src/main/java/com/minecolonies/api/entity/citizen/citizenhandlers/ICitizenDiseaseHandler.java
#	src/main/java/com/minecolonies/apiimp/initializer/InteractionValidatorInitializer.java
#	src/main/java/com/minecolonies/core/colony/buildings/workerbuildings/BuildingHospital.java
#	src/main/java/com/minecolonies/core/entity/ai/minimal/EntityAISickTask.java
#	src/main/java/com/minecolonies/core/entity/ai/workers/service/EntityAIWorkHealer.java
#	src/main/java/com/minecolonies/core/entity/citizen/citizenhandlers/CitizenDiseaseHandler.java
#	src/main/java/com/minecolonies/core/event/FMLEventHandler.java
@Thodor12 Thodor12 dismissed stale reviews from someaddons and Raycoms via c2f25b8 November 28, 2024 08:16
@Raycoms Raycoms merged commit 3f76f96 into version/main Dec 1, 2024
5 checks passed
@Raycoms Raycoms deleted the feature/diseases_datapack branch December 1, 2024 12:36
Raycoms added a commit that referenced this pull request Dec 23, 2024
Diseases use datapacks in favor of configuration values
Upgraded the RandomCollection introduced in Rework lucky ores to become datapacks #10343 to allow for key based values
Improved code regarding diseases by using more up-to-date code
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.

5 participants