Subterfuge-Revived / Remake-Core

Core repository that holds all game logic for both front end rendering and back end validation.
Creative Commons Zero v1.0 Universal
39 stars 24 forks source link

Factories produce drillers #60

Closed pandabear15 closed 3 years ago

pandabear15 commented 3 years ago

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: