Dugy / Legend_of_the_Invincibles

An add-on campaign for the Battle for Wesnoth game
GNU General Public License v3.0
40 stars 22 forks source link

recruit list and recruit distribution #795

Open white-haired-uncle opened 6 months ago

white-haired-uncle commented 6 months ago

This is an example from chapter9_utils.cfg, INFERNO_LILITH_SIDE

recruit=Knight of Disaster,Knight of Disaster,Doom Knight,Knight of Pain,Knight of Disaster,Knight of Disaster,Doom Knight,Knight of Pain,Knight of Annihilation,Knight of Oblivion

I've seen this before and always assumed having "Knight of Disaster" in there four times was intended to make it that much more likely to be recruited, as if recruit worked like rand.

Based on some testing I did for something unrelated, and some reading on how the AI works, I don't think this is correct (anymore?). I do remember reading something about configuring the AI recruiting behaviour and a way to give preference to some units (though I know it also considers things like having a minimum of N scouts, etc).

Anyway, if this was done for the reason I think it was, there's probably a lot of review and reconfiguration necessary.

Dugy commented 6 months ago

I think I just copied it from some spawnlist where number of occurrences means weighted probability. Feel free to correct it.