ggtracker / ggtracker/sc2reader
Feature request: Make upgrade cost accessible
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 169
- Forks
- 152
- PR merge metrics
- No merged PRs in 30d
Description
As of today there is no way to access the mineral/vespene cost of upgrades and research.
Initiating an upgrade is represented as a BasicCommandEvent, which exposes no details about the ability that was triggered (compare this to UnitInitEvent which exposes the related unit and it's cost).
Is there a way to access the resource cost of the upgrade, or is this feature to be implemeted?
If you would share how/where the cost is fetched for a unit, then I'd be more than happy to implement a similar feature for upgrades.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how BasicCommandEvent represents an initiated upgrade and compare it with UnitInitEvent, which exposes the related unit and its cost. Find where unit resource costs are fetched, then determine how the equivalent upgrade cost can be exposed; done means callers can access mineral and vespene costs for upgrade or research events.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100