Online quest mode, fixed bug when swimming from hull to another, monitors with editable text, choosing exe in content package, monster quests, misc bugfixes
This commit is contained in:
@@ -388,8 +388,12 @@ namespace Subsurface
|
||||
if (quest==null || quest.Completed)
|
||||
{
|
||||
if (quest !=null && quest.Completed) questsCompleted++;
|
||||
Random rand = new Random(GetHashCode() + questsCompleted);
|
||||
quest = Quest.LoadRandom(rand);
|
||||
|
||||
int seed = (int)locations[0].MapPosition.X + (int)locations[0].MapPosition.Y * 100;
|
||||
seed += (int)locations[1].MapPosition.X*10000 + (int)locations[1].MapPosition.Y * 1000000;
|
||||
|
||||
Random rand = new Random(seed + questsCompleted);
|
||||
quest = Quest.LoadRandom(locations, rand);
|
||||
}
|
||||
|
||||
return quest;
|
||||
|
||||
Reference in New Issue
Block a user