Skip to content

fix: read thousands and item price currency - #16

Merged
drptbl merged 5 commits into
mainfrom
fix/numbers-and-item-currency
Sep 27, 2026
Merged

drptbl merged 5 commits into
mainfrom
fix/numbers-and-item-currency

Conversation

@drptbl

@drptbl drptbl commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Numbers the wiki writes with thousands separators were cut at the first comma, so Brain Head's experience 50,000 was stored as 50. Item NPC buy prices also had no currency, so 334 items priced in Theons, Gold Tokens and similar read as gold.

changes:

  • numbers with comma thousands are read whole, and ID fields that hold lists keep their first number
  • creature max damage reads ranges by their larger number
  • added item.value_buy_currency, taken from pricecurrency, else the text after the price, else Gold Coin
  • mount.price_currency shares the currency parser, which never drops an article

Parsing all 18,378 articles from one snapshot with main and with this branch changes only the comma values and adds the new column.

@drptbl
drptbl merged commit 00512d1 into main Sep 27, 2026
5 checks passed
@drptbl
drptbl deleted the fix/numbers-and-item-currency branch September 27, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant