Musashi1584 / RPGO

4 stars 7 forks source link

Added specialization weighting #14

Closed Iridar closed 4 years ago

Iridar commented 4 years ago

Also, Skirmisher can no longer be a complementary specialization, since it's meaningless without the Ripjack.

Each specialization now has three Weights:

iWeightPrimary = 1
iWeightSecondary = 1
iWeightComplementary = 1

The implementation is very straightforward; spec's weight determines how many instances of the spec are added into the pool that is used to randomly select it.

Since complimentary specs don't participate in determining which weapons the soldier will be able to use, they are weighted separately.