Skip to content

Commit

Permalink
Update drinfomon.lic luck regex
Browse files Browse the repository at this point in the history
The previous luck regex wasn't capturing negative luck rebounds, e.g.: Luck : Very Unlucky (-2/3)
  • Loading branch information
urbaj-dr authored May 21, 2024
1 parent a3833d9 commit a0a3f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drinfomon.lic
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ regex_info_gender_age_circle = /^Gender:\s+\b(?<gender>.+)\b\s+Age:\s+\b(?<age>.
# but what our scripts operate on is the percentage which comes through as an xml tag parsed by the `status_hook`.
regex_info_stat_value = /(?<stat>Strength|Agility|Discipline|Intelligence|Reflex|Charisma|Wisdom|Stamina|Favors|TDPs)\s+:\s+(?<value>\d+)/
regex_info_encumbrance = /^\s*Encumbrance\s+:\s+(?<encumbrance>[\w\s'?!]+)$/
regex_info_luck = /^\s*Luck\s+:\s+.*\((?<luck>\d)\/3\)/
regex_info_luck = /^\s*Luck\s+:\s+.*\((?<luck>[-\d]+)\/3\)/
regex_info_balance = /^(?:You are|\[You're) (?<balance>#{Regexp.union(balance_values)}) balanced?/
# ---
info_hook = proc do |server_string|
Expand Down

0 comments on commit a0a3f36

Please sign in to comment.