mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-31 09:00:47 +01:00
Funny-character-bus-code
This little pull is litterally a pull for a single character I'd like to bus, basicly a walking chem dispenser, so lets go!
This commit is contained in:
@@ -76,3 +76,26 @@
|
||||
if(S.emptrig == TRUE)
|
||||
var/obj/item/projectile/bullet/dart/syringe/dart/D = BB
|
||||
D.emptrig = TRUE
|
||||
|
||||
//Chemlight was here, adding dumb bussing things
|
||||
|
||||
/obj/item/ammo_casing/chemgun_debug
|
||||
name = "dart synthesiser"
|
||||
desc = "A high-power spring, linked to an energy-based dart synthesiser."
|
||||
projectile_type = /obj/item/projectile/bullet/dart/syringe/debug
|
||||
firing_effect_type = null
|
||||
|
||||
/obj/item/ammo_casing/chemgun_debug/ready_proj(atom/target, mob/living/user, quiet, zone_override = "")
|
||||
if(!BB)
|
||||
return
|
||||
if(istype(loc, /obj/item/gun/chem/debug))
|
||||
var/obj/item/gun/chem/debug/CGD = loc
|
||||
if(CGD.syringes_left <= 0)
|
||||
return
|
||||
if(!CGD.infinite)
|
||||
CGD.reagents.trans_to(BB, 10)
|
||||
else
|
||||
CGD.reagents.copy_to(BB, 10)
|
||||
BB.name = "chemical dart"
|
||||
CGD.syringes_left--
|
||||
..()
|
||||
Reference in New Issue
Block a user