Hello, I've been giving some thought to changing the resistance system from a simple is_set or not is_set to a number between -100 (meaning take double damage) to 100 (meaning immune), and 0 being taking normal damage. This means I could theoretically get rid of immunities altogether.
The problem is the only way I can think of accomplishing this would be to make about 30 entries in mob_index_data (one for each resistance) rather than just one as it is currently (res_flags). This seems overly messy to me, especially since about 30 thousand mobs would be using it and most of them don't even have more than one or two resistances. Anyone ever done this in an efficient manner? Thanks.

