mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +01:00
468b351b86
## 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 /🆑
13 lines
380 B
Plaintext
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)
|