Skip to content

Commit

Permalink
fix bingo viewer regex for negative active value
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Jan 11, 2024
1 parent 1893875 commit 8fa61dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BingoDisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self,targetFile):
self.selectedMod=""
self.prevLines=None
self.bingoLineMatch = re.compile(
r'bingoexport\[(?P<key>\d+)\]=\(Event="(?P<event>.*)",Desc="(?P<desc>.*)",Progress=(?P<progress>\d+),Max=(?P<max>\d+),Active=(?P<active>\d+)\)',
r'bingoexport\[(?P<key>\d+)\]=\(Event="(?P<event>.*)",Desc="(?P<desc>.*)",Progress=(?P<progress>\d+),Max=(?P<max>\d+),Active=(?P<active>-?\d+)\)',
re.IGNORECASE
)
self.initDrawnBoard()
Expand Down Expand Up @@ -147,7 +147,7 @@ def parseBingoLine(self,bingoLine):
bingoMatches=self.bingoLineMatch.match(bingoLine)
if (bingoMatches==None):
return

bingoNumber=int(bingoMatches.group('key'))
bingoCoord = self.bingoNumberToCoord(bingoNumber)

Expand Down
1 change: 1 addition & 0 deletions DXRModules/DeusEx/Classes/DXREvents.uc
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,7 @@ static simulated function string GetBingoGoalHelpText(string event,int mission,
} else if (mission<=12){
msg=msg$"The bum living at the Vandenberg gas station deserves it.";
}
msg = msg$"|n|n(It's a Simpsons reference)";
return msg;
case "Canal_Cop_Dead":
return "Kill one of the Chinese Military in the Hong Kong canals standing near the entrance to Tonnochi Road.";
Expand Down

0 comments on commit 8fa61dc

Please sign in to comment.