Adds some card unit tests, cleans up some comments (#51434)

* Adds unit tests, some more checks, and improves some comments

* sweep sweep sweep?

* Braindamage
This commit is contained in:
LemonInTheDark
2020-06-05 18:46:58 +08:00
committed by GitHub
parent 22e619dcf1
commit eab31fd4d5
6 changed files with 55 additions and 117 deletions
+7 -4
View File
@@ -166,7 +166,7 @@ GLOBAL_PROTECT(admin_verbs_debug)
/client/proc/cmd_display_overlay_log,
/client/proc/reload_configuration,
/client/proc/reload_cards,
/client/proc/validate_cardpacks,
/client/proc/validate_cards,
/client/proc/test_cardpack_distribution,
/client/proc/print_cards,
/datum/admins/proc/create_or_modify_area,
@@ -564,15 +564,18 @@ GLOBAL_PROTECT(admin_verbs_hideable)
return
reloadAllCardFiles(SStrading_card_game.card_files, SStrading_card_game.card_directory)
/client/proc/validate_cardpacks()
set name = "Validate Cardpacks"
/client/proc/validate_cards()
set name = "Validate Cards"
set category = "Debug"
if(!check_rights(R_DEBUG))
return
if(!SStrading_card_game.loaded)
message_admins("The card subsystem is not currently loaded")
return
checkCardpacks(SStrading_card_game.card_packs)
var/message = checkCardpacks(SStrading_card_game.card_packs)
message += checkCardDatums()
if(message)
message_admins(message)
/client/proc/test_cardpack_distribution()
set name = "Test Cardpack Distribution"