Otherwise, I've made a simple list in Excel that can be filtered and in which it's thus possible to compare army lists, with the minimum and potential number of units for different number of force points. You can also check in which army lists certain units are included. It's all based on ArmyList.txt and the kind input from RBS (see below).
rbodleyscott wrote: ↑Sun Jun 28, 2020 4:10 pmThis.kronenblatt wrote: ↑Sun Jun 28, 2020 6:26 am In ArmyList.xlsx, the army list's units are specified with a MIN and a MAX, setting out "total (fixed + selection) quantity for 2000 point army".
1. How is that then adjusted and rounded for any other point of army, say 1200 point army: simply proportionally (multiplying each number with e.g. 1200/2000)?
To nearest integer.2. And how then rounded to integer values; always down, always up, or to nearest integer?
Floor of 1, with floor of 2 for core types in ally contingents.(With any floors (of say 1)?)
Code: Select all
StartWorkString(1); PrintWorkStringLiteral("MIN_", 1); PrintWorkStringInt(num, 1); min = FromFileGetValue(file, army, GetWorkString(1)); min = ((min * points) + 1000) / 2000; // scale based on 2000 point army StartWorkString(1); PrintWorkStringLiteral("MAX_", 1); PrintWorkStringInt(num, 1); max = FromFileGetValue(file, army, GetWorkString(1)); unadjustedMax = max; // v1.5.10 WatG addition if (max > 0) { max = ((max * points) + 1000) / 2000 ; // scale based on 2000 point army // v1.5.10 WatG addition - to allow more than one unit of core types if their overall numbers in the allied list are not huge if (ally == 1) { if (max < 2) { max = (((unadjustedMax * points * 190) / 100) + 1000) / 2000; if (max > 2) { max = 2; } } } // End v1.5.10 WatG addition if (max < min) { max = min; } if (max < 1) { max = 1; } }



