Factories now generate FactoryProduction events which are automatically added to the TimeMachine as needed. They are currently controlled primarily by two values: _drillersPerProduction which defaults to Constants.BASE_FACTORY_PRODUCTION, which is the base amount of drillers produced in each factory, and _ticksPerProduction which defaults to Factory.STANDARD_TICKS_PER_PRODUCTION, which is the amount of ticks between two production cycles. Note: The test methods assume the Factory fields take these default values.
Game.cs has been changed to add an initial FactoryProduction for each factory owned by a player.
Factories are not currently aware of electrical capacity, however a method has been added to GameState.cs, GetExtraDrillerCapacity(Player), which can be used to implement such awareness in the future.
Type of change
CLI
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] New dependencies/packages
Core
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] New dependencies/packages
Testing
[X] I have created automated tests for any new features
[X] All automated tests pass
[ ] I have performed manual tests
Checklist:
[X] I have performed a self-review of my own code
[X] I have commented my code according to C# standards
[ ] I have made corresponding changes to the README (if required)
[ ] I have added/updated articles in the documentation
Description
Factories now generate FactoryProduction events which are automatically added to the TimeMachine as needed. They are currently controlled primarily by two values: _drillersPerProduction which defaults to Constants.BASE_FACTORY_PRODUCTION, which is the base amount of drillers produced in each factory, and _ticksPerProduction which defaults to Factory.STANDARD_TICKS_PER_PRODUCTION, which is the amount of ticks between two production cycles. Note: The test methods assume the Factory fields take these default values. Game.cs has been changed to add an initial FactoryProduction for each factory owned by a player. Factories are not currently aware of electrical capacity, however a method has been added to GameState.cs, GetExtraDrillerCapacity(Player), which can be used to implement such awareness in the future.
Type of change
CLI
Core
Testing
Checklist: