mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 13:35:10 +00:00
## About The Pull Request 1. Fixes #79051 It's a consequence of floating-point math. We round it to 2 decimal places to display results like 50 but in fact its actual value is something like 49.999... something. So, we also shift up our expectations and call it a day. 2. Made a lot of variables defines and lists static to save memory for plumbing pill press and moved global lists to it's global list folder 3. Copied over chem master patch & pill designs over too plumbing press and removed the old designs & resized the UI ## Changelog 🆑 fix: plumbing pill press & bottler won't stop when processing 50 unit bottles code: made a lot of variables defines and lists static to save memory for plumbing pill press. Moved global lists to it's rightful place code: copied over chem master pill & patch designs over to plumbing pill press and removed the old designs. resized UI /🆑 --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
16 lines
585 B
Plaintext
16 lines
585 B
Plaintext
///Icons for containers printed in ChemMaster
|
|
/datum/asset/spritesheet/chemmaster
|
|
name = "chemmaster"
|
|
|
|
/datum/asset/spritesheet/chemmaster/create_spritesheets()
|
|
var/list/ids = list()
|
|
for(var/category in GLOB.reagent_containers)
|
|
for(var/obj/item/reagent_containers/container as anything in GLOB.reagent_containers[category])
|
|
var/icon_file = initial(container.icon)
|
|
var/icon_state = initial(container.icon_state)
|
|
var/id = sanitize_css_class_name("[container]")
|
|
if(id in ids) // exclude duplicate containers
|
|
continue
|
|
ids += id
|
|
Insert(id, icon_file, icon_state)
|