Quick update on the game!
I focused on the resource delivery mechanism to the battle units (and prepared the code so it’ll also work for future events, modules, etc.). I created another window called "Dispatch Resources," so now you can directly send resources to battle units. You pick the battle unit you want to send it to, set the amount of resources, and then choose the transport unit you want to use. (Making the buttons change color to show which units were selected was honestly the hardest part—ended up wasting way too much time on that. But I needed it to not get confused and see if the right units were chosen.)
The goods are delivered in real time, and you can watch the progress in the "Central Logistics" window. While delivering, the status of the transport unit changes from "Idle" to "On Mission," so it can’t be picked for another transport until it returns.
Once the resources arrive, they’re added to the battle unit’s supplies. The transport unit will take the same time (or maybe a bit less—still deciding) to get back to your storage so it can go out on another run.
A lot of the code was set up 'in general,' so that the same mechanisms can be used for missions, events, and other future features. In the Dispatch window, you can see some relevant stats that are already in place for each unit, like how long the delivery will take (based on the speed of the transport unit and distance to the battle unit), how much cargo each transport unit can carry, etc.
Had to rewrite a bunch of it because I realized going day-by-day was a bad idea, so I switched it to an hourly system. Now, transports don’t just all leave in the morning and come back the next morning—it’s a bit more dynamic and feels way better.
As usual: yes, the UI sucks for now. I'll polish that way later. First I want stuff to just work in general.
0 comments