@civ-clone/base-unit-action-clean-pollution
v0.1.0
Published
The CleanPollution unit action: a worker cleans the pollution off its tile, over the turns the ruleset gives it.
Readme
base-unit-action-clean-pollution
The CleanPollution unit action: a worker cleans the Pollution off its tile (civ-clone/web-renderer#32).
CleanPollution:new CleanPollution(from, to, unit, ruleRegistry, tileImprovementRegistry, turn). ADelayedAction: the unit isCleaningPollutionfor as long as the ruleset'sMovementCostsays, as for the other terrain jobs.- When it finishes, each
Pollutionon the tile goes throughcore-tile-improvement'sRemovedrules, which take it off the tile. - Saved games: the busy rule is registered with
core-unit'sBusyRegistrythroughregisterDelayedAction, so a unit part-way through carries on after a load.
