mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Adjusts power usage for R&D equipment
This commit is contained in:
@@ -14,6 +14,10 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis).
|
||||
var/diamond_amount = 0
|
||||
var/uranium_amount = 0
|
||||
var/max_material_amount = 75000.0
|
||||
|
||||
use_power = 1
|
||||
idle_power_usage = 30
|
||||
active_power_usage = 2500
|
||||
|
||||
New()
|
||||
..()
|
||||
|
||||
@@ -12,6 +12,10 @@ Note: Must be placed within 3 tiles of the R&D Console
|
||||
icon_state = "d_analyzer"
|
||||
var/obj/item/weapon/loaded_item = null
|
||||
var/decon_mod = 1
|
||||
|
||||
use_power = 1
|
||||
idle_power_usage = 30
|
||||
active_power_usage = 2500
|
||||
|
||||
/obj/machinery/r_n_d/destructive_analyzer/New()
|
||||
..()
|
||||
|
||||
@@ -11,6 +11,10 @@ Note: Must be placed west/left of and R&D console to function.
|
||||
name = "Protolathe"
|
||||
icon_state = "protolathe"
|
||||
flags = OPENCONTAINER
|
||||
|
||||
use_power = 1
|
||||
idle_power_usage = 30
|
||||
active_power_usage = 5000
|
||||
|
||||
var/max_material_storage = 100000 //All this could probably be done better with a list but meh.
|
||||
var/m_amount = 0.0
|
||||
|
||||
@@ -280,7 +280,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
||||
if(!(I in linked_destroy.component_parts))
|
||||
del(I)
|
||||
linked_destroy.icon_state = "d_analyzer"
|
||||
use_power(250)
|
||||
use_power(linked_destroy.active_power_usage)
|
||||
screen = 1.0
|
||||
updateUsrDialog()
|
||||
|
||||
@@ -332,10 +332,10 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
||||
being_built = D
|
||||
break
|
||||
if(being_built)
|
||||
var/power = 2000
|
||||
var/power = linked_lathe.active_power_usage
|
||||
for(var/M in being_built.materials)
|
||||
power += round(being_built.materials[M] / 5)
|
||||
power = max(2000, power)
|
||||
power = max(linked_lathe.active_power_usage, power)
|
||||
screen = 0.3
|
||||
linked_lathe.busy = 1
|
||||
flick("protolathe_n",linked_lathe)
|
||||
@@ -386,10 +386,10 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
||||
being_built = D
|
||||
break
|
||||
if(being_built)
|
||||
var/power = 2000
|
||||
var/power = linked_imprinter.active_power_usage
|
||||
for(var/M in being_built.materials)
|
||||
power += round(being_built.materials[M] / 5)
|
||||
power = max(2000, power)
|
||||
power = max(linked_imprinter.active_power_usage, power)
|
||||
screen = 0.4
|
||||
linked_imprinter.busy = 1
|
||||
flick("circuit_imprinter_ani",linked_imprinter)
|
||||
|
||||
Reference in New Issue
Block a user