gulaschkanone
New member
Currently, if a PVP fight causes you to acquire or transmit totes, the CLI output incorrectly reads like "You challenged <whomever> and lost the PvP fight, 0 to 0!". This is apparently caused by the pattern that matches the win/loss message and score (WIN_PATTERN1, if I'm looking at the right code) not accounting for "totes." being appended. The relevant HTML looks like
([sic] on the two spaces), so the pattern being something like
should probably fix the basic functionality. It'd be even neater if the totes was reflected in the "You challenged yada yada" printout, but I guess that's technically a feature request.
Code:
<span style="font-size: 120%;"><b>gulaschkanone</b> won the fight, <b>6</b> to <b>0</b>! totes.</span>
Code:
Pattern.compile("<span[^>]*><b>(.*?)</b> won the fight, <b>(\\d+)</b> to <b>(\\d+)</b>!(\\W+totes.)?</span>")