Raider random vendors will spawn without their scan_id lights on (#9773)

This commit is contained in:
mikomyazaki
2020-08-26 10:01:28 +01:00
committed by GitHub
parent 08918ae687
commit 828fd9eb61
3 changed files with 13 additions and 2 deletions

View File

@@ -508,7 +508,8 @@
/obj/random/vendor
name = "random vendor"
var/depleted = 0
var/depleted = FALSE
var/scan_id = TRUE // Should the spawned vendor check IDs
problist = list(
/obj/machinery/vending/boozeomat = 1,
/obj/machinery/vending/coffee = 1,
@@ -557,6 +558,8 @@
// Clamp to an integer so we don't get 0.78 of a screwdriver.
V.products[content] = round(V.products[content])
V.scan_id &= scan_id
/obj/random/pda_cart/item_to_spawn()
var/list/options = typesof(/obj/item/cartridge)
var/type = pick(options)