CLOSES #1396, CLOSES #1398, CLOSES #1400, CLOSES #1401, CLOSES #1406, CLOSES #1407, CLOSES #1411, CLOSES #1413, CLOSES #1415, CLOSES #1416, CLOSES #1417, CLOSES #1419, CLOSES #1421, CLOSES #1422, CLOSES #1423, CLOSES #1424, CLOSES #1425, CLOSES #1427, CLOSES #1428, CLOSES #1429, CLOSES #1431, CLOSES #1432, CLOSES #1433, CLOSES #1435, CLOSES #1437, CLOSES #1440, CLOSES #1441, CLOSES #1442, CLOSES #1443, CLOSES #1447, CLOSES #1449, CLOSES #1456, CLOSES #1464, CLOSES #1465, CLOSES #1468, CLOSES #1469, CLOSES #1470

This commit is contained in:
bryanthaboi
2026-08-17 10:15:06 -04:00
parent 3cca70608f
commit 45519ad550
61 changed files with 2481 additions and 255 deletions
@@ -47,12 +47,32 @@ do
T.eq(feet.tile, (0x80 - 6 * 2) - 49, "2ROW base")
end
-- engine/battle_anims/anim_commands.asm:317
do
local runner = AnimRunner.new({})
runner:start(nil)
AnimRunner.COMMANDS.battlergfx_1row(runner)
local head = findLoaded(runner, "BATTLE_ANIM_GFX_PLAYERHEAD")
local feet = findLoaded(runner, "BATTLE_ANIM_GFX_ENEMYFEET")
T.eq(head and head.battler, "enemy", "the script command routes the same way")
T.eq(head.rows, 2, "$da's macro says 1row, its jumptable slot says _2Row")
T.eq(head.tiles, 14, "two enemy rows")
T.eq(head.tile, (0x80 - 6 * 2 - 7 * 2) - 49, "at the _2Row base")
T.eq(feet.tiles, 12, "two player rows")
T.eq(feet.tile, (0x80 - 6 * 2) - 49, "at the _2Row base")
end
do
local runner = AnimRunner.new({})
runner:start(nil)
AnimRunner.COMMANDS.battlergfx_2row(runner)
local head = findLoaded(runner, "BATTLE_ANIM_GFX_PLAYERHEAD")
local feet = findLoaded(runner, "BATTLE_ANIM_GFX_ENEMYFEET")
T.eq(head.rows, 1, "$d9's macro says 2row, its jumptable slot says _1Row")
T.eq(head.tiles, 7, "one enemy row")
T.eq(head.tile, (0x80 - 6 - 7) - 49, "at the _1Row base")
T.eq(feet.tiles, 6, "one player row")
T.eq(feet.tile, (0x80 - 6) - 49, "at the _1Row base")
end
T.finish("gen2 battler gfx row attribution bug 1231")
+2 -2
View File
@@ -151,8 +151,8 @@ do
local fresh = { mods = {} }
SaveData.setModEnabled(fresh, "b", true, "gold")
eq(fresh.modsByVersion.gold.b, nil,
"no shared flag reads as enabled, so agreeing with it stores nothing")
eq(fresh.modsByVersion.gold.b, true,
"with no shared flag the answer is stored, not dropped against an assumed default")
end
do