Fixes camera upgrades not working properly

Important updates were being done in the malf AI's Upgrade Camera proc,
instead of in the actual upgrade procs
This commit is contained in:
Krausus
2015-05-11 08:17:08 -04:00
parent ae864b0a2e
commit c4d59070f6
2 changed files with 4 additions and 4 deletions
@@ -359,8 +359,6 @@ rcd light flash thingy on matter drain
if(!C.isXRay())
C.upgradeXRay()
//Update what it can see.
cameranet.updateVisibility(C, 0)
upgraded = 1
if(!C.isEmpProof())
@@ -370,8 +368,6 @@ rcd light flash thingy on matter drain
if(!C.isMotion())
C.upgradeMotion()
upgraded = 1
// Add it to machines that process
machines |= C
if(upgraded)
UC.uses --
+4
View File
@@ -73,11 +73,15 @@
/obj/machinery/camera/proc/upgradeXRay()
assembly.upgrades.Add(new /obj/item/device/analyzer(assembly))
setPowerUsage()
//Update what it can see.
cameranet.updateVisibility(src, 0)
// If you are upgrading Motion, and it isn't in the camera's New(), add it to the machines list.
/obj/machinery/camera/proc/upgradeMotion()
assembly.upgrades.Add(new /obj/item/device/assembly/prox_sensor(assembly))
setPowerUsage()
// Add it to machines that process
machines |= src
/obj/machinery/camera/proc/setPowerUsage()
var/mult = 1