mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 21:19:44 +01:00
Merge pull request #7890 from Loganbacca/aistatusfix
Fixed AI status display not updating
This commit is contained in:
@@ -43,6 +43,7 @@ var/list/ai_status_emotions = list(
|
||||
if(istype(M, /obj/machinery/ai_status_display))
|
||||
var/obj/machinery/ai_status_display/AISD = M
|
||||
AISD.emotion = emote
|
||||
AISD.update()
|
||||
//if Friend Computer, change ALL displays
|
||||
else if(istype(M, /obj/machinery/status_display))
|
||||
|
||||
@@ -72,6 +73,9 @@ var/list/ai_status_emotions = list(
|
||||
var/emote = input("Please, select a status!", "AI Status", null, null) in ai_emotions
|
||||
src.emotion = emote
|
||||
|
||||
/obj/machinery/ai_status_display/process()
|
||||
return
|
||||
|
||||
/obj/machinery/ai_status_display/proc/update()
|
||||
if(mode==0) //Blank
|
||||
overlays.Cut()
|
||||
@@ -91,3 +95,11 @@ var/list/ai_status_emotions = list(
|
||||
if(overlays.len)
|
||||
overlays.Cut()
|
||||
overlays += image('icons/obj/status_display.dmi', icon_state=picture_state)
|
||||
|
||||
/obj/machinery/ai_status_display/power_change()
|
||||
..()
|
||||
if(stat & NOPOWER)
|
||||
if(overlays.len)
|
||||
overlays.Cut()
|
||||
else
|
||||
update()
|
||||
|
||||
Reference in New Issue
Block a user