mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Rebalanced Power consumption, increase for machines (#66059)
Machinery power consumption rebalance.
This commit is contained in:
@@ -33,8 +33,6 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
|
||||
name = "holodeck control console"
|
||||
desc = "A computer used to control a nearby holodeck."
|
||||
icon_screen = "holocontrol"
|
||||
idle_power_usage = 10
|
||||
active_power_usage = 50
|
||||
|
||||
//new vars
|
||||
///what area type this holodeck loads into. linked turns into the nearest instance of this area
|
||||
@@ -133,6 +131,7 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
|
||||
LAZYADD(program_cache, list(info_this))
|
||||
|
||||
/obj/machinery/computer/holodeck/ui_interact(mob/user, datum/tgui/ui)
|
||||
. = ..()
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
if(!ui)
|
||||
ui = new(user, src, "Holodeck", name)
|
||||
@@ -357,7 +356,7 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
|
||||
derez(item)
|
||||
for(var/obj/effect/holodeck_effect/holo_effect as anything in effects)
|
||||
holo_effect.tick()
|
||||
update_mode_power_usage(ACTIVE_POWER_USE, 50 + spawned.len * 3 + effects.len * 5)
|
||||
update_mode_power_usage(ACTIVE_POWER_USE, active_power_usage + spawned.len * 3 + effects.len * 5)
|
||||
|
||||
/obj/machinery/computer/holodeck/proc/toggle_power(toggleOn = FALSE)
|
||||
if(active == toggleOn)
|
||||
|
||||
@@ -118,9 +118,8 @@
|
||||
var/area/currentarea = null
|
||||
var/eventstarted = FALSE
|
||||
|
||||
use_power = IDLE_POWER_USE
|
||||
idle_power_usage = 2
|
||||
active_power_usage = 6
|
||||
idle_power_usage = BASE_MACHINE_IDLE_CONSUMPTION * 0.02
|
||||
active_power_usage = BASE_MACHINE_ACTIVE_CONSUMPTION * 0.006
|
||||
power_channel = AREA_USAGE_ENVIRON
|
||||
|
||||
/obj/machinery/readybutton/attack_ai(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user