Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lusamine committed Oct 25, 2022
1 parent 1621dc7 commit 8ce8d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PermuteMMO.Lib/Generation/SpawnGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static void GeneratePokemon(EntityResult result, in ulong seed, in int sh
PersonalInfo.RatioMagicGenderless => 2,
PersonalInfo.RatioMagicFemale => 1,
PersonalInfo.RatioMagicMale => 0,
_ => (int)rng.NextInt(252) + 1 < genderRatio ? (byte)1: (byte)0,
_ => (int)rng.NextInt(253) + 1 < genderRatio ? (byte)1: (byte)0,
};
result.Nature = (byte)rng.NextInt(25);

Expand Down
2 changes: 1 addition & 1 deletion PermuteMMO.Lib/Util/SpawnInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed record SpawnInfo(SpawnCount Count, SpawnSet Set, SpawnType Type, S
private static readonly SpawnCount Outbreak = new(4, 4);

private SpawnInfo? Next { get; set; } = Next;
public bool NoMultiAlpha => Type is SpawnType.Regular;
public bool NoMultiAlpha => Type is SpawnType.Regular or SpawnType.Outbreak;
public bool AllowGhosts => Type is not SpawnType.Regular;
public bool RetainExisting => Type is SpawnType.Regular;

Expand Down

0 comments on commit 8ce8d33

Please sign in to comment.