Skip to content

Add slot and base_power to item attributes#2

Open
Heckfer wants to merge 2 commits into
mainfrom
feat/item-slot-basepower
Open

Add slot and base_power to item attributes#2
Heckfer wants to merge 2 commits into
mainfrom
feat/item-slot-basepower

Conversation

@Heckfer

@Heckfer Heckfer commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Closes #1 (ported from Heckfer/almanac-tibia#157).

What

Adds two Infobox_Object template parameters to ItemParser.item_attributes, so they are stored in the item_attribute table during generation:

item_attribute name wiki parameter example
slot slot Neck (Ruby Necklace)
base_power basepower 150 (Sudden Death Rune)

The other two fields from the original issue were already covered: secondarytype is the type_secondary column on item, and regenseconds is the food_time item attribute.

Tests

Two new parser tests with fixtures taken from the live wiki articles (Ruby Necklace, Sudden Death Rune). Full suite passes (61 tests, 18 skipped as usual). Ruff findings in touched files are pre-existing and untouched.

🤖 Generated with Claude Code

Heckfer and others added 2 commits July 9, 2026 21:15
Parses the Infobox_Object `slot` (equipment slot for wearables) and
`basepower` (rune base power) template parameters into the
item_attribute table.

Closes #1

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Add missing item fields from wiki: slot and basepower

1 participant