Skip to content

Commit

Permalink
updating sec records should reflect criminal status icons
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed May 24, 2024
1 parent 759cb6a commit 1a3a29b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/datums/mob_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ GLOBAL_LIST_INIT_TYPED(huds, /datum/mob_hud, list(
var/obj/item/card/id/I = wear_id.GetID()
if(I)
perpref = I.registered_ref
else
perpref = WEAKREF(usr)

if(!GLOB.data_core)
return
Expand All @@ -635,9 +637,6 @@ GLOBAL_LIST_INIT_TYPED(huds, /datum/mob_hud, list(
holder.icon_state = "hudsec_prisoner"
criminal = TRUE
return
if(MOB_STAT_CRIME_NONE)
holder.icon_state = null
criminal = FALSE

//Squad HUD

Expand Down
5 changes: 5 additions & 0 deletions code/game/machinery/computer/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@
visible_message("[SPAN_BOLD("[src]")] states, \"DATACORE FAILURE: Unable to update relevant database logs.\"")
return
retrieve_target_record(target_mob)
if(params["stat"] == MOB_CRIMINAL_STATUS)
for(var/mob/living/carbon/human/human as anything in GLOB.human_mob_list)
if(human.name == target_mob)
human.sec_hud_set_security_status()
return TRUE
return TRUE

/obj/structure/machinery/computer/secure_data/ui_static_data(mob/user)
Expand Down

0 comments on commit 1a3a29b

Please sign in to comment.