Tile gathered and thiefing + nomadic
Posted: Mon Mar 13, 2023 12:46 pm
Add gathered flag to tile (or special), which will disallow workers to do anything on this tile.
Some units may use thief/gather action, which will create goods of type related to resources on this tile. Using action will add gathered flag to tile. On each turn, this flag will be cleared for each tile. Workers may add resources to city (trade, food, shields) on beginning of turn, but only if gathered flag is not set. Additionally, adding resources to granary of city will be calculated before clearing this flag.
This allows us to create thief and nomad units. It would be good idea to introduce use good (on unit carrying it), which will consume unit and provides food/hp/mp/science. Of course, in later game, units may use good in city.
Some units may use thief/gather action, which will create goods of type related to resources on this tile. Using action will add gathered flag to tile. On each turn, this flag will be cleared for each tile. Workers may add resources to city (trade, food, shields) on beginning of turn, but only if gathered flag is not set. Additionally, adding resources to granary of city will be calculated before clearing this flag.
This allows us to create thief and nomad units. It would be good idea to introduce use good (on unit carrying it), which will consume unit and provides food/hp/mp/science. Of course, in later game, units may use good in city.