Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated validator with new injuries and rules #35

Merged
merged 2 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
unspecified is only allowed for internal injuries
  • Loading branch information
kaitlyn-sharo committed Jul 9, 2024
commit 17a58891d14b9bd418a25ac9e205f198bff3eba0
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,17 @@ When not running in training mode (-t), additional checks are implemented:
* Injuries are only allowed to have specific locations. Please follow the table to create valid matches.
| Injury name | Allowed Locations |
| --- | --- |
| `Traumatic Brain Injury` | `head`, `unspecified` |
| `Open Abdominal Wound` | `stomach`, `unspecified` |
| `Ear Bleed` | `left face`, `unspecified` |
| `Asthmatic` | `unspecified`, `internal` |
| `Laceration` | `left face`, `left forearm`, `right forearm`, `left stomach`, `left thigh`, `right thigh`, `left calf`, `right calf`, `left wrist`, `right wrist`, `unspecified` |
| `Puncture` | `left neck`, `right neck`, `left bicep`, `right bicep`, `left shoulder`, `right shoulder`, `left stomach`, `right stomach`, `left side`, `right side`, `left thigh`, `right thigh`, `left chest`, `right chest`, `center chest`, `left calf`, `right calf`, `unspecified` |
| `Shrapnel` | `left face`, `right face`, `left calf`, `right calf`, `unspecified` |
| `Chest Collapse` | `left chest`, `right chest`, `unspecified` |
| `Amputation` | `left wrist`, `right wrist`, `left calf`, `right calf`, `left thigh`, `right thigh`, `unspecified` |
| `Burn` | `right forearm`, `left forearm`, `right calf`, `left calf`, `right thigh`, `left thigh`, `right side`, `left side`, `right chest`, `left chest`, `neck`, `right bicep`, `left biecp`, `unspecified` |
| `Broken Bone` | `right leg`, `left leg`, `right shoulder`, `left shoulder`, `unspecified` |
| `Traumatic Brain Injury` | `head` |
| `Open Abdominal Wound` | `stomach` |
| `Ear Bleed` | `left face` |
| `Asthmatic` | `internal` |
| `Laceration` | `left face`, `left forearm`, `right forearm`, `left stomach`, `left thigh`, `right thigh`, `left calf`, `right calf`, `left wrist`, `right wrist` |
| `Puncture` | `left neck`, `right neck`, `left bicep`, `right bicep`, `left shoulder`, `right shoulder`, `left stomach`, `right stomach`, `left side`, `right side`, `left thigh`, `right thigh`, `left chest`, `right chest`, `center chest`, `left calf`, `right calf` |
| `Shrapnel` | `left face`, `right face`, `left calf`, `right calf` |
| `Chest Collapse` | `left chest`, `right chest` |
| `Amputation` | `left wrist`, `right wrist`, `left calf`, `right calf`, `left thigh`, `right thigh` |
| `Burn` | `right forearm`, `left forearm`, `right calf`, `left calf`, `right thigh`, `left thigh`, `right side`, `left side`, `right chest`, `left chest`, `neck`, `right bicep`, `left biecp` |
| `Broken Bone` | `right leg`, `left leg`, `right shoulder`, `left shoulder` |
| `Internal` | `internal`, `unspecified` |

#### Military Branches, Ranks, and Rank Titles
Expand Down
31 changes: 10 additions & 21 deletions api_files/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,25 +388,21 @@
"state.characters[].injuries[].name": {
"Traumatic Brain Injury": {
"state.characters[].injuries[].location": [
"head",
"unspecified"
"head"
]
},
"Open Abdominal Wound": {
"state.characters[].injuries[].location": [
"stomach",
"unspecified"
"stomach"
]
},
"Ear Bleed": {
"state.characters[].injuries[].location": [
"left face",
"unspecified"
"left face"
]
},
"Asthmatic": {
"state.characters[].injuries[].location": [
"unspecified",
"internal"
]
},
Expand All @@ -421,8 +417,7 @@
"left calf",
"right calf",
"left hand",
"right hand",
"unspecified"
"right hand"
]
},
"Puncture": {
Expand All @@ -443,24 +438,21 @@
"right chest",
"center chest",
"left calf",
"right calf",
"unspecified"
"right calf"
]
},
"Shrapnel": {
"state.characters[].injuries[].location": [
"left face",
"right face",
"left calf",
"right calf",
"unspecified"
"right calf"
]
},
"Chest Collapse": {
"state.characters[].injuries[].location": [
"left chest",
"right chest",
"unspecified"
"right chest"
]
},
"Amputation": {
Expand All @@ -470,8 +462,7 @@
"left calf",
"right calf",
"left thigh",
"right thigh",
"unspecified"
"right thigh"
]
},
"Burn": {
Expand All @@ -488,17 +479,15 @@
"left chest",
"left bicep",
"right bicep",
"neck",
"unspecified"
"neck"
]
},
"Broken Bone": {
"state.characters[].injuries[].location": [
"right shoulder",
"left shoulder",
"left leg",
"right leg",
"unspecified"
"right leg"
]
},
"Internal": {
Expand Down