Krazick / 18XX-Game-Engine

18XX Game Engine
MIT License
2 stars 0 forks source link

Complete Operating Round Turn before triggering Formation Phase #224

Closed Krazick closed 4 months ago

Krazick commented 1 year ago

The only function that can be done before triggering the Formation Phase (after 6 Train is purchased) is the purchase of an additional train. At this point in the game, companies are limited to two trains (and one train was just filled to buy the 6 Train. If the player wishes to buy a train, that can be done. It is true they can redeem loans, however, they cannot redeem a loan if they do not have $100 (or more) in cash in the company treasury. If they postpone until the Triggering, the first thing they must do is refund loans if they treasury with > $100.

Krazick commented 9 months ago

Trying to determine how to postpone until the DONE action is triggered, is a tad messy. Will work on this sometime in January 2024.

Krazick commented 5 months ago

Updates applied to have a "Prepared Action" to be stored that will trigger the Formation Phase for 1856. This will be added to list of "Prepared Actions" to be applied when the current Operating Company is shifted to the "Operated" State by the acting President who purchased the 6 Train from the bank into the Operating Company. This will then allow a test to be run by the Corporation Frame when the Done Action is performed that sets the site to Operated.

Need to test in a Network Game.

Need to test if the Formation Frame is shown, and then bring to front. Possibly need to de-activate the "Corporation -- Do Action" Button.

Need to test that this will still be performed properly if the Last Company on the Last OR before Stock will work properly.

Krazick commented 4 months ago

Adding Prepared Action when a 6 Train is purchased, will now be run when company is flagged as 'Done', and shifted state to 'Operated'