Skip to content

Commit

Permalink
sound on game victory
Browse files Browse the repository at this point in the history
  • Loading branch information
infidel- committed Aug 10, 2019
1 parent 10b8893 commit 0eb80f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/const/SoundConst.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class SoundConst
{
// misc sounds
public static var misc = [
'game_win',
'music1',
'ambient_city1',
'ambient_region1',
Expand Down
2 changes: 2 additions & 0 deletions src/game/ConsoleGame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ class ConsoleGame
npc.areaKnown = true;
npc.statusKnown = true;
}

// e.learnLocation();
}
game.player.vars.npcEnabled = true;
game.player.vars.searchEnabled = true;
Expand Down
1 change: 1 addition & 0 deletions src/game/Game.hx
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ class Game
{
log('You have won the game!');
finishText = 'You have won the game.';
scene.soundManager.playSound('game_win', true);
}

// add to event queue
Expand Down
2 changes: 2 additions & 0 deletions src/scenario/GoalsAlienCrashLanding.hx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ class GoalsAlienCrashLanding
npc.jobKnown = true;
npc.type = 'civilian';
npc.area = area;
npc.areaKnown = true;
area.npc.add(npc);
game.debug('' + npc);

// store npc id for later use
game.timeline.setVar('missionTargetID', npc.id);
Expand Down

0 comments on commit 0eb80f8

Please sign in to comment.