Skip to content

Commit

Permalink
works now
Browse files Browse the repository at this point in the history
  • Loading branch information
Pockets-byte committed Jun 2, 2024
1 parent 1705a07 commit 5f79a5a
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions nsv13/code/modules/squads/squad_vendor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,21 @@
resistance_flags = ACID_PROOF | FIRE_PROOF
req_one_access = list(ACCESS_HOP, ACCESS_HOS)
var/static/list/loans_info = list()
var/static/list/loadouts = list()
var/loadout_type = /datum/squad_loadout/nt
var/list/loadouts = list()
var/static/list/requires_weapons_clearance = list(/obj/item/ammo_box, /obj/item/gun)

/obj/machinery/squad_vendor/solgov
name = "Squad Vendor"
icon_state = "squadvend"
loadout_type = /datum/squad_loadout/solgov

/obj/machinery/squad_vendor/Initialize(mapload)
. = ..()
if(!length(loadouts))
for(var/instance in subtypesof(/datum/squad_loadout/nt))
for(var/instance in subtypesof(loadout_type))
loadouts += new instance

/obj/machinery/squad_vendor/solgov
name = "SolGov Squad Vendor"
var/static/list/loadouts_solgov = list()

/obj/machinery/squad_vendor/solgov/Initialize(mapload)
. = ..()
if(!length(loadouts_solgov))
for(var/instance in subtypesof(/datum/squad_loadout/solgov))
loadouts_solgov += new instance

/obj/machinery/squad_vendor/attackby(obj/item/I, mob/living/user, params)
return return_item(user, I) || ..()

Expand Down

0 comments on commit 5f79a5a

Please sign in to comment.