Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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