Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno458 committed Jul 26, 2022
2 parents a16c91e + bb9020e commit 8524d57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions TsRandomizer/Extensions/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public static List<ItemIdentifier> GetAllLoot()
&& o != EInventoryUseItemType.HistoricalDocuments
&& o != EInventoryUseItemType.FoodSynth
&& o != EInventoryUseItemType.GalaxyStone
&& o != EInventoryUseItemType.PlaceHolderItem1
)
.ToArray();
var equipment =
Expand Down
5 changes: 5 additions & 0 deletions TsRandomizer/LevelObjects/RoomTriggers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,14 @@ static RoomTrigger()
SpawnBoss(level, seedOptions, TargetBossId);
}));
RoomTriggers.Add(new RoomTrigger(1, 0, (level, itemLocation, seedOptions, gameSettings, screenManager) => {
// Inverted mode triggers
if (!seedOptions.Inverted || level.GameSave.GetSaveBool("TSRandomizerHasTeleportedPlayer")) return;

level.GameSave.SetValue("TSRandomizerHasTeleportedPlayer", true);
level.GameSave.SetValue("HasUsedCityTS", true);
level.GameSave.SetCutsceneTriggered("City1_Frame", true);
level.GameSave.SetCutsceneTriggered("City2_Spindle", true);
level.GameSave.SetCutsceneTriggered("City3_Warp", true);
level.GameSave.SetCutsceneTriggered("LakeDesolation1_Entrance", true); // Fixes music when returning to Lake Desolation later

level.RequestChangeLevel(new LevelChangeRequest { LevelID = 3, RoomID = 28 }); // Waterfall cutscene
Expand Down

0 comments on commit 8524d57

Please sign in to comment.