Hotfixes sechuds on records [NO GBP] (#72948)

## About The Pull Request
Fixes an issue where sechuds weren't activating or clearing properly
## Why It's Good For The Game
Bug fixes
## Changelog
🆑
fix: Sec huds should properly label targets with the new record system
/🆑
This commit is contained in:
Jeremiah
2023-01-25 21:01:06 +01:00
committed by GitHub
parent ac636f2512
commit 6459d572a2
+4
View File
@@ -312,6 +312,8 @@ Security HUDs! Basic mode shows only the job.
var/datum/record/crew/target = find_record(perp_name)
if(!target || target.wanted_status == WANTED_NONE)
holder.icon_state = null
set_hud_image_inactive(WANTED_HUD)
return
switch(target.wanted_status)
@@ -326,6 +328,8 @@ Security HUDs! Basic mode shows only the job.
if(WANTED_DISCHARGED)
holder.icon_state = "huddischarged"
set_hud_image_active(WANTED_HUD)
/***********************************************
Diagnostic HUDs!
************************************************/