mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 18:14:22 +01:00
Adjusts all get_temperature() accesses to compare it to a value (#95236)
## About The Pull Request ``get_temperature()`` returns a value in kelvins, not a boolean. Trying to treat it as such will result in ***any*** item with a thermal value, like condensers, being treated as a lighter. ## Why It's Good For The Game Consistency, allows us to have actually functioning cooling items that don't act like lighters all the time. ## Changelog 🆑 fix: Condensers can no longer be used to ignite things /🆑
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
add_overlay("bonfire_grill")
|
||||
else
|
||||
return ..()
|
||||
if(used_item.get_temperature())
|
||||
if(used_item.get_temperature() >= FIRE_MINIMUM_TEMPERATURE_TO_EXIST)
|
||||
start_burning()
|
||||
if(grill)
|
||||
if(istype(used_item, /obj/item/melee/roastingstick))
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
return crowbar_door(user, I)
|
||||
|
||||
/obj/structure/mineral_door/wood/attackby(obj/item/I, mob/living/user)
|
||||
if(I.get_temperature())
|
||||
if(I.get_temperature() >= FIRE_MINIMUM_TEMPERATURE_TO_EXIST)
|
||||
fire_act(I.get_temperature())
|
||||
return
|
||||
|
||||
@@ -318,7 +318,7 @@
|
||||
return crowbar_door(user, I)
|
||||
|
||||
/obj/structure/mineral_door/paperframe/attackby(obj/item/I, mob/living/user)
|
||||
if(I.get_temperature()) //BURN IT ALL DOWN JIM
|
||||
if(I.get_temperature() >= FIRE_MINIMUM_TEMPERATURE_TO_EXIST) //BURN IT ALL DOWN JIM
|
||||
fire_act(I.get_temperature())
|
||||
return
|
||||
|
||||
|
||||
@@ -985,11 +985,13 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/window/reinforced/tinted/frosted/spaw
|
||||
. += (atom_integrity < max_integrity) ? torn : paper
|
||||
|
||||
/obj/structure/window/paperframe/attackby(obj/item/W, mob/living/user)
|
||||
if(W.get_temperature())
|
||||
if(W.get_temperature() >= FIRE_MINIMUM_TEMPERATURE_TO_EXIST)
|
||||
fire_act(W.get_temperature())
|
||||
return
|
||||
|
||||
if(user.combat_mode)
|
||||
return ..()
|
||||
|
||||
if(istype(W, /obj/item/paper) && atom_integrity < max_integrity)
|
||||
user.visible_message(span_notice("[user] starts to patch the holes in \the [src]."))
|
||||
if(do_after(user, 2 SECONDS, target = src))
|
||||
|
||||
Reference in New Issue
Block a user