mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Biogen shows default reagent container icons instead of beakers (#72247)
## About The Pull Request With the new crafting menu some reagents now have default container assigned. I applied these to visualize reagents in biogen UI too. <img alt="060ybChTkI" src="https://user-images.githubusercontent.com/3625094/209483256-e4159a05-46ae-47b8-bc42-9d003cf6c303.png"> ## Why It's Good For The Game Better representation of a reagent. ## Changelog 🆑 qol: Biogenerator shows default reagent containers instead of beakers /🆑
This commit is contained in:
@@ -23,9 +23,10 @@
|
||||
// construct the icon and slap it into the resource cache
|
||||
var/atom/item = initial(D.build_path)
|
||||
if (!ispath(item, /atom))
|
||||
// biogenerator outputs to beakers by default
|
||||
if (initial(D.build_type) & BIOGENERATOR)
|
||||
item = /obj/item/reagent_containers/cup/beaker/large
|
||||
// biogenerator reagent designs display their default container
|
||||
if(initial(D.make_reagent))
|
||||
var/datum/reagent/reagent = initial(D.make_reagent)
|
||||
item = initial(reagent.default_container)
|
||||
else
|
||||
continue // shouldn't happen, but just in case
|
||||
|
||||
|
||||
Reference in New Issue
Block a user