mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-19 20:20:19 +02:00
fix(gen2): honor battle party grid navigation
This commit is contained in:
@@ -397,7 +397,8 @@ local GEN2_HOOKS = {
|
||||
"world.tod", "map.palette", "fieldmove.eligibility",
|
||||
-- menus and the battle intro
|
||||
"ui.start_menu.items", "ui.title_menu.items", "ui.options.rows",
|
||||
"ui.party.submenu", "ui.naming.grid", "ui.pc.items", "ui.list_menu",
|
||||
"ui.party.submenu", "ui.party.grid_navigation", "ui.naming.grid",
|
||||
"ui.pc.items", "ui.list_menu",
|
||||
"transition.style",
|
||||
-- battle
|
||||
"battle.damage", "battle.crit", "battle.accuracy", "battle.turn_order",
|
||||
|
||||
@@ -14,6 +14,7 @@ local NamingScreen = require("src.ui.NamingScreen")
|
||||
local TextBox = require("src.render.TextBox")
|
||||
local ChoiceBox = require("src.ui.ChoiceBox")
|
||||
local PartyMenu = require("src.ui.PartyMenu")
|
||||
local Gen2PartyMenu = require("src.ui.gen2.PartyMenu")
|
||||
local Player = require("src.world.Player")
|
||||
local Music = require("src.core.Music")
|
||||
|
||||
@@ -295,6 +296,16 @@ do
|
||||
menu:update(0)
|
||||
check(menu.index == 4,
|
||||
"removing the hook restores native list navigation immediately")
|
||||
|
||||
local gold = Gen2PartyMenu.new(game, { battle = true })
|
||||
unsub = wrap("ui.party.grid_navigation", function() return true end)
|
||||
gold:update(0)
|
||||
check(gold.index == 3,
|
||||
"a Gold battle party can follow the same companion grid")
|
||||
unsub()
|
||||
gold:update(0)
|
||||
check(gold.index == 4,
|
||||
"Gold restores native party list navigation without the hook")
|
||||
end
|
||||
|
||||
-- ------- music.volume (distance / indoor muffling)
|
||||
|
||||
Reference in New Issue
Block a user