Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Added fighter sweep task story description.
Browse files Browse the repository at this point in the history
  • Loading branch information
simast committed Apr 3, 2016
1 parent 2dd54fa commit 476aa2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/tasks/sweep.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: "Fighter sweep",
title: "Fighter sweep from {{airfield}}",
story: [
"TODO"
"New orders just came in! A flight of {{{plane}}}s is to seek out and destroy any enemy aircraft or targets of opportunity in an area {{target.air}}. Our ground staff has wished us the best of luck and a safe return, while {{{rank.commander}}} {{name.last}}, our commander, has reminded us to maintain strict discipline, stay calm and to keep our eyes open for any enemy contacts!"
],
time: "day",
planes: {
Expand Down
3 changes: 3 additions & 0 deletions src/make/task.sweep.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ module.exports = function makeTaskSweep(flight) {
sweepPoints.push(makeValidPoint(pointVector, side.sideVector));
}

// Register base two fighter sweep reference points as flight target
flight.target = sweepPoints.slice();

// Register ingress/egress points
sweepPoints.unshift(ingressPoint);
sweepPoints.push(egressPoint);
Expand Down

0 comments on commit 476aa2b

Please sign in to comment.