[MIRROR] Fixes vendor showing weird glass icons [MDB IGNORE] (#18242)

* Fixes vendor showing weird glass icons (#71929)

## About The Pull Request
Fixes vendor showing weird glass icons
## Why It's Good For The Game
bug fix good
## Changelog
🆑
fix: vendor no longer shows glass icons in a specific condition
/🆑

* Fixes vendor showing weird glass icons

* removes GLOB.vending_products

* removes glob

* changes asset file

* Nothing like using CI to test for asset runtimes

Co-authored-by: EvilDragonfiend <87972842+EvilDragonfiend@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
This commit is contained in:
SkyratBot
2023-01-07 16:25:21 -05:00
committed by GitHub
co-authored by EvilDragonfiend Funce
parent f984436b5e
commit fb67f68175
4 changed files with 19 additions and 7 deletions
+10 -1
View File
@@ -2,7 +2,16 @@
name = "vending"
/datum/asset/spritesheet/vending/create_spritesheets()
for (var/k in GLOB.vending_products)
// initialising the list of items we need
var/target_items = list()
for(var/obj/machinery/vending/vendor as anything in typesof(/obj/machinery/vending))
vendor = new vendor() // It seems `initial(list var)` has nothing. need to make a type.
for(var/each in list(vendor.products, vendor.premium, vendor.contraband))
target_items |= each
qdel(vendor)
// building icons for each item
for (var/k in target_items)
var/atom/item = k
if (!ispath(item, /atom))
continue