Skip to content

Commit

Permalink
✨[core]πŸ‘¨β€βš•οΈπŸ₯πŸ©ΊπŸ«€ GP Update GB
Browse files Browse the repository at this point in the history
  • Loading branch information
Suchty112 committed Apr 30, 2024
1 parent 075ef44 commit 9420237
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/i18n/en_GB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
color: '#ff2d2d',
},
'Ambulance Stations': {
buildings: [2, 3, 5, 20, 21, 25],
buildings: [2, 3, 5, 20, 21, 25, 32, 4],
color: '#ffa500',
},
'Police Stations': {
Expand All @@ -80,7 +80,7 @@ export default {
color: '#88ecc4',
},
'Other': {
buildings: [7, 4, 14, 22, 23, 24],
buildings: [7, 14, 22, 23, 24],
color: '#02a18c',
},
},
Expand All @@ -102,8 +102,9 @@ export default {
vehicles: {
'Ambulances': [5],
'HEMS': [9],
'Rapid Response Vehicles': [10, 19, 20, 21, 22, 83],
'Rapid Response Vehicles': [10, 19, 20, 22, 83],
'HART Units': [23, 27, 28, 29, 30, 31, 32, 33, 34],
'GP': [21, 95, 96]
},
color: '#ffa500',
},
Expand Down
126 changes: 121 additions & 5 deletions src/i18n/en_GB/buildings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ export default {
givesParkingLots: 10,
cannotDisable: true,
},
{
caption: 'General Practitioner',
credits: 100_000,
coins: 15,
duration: '5 Days',
unlocksVehicleTypes: [95, 96],
isVehicleExtension: true,
},
],
levelcost: ['1. 10.000', '2. 50.000', '3.-19. 100.000'],
maxBuildings: 'No limit',
Expand Down Expand Up @@ -353,17 +361,88 @@ export default {
duration: '7 Days',
maxExtensionsFunction: buildingsByType =>
Math.floor(
(Object.keys(buildingsByType[4] ?? {}).length ?? 4) / 5
(Object.keys(buildingsByType[4] ?? {}).length ?? 4) / 3
),
canBuyByAmount: (boughtExtensionsAmountByType, maxExtensions) =>
(boughtExtensionsAmountByType[4][9] ?? 0) < maxExtensions,
newBeds: 10,
cannotDisable: true,
},
{
caption: 'PPCI',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [9],
cannotDisable: true,
},
{
caption: 'Stroke Center',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [9],
cannotDisable: true,
},
{
caption: 'Burns',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [9],
cannotDisable: true,
},
{
caption: 'Children',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [9],
cannotDisable: true,
},
{
caption: 'Critical Care',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [9],
cannotDisable: true,
},
{
caption: 'Central Delivery Suite',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [9],
cannotDisable: true,
},
{
caption: 'Major Trauma Centre',
credits: 70_000,
coins: 15,
duration: '7 Days',
requiredExtensions: [16],
cannotDisable: true,
},
{
caption: 'Major Hospital',
credits: 500_000,
coins: 50,
duration: '7 Days',
maxExtensionsFunction: buildingsByType =>
Math.floor(
(Object.keys(buildingsByType[4] ?? {}).length ?? 4) / 9
),
canBuyByAmount: (boughtExtensionsAmountByType, maxExtensions) =>
(boughtExtensionsAmountByType[4][9] ?? 0) < maxExtensions,
newBeds: 10,
requiredExtensions: [9],
cannotDisable: true,
},
],
levelcost: ['1.-20. 19.000 Credits / 11 Coins'],
maxBuildings: 'No limit',
maxLevel: 20,
maxLevel: 30,
special:
'Finance ministers and admins can (expand) association hospitals with the help of credits from the association treasury.',
startBeds: 10,
Expand Down Expand Up @@ -916,6 +995,14 @@ export default {
isVehicleExtension: true,
parkingLotReservations: [[33], [34]],
},
{
caption: 'General Practitioner',
credits: 100_000,
coins: 15,
duration: '5 Days',
unlocksVehicleTypes: [95, 96],
isVehicleExtension: true,
},
],
levelcost: [
'1. 10.000',
Expand All @@ -934,7 +1021,7 @@ export default {
icon: 'house-medical',
},
21: {
caption: 'Clinic',
caption: 'Urgent Treatment Center',
color: '#e2e53b',
coins: 25,
credits: 100_000,
Expand All @@ -950,6 +1037,14 @@ export default {
duration: '7 Days',
cannotDisable: true,
},
{
caption: 'General Practitioner (UTC)',
credits: 100_000,
coins: 15,
duration: '5 Days',
unlocksVehicleTypes: [95, 96],
isVehicleExtension: true,
},
],
levelcost: ['1-5. 20.000'],
maxBuildings: 'No limit',
Expand Down Expand Up @@ -990,8 +1085,8 @@ export default {
'It can only Store: Fire Officer, Rapid Response Vehicle, Operational Team Leader, General Practitioner, Community First Responder, Ambulance Officer and the Dog Support Unit (DSU)',
startPersonnel: 1,
startVehicles: [''],
schoolingTypes: ['Rescue', 'Police', 'Fire'],
schools: [2, 3, 8],
schoolingTypes: ['Rescue', 'Police', 'Fire', 'Water Rescue'],
schools: [2, 3, 8, 29],
startParkingLots: 1,
icon: 'house-flag',
},
Expand Down Expand Up @@ -1452,4 +1547,25 @@ export default {
startParkingLots: 1,
icon: 'fire-flame-curved',
},
32: {
caption: 'GP Surgery',
color: '#eeb611',
coins: 35,
credits: 200_000,
levelPrices: {
credits: [],
coins: [],
},
extensions: [],
levelcost: ['not expandable'],
maxBuildings: 'No limit',
maxLevel: 3,
special: '',
startPersonnel: 2,
startVehicles: [''],
schoolingTypes: ['Rescue'],
schools: [3],
startParkingLots: 1,
icon: 'house-flag',
},
} satisfies Record<number, InternalBuilding>;
12 changes: 12 additions & 0 deletions src/i18n/en_GB/schoolings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ export default {
staffList: 'Ambulance Officer',
key: 'ems_mobile_command',
},
{
caption: 'Midwifery Training',
duration: '5 Days',
staffList: 'Midwife',
key: 'midwife',
},
{
caption: 'Specialist Paramedic Training',
duration: '5 Days',
staffList: 'Specialist Paramedic',
key: 'paramedic_advanced',
},
],
'Water Rescue': [
{
Expand Down
42 changes: 42 additions & 0 deletions src/i18n/en_GB/vehicles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1548,4 +1548,46 @@ export default {
possibleBuildings: [31],
special: 'A rapid response vehicle based in the SAR HQ',
},
95: {
caption: 'Community Midwife',
color: '#b89d14',
credits: 10000,
coins: 10,
staff: {
min: 1,
max: 2,
training: {
Rescue: {
midwife: {
all: true,
},
},
},
},
icon: 'car-side',
possibleBuildings: [2, 20, 21, 22, 32],
special:
'',
},
96: {
caption: 'Specialist Paramedic RRV',
color: '#b89d14',
credits: 10000,
coins: 10,
staff: {
min: 1,
max: 2,
training: {
Rescue: {
paramedic_advanced: {
all: true,
},
},
},
},
icon: 'car-side',
possibleBuildings: [2, 20, 21, 22, 32],
special:
'',
},
} satisfies Record<number, InternalVehicle>;
2 changes: 1 addition & 1 deletion src/modules/buildingListFilter/i18n/en_GB.root.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"default": [
{ "ids": [0, 18], "name": "Firehouse" },
{ "ids": [2, 4, 5, 20, 21, 22, 25], "name": "Rescue" },
{ "ids": [2, 4, 5, 20, 21, 22, 25, 32], "name": "Rescue" },
{ "ids": [6, 13, 19], "name": "Police" },
{ "ids": [1, 3, 8], "name": "School" },
{ "ids": [7], "name": "Dispatch Center" }
Expand Down
14 changes: 14 additions & 0 deletions src/modules/extendedCallWindow/i18n/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,20 @@
"Medical cycle responders"
],
"vehicles": [83]
},
{
"texts": [
"Community Midwife",
"Community Midwifes"
],
"vehicles": [95]
},
{
"texts": [
"Specialist Paramedic RRV",
"Specialist Paramedic RRVs"
],
"vehicles": [96]
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/extendedCallWindow/i18n/en_GB.root.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
{
"name": "Ambulance",
"vehicleTypes": [
5, 9, 10, 19, 20, 21, 22, 27, 28, 29, 30, 31, 32, 33, 34
5, 9, 10, 19, 20, 21, 22, 27, 28, 29, 30, 31, 32, 33, 34, 95, 96
]
},
{
Expand Down
5 changes: 5 additions & 0 deletions src/modules/missionHelper/i18n/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"coastal_rescue_ocean": "Ocean Rescue Missions",
"fire": "Firefighting Mission",
"fire_support_specialization": "Chemical and Industrial Fire Missions (Specialization)",
"general_practitioner_transfer": "General Practitioner",
"mass_casualty_ambulance_specialization": "Mass Casualty Missions (Specialization)",
"police": "Police Mission",
"riot_police_specialization": "Police & Public Order Missions (Specialization)",
Expand Down Expand Up @@ -42,6 +43,7 @@
"fire_stations": "Fire Station | Fire Stations",
"fire_support_count": "Foam Extension | Foam Extensions",
"flood_equipment": "Flood Rescue Extension | Flood Rescue Extensions",
"general_practitioner": "GP Surgery",
"gw_hoehenrettung": "Rope Rescue Operator",
"hazard_response_ems": "HART Base | HART Bases",
"level_1_public_order": "Level 1 Public Order Officer",
Expand All @@ -60,8 +62,10 @@
"oneof_lf_riv_arff": "Fire Engines, RIVs or Major Foam Tenders",
"oneof_lf_rw": "Fire engines or Rescue Support Vehicles",
"oneof_lf_rw_dlk": "Fire engines, Rescue Support Vehicles or Aerial Appliance Trucks",
"oneof_paramedic_or_paramedic_advanced": "RRV or Specialist Paramedic RRV",
"oneof_police_swat": "Police Cars or ARVs",
"oneof_riv_arff": "RIVs or Major Foam Tenders",
"paramedic_advanced": "Specialist Paramedic RRV",
"personnel_educations": "Required Personnel Available",
"police_helicopter_stations": "Police Helicopter Station | Police Helicopter Stations",
"police_inspector": "Police Inspector",
Expand Down Expand Up @@ -120,6 +124,7 @@
"kdow_orgl": "Operational Team Leader | Operational Team Leaders",
"large_coastal_boat": "ILB | ILBs",
"mass_casualty_equipment": "Mass Casualty Equipment",
"midwife": "Community Midwife | Community Midwifes",
"mobile_air_vehicles": "Breathing Apparatus Support Unit | Breathing Apparatus Support Units",
"mobile_command_vehicles": "ICCU or Ambulance Control Unit | ICCUs or Ambulance Control Units",
"mud_rescue": "Mud Decontamination Unit | Mud Decontamination Units",
Expand Down

0 comments on commit 9420237

Please sign in to comment.