mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Refactors language holder (#48106)
* Language holder refactor * Ironed out bugs, testing * adds sourced language, blocking list. more useful helpers. * Replaced old usage * Adresses requests * Autodoc attempt #1 * Fixed monkeyize (again) * Travis happy * Language menu updated * Final pass
This commit is contained in:
@@ -183,7 +183,7 @@
|
||||
to_chat(user, "<span class='boldannounce'>You start skimming through [src], but you already know dronespeak.</span>")
|
||||
else
|
||||
to_chat(user, "<span class='boldannounce'>You start skimming through [src], and suddenly the drone chittering makes sense.</span>")
|
||||
user.grant_language(/datum/language/drone)
|
||||
user.grant_language(/datum/language/drone, TRUE, TRUE, LANGUAGE_MIND)
|
||||
return
|
||||
|
||||
if(user.has_language(/datum/language/drone))
|
||||
@@ -197,14 +197,14 @@
|
||||
if(M == user)
|
||||
attack_self(user)
|
||||
return
|
||||
|
||||
|
||||
playsound(loc, "punch", 25, TRUE, -1)
|
||||
if(isdrone(M) || issilicon(M))
|
||||
if(M.has_language(/datum/language/drone))
|
||||
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>")
|
||||
else
|
||||
M.visible_message("<span class='notice'>[user] teaches [M] by beating [M.p_them()] over the head with [src]!</span>", "<span class='boldnotice'>As [user] hits you with [src], chitters resonate in your mind.</span>", "<span class='hear'>You hear smacking.</span>")
|
||||
M.grant_language(/datum/language/drone)
|
||||
M.grant_language(/datum/language/drone, TRUE, TRUE, LANGUAGE_MIND)
|
||||
return
|
||||
|
||||
/obj/structure/fluff/oldturret
|
||||
|
||||
Reference in New Issue
Block a user