Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
800maximum123 committed Jul 21, 2024
1 parent d986610 commit 3a763af
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
1 change: 1 addition & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var/list/admin_verbs_default = list(
/client/proc/create_custom_paper,
/client/proc/cmd_admin_change_their_name,
/client/proc/cmd_admin_changekey,
/client/proc/editappearplayer,
/client/proc/cmd_admin_subtle_message,
/client/proc/cmd_admin_atom_narrate,
/client/proc/cmd_admin_xeno_report, //Allows creation of IC reports by the Queen Mother
Expand Down
1 change: 1 addition & 0 deletions colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2476,4 +2476,5 @@
#include "void-marines\code\rasputin.dm"
#include "void-marines\code\reserve_role.dm"
#include "void-marines\code\vendors.dm"
#include "void-marines\code\admin_tools.dm"
// END_INCLUDE
35 changes: 25 additions & 10 deletions void-marines/code/admin_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
switch(alert("Are you sure you wish to edit this mob's appearance?",,"Yes","No"))
if("No")
return

// Changing name \\
var/newname = input(M, "What do you want to name them?", "Name:") as null|text
if(!newname)
return

if(!M)
to_chat(usr, "This mob no longer exists")
return

var/old_name = M.name
M.change_real_name(M, newname)
if(istype(M, /mob/living/carbon/human))
var/mob/living/carbon/human/H = M
if(H.wear_id)
H.wear_id.name = "[H.real_name]'s ID Card"
H.wear_id.registered_name = "[H.real_name]"
if(H.wear_id.assignment)
H.wear_id.name += " ([H.wear_id.assignment])"

message_admins("[key_name(src)] changed name of [old_name] to [newname].")

// Changing appear \\
var/new_facial = input(M, "Please select facial hair color.", "Character Generation") as color
if(new_facial)
M.r_facial = hex2num(copytext(new_facial, 2, 4))
Expand Down Expand Up @@ -47,13 +72,3 @@
M.gender = FEMALE
M.update_hair()
M.update_body()

var/old_name = M.name
M.change_real_name(M, newname)
if(M.wear_id)
M.wear_id.name = "[M.real_name]'s ID Card"
M.wear_id.registered_name = "[M.real_name]"
if(M.wear_id.assignment)
M.wear_id.name += " ([M.wear_id.assignment])"

message_admins("[key_name(src)] changed name of [old_name] to [newname].")

0 comments on commit 3a763af

Please sign in to comment.