hold the bot back until the intro is over

the bot's first card was due on tick one, so it was already walking
while the opening countdown was still on screen - reaching the bridge
and swinging at nothing before the battle had visibly started. it waits
six seconds now before opening, and keeps its four to eleven second
rhythm after that.
This commit is contained in:
WiseDev 2026-08-23 14:13:27 +03:00
parent bab24f2295
commit a355b77514
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ impl BattleSession {
taunts, taunts,
next_bot_emote, next_bot_emote,
next_snapshot: SNAPSHOT_INTERVAL_TICKS, next_snapshot: SNAPSHOT_INTERVAL_TICKS,
next_bot_play: 0, next_bot_play: crate::bot::BOT_OPENING_DELAY_SECONDS * BATTLE_TICKS_PER_SECOND,
pushed_snapshots: 0, pushed_snapshots: 0,
pending_bot_play: None, pending_bot_play: None,
} }

View file

@ -5,6 +5,7 @@ pub const BOT_NAME: &str = "Bot";
pub const TAUNT_MENU_COLUMN: &str = "TauntMenu"; pub const TAUNT_MENU_COLUMN: &str = "TauntMenu";
pub const BOT_EMOTE_MIN_SECONDS: i32 = 12; pub const BOT_EMOTE_MIN_SECONDS: i32 = 12;
pub const BOT_EMOTE_MAX_SECONDS: i32 = 30; pub const BOT_EMOTE_MAX_SECONDS: i32 = 30;
pub const BOT_OPENING_DELAY_SECONDS: i32 = 6;
pub const BOT_PLAY_MIN_SECONDS: i32 = 4; pub const BOT_PLAY_MIN_SECONDS: i32 = 4;
pub const BOT_PLAY_MAX_SECONDS: i32 = 11; pub const BOT_PLAY_MAX_SECONDS: i32 = 11;
pub const BOT_OWNER_INDEX: i32 = 1; pub const BOT_OWNER_INDEX: i32 = 1;