mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user