Detritivore Trait - #117
Merged
Merged
Conversation
this is kind of ugly but we ball
portfiend
marked this pull request as ready for review
June 29, 2026 13:41
Contributor
Author
|
ready for review |
Dirius77
requested changes
Jun 30, 2026
Dirius77
left a comment
Collaborator
There was a problem hiding this comment.
Something also feels weird to me about adding Detritivore to the lungs. It shouldn't mechanically do anything, but in all the other cases the metabolizer is only on every organ because it's the species metabolizer, in this case it feels weird to put the metabolizer on an organ that it shouldn't be impacting at all.
Contributor
Author
|
i think its fine to keep detritivore on lungs for consistency, personally, because breathing is metabolism, and maybe someone wants to add like Toxic Mold Gas later or something. at the moment animal lungs aren't used for anything specific, so |
Dirius77
approved these changes
Jul 1, 2026
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.
About the PR
This PR ports the Detritivore trait from TheDenSS14/TheDen#684.
Entities with a detritivorous diet can derive hunger from gastrotoxin, mold, vent crud, and reprocessed material (trash) without being poisoned.
In addition, reprocessed material was given a new poison metabolism for non-Vox/non-Detritivores.
Why / Balance
Required for these PRs:
Technical details
AddMetabolizerTraitis a new trait function that adds metabolizerTypes to all metabolizing organs of an entity that pass a certain whitelist. (You can, for example, make it only affect the heart or lungs, or whatever). This sends an event to the extendedMetabolismSystemto add or remove metabolizers respectively when the trait is added/removed.Detritivore trait adds the "Detritivore" type to all metabolizing organs.
A new set of organs with both "Detritivore" and "Animal" metabolisms were added. This was given to rats (like the Rat King) and mice.
The following metabolisms were added:
I'll deal with trait balance later
Test plan
self traits:remove Detritivoreand try guzzling trash and mold again. You should be made horribly sick.Media
ill handle trait balance later
Metabolisms
Gameplay
Injecting 15u gastrotoxin each into detritivore and non-detritivore reptilian
Removing detritivore trait from self and injecting 15u gastrotoxin
Requirements
Licensing
Breaking changes
mice have a
BaseMobDetritivoreparent that changes their organsBaseMobRatalso had its organs changedthese mobs will be unusable for "animal organ"-type recipes specifically
Changelog
🆑