mirror of
https://github.com/kwsch/pkNX.git
synced 2026-04-25 07:16:51 -05:00
Update EncounterDumperSV.cs
This commit is contained in:
parent
ef212f3b82
commit
fbe49eb698
|
|
@ -160,7 +160,7 @@ bool FindArea(AreaType type)
|
|||
return false;
|
||||
}
|
||||
|
||||
WriteFixedSpawn(specNamesInternal, moveNames, placeNameMap, gw, tableKey, i, entry, appearAreas, points);
|
||||
WriteFixedSpawn(specNamesInternal, moveNames, placeNameMap, gw, tableKey, i, entry, appearAreas);
|
||||
|
||||
// Serialize
|
||||
if (entry.PokeGeneration.GenerationPattern == GenerationPattern.Watch)
|
||||
|
|
@ -220,7 +220,7 @@ bool FindArea(AreaType type)
|
|||
var entry = fsymData.Table[i];
|
||||
var tableKey = entry.TableKey;
|
||||
var appearAreas = new List<AppearTuple> { new("PLACENAME_a_w23_d10_01", "a_w23_d10_subarea", 0, new()) };
|
||||
WriteFixedSpawn(specNamesInternal, moveNames, placeNameMap, gw, tableKey, i, entry, appearAreas, []);
|
||||
WriteFixedSpawn(specNamesInternal, moveNames, placeNameMap, gw, tableKey, i, entry, appearAreas);
|
||||
WriteFixedSymbol(serialized, entry, [196]);
|
||||
}
|
||||
}
|
||||
|
|
@ -429,7 +429,7 @@ void ProcessAreas(PaldeaFieldIndex fieldIndex)
|
|||
}
|
||||
|
||||
private static void WriteFixedSpawn(IReadOnlyList<string> specNamesInternal, IReadOnlyList<string> moveNames, Dictionary<string, (string Name, int Index)> placeNameMap,
|
||||
StreamWriter gw, string tableKey, int i, FixedSymbolTable entry, List<AppearTuple> appearAreas, List<PaldeaFixedSymbolPoint> points)
|
||||
StreamWriter gw, string tableKey, int i, FixedSymbolTable entry, List<AppearTuple> appearAreas)
|
||||
{
|
||||
gw.WriteLine("===");
|
||||
gw.WriteLine($"{tableKey} - {i}");
|
||||
|
|
@ -469,18 +469,14 @@ void ProcessAreas(PaldeaFieldIndex fieldIndex)
|
|||
gw.WriteLine($" Scale: {Humanize(pd.ScaleType, pd.ScaleValue)}");
|
||||
gw.WriteLine($" GemType: {(int)pd.GemType}");
|
||||
|
||||
gw.WriteLine(" Points:");
|
||||
foreach (var point in points)
|
||||
{
|
||||
gw.WriteLine($" - ({point.Position.X}, {point.Position.Y}, {point.Position.Z})");
|
||||
}
|
||||
|
||||
gw.WriteLine(" Areas:");
|
||||
foreach (var area in appearAreas)
|
||||
{
|
||||
var loc = area.PlaceName;
|
||||
(string name, int index) = placeNameMap[loc];
|
||||
gw.WriteLine($" - {area.PlaceName} - {loc} - {name} ({index})");
|
||||
var point = area.Point;
|
||||
gw.WriteLine($" @ ({point.X}, {point.Y}, {point.Z})");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user