Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Remove certain flame pins when flames are vanilla and charms are rand…
Browse files Browse the repository at this point in the history
…omized, bump version
  • Loading branch information
syyePhenomenol committed Mar 19, 2022
1 parent 9fd31cc commit f8d1e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
18 changes: 1 addition & 17 deletions MapModS/Data/DataLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,25 +247,9 @@ public static void SetUsedPinDefs()
//MapModS.Instance.Log(locationName);
//MapModS.Instance.Log(pinDef.locationPoolGroup);
}

List<GeneralizedPlacement> missingPlacements = new();

if (!RandomizerMod.RandomizerMod.RS.GenerationSettings.PoolSettings.GrimmkinFlames)
{
// These vanilla placements are not in Context.Vanilla for some reason. This is a temporary fix
missingPlacements = new()
{
new(null, RandomizerMod.RandomizerMod.RS.Context.LM.GetLogicDef("Grimmkin_Flame-City_Storerooms")),
new(null, RandomizerMod.RandomizerMod.RS.Context.LM.GetLogicDef("Grimmkin_Flame-Greenpath")),
new(null, RandomizerMod.RandomizerMod.RS.Context.LM.GetLogicDef("Grimmkin_Flame-Crystal_Peak")),
new(null, RandomizerMod.RandomizerMod.RS.Context.LM.GetLogicDef("Grimmkin_Flame-King's_Pass")),
new(null, RandomizerMod.RandomizerMod.RS.Context.LM.GetLogicDef("Grimmkin_Flame-Resting_Grounds")),
new(null, RandomizerMod.RandomizerMod.RS.Context.LM.GetLogicDef("Grimmkin_Flame-Kingdom's_Edge"))
};
}

// Vanilla placements
foreach (GeneralizedPlacement placement in RandomizerMod.RandomizerMod.RS.Context.Vanilla.Concat(missingPlacements))
foreach (GeneralizedPlacement placement in RandomizerMod.RandomizerMod.RS.Context.Vanilla)
{
if (RandomizerMod.RandomizerData.Data.IsLocation(placement.Location.Name)
&& !RandomizerMod.RandomizerMod.RS.TrackerData.clearedLocations.Contains(placement.Location.Name)
Expand Down
2 changes: 1 addition & 1 deletion MapModS/MapModS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MapModS : Mod, ILocalSettings<LocalSettings>, IGlobalSettings<Globa
{
public static MapModS Instance;

public override string GetVersion() => "2.3.1";
public override string GetVersion() => "2.3.2";

public override int LoadPriority() => 10;

Expand Down

0 comments on commit f8d1e82

Please sign in to comment.