mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
temp fix for some fixed h/w statics
This commit is contained in:
parent
fc3f142d16
commit
65130a9ae1
1 changed files with 12 additions and 0 deletions
|
@ -32,6 +32,18 @@ public sealed record EncounterStatic8a(GameVersion Version) : EncounterStatic(Ve
|
|||
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
||||
{
|
||||
base.ApplyDetails(sav, criteria, pk);
|
||||
if (pk is IScaledSize s)
|
||||
{
|
||||
if (HasFixedHeight)
|
||||
s.HeightScalar = HeightScalar;
|
||||
if (HasFixedWeight)
|
||||
s.WeightScalar = WeightScalar;
|
||||
if (pk is IScaledSizeValue v)
|
||||
{
|
||||
v.ResetHeight();
|
||||
v.ResetWeight();
|
||||
}
|
||||
}
|
||||
|
||||
if (IsAlpha && pk is IAlpha a)
|
||||
a.IsAlpha = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue