Skip to content

Commit

Permalink
add some balloons for CPR : one is for when it's a success and the ot…
Browse files Browse the repository at this point in the history
…her is when it's a failure. (#5918)

# About the pull request
adding balloons to show when you are successful with your CPR or if your
not.

I am not sure about the text.
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
Give feedback without needing to look at chat box
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

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

</details>


# Changelog
:cl:
qol: add some balloons for CPR : one is for when it's a success and the
other is when it's a failure.
/:cl:

---------

Co-authored-by: Julien <[email protected]>
Co-authored-by: SabreML <[email protected]>
  • Loading branch information
3 people committed Mar 20, 2024
1 parent 69aa04f commit 761d2b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/human/human_attackhand.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@
revive_grace_period += 7 SECONDS
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>."))
balloon_alert(attacking_mob, "you perform cpr")
else
attacking_mob.visible_message(SPAN_NOTICE("<b>[attacking_mob]</b> fails to perform CPR on <b>[src]</b>."),
SPAN_HELPFUL("You <b>fail</b> to perform <b>CPR</b> on <b>[src]</b>. Incorrect rhythm. Do it <b>slower</b>."))
balloon_alert(attacking_mob, "incorrect rhythm. do it slower")
cpr_cooldown = world.time + 7 SECONDS
cpr_attempt_timer = 0
return 1
Expand Down

0 comments on commit 761d2b4

Please sign in to comment.