make ships claim targets
This commit is contained in:
@@ -39,6 +39,14 @@ struct WorldWaves
|
||||
double bossQuietAfterSeconds; // suppress normal waves this long after boss (REQ-WAV-QUIET)
|
||||
};
|
||||
|
||||
// Ship target selection (claim-aware scoring).
|
||||
struct WorldTargeting
|
||||
{
|
||||
Formula targetScoreFormula; // x = distance / max weapon range; higher = better
|
||||
Formula overclaimPenaltyFormula; // x = competing claim count; factor in [0,1]
|
||||
double hysteresis; // fractional margin a challenger must beat the current target by
|
||||
};
|
||||
|
||||
struct WorldConfig
|
||||
{
|
||||
int heightTiles; // REQ-GW-HEIGHT
|
||||
@@ -56,4 +64,5 @@ struct WorldConfig
|
||||
WorldExpansion expansion;
|
||||
WorldPush push;
|
||||
WorldWaves waves;
|
||||
WorldTargeting targeting;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user