mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user