From 4ed0d0c5cad21fa8bd0c4d7d5d97d744afa0342d Mon Sep 17 00:00:00 2001 From: chairmanpow Date: Sat, 3 Oct 2026 14:08:51 +0100 Subject: [PATCH] gossip: log each option's label, so a row's meaning is readable A count cannot say which row opens a shop, which is greyed, or which is TurtleWoW's `CUSTOM_MERCHANT_TRIGGER` marker. The labels are the server's own sentence; print them with the index, icon and coded flag beside each. Verified: cargo clippy --workspace --all-targets -- -D warnings reports nothing in this file. No test covers a debug! line. --- crates/benilla-app/src/ui_gossip/net.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/benilla-app/src/ui_gossip/net.rs b/crates/benilla-app/src/ui_gossip/net.rs index 3f792b46..d8d0a4de 100644 --- a/crates/benilla-app/src/ui_gossip/net.rs +++ b/crates/benilla-app/src/ui_gossip/net.rs @@ -101,6 +101,17 @@ fn gossip_menu( options.len(), quests.len() ); + // The labels, because a row's meaning is the server's sentence: a count cannot say which row + // opens a shop, which is greyed, or which is TurtleWoW's `CUSTOM_MERCHANT_TRIGGER` marker. + for opt in &options { + debug!( + "net: option {} icon {} coded {} — {:?}", + opt.index, + opt.icon, + u8::from(opt.coded), + opt.message + ); + } if gossip.open_menu(npc, text_id, options, quests, npc_gender) { let _ = net_commands .0