diff --git a/code/game/objects/items/weapons/capture_crystal.dm b/code/game/objects/items/weapons/capture_crystal.dm index 002b381c81f..c30e47b08dc 100644 --- a/code/game/objects/items/weapons/capture_crystal.dm +++ b/code/game/objects/items/weapons/capture_crystal.dm @@ -65,6 +65,7 @@ if(!AI.hostile) AI.set_stance(STANCE_IDLE) to_chat(M, span("notice", "\The [bound_mob] is now [AI.hostile ? "hostile" : "passive"].")) + log_admin("[key_name_admin(M)] set [bound_mob] to [AI.hostile].") else if(bound_mob.client) var/transmit_msg transmit_msg = sanitizeSafe(input(usr, "What is your command?", "Command", null) as text, MAX_NAME_LEN) @@ -73,6 +74,7 @@ return to_chat(bound_mob, "\The [owner] commands, '[transmit_msg]'") to_chat(M, "Your command has been transmitted, '[transmit_msg]'") + log_admin("[key_name_admin(M)] sent the command, '[transmit_msg]' to [bound_mob].") else to_chat(M, "\The [src] emits an unpleasant tone... \The [bound_mob] is unresponsive.") playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1) @@ -112,6 +114,19 @@ AI.set_follow(M) to_chat(M, "\The [src] chimes~ \The [bound_mob] started following following [AI.leader].") +/obj/item/capture_crystal/verb/destroy_crystal() + set name = "Destroy Crystal" + set category = "Object" + set src in usr + if(!ismob(loc)) + return + var/mob/living/M = src.loc + if(M != owner) + to_chat(M, "\The [src] is too hard for you to break.") + else + to_chat(M, "\The [src] cracks and disintegrates in your hand.") + qdel(src) + /obj/item/capture_crystal/update_icon() . = ..() if(spawn_mob_type) @@ -289,6 +304,7 @@ else if(!isanimal(M)) //So it's not player controlled, but it's also not a simplemob? to_chat(user, "This creature is not suitable for capture.") playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1) + return var/mob/living/simple_mob/S = M if(!S.ai_holder) //We don't really want to capture simplemobs that don't have an AI to_chat(user, "This creature is not suitable for capture.")