mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] fix clientless robot upgrade runtimes (#7574)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -240,6 +240,7 @@ var/obj/screen/robot_inventory
|
|||||||
|
|
||||||
var/display_rows = -round(-(r.module.modules.len) / 8)
|
var/display_rows = -round(-(r.module.modules.len) / 8)
|
||||||
r.robot_modules_background.screen_loc = "CENTER-4:16,SOUTH+1:7 to CENTER+3:16,SOUTH+[display_rows]:7"
|
r.robot_modules_background.screen_loc = "CENTER-4:16,SOUTH+1:7 to CENTER+3:16,SOUTH+[display_rows]:7"
|
||||||
|
if(r.client)
|
||||||
r.client.screen += r.robot_modules_background
|
r.client.screen += r.robot_modules_background
|
||||||
|
|
||||||
var/x = -4 //Start at CENTER-4,SOUTH+1
|
var/x = -4 //Start at CENTER-4,SOUTH+1
|
||||||
@@ -258,7 +259,7 @@ var/obj/screen/robot_inventory
|
|||||||
r.module.modules.Remove(r.module.emag)
|
r.module.modules.Remove(r.module.emag)
|
||||||
|
|
||||||
for(var/atom/movable/A in r.module.modules)
|
for(var/atom/movable/A in r.module.modules)
|
||||||
if( (A != r.module_state_1) && (A != r.module_state_2) && (A != r.module_state_3) )
|
if(r.client && (A != r.module_state_1) && (A != r.module_state_2) && (A != r.module_state_3) )
|
||||||
//Module is not currently active
|
//Module is not currently active
|
||||||
r.client.screen += A
|
r.client.screen += A
|
||||||
if(x < 0)
|
if(x < 0)
|
||||||
@@ -276,10 +277,11 @@ var/obj/screen/robot_inventory
|
|||||||
//Modules display is hidden
|
//Modules display is hidden
|
||||||
//r.client.screen -= robot_inventory //"store" icon
|
//r.client.screen -= robot_inventory //"store" icon
|
||||||
for(var/atom/A in r.module.modules)
|
for(var/atom/A in r.module.modules)
|
||||||
if( (A != r.module_state_1) && (A != r.module_state_2) && (A != r.module_state_3) )
|
if(r.client && (A != r.module_state_1) && (A != r.module_state_2) && (A != r.module_state_3) )
|
||||||
//Module is not currently active
|
//Module is not currently active
|
||||||
r.client.screen -= A
|
r.client.screen -= A
|
||||||
r.shown_robot_modules = 0
|
r.shown_robot_modules = 0
|
||||||
|
if(r.client)
|
||||||
r.client.screen -= r.robot_modules_background
|
r.client.screen -= r.robot_modules_background
|
||||||
|
|
||||||
/mob/living/silicon/robot/update_hud()
|
/mob/living/silicon/robot/update_hud()
|
||||||
|
|||||||
Reference in New Issue
Block a user