mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Makes surpluses spawn items again (#26411)
This commit is contained in:
@@ -138,7 +138,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
|
||||
return
|
||||
|
||||
|
||||
var/obj/I = spawn_item(get_turf(user), U)
|
||||
var/obj/I = spawn_item(get_turf(user), U, user)
|
||||
|
||||
if(!I || I == UPLINK_SPECIAL_SPAWNING)
|
||||
return // Failed to spawn, or we handled it with special spawning
|
||||
|
||||
@@ -661,11 +661,11 @@
|
||||
var/crate_value = 250
|
||||
uses_special_spawn = TRUE
|
||||
|
||||
/datum/uplink_item/bundles_TC/surplus_crate/spawn_item(turf/loc, obj/item/uplink/U)
|
||||
/datum/uplink_item/bundles_TC/surplus_crate/spawn_item(turf/loc, obj/item/uplink/U, mob/user)
|
||||
if(..() != UPLINK_SPECIAL_SPAWNING)
|
||||
return FALSE
|
||||
|
||||
new /obj/structure/closet/crate/surplus(loc, U, crate_value, cost)
|
||||
new /obj/structure/closet/crate/surplus(loc, U, crate_value, cost, user)
|
||||
|
||||
// -----------------------------------
|
||||
// PRICES OVERRIDEN FOR NUCLEAR AGENTS
|
||||
|
||||
@@ -597,9 +597,9 @@
|
||||
|
||||
/obj/structure/closet/crate/surplus
|
||||
|
||||
/obj/structure/closet/crate/surplus/Initialize(mapload, obj/item/uplink/U, crate_value, cost)
|
||||
/obj/structure/closet/crate/surplus/Initialize(mapload, obj/item/uplink/U, crate_value, cost, mob/user)
|
||||
. = ..()
|
||||
var/list/temp_uplink_list = get_uplink_items(U)
|
||||
var/list/temp_uplink_list = get_uplink_items(U, user)
|
||||
var/list/buyable_items = list()
|
||||
for(var/category in temp_uplink_list)
|
||||
buyable_items += temp_uplink_list[category]
|
||||
|
||||
Reference in New Issue
Block a user