Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/civ-clone/core-goody-hut
https://github.com/civ-clone/core-goody-hut
civilization typescript
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/civ-clone/core-goody-hut
- Owner: civ-clone
- License: mit
- Created: 2020-10-06T19:26:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T18:30:20.000Z (over 1 year ago)
- Last Synced: 2024-08-09T15:52:03.982Z (5 months ago)
- Topics: civilization, typescript
- Language: TypeScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# core-goody-hut
This package provides the core `GoodyHut` class and associated `Rule`s.
`GoodyHut`s traditionally in the Civ games provide a bonus (or penalty) when discovered. The `GoodyHut` class is
associated to a `Tile` where it will be `Discovered`, revealing its reward via an `Action`.Associated `Rule`s:
- `Action` - available `Action`s for the current `GoodyHut` (e.g. `Unit`, `Advance`, `Gold`...)
- `ActionPerformed` - once an action is performed (`Unit` provided, etc)
- `Discovered` - when the `GoodyHut` is interacted with
- `Distribution` - on which `Tile`s the `GoodyHut`s will appear