123ishaTest / 123ishaTest/ludiek

[Currency] Add maximum amount to CurrencyPlugin

Open Beginner friendly
#132 0 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted plugin
Dominant language
TypeScript
Stars
12
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Currently there is no way to add a cap to currencies

## Tasks
- [ ] Expand the CurrencyDefinition with a `cap: number`
- [ ] Create a test that asserts we cannot go over the cap

## Future work
It seems reasonable to be able to add an upgrade that increases the cap, but I'm not sure if adding a modifier for it baked in is the right way to approach this....

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the CurrencyPlugin and CurrencyDefinition files in the codebase. The task involves adding a `cap: number` property to the CurrencyDefinition and writing a test to ensure the currency cannot exceed this cap. Start by examining existing tests for the CurrencyPlugin to understand the testing pattern.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
game-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.