-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow summoned creatures to leave without creating a corpse #72005
Conversation
Player summoned animals should not leave behind functional corpses.
flag check
woops
You are creating a pull request with the master branch as the head branch. This is likely a mistake unless you really know what you are doing. You may read https://docs.github.com/en/get-started/quickstart/contributing-to-projects#creating-a-branch-to-work-on for a typical workflow of contributing to a project on GitHub. |
I like that this fix is less likely to be undone as easily as the previous fixes were is it possible you could create a test to make sure summoned critters leave no corpse so our CI is notified when someone breaks it? |
I'm not sure. The fact that SOME summoned creatures are supposed to leave behind corpses makes testing all spell effects that use "summon" difficult. Either you have some second list that knows what things are supposed to have corpses and that gets updated in addition to the spell getting the flag, or you rely on the spell having the flag (in which case, what exactly are you testing? that the flag was properly read into the spell effect?) |
in principle, such a test should verify that a summon with that flag correctly fails to leave a corpse behind. to make sure that the code the flag calls hasn't broken at some point. |
new debug spell and new test
Summary
Bugfixes "Summoned animals are back to not leaving behind corpses"
Purpose of change
When #66118 fixed death effects for limited duration creatures, it also caused any summoned animal to start leaving behind butcherable corpses, creating a free source of food.
Describe the solution
Allowed spells to interact with the existing "quiet death" mechanic through a flag. Added that flag to all player spells that summoned temporary animals.
Describe alternatives you've considered
Find an alternative solution for summoned creatures that need to trigger explicit effects.
Adjust the cost so that the 'free' food has some sort of equivalent tradeoff.
Testing
Summoned various animals and non-animals. Only spells that got the new flag vanished, others continued to behave as before leaving behind corpses and triggering death effects.
Additional context
Most summoned creatures are already non-corporeal (spirits/holograms), or are in other ways triggered by enemies. These animals were the primary thing affected by summoned creatures leaving behind corpses and seemed to go directly against the intent behind adding toxins to other infinitely spawning food sources that used to be farmed - Especially because these summoned creatures don't even need to be fought. They just exist for a short while and then are free food with no risk or exploration required.
Additionally, considering the flavor of most of the druid spells with 'calling for aid' it is reasonable to interpret their disappearance as returning to the wild, or if they are in fact spirit animals they probably shouldn't have edible corpses anyways and would just dissipate into magic again.