mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[MIRROR] Wardrobe preloads backpack contents (#29471)
* Wardrobe preloads backpack contents (#85945) ## About The Pull Request `backpack_contents` is a list of typepaths, so this type definition means this loop is doin' nothing. 3 year old bug * Wardrobe preloads backpack contents --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -394,8 +394,11 @@
|
||||
preload += suit_store
|
||||
preload += back
|
||||
//Load in backpack gear and shit
|
||||
for(var/datum/type_to_load in backpack_contents)
|
||||
for(var/i in 1 to backpack_contents[type_to_load])
|
||||
for(var/type_to_load in backpack_contents)
|
||||
var/num_to_load = backpack_contents[type_to_load]
|
||||
if(!isnum(num_to_load))
|
||||
num_to_load = 1
|
||||
for(var/i in 1 to num_to_load)
|
||||
preload += type_to_load
|
||||
preload += belt
|
||||
preload += ears
|
||||
|
||||
Reference in New Issue
Block a user