Files
SyncIt21andGitHub 468b351b86 Axes grind & juice vars into procs (#94592)
## About The Pull Request
Inspired by #94233. `grind_results`(list) & `juice_typepath`(typepath)
are only used when grinding & juicing after which the atom is deleted.
This means if that object is not processed these vars occupy memory &
don't do anything.

Now these values are only generated on demand by calling their
respective procs. Considering how these vars are on the obj level the
memory savings are quite significant

## Changelog
🆑
refactor: grinding & juicing have been refactored to occupy low memory.
Report bugs on github
code: improved grinding & juicing code
/🆑
2025-12-25 20:40:35 +01:00

17 lines
674 B
Plaintext

/obj/item/stack/sheet/hot_ice
name = "hot ice"
icon_state = "hot-ice"
inhand_icon_state = null
singular_name = "hot ice piece"
icon = 'icons/obj/stack_objects.dmi'
mats_per_unit = list(/datum/material/hot_ice=SHEET_MATERIAL_AMOUNT)
material_type = /datum/material/hot_ice
merge_type = /obj/item/stack/sheet/hot_ice
/obj/item/stack/sheet/hot_ice/grind_results()
return list(/datum/reagent/toxin/hot_ice = 25)
/obj/item/stack/sheet/hot_ice/suicide_act(mob/living/carbon/user)
user.visible_message(span_suicide("[user] begins licking \the [src]! It looks like [user.p_theyre()] trying to commit suicide!"))
return FIRELOSS//dont you kids know that stuff is toxic?