Quests, new sounds, explosives, bugfixes, asdfasdf

This commit is contained in:
Regalis
2015-07-29 23:40:26 +03:00
parent 7155f1cef0
commit 5d0a453e23
81 changed files with 1374 additions and 819 deletions
+13 -4
View File
@@ -18,6 +18,8 @@ namespace Subsurface
private GUIButton endShiftButton;
public readonly CargoManager CargoManager;
private Quest quest;
public Map map;
@@ -26,6 +28,12 @@ namespace Subsurface
private bool savedOnStart;
public int Money
{
get { return crewManager.Money; }
set { crewManager.Money = value; }
}
public SinglePlayerMode(GameModePreset preset)
: base(preset)
{
@@ -78,13 +86,15 @@ namespace Subsurface
public void GenerateMap(string seed)
{
map = new Map(seed.GetHashCode(), 500);
map = new Map(seed, 500);
}
public override void Start(TimeSpan duration)
{
CargoManager.CreateItems();
Game1.GameSession.Map.SelectedConnection.Quest.Start(Level.Loaded);
if (!savedOnStart)
{
SaveUtil.SaveGame(Game1.GameSession.SavePath);
@@ -166,6 +176,8 @@ namespace Subsurface
{
base.End(endMessage);
quest.End();
StringBuilder sb = new StringBuilder();
List<Character> casualties = crewManager.characters.FindAll(c => c.IsDead);
@@ -208,9 +220,6 @@ namespace Subsurface
Character.CharacterList[i].Remove();
}
//SaveUtil.SaveGame(Game1.GameSession.SavePath);
Game1.GameSession.EndShift("");
}