smart dart initial
This commit is contained in:
@@ -40,6 +40,26 @@
|
||||
CG.syringes_left--
|
||||
..()
|
||||
|
||||
//smart dart test
|
||||
/obj/item/ammo_casing/chemgun/smart
|
||||
name = "smart dart synthesiser"
|
||||
desc = "test."
|
||||
projectile_type = /obj/item/projectile/bullet/dart/syringe/dart
|
||||
firing_effect_type = null
|
||||
harmful = FALSE
|
||||
|
||||
/obj/item/ammo_casing/chemgun/smart/ready_proj(atom/target, mob/living/user, quiet, zone_override = "")
|
||||
if(!BB)
|
||||
return
|
||||
if(istype(loc, /obj/item/gun/chem/smart))
|
||||
var/obj/item/gun/chem/smart/SG = loc
|
||||
if(SG.syringes_left <= 0)
|
||||
return
|
||||
SG.reagents.trans_to(BB, 10)
|
||||
BB.name = "Smart chemical dart"
|
||||
SG.syringes_left--
|
||||
..()
|
||||
|
||||
/obj/item/ammo_casing/dnainjector
|
||||
name = "rigged syringe gun spring"
|
||||
desc = "A high-power spring that throws DNA injectors."
|
||||
|
||||
@@ -45,3 +45,16 @@
|
||||
if(chambered && !chambered.BB)
|
||||
chambered.newshot()
|
||||
last_synth = world.time
|
||||
|
||||
/obj/item/gun/chem/smart
|
||||
name = "improved smartdart gun"
|
||||
desc = "A Nanotrasen syringe gun, modified to automatically synthesise smart chemical darts, and instead hold reagents."
|
||||
icon_state = "chemgun"
|
||||
item_state = "chemgun"
|
||||
|
||||
obj/item/gun/chem/smart/Initialize()
|
||||
. = ..()
|
||||
chambered = new /obj/item/ammo_casing/chemgun/smart(src)
|
||||
START_PROCESSING(SSobj, src)
|
||||
create_reagents(100, OPENCONTAINER)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user