Skip to content

Commit

Permalink
Defender and Crusher tail smash has a 1% chance of doing a BONK! soun…
Browse files Browse the repository at this point in the history
…d instead. (#3750)

# About the pull request

<!-- 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.
-->
Defender and Crusher tail smash has a 1% chance of doing a BONK! sound
instead.

# Explain why it's good for the game
its one of those fun occasional things it will be cool for gameplay 

# 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:
add: Defender Tail Slam has a 1% chance to do a BONK sound instead.
/:cl:
  • Loading branch information
Diegoflores31 committed Jul 6, 2023
1 parent 3eaecc5 commit bf67858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,10 @@

if(blunt_stab)
stabbing_xeno.visible_message(SPAN_XENOWARNING("\The [stabbing_xeno] swipes its tail into [target]'s [limb ? limb.display_name : "chest"], bashing it!"), SPAN_XENOWARNING("You swipe your tail into [target]'s [limb? limb.display_name : "chest"], bashing it!"))
playsound(target, "punch", 50, TRUE)
if(prob(1))
playsound(target, 'sound/effects/comical_bonk.ogg', 50, TRUE)
else
playsound(target, "punch", 50, TRUE)
// The xeno smashes the target with their tail, moving it to the side and thus their direction as well.
stab_direction = turn(stabbing_xeno.dir, pick(90, -90))
stab_overlay = "slam"
Expand Down
Binary file added sound/effects/comical_bonk.ogg
Binary file not shown.

0 comments on commit bf67858

Please sign in to comment.