Maus/Dudun 25->100 odds

What a confusing optimization
This commit is contained in:
Kurt 2022-11-25 14:49:51 -08:00
parent 00e174d240
commit ddef07a4c2
2 changed files with 8 additions and 8 deletions

View file

@ -96,10 +96,10 @@ public readonly record struct EvolutionMethod(EvolutionType Method, ushort Speci
// Version checks come in pairs, check for any pair match // Version checks come in pairs, check for any pair match
LevelUpVersion or LevelUpVersionDay or LevelUpVersionNight when ((pk.Version & 1) != (Argument & 1) && pk.IsUntraded) => skipChecks, LevelUpVersion or LevelUpVersionDay or LevelUpVersionNight when ((pk.Version & 1) != (Argument & 1) && pk.IsUntraded) => skipChecks,
LevelUpKnowMoveEC25 when pk.EncryptionConstant % 25 != 0 => skipChecks, LevelUpKnowMoveEC100 when pk.EncryptionConstant % 100 != 0 => skipChecks,
LevelUpKnowMoveECElse when pk.EncryptionConstant % 25 == 0 => skipChecks, LevelUpKnowMoveECElse when pk.EncryptionConstant % 100 == 0 => skipChecks,
LevelUpInBattleEC25 when pk.EncryptionConstant % 25 != 0 => skipChecks, LevelUpInBattleEC100 when pk.EncryptionConstant % 100 != 0 => skipChecks,
LevelUpInBattleECElse when pk.EncryptionConstant % 25 == 0 => skipChecks, LevelUpInBattleECElse when pk.EncryptionConstant % 100 == 0 => skipChecks,
_ => true, _ => true,
}; };

View file

@ -61,13 +61,13 @@ public enum EvolutionType : byte
LevelUpWalkStepsWith = 50, LevelUpWalkStepsWith = 50,
LevelUpUnionCircle = 51, // Palafin LevelUpUnionCircle = 51, // Palafin
LevelUpInBattleEC25 = 52, // Maushold-0 LevelUpInBattleEC100 = 52, // Maushold-0
LevelUpInBattleECElse = 53, // Maushold-1 LevelUpInBattleECElse = 53, // Maushold-1
LevelUpCollect999 = 54, // Gimmighoul formarg 999 LevelUpCollect999 = 54, // Gimmighoul formarg 999
LevelUpDefeatEquals = 55, // Kingambit LevelUpDefeatEquals = 55, // Kingambit
LevelUpUseMoveSpecial = 56, // Annihilape LevelUpUseMoveSpecial = 56, // Annihilape
LevelUpKnowMoveECElse = 57, // Dudunsparce-0 LevelUpKnowMoveECElse = 57, // Dudunsparce-0
LevelUpKnowMoveEC25 = 58, // Dudunsparce-1 LevelUpKnowMoveEC100 = 58, // Dudunsparce-1
LevelUpRecoilDamageMale = 59, // Basculegion-0 LevelUpRecoilDamageMale = 59, // Basculegion-0
LevelUpRecoilDamageFemale = 60, // Basculegion-1 LevelUpRecoilDamageFemale = 60, // Basculegion-1
@ -137,13 +137,13 @@ public static class EvolutionTypeExtensions
TowerOfWaters => false, TowerOfWaters => false,
LevelUpWalkStepsWith => true, LevelUpWalkStepsWith => true,
LevelUpUnionCircle => true, LevelUpUnionCircle => true,
LevelUpInBattleEC25 => true, LevelUpInBattleEC100 => true,
LevelUpInBattleECElse => true, LevelUpInBattleECElse => true,
LevelUpCollect999 => true, LevelUpCollect999 => true,
LevelUpDefeatEquals => true, LevelUpDefeatEquals => true,
LevelUpUseMoveSpecial => true, LevelUpUseMoveSpecial => true,
LevelUpKnowMoveECElse => true, LevelUpKnowMoveECElse => true,
LevelUpKnowMoveEC25 => true, LevelUpKnowMoveEC100 => true,
LevelUpRecoilDamageMale => true, LevelUpRecoilDamageMale => true,
LevelUpRecoilDamageFemale => true, LevelUpRecoilDamageFemale => true,
Hisui => false, // stubbed Hisui => false, // stubbed