scroll.server/crates/game-service/src
WiseDev b8c12cd00b count a spawned character up to its deploy time
first, a correction: the towers do have models. the king tower shows its
cannon and the princess towers carry health bars, and health bars are
built inside Character::Character. so objects from the opening state get
their models after all, and the listener theory that sent me around the
houses was wrong. only troops are missing.

the difference is one field. LogicCharacter::getDeployT is

  clamp(DeployTime - this[47], 0, DeployTime)

and field 47 is our deploy_timer, which we set to zero and never moved.
so every troop reads as still coming down, for the whole battle: it
keeps the spawn effect and the sound the user could hear, and never
gets a body. towers are unaffected - their deploy time is zero.

the counter now climbs a tick at a time, the way the client's own
simulation would, and a moving character starts in state 1 as
LogicCharacter::setDefaultState leaves it.

widening the push interval to ten seconds changed nothing, so the
tear-down theory is out too.
2026-08-23 16:40:47 +03:00
..
shop stop minting a new account on every login 2026-08-23 08:54:43 +03:00
store fix chest shop prices and gate the free chest 2026-08-23 09:02:49 +03:00
battle.rs count a spawned character up to its deploy time 2026-08-23 16:40:47 +03:00
battle_session.rs make the snapshot interval settable to test the model theory 2026-08-23 16:34:07 +03:00
bot.rs let the bot borrow the player's deck to split the model question 2026-08-23 15:28:52 +03:00
catalog.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
config.rs roll chest loot from the csv instead of a fixed config 2026-08-23 09:30:38 +03:00
home.rs match against a bot player instead of an npc 2026-08-23 11:28:17 +03:00
home_mode.rs resume the home logic when the player comes back 2026-08-23 11:56:04 +03:00
lib.rs matchmake two players before falling back to a bot 2026-08-23 13:19:38 +03:00
main.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
matchmaker.rs matchmake two players before falling back to a bot 2026-08-23 13:19:38 +03:00
rewards.rs roll chest loot from the csv instead of a fixed config 2026-08-23 09:30:38 +03:00
service.rs give everything but the summoners a new id once the screen is up 2026-08-23 14:56:39 +03:00
time.rs move all crates into crates/, glob members 2026-08-23 08:15:45 +03:00
wire.rs push messages to the client during a battle 2026-08-23 13:03:07 +03:00