The temperature gun no longer self charges. (#23260)

* Update special_eguns.dm

* HENRI review, also forgot the to_chat change

* Update special_eguns.dm
This commit is contained in:
1080pCat
2023-11-24 15:34:25 +00:00
committed by GitHub
parent 4b3a720d96
commit bc7356b578
@@ -545,7 +545,6 @@
origin_tech = "combat=4;materials=4;powerstorage=3;magnets=2"
ammo_type = list(/obj/item/ammo_casing/energy/temp)
selfcharge = TRUE
// Measured in Kelvin
var/temperature = T20C
@@ -553,8 +552,8 @@
var/min_temp = 0
var/max_temp = 500
/// How fast the gun recharges
var/recharge_multiplier = 1
/// How fast the gun changes temperature
var/temperature_multiplier = 10
/obj/item/gun/energy/temperature/Initialize(mapload, ...)
. = ..()
@@ -594,20 +593,20 @@
/obj/item/gun/energy/temperature/emag_act(mob/user)
if(!emagged)
emagged = TRUE
to_chat(user, "<span class='caution'>You remove the gun's temperature cap! Targets hit by searing beams will burst into flames!</span>")
to_chat(user, "<span class='warning'>You remove the gun's temperature cap! Targets hit by searing beams will burst into flames!</span>")
desc += " Its temperature cap has been removed."
max_temp = 1000
recharge_multiplier = 5 //so emagged temp guns adjust their temperature much more quickly
temperature_multiplier *= 5 //so emagged temp guns adjust their temperature much more quickly
/obj/item/gun/energy/temperature/process()
..()
if(target_temperature != temperature)
var/difference = abs(target_temperature - temperature)
if(difference >= (10 * recharge_multiplier))
if(difference >= temperature_multiplier)
if(target_temperature < temperature)
temperature -= (10 * recharge_multiplier)
temperature -= temperature_multiplier
else
temperature += (10 * recharge_multiplier)
temperature += temperature_multiplier
else
temperature = target_temperature
update_icon()