Billing docs name plan bit 3 the Internet Gaming Room (IGR) plan (#1731)
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user