mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
typos
This commit is contained in:
parent
d4e11abd1d
commit
0ff4097a47
1 changed files with 2 additions and 3 deletions
|
|
@ -2808,7 +2808,7 @@ def str2int(number):
|
|||
# e.g. twentieth, fortieth
|
||||
number = number[:-2] + "y"
|
||||
# custom case for ninth
|
||||
elif number[-3:] == "nin"
|
||||
elif number[-3:] == "nin":
|
||||
number += "e"
|
||||
|
||||
# split number words by spaces, hyphens and commas, to accommodate multiple styles
|
||||
|
|
@ -2828,8 +2828,7 @@ def str2int(number):
|
|||
# otherwise, it's added on, like the "five" in "twenty five"
|
||||
else:
|
||||
sums.append(i)
|
||||
else:
|
||||
elif i := STR2INT_ADJS.get(word):
|
||||
elif i := _STR2INT_ADJS.get(word):
|
||||
# it's a special adj word; ordinal case will never be a multiplier
|
||||
sums.append(i)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue