Files
Bubberstation/code/game/objects/items/stacks/ammonia_crystals.dm
SyncIt21 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

13 lines
380 B
Plaintext

/obj/item/stack/ammonia_crystals
name = "ammonia crystals"
singular_name = "ammonia crystal"
icon = 'icons/obj/stack_objects.dmi'
icon_state = "ammonia_crystal"
w_class = WEIGHT_CLASS_TINY
resistance_flags = FLAMMABLE
max_amount = 50
merge_type = /obj/item/stack/ammonia_crystals
/obj/item/stack/ammonia_crystals/grind_results()
return list(/datum/reagent/ammonia = 10)