[MIRROR] adds applying client quirks to player panel [MDB IGNORE] (#17275)

* adds applying client quirks to player panel (#70923)

## About The Pull Request

![image](https://user-images.githubusercontent.com/23585223/198891626-9969f056-0be1-49fb-8e15-fcf3244bf9e7.png)
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:
SkyratBot
2022-11-02 21:50:17 +01:00
committed by GitHub
parent df7ad72871
commit d5f57c5bf7
3 changed files with 17 additions and 3 deletions
+16 -1
View File
@@ -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
+1
View File
@@ -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> | "