Open jzy-chitong56 opened 4 days ago
I don't think this is necessary but also not sure what your trying to do, The logic is working correctly now in master.
During harassment, if the harassment group loses units but does not trigger a stop, new units can be added to the group to continue the harassment. This way, the harassment will not be easily stopped, similar to the logic of replacing wounded soldiers in combat
Will be difficult to do as just because its the same harass group doesn't mean its the exact same harass, any time the strategy changes it could be a different set of units it wants to harass.
If a harassment group can continue to harass, it should be supplemented
I tried to understand this
Hashtable function
and modified the logic, but I am not sure about this code becauseAddUnitsToHashtable
has intervals and is not the actual unit quantityYou will see that the logic of supplementing the harassment group is still retained here At the same time, it comes with a fallback recovery freeze logic