Skip to content

Commit

Permalink
Improved cold and dark text
Browse files Browse the repository at this point in the history
  • Loading branch information
fboes committed Nov 14, 2024
1 parent ab6380c commit cb81fde
Show file tree
Hide file tree
Showing 6 changed files with 711 additions and 746 deletions.
358 changes: 174 additions & 184 deletions data/HEMS-lueneburg-ec135/custom_missions_user.tmc

Large diffs are not rendered by default.

354 changes: 172 additions & 182 deletions data/HEMS-lueneburg-uh60/custom_missions_user.tmc

Large diffs are not rendered by default.

370 changes: 180 additions & 190 deletions data/HEMS-san_francisco-ec135/custom_missions_user.tmc

Large diffs are not rendered by default.

366 changes: 178 additions & 188 deletions data/HEMS-san_francisco-uh60/custom_missions_user.tmc

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion dist/lib/general/AeroflyMissionDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export default class AeroflyMissionDescription {
weatherAdjectivesString = ` ${this.#getAorAn(weatherAdjectives[0])} ${weatherAdjectives.join(", ")}`;
}

return `It is${weatherAdjectivesString} ${this.timeOfDay} with ${this.wind}.`;
let description = `It is${weatherAdjectivesString} ${this.timeOfDay} with ${this.wind}.`;
if (this.#mission.flightSetting === "cold_and_dark") {
description += ` Your aircraft is cold and dark.`;
}

return description;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/hems/Scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Scenario {

const describer = new AeroflyMissionDescription(this.mission);
this.mission.description = describer.description + "\n" + this.mission.description;
this.mission.tags.concat(describer.tags);
this.mission.tags = this.mission.tags.concat(describer.tags);
this.mission.distance = describer.distance;
this.mission.duration = describer.calculateDuration(this.aircraft.cruiseSpeed);
}
Expand Down

0 comments on commit cb81fde

Please sign in to comment.