X-Git-Url: https://plomlompom.com/repos/day?a=blobdiff_plain;f=rogue_chat_curses.py;h=f7ac8cf0bf33c492eac88482d18f7c0b1a9c7c9b;hb=2dc444966037a42b51ed190ab0eab88a09c0282a;hp=72fc0a7dddf94ed5ba1baff57c68f723e20d0b64;hpb=a7b082cab5ac4cf0580ce55cf2862a883c4da575;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 72fc0a7..f7ac8cf 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -1117,9 +1117,11 @@ class TUI: self.switch_mode('play') def enter_ascii_art(command): - if len(self.input_) != 6: - self.log_msg('? wrong input length, must be 6; try again') + if len(self.input_) > 6: + self.log_msg('? wrong input length, must be max 6; try again') return + if len(self.input_) < 6: + self.input_ += ' ' * (6 - len(self.input_)) self.log_msg(' ' + self.input_) self.full_ascii_draw += self.input_ self.ascii_draw_stage += 1