mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +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:
@@ -65,7 +65,7 @@
|
||||
/datum/element/easy_ignite/proc/attackby_react(obj/item/source, mob/user, obj/item/tool, modifiers)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if(!tool.get_temperature())
|
||||
if(tool.get_temperature() < FIRE_MINIMUM_TEMPERATURE_TO_EXIST)
|
||||
return NONE
|
||||
|
||||
if (!item_ignition(source, tool, user))
|
||||
@@ -83,7 +83,7 @@
|
||||
/datum/element/easy_ignite/proc/welder_react(obj/item/source, mob/user, obj/item/tool)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if(!tool.get_temperature())
|
||||
if(tool.get_temperature() < FIRE_MINIMUM_TEMPERATURE_TO_EXIST)
|
||||
return NONE
|
||||
|
||||
if (!item_ignition(source, tool, user))
|
||||
|
||||
Reference in New Issue
Block a user