mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
cleanup _HELPERS/_lists.dm and all the necessary files (#61827)
Bring _HELPERS/_lists.dm to latest standards by: -Adding proper documentation and fixing existing one -Giving vars proper names -Procs now use snake case as per standard (many files that use those procs will be affected)
This commit is contained in:
@@ -606,7 +606,7 @@ GLOBAL_PROTECT(admin_verbs_hideable)
|
||||
if(!SStrading_card_game.loaded)
|
||||
message_admins("The card subsystem is not currently loaded")
|
||||
return
|
||||
var/pack = input("Which pack should we test?", "You fucked it didn't you") as null|anything in sortList(SStrading_card_game.card_packs)
|
||||
var/pack = input("Which pack should we test?", "You fucked it didn't you") as null|anything in sort_list(SStrading_card_game.card_packs)
|
||||
var/batchCount = input("How many times should we open it?", "Don't worry, I understand") as null|num
|
||||
var/batchSize = input("How many cards per batch?", "I hope you remember to check the validation") as null|num
|
||||
var/guar = input("Should we use the pack's guaranteed rarity? If so, how many?", "We've all been there. Man you should have seen the old system") as null|num
|
||||
@@ -626,7 +626,7 @@ GLOBAL_PROTECT(admin_verbs_hideable)
|
||||
var/type_length = length_char("/obj/effect/proc_holder/spell") + 2
|
||||
for(var/spell in GLOB.spells)
|
||||
spell_list[copytext_char("[spell]", type_length)] = spell
|
||||
var/spell_desc = input("Choose the spell to give to that guy", "ABRAKADABRA") as null|anything in sortList(spell_list)
|
||||
var/spell_desc = input("Choose the spell to give to that guy", "ABRAKADABRA") as null|anything in sort_list(spell_list)
|
||||
if(!spell_desc)
|
||||
return
|
||||
|
||||
@@ -663,7 +663,7 @@ GLOBAL_PROTECT(admin_verbs_hideable)
|
||||
if(!length(target_spell_list))
|
||||
return
|
||||
|
||||
var/obj/effect/proc_holder/spell/removed_spell = input("Choose the spell to remove", "NO ABRAKADABRA") as null|anything in sortList(target_spell_list)
|
||||
var/obj/effect/proc_holder/spell/removed_spell = input("Choose the spell to remove", "NO ABRAKADABRA") as null|anything in sort_list(target_spell_list)
|
||||
if(removed_spell)
|
||||
removal_target.mind.RemoveSpell(removed_spell)
|
||||
log_admin("[key_name(usr)] removed the spell [removed_spell] from [key_name(removal_target)].")
|
||||
@@ -677,7 +677,7 @@ GLOBAL_PROTECT(admin_verbs_hideable)
|
||||
if(!istype(T))
|
||||
to_chat(src, span_notice("You can only give a disease to a mob of type /mob/living."), confidential = TRUE)
|
||||
return
|
||||
var/datum/disease/D = input("Choose the disease to give to that guy", "ACHOO") as null|anything in sortList(SSdisease.diseases, /proc/cmp_typepaths_asc)
|
||||
var/datum/disease/D = input("Choose the disease to give to that guy", "ACHOO") as null|anything in sort_list(SSdisease.diseases, /proc/cmp_typepaths_asc)
|
||||
if(!D)
|
||||
return
|
||||
T.ForceContractDisease(new D, FALSE, TRUE)
|
||||
|
||||
Reference in New Issue
Block a user