Add Area of Effect (AOE) resource effects to grid objects #4538
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

TL;DR
Added Area of Effect (AOE) resource effects to grid objects, allowing objects to emit resource effects to agents within a configurable range.
What changed?
AOEEffectConfigclass to configure resource effects with a range and resource deltasGridObjectConfigwith an optional AOE configurationAOEHelperclass to manage AOE effects for grid objectsCellEffectstruct to track accumulated resource effects at each grid cellGridclass to track and apply AOE effects across the gridHow to test?
Place the object in your environment and observe agents within range receiving the configured resource effects each tick.
Test different ranges and resource combinations, including negative values for resource depletion effects.
Why make this change?
This feature enables more dynamic environments where grid objects can passively affect nearby agents. It supports a variety of gameplay mechanics such as:
This creates richer strategic gameplay where positioning relative to these effect-emitting objects becomes important.