Skip to content

Commit

Permalink
power stuff (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 authored Aug 2, 2023
1 parent 95994ae commit b565a1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
var/max_power_rating = 20000
///Percentage of power rating to use
var/power_setting = 20 // Start at 20 so we don't obliterate the station power supply.
/// How much gussy we can store in liters, this is affected by refresh_parts()
var/internal_volume = 400

var/interactive = TRUE // So mapmakers can disable interaction.
var/color_index = 1
Expand Down Expand Up @@ -73,9 +75,14 @@
for(var/obj/item/stock_parts/manipulator/man in component_parts)
manip_rating += man.rating

max_power_rating = initial(max_power_rating) * cap_rating / 2 //more powerful
max_power_rating = initial(max_power_rating) * (cap_rating / 2) //more powerful
internal_volume = initial(internal_volume) + (200 * bin_rating) //more air
heatsink_temperature = initial(heatsink_temperature) / ((manip_rating + bin_rating) / 2) //more efficient
set_power_level(power_setting)
if(airs[1])
airs[1].volume = internal_volume
else
airs[1] = new /datum/gas_mixture(200)

/obj/machinery/atmospherics/components/unary/thermomachine/update_icon_state()
var/colors_to_use = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
desc = "Has a valve and pump attached to it."

use_power = IDLE_POWER_USE
idle_power_usage = BASE_MACHINE_IDLE_CONSUMPTION * 0.15
idle_power_usage = BASE_MACHINE_IDLE_CONSUMPTION * 0.1
can_unwrench = TRUE
welded = FALSE
layer = GAS_SCRUBBER_LAYER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

name = "air scrubber"
desc = "Has a valve and pump attached to it."

use_power = IDLE_POWER_USE
idle_power_usage = BASE_MACHINE_IDLE_CONSUMPTION * 0.1

Expand Down

0 comments on commit b565a1d

Please sign in to comment.