I was trying to think of a way to simplify my loot system. Currently units are placed in different unit groups depending on their tier (changes in difficulties) but then I have to check the unit type of the dead unit and get their loot chance from that (which is a real). And as it stands multiple units share the same loot chance, however as some units should have higher loot really I wanted to see if I could make it a bit more dynamic.
So for example this is kind of how it works... Using Footman and Rifleman as examples:
Unit dies - If unit is in T1 Group - If unit is Footman or Rifleman - set loot chance = 1.5
However given that there is a (for example) Footman Tier 2 + 3 and Rifleman Tier 2 + 3 I thought it might be easier to just give them the loot chance when they spawn, then when they die I just use that directly. So units could have differences as small as 0.1, making it a bit more interesting (and hopefully saving me some space)