From 0d7c4f06d05dd31fa91a792f17ec4dfa56ee201f Mon Sep 17 00:00:00 2001 From: Sam Sung <51686767+samwhosung@users.noreply.github.com> Date: Sat, 17 Oct 2026 06:16:18 +0700 Subject: [PATCH] Billing docs name plan bit 3 the Internet Gaming Room (IGR) plan (#1731) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The billing code called plan flag 0x08 an internet-cafe plan. The client's own name for it is IGR (`IGR_BILLING_NAG_DIALOG`), Internet Gaming Room, as benilla-re now says; the docs and one test name follow. No behaviour changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 5.5 --- crates/benilla-app/src/ui_billing.rs | 6 +++--- crates/benilla-protocol/src/messages/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/benilla-app/src/ui_billing.rs b/crates/benilla-app/src/ui_billing.rs index c502e74bc..7ef89d4a7 100644 --- a/crates/benilla-app/src/ui_billing.rs +++ b/crates/benilla-app/src/ui_billing.rs @@ -2,7 +2,7 @@ //! (`CGGameUI::InitializeGame`, `0x48f636`-`0x48f679`), and each frame of the in-game interface //! polls it (`CGGameUI::Update`, `0x495679`-`0x495826`): `BILLING_NAG_DIALOG` with the minutes left //! once they are 30 or fewer, and, while they are, a `BILLING_NAG_WARNING` system line on the second -//! frame and then at each 5-minute mark, each minute from 5. An internet-cafe plan gets +//! frame and then at each 5-minute mark, each minute from 5. An Internet Gaming Room (IGR) plan gets //! `IGR_BILLING_NAG_DIALOG` once, at 600 or fewer, and no line. use benilla_protocol::messages::Billing; @@ -299,9 +299,9 @@ mod tests { assert_ne!(w.deadline, 0, "72 hours exactly arms"); } - /// An internet-cafe plan: its own dialog once, at 600 minutes or fewer, and no lines. + /// An Internet Gaming Room (IGR) plan: its own dialog once, at 600 minutes or fewer, and no lines. #[test] - fn an_internet_cafe_plan_gets_its_dialog_once() { + fn an_igr_plan_gets_its_dialog_once() { let mut w = PlayTimeWarning::default(); w.arm(billing(602, Billing::IGR), 0); let seen = run(&mut w, 1, 602 * MINUTE_MS + 1_000, 997, Billing::IGR); diff --git a/crates/benilla-protocol/src/messages/mod.rs b/crates/benilla-protocol/src/messages/mod.rs index 1760f288b..ad7cf67cc 100644 --- a/crates/benilla-protocol/src/messages/mod.rs +++ b/crates/benilla-protocol/src/messages/mod.rs @@ -312,7 +312,7 @@ impl Billing { /// A recurring subscription: the play-time warning never arms (`0x48f654`), and the glue's /// `GetBillingTimeRemaining` answers 0 (`0x46dc0a`). vmangos `BILLING_FLAG_RECURRING`. pub const RECURRING: u8 = 0x02; - /// An internet-cafe plan: its warning is `IGR_BILLING_NAG_DIALOG`, not the minutes + /// An Internet Gaming Room (IGR) plan: its warning is `IGR_BILLING_NAG_DIALOG`, not the minutes /// (`0x4956cb`). vmangos `BILLING_FLAG_IGR`. pub const IGR: u8 = 0x08; }