Skip to content

Commit

Permalink
[MIRROR] Made spawning chemicals easier
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckerMayhem authored and SuhEugene committed Sep 14, 2023
1 parent 9a82abe commit 94a85e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/reagents/dispenser/cartridge_spawn.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/client/proc/spawn_chemdisp_cartridge(size in list("small", "medium", "large"), reagent in subtypesof(/datum/reagent))
/client/proc/spawn_chemdisp_cartridge(size in list("small", "medium", "large"))
set name = "Spawn Chemical Dispenser Cartridge"
set category = "Admin"

var/reagent
reagent = select_subpath(/datum/reagent, /datum/reagent)

var/obj/item/reagent_containers/chem_disp_cartridge/C
switch(size)
if("small") C = new /obj/item/reagent_containers/chem_disp_cartridge/small(usr.loc)
Expand Down

0 comments on commit 94a85e0

Please sign in to comment.