mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
[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:
co-authored by
EvilDragonfiend
Funce
parent
f984436b5e
commit
fb67f68175
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user