Skip to content

Populate Necramech blueprint cost from wiki blueprint data #1002

Description

@coderabbitai

Summary

The Necramech wiki transformer reads MarketCost from blueprint data but does not map numeric BPCost to bpCost. The parser's Necramech wiki integration passes the transformed bpCost to the item, so the omitted mapping leaves the blueprint cost unavailable.

Scope

  • In build/wikia/transformers/transformNecramech.ts, map numeric Blueprint.BPCost to bpCost; preserve undefined when the blueprint or numeric value is unavailable.
  • In build/types/shared.ts, declare bpCost?: number on the shared WikiaNecramech type.
  • Add or update a test that covers numeric and missing blueprint costs.

Acceptance criteria

Necramech wiki data includes bpCost when a numeric BPCost is present and omits it otherwise.

Follow-up requested by @TobiTenno. This work is outside the scope of PR #992.
PR: #992
Review discussion: #992 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions