Another Malf Hud Fix (#29309)

* fixed

* another malf AI fix
This commit is contained in:
Kyani
2025-05-13 02:08:56 -04:00
committed by GitHub
parent b4cf38fb3f
commit f7f711665f
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -606,9 +606,9 @@ GLOBAL_LIST_EMPTY(do_after_once_tracker)
var/mob/living/carbon/human/H = thing
H.sec_hud_set_security_status()
/proc/update_all_mob_malf_hud(new_status)
/proc/update_all_mob_malf_hud()
for(var/mob/living/carbon/human/H in GLOB.human_list)
H.malf_hud_set_status(new_status)
H.malf_hud_set_status()
/proc/getviewsize(view)
var/viewX
+7 -7
View File
@@ -511,17 +511,17 @@
Malf AI HUD
~~~~~~~~~~~~~~~*/
/mob/living/carbon/human/proc/malf_hud_set_status(new_status)
/mob/living/carbon/human/proc/malf_hud_set_status()
var/image/holder = hud_list[MALF_AI_HUD]
var/new_status
var/targetname = get_visible_name(TRUE) //gets the name of the target, works if they have an id or if their face is uncovered
if(!SSticker)
return //wait till the game starts or the monkeys runtime
if(!new_status)
for(var/datum/data/record/E in GLOB.data_core.general)
if(E.fields["name"] == targetname)
for(var/datum/data/record/R in GLOB.data_core.security)
if(R.fields["id"] == E.fields["id"])
new_status = E.fields["ai_target"]
for(var/datum/data/record/E in GLOB.data_core.general)
if(E.fields["name"] == targetname)
for(var/datum/data/record/R in GLOB.data_core.security)
if(R.fields["id"] == E.fields["id"])
new_status = E.fields["ai_target"]
if(targetname)
var/datum/data/record/R = find_record("name", targetname, GLOB.data_core.security)
if(R)
@@ -786,7 +786,7 @@
found_record.fields["ai_target"] = new_status
update_all_mob_malf_hud(new_status)
update_all_mob_malf_hud()
/mob/living/carbon/human/can_be_flashed(intensity = 1, override_blindness_check = 0)