WIP CrashReporter, misc refactoring
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Subsurface
|
||||
Vector2 position = (randomWayPoint == null) ? Vector2.Zero : randomWayPoint.SimPosition;
|
||||
position.X += Rand.Range(-0.5f, 0.5f);
|
||||
position.Y += Rand.Range(-0.5f, 0.5f);
|
||||
monsters[i] = new Character(characterFile, position);
|
||||
monsters[i] = new AICharacter(characterFile, position);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace Subsurface
|
||||
|
||||
public void GiveReward()
|
||||
{
|
||||
var mode = Game1.GameSession.gameMode as SinglePlayerMode;
|
||||
var mode = GameMain.GameSession.gameMode as SinglePlayerMode;
|
||||
mode.Money += reward;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(successMessage))
|
||||
|
||||
@@ -41,9 +41,9 @@ namespace Subsurface
|
||||
|
||||
public Task(float priority, string name)
|
||||
{
|
||||
if (Game1.GameSession==null || Game1.GameSession.taskManager == null) return;
|
||||
if (GameMain.GameSession==null || GameMain.GameSession.taskManager == null) return;
|
||||
|
||||
taskManager = Game1.GameSession.taskManager;
|
||||
taskManager = GameMain.GameSession.taskManager;
|
||||
musicType = "repair";
|
||||
this.priority = priority;
|
||||
this.name = name;
|
||||
|
||||
Reference in New Issue
Block a user