mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[MIRROR] adds applying client quirks to player panel [MDB IGNORE] (#17275)
* adds applying client quirks to player panel (#70923) ## About The Pull Request  this is terribly annoying for any sort of testing. especially if you were to have a blind or crippled character. instead of that, we now just make it a button in player panel ## Why It's Good For The Game fuck ## Changelog 🆑 admin: ctrl shift click spawning no longer applies quirks admin: adds quirk applying button to player panel /🆑 * adds applying client quirks to player panel Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
@@ -547,7 +547,7 @@
|
||||
var/mob/M = locate(href_list["forcespeech"])
|
||||
if(!ismob(M))
|
||||
to_chat(usr, "this can only be used on instances of type /mob.", confidential = TRUE)
|
||||
|
||||
return
|
||||
var/speech = input("What will [key_name(M)] say?", "Force speech", "")// Don't need to sanitize, since it does that in say(), we also trust our admins.
|
||||
if(!speech)
|
||||
return
|
||||
@@ -556,6 +556,21 @@
|
||||
log_admin("[key_name(usr)] forced [key_name(M)] to say: [speech]")
|
||||
message_admins(span_adminnotice("[key_name_admin(usr)] forced [key_name_admin(M)] to say: [speech]"))
|
||||
|
||||
else if(href_list["applyquirks"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
var/mob/living/carbon/human/target = locate(href_list["applyquirks"])
|
||||
if(!istype(target))
|
||||
to_chat(usr, "this can only be used on instances of type /mob/living/carbon/human.", confidential = TRUE)
|
||||
return
|
||||
if(!target.client)
|
||||
to_chat(usr, "[target] has no client!", confidential = TRUE)
|
||||
return
|
||||
SSquirks.AssignQuirks(target, target.client)
|
||||
log_admin("[key_name(usr)] applied client quirks to [key_name(target)].")
|
||||
message_admins(span_adminnotice("[key_name_admin(usr)] applied client quirks to [key_name_admin(target)]."))
|
||||
|
||||
else if(href_list["sendtoprison"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
@@ -136,6 +136,7 @@
|
||||
body += "<br>"
|
||||
if(!isnewplayer(M))
|
||||
body += "<A href='?_src_=holder;[HrefToken()];forcespeech=[REF(M)]'>Forcesay</A> | "
|
||||
body += "<A href='?_src_=holder;[HrefToken()];applyquirks=[REF(M)]'>Apply Client Quirks</A> | "
|
||||
body += "<A href='?_src_=holder;[HrefToken()];tdome1=[REF(M)]'>Thunderdome 1</A> | "
|
||||
body += "<A href='?_src_=holder;[HrefToken()];tdome2=[REF(M)]'>Thunderdome 2</A> | "
|
||||
body += "<A href='?_src_=holder;[HrefToken()];tdomeadmin=[REF(M)]'>Thunderdome Admin</A> | "
|
||||
|
||||
Reference in New Issue
Block a user