Foam Lasertag Darts (#5847)
* Laser Tag Darts. Darts that are compatable with the laser tag system * Lastag Ammo Boxes. Autoylathe Update. * Final bug fixes.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag
|
||||
name = "lastag foam dart"
|
||||
var/suit_types = list(/obj/item/clothing/suit/redtag, /obj/item/clothing/suit/bluetag)
|
||||
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag/on_hit(atom/target, blocked = FALSE)
|
||||
. = ..()
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/M = target
|
||||
if(istype(M.wear_suit))
|
||||
if(M.wear_suit.type in suit_types)
|
||||
M.adjustStaminaLoss(24)
|
||||
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag/red
|
||||
name = "lastag red foam dart"
|
||||
color = "#FF0000"
|
||||
suit_types = list(/obj/item/clothing/suit/bluetag)
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag/red
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag/blue
|
||||
color = "#0000FF"
|
||||
name = "lastag blue foam dart"
|
||||
suit_types = list(/obj/item/clothing/suit/redtag)
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag/blue
|
||||
Reference in New Issue
Block a user