Skip to content

Commit

Permalink
✨[mh] Amount of Crashed Cars added in US
Browse files Browse the repository at this point in the history
and add average_min_thw_personnel to DE
  • Loading branch information
Suchty112 committed Apr 3, 2024
1 parent 8da1182 commit 6be2e79
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/modules/missionHelper/i18n/de_DE.root.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"in": "additional",
"text": "Polizisten ⌀ mind. benötigt"
},
"average_min_thw_personnel": {
"badge": false,
"in": "additional",
"text": "THWler ⌀ mind. benötigt"
},
"min_pump_speed": {
"badge": true,
"in": "requirements",
Expand Down
9 changes: 4 additions & 5 deletions src/modules/missionHelper/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@
"reload": "reload"
},
"towtruck": {
"possible_crashed_car_exact": "exact {n} car | exact {n} Pastient",
"possible_crashed_car_max": "Maximum cars",
"possible_crashed_car_min": "Minimum Pcars",
"specializations": "Specialization",
"title": "cars | {n} cars| {n} carsdfs"
"possible_crashed_car_exact": "exact {n} crashed car | exact {n} crashed cars",
"possible_crashed_car_max": "Maximum crashed cars",
"possible_crashed_car_min": "Minimum crashed car",
"title": "Crashed car | {n} Crashed car| {n} Crashed cars"
},
"vehicles": {
"captions": {
Expand Down
8 changes: 4 additions & 4 deletions src/modules/missionHelper/i18n/en_US.root.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@
},
"towtruck": {
"content": {
"description": "Shows details about possible towtruck.",
"title": "Details of potential towtruck"
"description": "Shows details about possible Crashed cars.",
"title": "Details of potential Crashed cars"
},
"title": {
"description": "Shows the heading \"towtruck\" above the details about possible patients.",
"title": "towtruck (Title)"
"description": "Shows the heading \"Crashed cars\" above the details about possible Crashed cars.",
"title": "Crashed car (Title)"
}
},
"type": {
Expand Down
6 changes: 6 additions & 0 deletions src/modules/missionHelper/missionHelper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,12 @@ export default Vue.extend<
.average_min_police_personnel ?? 0,
specs?.additional.average_min_police_personnel ?? 0
);
this.maxMissionSpecs.additional.average_min_thw_personnel =
Math.max(
this.maxMissionSpecs.additional
.average_min_thw_personnel ?? 0,
specs?.additional.average_min_thw_personnel ?? 0
);
this.maxMissionSpecs.additional.average_min_fire_personnel =
Math.max(
this.maxMissionSpecs.additional
Expand Down
1 change: 1 addition & 0 deletions typings/Mission.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ interface Additional {
// Personnel
average_min_police_personnel?: number;
average_min_fire_personnel?: number;
average_min_thw_personnel?: number;
swat_personnel?: number;
height_rescue_personnel?: number;
personnel_educations?: Record<string, number>;
Expand Down

0 comments on commit 6be2e79

Please sign in to comment.