]> Pileus Git - ~andy/rhawk/blobdiff - spades.awk
Split plain into nounicode and nocolor
[~andy/rhawk] / spades.awk
index 02e4d036f5928a724f35c8d2836b4110f3fe066f..61b967cae98313b70f51051ab89f81de5c922663 100644 (file)
@@ -136,9 +136,11 @@ function sp_load(file,     game)
 
 function sp_pretty(cards, who)
 {
-       if (!plain[who]) {
+       if (!nocolor[who]) {
                gsub(/[0-9JQKA]*[sc]/, "\0031,00\002&\017", cards) # black
                gsub(/[0-9JQKA]*[hd]/, "\0034,00\002&\017", cards) # red
+       }
+       if (!nounicode[who]) {
                gsub(/s/, "\002♠", cards)
                gsub(/h/, "\002♥", cards)
                gsub(/d/, "\002♦", cards)