Skip to content

Limit damage values for emergency teams and civilians to 10000#142

Merged
shima004 merged 1 commit intomainfrom
fix/message-damage-size
Apr 7, 2026
Merged

Limit damage values for emergency teams and civilians to 10000#142
shima004 merged 1 commit intomainfrom
fix/message-damage-size

Conversation

@shima004
Copy link
Copy Markdown
Member

@shima004 shima004 commented Apr 7, 2026

This pull request adds a safeguard to cap the damage attribute for various agent message classes at a maximum value of 10,000. This ensures that damage values do not exceed this upper limit, likely to prevent unrealistic or erroneous data from propagating through the system.

Damage value capping across agent message classes:

  • Capped damage at 10,000 for AmbulanceTeam messages in message_ambulance_team.py (src/adf_core_python/core/agent/communication/standard/bundle/information/message_ambulance_team.py).
  • Capped damage at 10,000 for Civilian messages in message_civilian.py (src/adf_core_python/core/agent/communication/standard/bundle/information/message_civilian.py).
  • Capped damage at 10,000 for FireBrigade messages in message_fire_brigade.py (src/adf_core_python/core/agent/communication/standard/bundle/information/message_fire_brigade.py).
  • Capped damage at 10,000 for PoliceForce messages in message_police_force.py (src/adf_core_python/core/agent/communication/standard/bundle/information/message_police_force.py).

@shima004 shima004 self-assigned this Apr 7, 2026
@shima004 shima004 merged commit d940d00 into main Apr 7, 2026
4 checks passed
@shima004 shima004 deleted the fix/message-damage-size branch April 7, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant