Skip to content

Implement Gather command #3

@southforkcode

Description

@southforkcode

Given we are in a day-by-day game loop cycle, we want to implement a command to gather resources. The player will issue the command at the beginning of the day:

>gather wood

And the game will gather on behalf of the player the specified resource. The resource list is know so the player can't arbitrarily gather random resources. The initial implementation should support gathering wood (fuel), water, and food for now.

Successful gathering of a resource should increment the player's resource count for that thing by 100.

So if the player has 23 food and they successfully gather food, the count should go up to 123.

We want tests to cover this mechanic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions