diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 108fd45f27b..7fd84e39ac5 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1349,11 +1349,27 @@ proc/admin_notice(var/message, var/rights) var/crystals if(check_rights(R_ADMIN)) - crystals = input("Amount of telecrystals for [H.ckey]", crystals) as null|num + crystals = input("Amount of telecrystals for [H.ckey], currently [H.mind.tcrystals].", crystals) as null|num if (!isnull(crystals)) H.mind.tcrystals = crystals var/msg = "[key_name(usr)] has modified [H.ckey]'s telecrystals to [crystals]." message_admins(msg) else usr << "You do not have access to this command." + +/datum/admins/proc/add_tcrystals(mob/living/carbon/human/H as mob) + set category = "Debug" + set name = "Add Telecrystals" + set desc = "Allows admins to change telecrystals of a user by addition." + + var/crystals + + if(check_rights(R_ADMIN)) + crystals = input("Amount of telecrystals to give to [H.ckey], currently [H.mind.tcrystals].", crystals) as null|num + if (!isnull(crystals)) + H.mind.tcrystals += crystals + var/msg = "[key_name(usr)] has added [crystals] to [H.ckey]'s telecrystals." + message_admins(msg) + else + usr << "You do not have access to this command." diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 4358d2f1cbf..d1c61998330 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -15,6 +15,7 @@ var/list/admin_verbs_default = list( var/list/admin_verbs_admin = list( /client/proc/player_panel_new, /*shows an interface for all players, with links to various panels*/ /datum/admins/proc/set_tcrystals, + /datum/admins/proc/add_tcrystals, /client/proc/invisimin, /*allows our mob to go invisible/visible*/ // /datum/admins/proc/show_traitor_panel, /*interface which shows a mob's mind*/ -Removed due to rare practical use. Moved to debug verbs ~Errorage /datum/admins/proc/show_game_mode, /*Configuration window for the current game mode.*/ diff --git a/html/changelogs/Datraen-TCrystalVerb1.yml b/html/changelogs/Datraen-TCrystalVerb1.yml new file mode 100644 index 00000000000..b894530ca73 --- /dev/null +++ b/html/changelogs/Datraen-TCrystalVerb1.yml @@ -0,0 +1,7 @@ +author: Datraen + +delete-after: True + +changes: + - tweak: "Adds amount of telecrystals to the set telecrystal verb." + - rscadd: "Added a verb to just add to telecrystals."