Sensors now scale off of active power usage. Buffs weak sensors slightly.

This commit is contained in:
mikomyazaki
2022-02-14 02:02:08 +00:00
parent cd30b4a7d2
commit 96e78c61ce

View File

@@ -120,7 +120,7 @@
var/max_health = 200
var/health = 200
var/critical_heat = 50 // sparks and takes damage when active & above this heat
var/heat_reduction = 1.5 // mitigates this much heat per tick
var/heat_reduction = 0.5 // mitigates this much heat per tick - can sustain range 2
var/heat = 0
var/range = 1
idle_power_usage = 5000
@@ -194,7 +194,7 @@
take_damage(rand(10,50))
toggle()
heat += idle_power_usage/15000
heat += active_power_usage/15000
if (heat > 0)
heat = max(0, heat - heat_reduction)
@@ -219,6 +219,7 @@
if(use_power && health == 0)
toggle()
// For small shuttles
/obj/machinery/shipsensors/weak
heat_reduction = 0.2
desc = "Miniturized gravity scanner with various other sensors, used to detect irregularities in surrounding space. Can only run in vacuum to protect delicate quantum BS elements."
heat_reduction = 0.35 // Can sustain range 1
desc = "Miniturized gravity scanner with various other sensors, used to detect irregularities in surrounding space. Can only run in vacuum to protect delicate quantum BS elements."