mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
[MIRROR] Adds 👏 High 👏 Fives 👏 (#1445)
* Adds 👏 High 👏 Fives 👏 (#54516) This PR lets you post up for high-fives with your buds so you can slap some skin and show off how well you vibe together. To initiate a high-five, simply stand next to another person with a slapper (the *slap emote one) in hand, and hit the offer item button (default G) to let the people adjacent to you know you're available. They'll get an alert that you're offering a high-five, and clicking it will follow through and award you both a small positive moodlet, or they can just walk away and leave you hanging, earning you a negative moodlet. Is a high-five not enough to show the world how tight your crew is? Double the fun! If whoever initiates the high-five has a slapper in both hands, and the taker has two hands free, you'll go for the mythical high-ten for a louder slap and extra emphasis! Woo! * Adds 👏 High 👏 Fives 👏 Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
@@ -315,6 +315,26 @@ or shoot a gun to move around via Newton's 3rd Law of Motion."
|
||||
var/mob/living/carbon/C = owner
|
||||
C.take(giver, receiving)
|
||||
|
||||
/obj/screen/alert/highfive
|
||||
icon_state = "default"
|
||||
var/mob/living/carbon/giver
|
||||
var/obj/item/slapper/slapper_item
|
||||
|
||||
/obj/screen/alert/highfive/proc/setup(mob/living/carbon/taker, mob/living/carbon/giver, obj/item/slapper/slap)
|
||||
name = "[giver] is offering a high-five"
|
||||
desc = "[giver] wants a high-five! Click this alert to take it."
|
||||
icon_state = "template"
|
||||
cut_overlays()
|
||||
add_overlay(slap)
|
||||
src.slapper_item = slap
|
||||
src.giver = giver
|
||||
|
||||
/obj/screen/alert/highfive/Click(location, control, params)
|
||||
. = ..()
|
||||
var/datum/status_effect/high_fiving/high_five_effect = giver.has_status_effect(STATUS_EFFECT_HIGHFIVE)
|
||||
if(high_five_effect)
|
||||
high_five_effect.we_did_it(owner)
|
||||
|
||||
/// Gives the player the option to succumb while in critical condition
|
||||
/obj/screen/alert/succumb
|
||||
name = "Succumb"
|
||||
|
||||
Reference in New Issue
Block a user