longturn / freeciv21

Develop your civilization from humble roots to a global empire
GNU General Public License v3.0
219 stars 42 forks source link

Add Work Time to unit middle-click menu #1717

Open jwrober opened 1 year ago

jwrober commented 1 year ago

Is your feature request related to a problem? Please describe. Unless you know the math and can do it in your head, it is hard for a player to know how long a Workers unit will take to alter a tile's terrain (e.g. irrigate, build road, forest->swamp, etc)

Describe the solution you'd like The general thinking is to add this to the middle-click popup menu like we do for all units. There is a view menu to show combat information as an example. Enable another view menu item to show worker tasks and then add some entries to the middle-click. For example, you have a vv Workers selected and you middle-click a tile. The pop-up would tell the player how many turns to do a collection of tasks to the tile based on the unit selected.

Describe alternatives you've considered Does not have to be in the middle-click pop-up as it could get kind of big. Could also be a pop up widget that is separate from the middle-click. The idea is the same, you have a Workers/Engineers type unit selected and you pick a tile and the game gives you some intel on how long it would take to do work on the tile.

Additional context Discord - https://discord.com/channels/378908274113904641/912500712833974322/1062385548829933780

lmoureaux commented 1 year ago

Maybe this could be shown on top of the unit actions bar buttons.

blabber commented 3 months ago

I have a commit (415d813cf5f4406306064063c9dea9afc5071a1f) in my local, that displays the turn_founded for a city in the popup info. Testing shows, that you can rely on turn_founded only for your own cities.

For foreign cities, after reloading a saved game, turn_founded seems to contain the turn number when the game was reloaded. Even before reloading I had the impression, that turn_founded displayed the turn number when I discovered the city rather than when it was founded by the enemy, but I didn't check this any further.