initial commit

This commit is contained in:
bryanthaboi
2026-07-17 20:30:02 -04:00
commit a5d2e77e7d
298 changed files with 100561 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
-- Default ruleset: preserve Gen 1 behavior, including the famous quirks.
return {
name = "gen1_faithful",
-- accuracy roll is rand(0..255) < floor(acc*255/100): a 100%-accurate
-- move still misses on a roll of 255 (the 1/256 miss)
oneIn256Miss = true,
-- critical hits use base speed (not current speed) and ignore stat stages
critUsesBaseSpeed = true,
critIgnoresStages = true,
-- damage random factor r in [217,255], damage = damage * r / 255
randMin = 217,
randMax = 255,
-- Focus Energy famously QUARTERS the crit rate instead of x4
focusEnergyBug = true,
}
+12
View File
@@ -0,0 +1,12 @@
-- Optional ruleset that removes the most notorious Gen 1 quirks while
-- keeping the same formulas. Not the default.
return {
name = "modern_clean",
oneIn256Miss = false,
critUsesBaseSpeed = true,
critIgnoresStages = false,
randMin = 217,
randMax = 255,
focusEnergyBug = false,
}