mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
VS machinery power update procs.
This commit is contained in:
@@ -178,13 +178,13 @@ obj/machinery/computer/ship/disperser/proc/is_valid_setup()
|
||||
var/input = input("1-5", "disperser strength", 1) as num|null
|
||||
if(input && CanInteract(user, state))
|
||||
strength = sanitize_integer(input, 1, 5, 1)
|
||||
middle.idle_power_usage = strength * range * 100
|
||||
middle.update_idle_power_usage(strength * range * 100)
|
||||
|
||||
if(href_list["range"])
|
||||
var/input = input("1-5", "disperser radius", 1) as num|null
|
||||
if(input && CanInteract(user, state))
|
||||
range = sanitize_integer(input, 1, 5, 1)
|
||||
middle.idle_power_usage = strength * range * 100
|
||||
middle.update_idle_power_usage(strength * range * 100)
|
||||
|
||||
if(href_list["fire"])
|
||||
fire(user)
|
||||
|
||||
Reference in New Issue
Block a user