-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Properly move pulping to activity actor, tweak it #79483
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read the code, left some comments.
Also please address clang-tidy complaints.
Suggested additional test: Debug spawn monster a bit away, start pulping, and ensure you're warned when the monster gets dangerously close and that you are actually able to stop pulping at that time. Could also disable warnings and check that you're interrupted by the monster attacking. I'd use a large corpse to ensure pulping takes a lot of time to ensure there's a fair bit of pulping left to do by the time you're interrupted. Could do the same with companion. |
Do we even have a way to test popups? |
I don't think there's any automated support, so it would have to be done manually. |
e1a2a1b
to
f264fd1
Compare
There's a test But speaking of testing, please test if player speed actually has an influence on pulping speed. Because I think with the current setup there's no difference between speed and time, just one step of pulping per turn. |
f264fd1
to
10a7703
Compare
10a7703
to
d251037
Compare
d251037
to
5147fd8
Compare
Spell checker encountered unrecognized words in the in-game text added in this pull request. See below for details. Click to expand
This alert is automatically generated. You can simply disregard if this is inaccurate, or (optionally) you can also add the new words to Hints for adding a new word to the dictionary
|
Summary
Features "You no longer need to dismember corpses separately"
Purpose of change
Fix #79400
Fix #79461
Supersedes #79479 (tho can be merged in parallel)
Tried to fix what i did in #78948, found that pulping, while was ported to activity actors, did not actually used any of it's features
Describe the solution
all the logic in pulp_activity_actor::do_turn was split in pulp_activity_actor::start, pulp_activity_actor::do_turn and pulp_activity_actor::finish where reasonable
Remove all the manual move tweaks, instead speed is handled by
"based_on": "speed",
activity actor functionalityRevamped the formula for pulping speed, now your best bash tool, survival skill, having a knife, and your knowledge of this specific monster weakpoints; in return, you can learn a little bit of weakpoint proficiency while smashing the monster
Pulping acid corpses now do not trigger any messages, but you spend 2.5 times more time on pulping acid corpse, and all the acid spill only where the corpse is - do not pulp corpse that is lay down right under your character, but smashing it one tile nearby is totally safe, albeit long
pulp effort seemed to be too low, pulping with your bare arms cost only 8 stamina (character regen 20 stamina per second); stamina consumption is increased by 20todo: need to think for a better way to calculate stamina consumptionTesting
You still can pulp monsters
Npcs still can pulp monsters
You can pulp acid monsters without killing yourself
The game properly save and load you pulping if you autosaved in the meantime