From e57038f75b2eacc7c178a5ed6bbe1aae680e6afd Mon Sep 17 00:00:00 2001 From: melvin Date: Sat, 11 May 2013 18:24:32 +0800 Subject: [PATCH] added two scripts for manipulating unimplementable, updated unimplementable.tsv --- cards/unimplementable.tsv | 11 +++++++++++ scripts/unimplementable_to_tsv.awk | 8 ++++++++ scripts/unimplementable_to_txt.awk | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 scripts/unimplementable_to_tsv.awk create mode 100644 scripts/unimplementable_to_txt.awk diff --git a/cards/unimplementable.tsv b/cards/unimplementable.tsv index 627c94aa79..4b4b593905 100644 --- a/cards/unimplementable.tsv +++ b/cards/unimplementable.tsv @@ -108,3 +108,14 @@ Oath of Druids reveal Thoughtseize reveal Clone clone Gruul Charm choose +Thorn of Amethyst cost modification +Mishra's Workshop mana pool +Lodestone Golem cost modification +Black Lotus mana pool +Augur of Bolas reveal +Tezzeret the Seeker multiple targets +Sphere of Resistance cost modification +Demonic Tutor lib search +Mana Crypt mana pool +Goblin Guide reveal +Tolarian Academy mana pool diff --git a/scripts/unimplementable_to_tsv.awk b/scripts/unimplementable_to_tsv.awk new file mode 100644 index 0000000000..26fa8eab7d --- /dev/null +++ b/scripts/unimplementable_to_tsv.awk @@ -0,0 +1,8 @@ +/# / { + reason = gensub("^# ", "", "g") + next +} + +/[A-Z]/ { + print $0 "\t" reason +} diff --git a/scripts/unimplementable_to_txt.awk b/scripts/unimplementable_to_txt.awk new file mode 100644 index 0000000000..a6726fa104 --- /dev/null +++ b/scripts/unimplementable_to_txt.awk @@ -0,0 +1,14 @@ +BEGIN { + FS = "\t" +} + +{ + reason[$2] = reason[$2] $1 "\n" +} + +END { + for (i in reason) { + print "# " i + print reason[i] + } +}