Skip to content

Commit

Permalink
Add heart visual effects and messages for friendly interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Superlagg committed Dec 23, 2024
1 parent dd2c6dc commit b87ef51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/modules/mob/living/carbon/carbon_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,16 @@
target_message = span_notice("[M] hugs you to make you feel better!"))
SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "hug", /datum/mood_event/hug)
friendly_check = TRUE

if(friendly_check)
new /obj/effect/temp_visual/heart(get_turf(M))
new /obj/effect/temp_visual/heart(get_turf(src))
if(prob(1))
for(var/turf/T in view(src, 3))
if(prob(5))
new /obj/effect/temp_visual/heart(T)
to_chat(M, span_green("You really feel the love!"))
to_chat(src, span_green("You really feel the love!"))

if(friendly_check && HAS_TRAIT(M, TRAIT_FRIENDLY))
var/datum/component/mood/mood = M.GetComponent(/datum/component/mood)
Expand Down

0 comments on commit b87ef51

Please sign in to comment.