Skip to content

Commit

Permalink
Re-adds holocard resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicacrov committed Mar 26, 2024
1 parent b40c01d commit 4fbeac1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,14 @@
if(isobserver(user))
return
if(!skillcheck(user, SKILL_MEDICAL, SKILL_MEDICAL_MEDIC))
// Removing your own holocard when you are not trained
if(user == src && holo_card_color)
if(tgui_alert(usr, "Are you sure you want to reset your own holocard?", "Resetting Holocard", list("Yes", "No")) != "Yes")
return
holo_card_color = null
to_chat(user, SPAN_NOTICE("You reset your holocard."))
update_targeted()
return
to_chat(user, SPAN_WARNING("You're not trained to use this."))
return
if(!has_species(src, "Human"))
Expand Down

0 comments on commit 4fbeac1

Please sign in to comment.