From 43a928c191c73cce354571f0489853ff7a8e4922 Mon Sep 17 00:00:00 2001 From: thyhellcat Date: Thu, 18 Jun 2020 19:15:41 +0200 Subject: [PATCH 1/2] Added option '-n' to the 'deck' command in a room. Most people don't want to be spammed by 150 public decks before seeing their own list. --- ygo/parsers/room_parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ygo/parsers/room_parser.py b/ygo/parsers/room_parser.py index 3780fb8..a8ca9bf 100644 --- a/ygo/parsers/room_parser.py +++ b/ygo/parsers/room_parser.py @@ -226,6 +226,9 @@ def deck(caller): pl.deck_editor.list_public_decks() pl.deck_editor.list_decks([]) return + if caller.args[0] == "-n": + pl.deck_editor.list_decks([]) + return name = caller.args[0] From e0f726422cde56bc08e3a30ac347f9a9b402f49b Mon Sep 17 00:00:00 2001 From: thyhellcat Date: Thu, 18 Jun 2020 19:28:50 +0200 Subject: [PATCH 2/2] Added help text. --- ygo/parsers/room_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ygo/parsers/room_parser.py b/ygo/parsers/room_parser.py index a8ca9bf..ac15b9a 100644 --- a/ygo/parsers/room_parser.py +++ b/ygo/parsers/room_parser.py @@ -59,7 +59,7 @@ def list(caller): if room.open: pl.notify(pl._("teams - show teams and associated players")) if room.duel_count == 0 and not room.started: - pl.notify(pl._("deck - select a deck to duel with")) + pl.notify(pl._("deck - select a deck to duel with (use deck -n to only list your own decks)")) pl.notify(pl._("move - move yourself into a team of your choice")) if room.duel_count > 0 and pl not in room.teams[0] and not room.started: pl.notify(pl._("exchange [ ] - exchange cards between main deck and side deck"))