Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bunnybot
Copy link

@bunnybot bunnybot commented Mar 24, 2025

tothxaMirrored from Codeberg
Created on Mon Mar 24 23:37:08 CET 2025 by Tóth András (tothxa)


Type of Change

Refactoring or actually rewrite

Issue(s) Closed

Re: https://codeberg.org/wl/widelands/pulls/4947#issuecomment-3079131

New Behavior

Training sites now select training steps and request soldiers based on the actual availability of required wares instead of second guessing them from past successes and failures. Internal state became much simpler.

They also recognise when the player limits the inputs to limit the training at the site, and drop soldiers immedieately when they can't be trained further because of that.

Soldier preference can be changed by the player.

Possible Regressions

Everything related to training, including its saveloading

Additional context

I'm targeting this after v1.3 because it will need a lot of testing in many situations and with many player styles.

I'd also like to make post_timer configurable, remove training_state_multiplier_, either check the presence of the mandatory "sleep" program, or just make the sleep length another configurable parameter of trainingsites, then document the effect of these properly. But these will probably be better in a follow-up PR.

@bunnybot bunnybot added this to the v1.4 milestone Mar 24, 2025
@bunnybot bunnybot self-assigned this Mar 24, 2025
@bunnybot
Copy link
Author

Assigned to tothxa

@bunnybot bunnybot added enhancement New feature or request cleanup & refactoring Improving our code quality balancing & gameplay Tribes' statistics & mechanics military Soldiers, military sites, training sites & battles economy Ware priority & transport, worker creation & assignment, requests & supplies, trading & markets ci:fail CI checks failed labels Mar 24, 2025
@bunnybot
Copy link
Author

tothxaMirrored from Codeberg
On Tue Mar 25 08:56:14 CET 2025, Tóth András (tothxa) wrote:


<@>bunnybot logs

@bunnybot bunnybot added ci:fail CI checks failed and removed ci:fail CI checks failed labels Mar 25, 2025
@bunnybot bunnybot added ci:fail CI checks failed ci:success CI checks succeeded and removed ci:fail CI checks failed ci:success CI checks succeeded labels Mar 25, 2025
@bunnybot bunnybot added ci:fail CI checks failed and removed ci:fail CI checks failed labels Jul 10, 2025
@bunnybot bunnybot added ci:fail CI checks failed ci:success CI checks succeeded and removed ci:fail CI checks failed labels Jul 10, 2025
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels Jul 10, 2025
@bunnybot bunnybot added ci:cancelled CI checks were cancelled and removed ci:cancelled CI checks were cancelled labels Jul 10, 2025
@bunnybot bunnybot changed the title WIP: Redesign trainingsite behaviour, make it more predictable Redesign trainingsite behaviour, make it more predictable Jul 10, 2025
@bunnybot bunnybot marked this pull request as ready for review July 10, 2025 23:45
@bunnybot bunnybot added the ci:success CI checks succeeded label Jul 11, 2025
@bunnybot bunnybot added ci:success CI checks succeeded ci:fail CI checks failed and removed ci:success CI checks succeeded labels Dec 22, 2025
@bunnybot bunnybot added ci:fail CI checks failed ci:cancelled CI checks were cancelled and removed ci:fail CI checks failed labels Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

balancing & gameplay Tribes' statistics & mechanics ci:cancelled CI checks were cancelled cleanup & refactoring Improving our code quality economy Ware priority & transport, worker creation & assignment, requests & supplies, trading & markets enhancement New feature or request military Soldiers, military sites, training sites & battles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants