All medal methods are handled on SSmedals as opposed to global procs and also have proper defines, killing with a crusher grants special medals.

This commit is contained in:
Leo
2018-02-16 16:17:51 -02:00
committed by CitadelStationBot
parent 61b5191f90
commit a5650cccc4
17 changed files with 175 additions and 193 deletions
+5 -4
View File
@@ -923,14 +923,15 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
set category = "Debug"
set name = "Toggle Medal Disable"
set desc = "Toggles the safety lock on trying to contact the medal hub."
if(!holder)
if(!check_rights(R_DEBUG))
return
GLOB.medals_enabled = !GLOB.medals_enabled
SSmedals.hub_enabled = !SSmedals.hub_enabled
message_admins("<span class='adminnotice'>[key_name_admin(src)] [GLOB.medals_enabled ? "disabled" : "enabled"] the medal hub lockout.</span>")
message_admins("<span class='adminnotice'>[key_name_admin(src)] [SSmedals.hub_enabled ? "disabled" : "enabled"] the medal hub lockout.</span>")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Toggle Medal Disable") // If...
log_admin("[key_name(src)] [GLOB.medals_enabled ? "disabled" : "enabled"] the medal hub lockout.")
log_admin("[key_name(src)] [SSmedals.hub_enabled ? "disabled" : "enabled"] the medal hub lockout.")
/client/proc/view_runtimes()
set category = "Debug"