mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
cl Naksu code: reagent IDs have been removed in favor using reagent typepaths where applicable fix: mechas, borg hyposprays etc no longer display internal reagent ids to the player /cl
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
/obj/item/projectile/bullet/dart
|
|
name = "dart"
|
|
icon_state = "cbbolt"
|
|
damage = 6
|
|
var/piercing = FALSE
|
|
|
|
/obj/item/projectile/bullet/dart/Initialize()
|
|
. = ..()
|
|
create_reagents(50, NO_REACT)
|
|
|
|
/obj/item/projectile/bullet/dart/on_hit(atom/target, blocked = FALSE)
|
|
if(iscarbon(target))
|
|
var/mob/living/carbon/M = target
|
|
if(blocked != 100) // not completely blocked
|
|
if(M.can_inject(null, FALSE, def_zone, piercing)) // Pass the hit zone to see if it can inject by whether it hit the head or the body.
|
|
..()
|
|
reagents.reaction(M, INJECT)
|
|
reagents.trans_to(M, reagents.total_volume)
|
|
return BULLET_ACT_HIT
|
|
else
|
|
blocked = 100
|
|
target.visible_message("<span class='danger'>\The [src] was deflected!</span>", \
|
|
"<span class='userdanger'>You were protected against \the [src]!</span>")
|
|
|
|
..(target, blocked)
|
|
DISABLE_BITFIELD(reagents.flags, NO_REACT)
|
|
reagents.handle_reactions()
|
|
return BULLET_ACT_HIT
|
|
|
|
/obj/item/projectile/bullet/dart/metalfoam/Initialize()
|
|
. = ..()
|
|
reagents.add_reagent(/datum/reagent/aluminium, 15)
|
|
reagents.add_reagent(/datum/reagent/foaming_agent, 5)
|
|
reagents.add_reagent(/datum/reagent/toxin/acid/fluacid, 5)
|
|
|
|
/obj/item/projectile/bullet/dart/syringe
|
|
name = "syringe"
|
|
icon_state = "syringeproj"
|