Skip to content

feat: extract item investment stats to generic data#368

Draft
LVL1024 wants to merge 2 commits into
developfrom
feature/add-investments
Draft

feat: extract item investment stats to generic data#368
LVL1024 wants to merge 2 commits into
developfrom
feature/add-investments

Conversation

@LVL1024
Copy link
Copy Markdown
Collaborator

@LVL1024 LVL1024 commented May 23, 2026

Valve currently stores the item investment thresholds (the stat bonuses you get at 800, 1600 souls, etc.) inside every individual hero's data. Since it's a global mechanic, this PR pulls that data out and tosses it into generic-data.json so the wiki modules can easily grab it from one place.

What it does:

  • Extracts m_MapModCostBonuses and maps the slots to Weapon, Vitality, and Spirit.
  • Cross-checks all playable heroes against each other. If Valve accidentally gives one hero different scaling in a future patch, the parser stop.
  • Injects the clean data into generic-data.json under ItemInvestments.
  • Adds it to the structure validator so we get a heads-up if Valve changes the data shape later.

Parsed data in deadlock-data PR - Reopen deadbot PR or run deploy workflow for this branch here to reparse the data

- Extracts `m_MapModCostBonuses` from selectable heroes
- Validates that investment scaling is identical across all heroes
- Maps engine slot types to standard categories (Weapon, Vitality, Spirit)
- Appends `ItemInvestments` to generic-data.json and adds it to structure validation
@LVL1024 LVL1024 force-pushed the feature/add-investments branch from f3e28ae to fa8eee3 Compare May 25, 2026 13:32
@LVL1024 LVL1024 requested a review from hassayag June 4, 2026 16:20
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 Item Investment stats to GenericData

1 participant