Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the worker action for irrigation #506

Open
TomWerner opened this issue Jan 18, 2025 · 2 comments
Open

Add the worker action for irrigation #506

TomWerner opened this issue Jan 18, 2025 · 2 comments

Comments

@TomWerner
Copy link
Contributor

Like #493, we should support irrigating tiles, and loading save files that have irrigation.

@KulkoBSW
Copy link
Contributor

KulkoBSW commented Feb 9, 2025

@TomWerner I see the basic irrigation action is done already, correct? But the multi Turn part is missing. Do you minbd if I try my hand at this?

@TomWerner
Copy link
Contributor Author

Please do!

A couple of pointers:

  • This doc has some notes about how stacks of workers operate
  • Tfrm.cs has the worker move costs. I'm guessing the Required field in that struct is an index into the list of techs, but I don't know for sure. I'm also not sure what the Order string is there. Any easy way to printf debug this kind of thing is with Console.WriteLog statements and then running the unit tests, which loads a standard game and some scenarios. To see the logs you'll want dotnet test -v n.
  • Unit.cs in the sav section has information about active worker jobs and based on this forum post this unknown buffer might be the worker speed (native vs captured worker).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants