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

CPR changes #6771

Closed
wants to merge 14 commits into from
Closed

CPR changes #6771

wants to merge 14 commits into from

Conversation

zzzmike
Copy link
Contributor

@zzzmike zzzmike commented Jul 21, 2024

About the pull request

Adds a hint that it may be a lost cause when someone CPRs a human who is unrevivable. Failed CPRs no longer increase the time before a successful CPR can occur. Messaging now references that other players can contribute to the "too fast CPR" situation.

Explain why it's good for the game

It's kinda cruel for a new player to be CPRing someone endlessly with no clue at all that they are long since perma. I know I did this once when I was new. This adds a subtle hint that they can spend their time elsewhere. It's also a bit cruel for a failed CPR to increase the time before a successful CPR can occur (you doing the whole CPR process for no effect should be the entire penalty, right?). The messaging changes are helpful especially for new players.

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑
qol: adds hint when you CPR someone who is unrevivable
balance: failed CPRs no longer increase the time before a successful CPR can occur
qol: messaging now references that other players can contribute to the "too fast CPR" situation
/:cl:

@github-actions github-actions bot added the Quality of Life Make the game harder to play label Jul 21, 2024
@zzzmike zzzmike marked this pull request as draft July 21, 2024 02:13
@zzzmike zzzmike marked this pull request as ready for review July 21, 2024 02:25
@zzzmike zzzmike changed the title Adds clue when you CPR someone who is perma CPR changes Jul 21, 2024
@ihatethisengine
Copy link
Contributor

ihatethisengine commented Jul 21, 2024

qol: failed CPRs no longer increase the time before a successful CPR can occur

Not a qol and in a way promotes just spamming CPR which is lame. You already with the right timing can prolong the timer basically infinitely, so having a "severe" punishment for bad timing is more than fair.

@zzzmike
Copy link
Contributor Author

zzzmike commented Jul 21, 2024

having a "severe" punishment for bad timing is more than fair

Doesn't feel fair when a crowd of marines are all trying to save someone who is seconds away from perma and CPR is impossible forever because incorrect CPRs cause more incorrect CPRs which cause more incorrect CPRs. Good luck coordinating with everyone in that situation to get the timer correct. Not to mention if a marine feels like griefing they can just incorrect CPR constantly, preventing anyone else from even having a chance of a successful CPR.

@ihatethisengine
Copy link
Contributor

ihatethisengine commented Jul 21, 2024

Good luck coordinating with everyone in that situation to get the timer correct.

This is literally a part of the skill required to save someone close to death. Removing it won't make the game more engaging. Now instead of coordinating (and thinking about what you do) you will have everyone just spamming CPR.

@zzzmike
Copy link
Contributor Author

zzzmike commented Jul 21, 2024

Good luck coordinating with everyone in that situation to get the timer correct.

This is literally a part of the skill required to save someone close to death. Removing it won't make the game more engaging. Now instead of coordinating (and thinking about what you do) you will have everyone just spamming CPR.

You still need to coordinate and think about what you do. If you spam CPR after a successful CPR, it will 100% fail and you have just wasted your own time during the long windup, and sometimes the time of others, since they are prevented from starting their own CPR attempt during your early attempt.

Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Jul 30, 2024
code/modules/mob/living/carbon/human/human_attackhand.dm Outdated Show resolved Hide resolved
Comment on lines +62 to +64
attacking_mob.visible_message(SPAN_NOTICE("<b>[attacking_mob]</b> performs <b>CPR</b> on <b>[src]</b>."),
SPAN_HELPFUL("You perform <b>CPR</b> on <b>[src]</b>. You feel it may be a lost cause."))
balloon_alert(attacking_mob, "you perform cpr, but feel it may be a lost cause")
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than this, perform the check status verb for them. Or better yet, just always have the check status verb done so many iterations rather than this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rather than this, perform the check status verb for them. Or better yet, just always have the check status verb done so many iterations rather than this.

sure - im not sure of the best way to code this though

attacking_mob.visible_message(SPAN_NOTICE("<b>[attacking_mob]</b> performs <b>CPR</b> on <b>[src]</b>."),
SPAN_HELPFUL("You perform <b>CPR</b> on <b>[src]</b>. You feel it may be a lost cause."))
balloon_alert(attacking_mob, "you perform cpr, but feel it may be a lost cause")
else if(is_revivable() && stat == DEAD)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ultimately the behavior of cpr shouldn't be changing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ultimately the behavior of cpr shouldn't be changing.

I'm not sure what you mean by this - if you mean the failed CPR leading to more failed CPR thing, I definitely want to change that behavior

if(cpr_cooldown < world.time)
revive_grace_period += 7 SECONDS
cpr_cooldown = world.time + 7 SECONDS
Copy link
Contributor

Choose a reason for hiding this comment

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

Let the cpr_cooldown still be set on a failure if they are alive like existing behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let the cpr_cooldown still be set on a failure if they are alive like existing behavior

This is definitely an intentional change for the reasons I mentioned in the PR description and the debate in the comments. If you don't want this change, feel free to close the PR, as it's the main change at this point. I will mark it as balance though as per suggestions.

@Drulikar Drulikar marked this pull request as draft August 1, 2024 14:34
@Drulikar Drulikar removed the Stale beg a maintainer to review your PR label Aug 1, 2024
@github-actions github-actions bot added the Balance You need to be a professional veteran game maintainer to comprehend what is being done here. label Aug 1, 2024
@zzzmike zzzmike marked this pull request as ready for review August 1, 2024 17:48
@zzzmike zzzmike requested a review from Drulikar August 1, 2024 17:48
@Drulikar
Copy link
Contributor

Drulikar commented Aug 1, 2024

I would rather failed CPR attempts still be penalized by applying the cooldown.

@Drulikar Drulikar closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Balance You need to be a professional veteran game maintainer to comprehend what is being done here. Quality of Life Make the game harder to play
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants