mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] Add back hearts for valentines, but in a sane manner (#3401)
* Add back hearts for valentines, but in a sane manner (#56900) Adds back hearts removed by #56897, but in a way that doesn't completely murder timers. Also made the code a bit better. Here you can see it on my hideous date. https://user-images.githubusercontent.com/35135081/107848333-6ec06280-6da7-11eb-91b6-1382380eb3b4.mp4 * Add back hearts for valentines, but in a sane manner Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -49,13 +49,23 @@
|
||||
duration = -1
|
||||
status_type = STATUS_EFFECT_UNIQUE
|
||||
alert_type = /atom/movable/screen/alert/status_effect/in_love
|
||||
var/mob/living/date
|
||||
var/hearts
|
||||
|
||||
/datum/status_effect/in_love/on_creation(mob/living/new_owner, mob/living/love_interest)
|
||||
/datum/status_effect/in_love/on_creation(mob/living/new_owner, mob/living/date)
|
||||
. = ..()
|
||||
if(.)
|
||||
date = love_interest
|
||||
linked_alert.desc = "You're in love with [date.real_name]! How lovely."
|
||||
if(!.)
|
||||
return
|
||||
|
||||
linked_alert.desc = "You're in love with [date.real_name]! How lovely."
|
||||
hearts = WEAKREF(date.add_alt_appearance(
|
||||
/datum/atom_hud/alternate_appearance/basic/one_person,
|
||||
"in_love",
|
||||
image(icon = 'icons/effects/effects.dmi', icon_state = "love_hearts", loc = date),
|
||||
new_owner,
|
||||
))
|
||||
|
||||
/datum/status_effect/in_love/on_remove()
|
||||
QDEL_NULL(hearts)
|
||||
|
||||
/datum/status_effect/throat_soothed
|
||||
id = "throat_soothed"
|
||||
|
||||
Reference in New Issue
Block a user