mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Add vv_edit_var to ensure VV edits call our update procs too.
This commit is contained in:
@@ -188,6 +188,21 @@ Class Procs:
|
||||
else
|
||||
return
|
||||
|
||||
/obj/machinery/vv_edit_var(var/var_name, var/new_value)
|
||||
if(var_name == NAMEOF(src, use_power))
|
||||
update_use_power(new_value)
|
||||
return TRUE
|
||||
else if(var_name == NAMEOF(src, power_channel))
|
||||
update_power_channel(new_value)
|
||||
return TRUE
|
||||
else if(var_name == NAMEOF(src, idle_power_usage))
|
||||
update_idle_power_usage(new_value)
|
||||
return TRUE
|
||||
else if(var_name == NAMEOF(src, active_power_usage))
|
||||
update_active_power_usage(new_value)
|
||||
return TRUE
|
||||
return ..()
|
||||
|
||||
/obj/machinery/proc/operable(var/additional_flags = 0)
|
||||
return !inoperable(additional_flags)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user