Create an economic resource loop simulation for a bus transportation tycoon game in Machinations. Please build the exact node structure, connections, and formulas described below:
1. Core Income Loop:
Create an automatic Source named "Trip_Generator".
Connect it to a Pool named "Active_Trips" so it produces 1 token per step.
Create a Converter named "Ticket_Sales". Connect "Active_Trips" to "Ticket_Sales" with a resource connection of 1.
Connect "Ticket_Sales" to a Pool named "CASH". The resource connection from the converter to CASH should be 25. Set the initial value of the "CASH" pool to 100.
2. Expense Loop (Fuel and Maintenance):
Create a Drain named "Fuel_Cost" connected to the "CASH" pool. Set it to drain 10 tokens from CASH every step.
Create a Pool named "Wear_and_Tear". Pull 1 token into this pool automatically every step to represent bus degradation.
Create a Converter named "Maintenance" and set its activation to trigger only when "Wear_and_Tear" reaches 10 tokens. When triggered, it should pull 150 tokens from "CASH" and reset the "Wear_and_Tear" pool back to 0.
3. Investment Loop (Scaling Up):
Create a Pool named "Bus_Fleet" with an initial value of 1.
Create a Gate named "Buy_Bus" connected to the "CASH" pool. Set the condition so that if "CASH" >= 500, it activates.
When activated, the Gate should pull exactly 500 tokens from "CASH" and push 1 token into the "Bus_Fleet" pool.
Finally, create a State Connection from "Bus_Fleet" back to the "Trip_Generator" (Source), so that the number of buses acts as a multiplier for the trips generated per step (e.g., 2 buses = 2 trips generated per step).
4. Tracking:
Add a Chart and connect it to the "CASH" pool to track the financial graph over time.