Add mission customization, HQ support and aggression-driven AI
Integrate faction and random settings menus, generated objectives, scouts, convoys, air support, mortar stations and body-intel recovery. Add identified-body aggression, finite hunter UAZ deployment, dedicated objective defence and maximum AI skill with separate reduced aim accuracy. Include policy tests, native probes, evidence and documentation.
This commit is contained in:
@@ -15,8 +15,10 @@ SCHEMA={
|
||||
'weatherProfile':(0,0,3),
|
||||
'stingerChanceOneIn':(15,0,10000),
|
||||
'automaticConvoyEnabled':(1,0,1),
|
||||
'convoyCount':(3,0,20),
|
||||
'heliTimerMinutes':(15,1,1440),
|
||||
}
|
||||
AI_KEYS=('reportIntervalSeconds','supportSquadLimit','responseRadiusMetres','stingerChanceOneIn','automaticConvoyEnabled')
|
||||
AI_KEYS=('reportIntervalSeconds','supportSquadLimit','responseRadiusMetres','stingerChanceOneIn','automaticConvoyEnabled','heliTimerMinutes')
|
||||
INTEL_KEYS=('aiIntelChancePercent','intelRevealChancePercent')
|
||||
def merge(ai=None,intel=None):
|
||||
result={key:spec[0] for key,spec in SCHEMA.items()};deferred=[]
|
||||
@@ -38,8 +40,8 @@ def merge(ai=None,intel=None):
|
||||
if type(count) not in (int,float) or not 0<=count<=20 or int(count)!=count:
|
||||
raise ValueError('convoyCount must be an integer in [0,20]')
|
||||
result['automaticConvoyEnabled']=int(count>0)
|
||||
result['convoyCount']=int(count)
|
||||
recognized.add('convoyCount')
|
||||
if count>1:deferred.append(f'ai:convoyCount={int(count)} mapped to automaticConvoyEnabled=1; successor capped at one initial convoy')
|
||||
deferred.extend(label+':'+key for key in data if key not in recognized)
|
||||
return result,deferred
|
||||
|
||||
|
||||
Reference in New Issue
Block a user