Dronespeak manual is once again infinite use, and can once again only be used on drones or silicons. (#54192)

This commit is contained in:
Timberpoes
2020-10-07 15:37:00 -03:00
committed by GitHub
parent 1843d3d6c6
commit 0e6ac80e57
+10 -1
View File
@@ -91,6 +91,15 @@
// So drones can teach borgs and AI dronespeak. For best effect, combine with mother drone lawset.
/obj/item/language_manual/dronespeak_manual
name = "dronespeak manual"
desc = "The book's cover reads: \"Understanding Dronespeak - An exercise in futility.\""
desc = "The book's cover reads: \"Understanding Dronespeak - An exercise in futility.\" The book is written entirely in binary, non-silicons probably won't understand it."
language = /datum/language/drone
flavour_text = "suddenly the drone chittering makes sense"
charges = INFINITY
/obj/item/language_manual/dronespeak_manual/attack(mob/living/M, mob/living/user)
// If they are not drone or silicon, we don't want them to learn this language.
if(!(isdrone(M) || issilicon(M)))
M.visible_message("<span class='danger'>[user] beats [M] over the head with [src]!</span>", "<span class='userdanger'>[user] beats you over the head with [src]!</span>", "<span class='hear'>You hear smacking.</span>")
return
return ..()