Adds loadout capture crystals!

This commit is contained in:
TheGreatKitsune
2023-03-13 16:58:03 -05:00
parent af6e26cfe2
commit 97701e8b3f
6 changed files with 143 additions and 8 deletions
@@ -0,0 +1,22 @@
/obj/item/capture_crystal
var/spawn_mob_name = "A mob"
/obj/item/capture_crystal/loadout
active = TRUE
/obj/item/capture_crystal/loadout/attack(mob/living/M, mob/living/user)
if(!bound_mob && M != user)
to_chat(user, "<span class='notice'>\The [src] emits an unpleasant tone...</span>")
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
return
. = ..()
/obj/item/capture_crystal/loadout/attack_self(mob/living/user)
if(!bound_mob)
to_chat(user, "<span class='notice'>\The [src] emits an unpleasant tone... It is not ready yet.</span>")
playsound(src, 'sound/effects/capture-crystal-problem.ogg', 75, 1, -1)
return
. = ..()
/obj/item/capture_crystal/loadout/capture_chance()
return 0