mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-21 06:07:16 +01:00
4879a52633
* upports server maint subsystem * fix runtime in admin z narrate * . * sorts them verbs * . * . * Update code/controllers/subsystems/statpanel.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> * Update code/controllers/subsystems/server_maint.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
22 lines
621 B
Plaintext
22 lines
621 B
Plaintext
// Originally a debug verb, made it a proper adminverb for ~fun~
|
|
/client/proc/makePAI(turf/t in view(), name as text, pai_key as null|text)
|
|
set name = "Make pAI"
|
|
set category = "Admin.Events"
|
|
|
|
if(!check_rights(R_ADMIN|R_EVENT|R_DEBUG))
|
|
return
|
|
|
|
if(!pai_key)
|
|
var/client/C = tgui_input_list(usr, "Select client:", "Client Choice", GLOB.clients)
|
|
if(!C) return
|
|
pai_key = C.key
|
|
|
|
log_and_message_admins("made a pAI with key=[pai_key] at ([t.x],[t.y],[t.z])")
|
|
var/obj/item/paicard/card = new(t)
|
|
var/mob/living/silicon/pai/pai = new(card)
|
|
pai.key = pai_key
|
|
card.setPersonality(pai)
|
|
|
|
if(name)
|
|
pai.SetName(name)
|