Currently if you are within 5 of an Allied City, then supply is unlimited.
If you have a table of UNLIMITED SUPPLY locations per alliance, then any reload by either from that table is unlimited.
This gets updated as SUPPLY moves & cities are added.
SUPPY does not move that much, you have to calculate the distance from the active unit to any SUPPLY alredy.
If the SUPPLY is part of the table, then you know it's unlimited and no more calculations required.
Limited reloads come from each users supply chain.
Or every time a SUPPY moves, it's tagged as LIMTIED or UNLIMITED.
If LIMITED, only supplies that user.
If it's tagged, then you don't have to calculate during the attach, you already know.
Workable?
Too much code to change?
Currently if you are within 5 of an Allied City, then supply is unlimited.
If you have a table of UNLIMITED SUPPLY locations per alliance, then any reload by either from that table is unlimited.
This gets updated as SUPPLY moves & cities are added.
SUPPY does not move that much, you have to calculate the distance from the active unit to any SUPPLY already.
If the SUPPLY is part of the table, then you know it's unlimited and no more calculations required.
Limited reloads come from each users supply chain.
Or every time a SUPPY moves, it's tagged as LIMTIED or UNLIMITED.
If LIMITED, only supplies that user.
If it's tagged, then you don't have to calculate during the attack, you already know.