mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
@@ -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 --
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user