[REVIEW] Ports Modular Computers from Baystation

This commit is contained in:
Neerti
2019-04-28 22:06:40 -04:00
committed by VirgoBot
parent 96669c91f0
commit 16b3b58259
242 changed files with 13200 additions and 6636 deletions
@@ -109,4 +109,6 @@
// Used by mobs in virtual reality to point back to the "real" mob the client belongs to.
var/mob/living/carbon/human/vr_holder = null
// Used by "real" mobs after they leave a VR session
var/mob/living/carbon/human/vr_link = null
var/mob/living/carbon/human/vr_link = null
var/obj/machinery/machine_visual //machine that is currently applying visual effects to this mob. Only used for camera monitors currently.
@@ -1316,6 +1316,11 @@
if(found_welder)
client.screen |= global_hud.darkMask
/mob/living/carbon/human/reset_view(atom/A)
..()
if(machine_visual && machine_visual != A)
machine_visual.remove_visual(src)
/mob/living/carbon/human/handle_vision()
if(stat == DEAD)
sight |= SEE_TURFS|SEE_MOBS|SEE_OBJS|SEE_SELF
@@ -1377,6 +1382,7 @@
if(machine)
var/viewflags = machine.check_eye(src)
machine.apply_visual(src)
if(viewflags < 0)
reset_view(null, 0)
else if(viewflags && !looking_elsewhere)
+4
View File
@@ -9,6 +9,10 @@
handle_modifiers() //VOREStation Edit - Needs to be done even if in nullspace.
if(!loc)
return
if(machine && !CanMouseDrop(machine, src))
machine = null
var/datum/gas_mixture/environment = loc.return_air()
//handle_modifiers() // Do this early since it might affect other things later. //VOREStation Edit
@@ -145,9 +145,6 @@
/datum/robot_component/camera/update_power_state()
..()
if (camera)
//check if camera component was deactivated
if (!powered && camera.status != powered)
camera.kick_viewers()
camera.status = powered
/datum/robot_component/camera/install()
@@ -157,12 +154,10 @@
/datum/robot_component/camera/uninstall()
if (camera)
camera.status = 0
camera.kick_viewers()
/datum/robot_component/camera/destroy()
if (camera)
camera.status = 0
camera.kick_viewers()
// SELF DIAGNOSIS MODULE
// Analyses cyborg's modules, providing damage readouts and basic information
+1 -1
View File
@@ -158,7 +158,7 @@ proc/getsensorlevel(A)
/proc/stars(n, pr)
if (pr == null)
pr = 25
if (pr <= 0)
if (pr < 0)
return null
else
if (pr >= 100)