Krazick / 18XX-Game-Engine

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

Audit Frame is showing the Buy License Action as both a Debit and Credit #193

Closed Krazick closed 1 year ago

Krazick commented 1 year ago

The Audit Frame is improperly showing the "Buy License Action" incorrectly with the Cost of purchase ($50) and both a Debit and A Credit

The Remote Clients are not showing the correct Cash for the Corporations after the Purchase

Krazick commented 1 year ago

Identified the 'Add License Effect' extended the 'Cash Transfer Effect' which caused this to get the debit/credit, and the 'Cash Transfer Effect' (as a separate Effect) did the same.

Modified this to just extend the 'ToEffect'.

This prevents the Audit Frame from double-reporting. This will also prevent remote clients from double-applying the Effect for two Cash Transfer Effects