[MIRROR] Improves friendly commendation code (#3110)

* Improves friendly commendation code (#56453)

* Improves friendly commendation code

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-05 21:42:47 +00:00
committed by GitHub
co-authored by Ryll Ryll
parent de94d3e5aa
commit 18d9daadb1
8 changed files with 58 additions and 47 deletions
-9
View File
@@ -699,12 +699,3 @@ SUBSYSTEM_DEF(ticker)
SEND_SOUND(M.client, end_of_round_sound_ref)
text2file(login_music, "data/last_round_lobby_music.txt")
/datum/controller/subsystem/ticker/Topic(href, list/href_list)
. = ..()
if(href_list["cancel_heart"] && usr.client.holder)
var/mob/heart_sender = locate(href_list["heart_source"])
var/mob/intended_recepient = locate(href_list["heart_target"])
log_admin("[usr.ckey] blocked commendation from [heart_sender] ([heart_sender.ckey]) to [intended_recepient] ([intended_recepient.ckey])")
message_admins("[usr.ckey] blocked commendation from [heart_sender] ([heart_sender.ckey]) to [intended_recepient] ([intended_recepient.ckey])")
hearts[intended_recepient] = null