If anyone else wants to check my guess that the magic number is 20, you need to install my latest toolbox or lazgui-extn to look at unit magazines, you need a simple test scenario with maybe a few different ship class units, strip out all magazine items, add one item to each magazine and give it 'silly' quantity and\or reload values. Export db.
Run game with no db specified (so it uses the exported one) and look at magazine content.
In pe use search feature to find weapon id for the mag items and then look in the csv file (see TEs early post for name but look at the magEx.csv file) to see if it appears 20 items before the item with the silly values.
Does that all make sense?
HINT use a small db, the early CW I used exports from pe in about 3-5 secs, the latest HCDB2 for me takes it seems like a couple of minutes.