Revision 3763

Date:
2019-11-21 02:59:17
Author:
dsb
Revision Log:
Oops, T2 does "Repeated message. <5x>", not "Repeated message. (x5)".
Files:

Legend:

 
Added
 
Removed
 
Modified
  • tome2/trunk/class/LogFlasher.lua

     
    43 43
    44 44 str = str:format(...)
    45 45 if str == self.last_msg then
    46 local old_sfx = ('%%s*%%(×%d%%)$'):format(self.last_msg_rpt)
    46 local old_sfx = ('%%s*<%dx>$'):format(self.last_msg_rpt)
    47 47 base = base:gsub(old_sfx, '', 1)
    48 48 if base == "" then base = self.last_rpt_msg end
    49 49 self.last_msg_rpt = self.last_msg_rpt + 1
    50 str = ('(×%d)'):format(self.last_msg_rpt)
    50 str = ('<%dx>'):format(self.last_msg_rpt)
    51 51 else
    52 52 self.last_msg = str
    53 53 self.last_msg_rpt = 1