diff --git a/src/const/SoundConst.hx b/src/const/SoundConst.hx index 1fd069f..53cceef 100644 --- a/src/const/SoundConst.hx +++ b/src/const/SoundConst.hx @@ -9,6 +9,7 @@ class SoundConst { // misc sounds public static var misc = [ + 'game_win', 'music1', 'ambient_city1', 'ambient_region1', diff --git a/src/game/ConsoleGame.hx b/src/game/ConsoleGame.hx index 36a565a..66fbd9f 100644 --- a/src/game/ConsoleGame.hx +++ b/src/game/ConsoleGame.hx @@ -660,6 +660,8 @@ class ConsoleGame npc.areaKnown = true; npc.statusKnown = true; } + +// e.learnLocation(); } game.player.vars.npcEnabled = true; game.player.vars.searchEnabled = true; diff --git a/src/game/Game.hx b/src/game/Game.hx index 0f326ac..17d27e6 100644 --- a/src/game/Game.hx +++ b/src/game/Game.hx @@ -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 diff --git a/src/scenario/GoalsAlienCrashLanding.hx b/src/scenario/GoalsAlienCrashLanding.hx index cc84311..d0d6833 100644 --- a/src/scenario/GoalsAlienCrashLanding.hx +++ b/src/scenario/GoalsAlienCrashLanding.hx @@ -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);