scroll.server/crates/logic/src/battle
WiseDev dbbd162bed regenerate mana on the server
at type 0 the client stopped working the elixir bar out for itself and
started reading it from the summoner in our snapshot - which never
moved, so the bar sat where the opening state left it and no card could
be afforded.

the rule from LogicSummoner::tick: an accumulator gains five thousand a
tick and one mana is granted for every MANA_REGEN_MS * 100 / MAX_MANA it
holds, the remainder carried rather than dropped. that works out at
2.8 seconds a mana with the shipped globals, and halves in the last
sixty seconds through MANA_REGEN_MS_END, which is the speed-up the game
has always had.
2026-08-23 13:53:41 +03:00
..
logic_battle.rs walk units around the river instead of through it 2026-08-23 13:23:58 +03:00
logic_battle_event.rs refill the hand, and decode SendBattleEventMessage 2026-08-23 11:47:25 +03:00
logic_character.rs refill the hand, and decode SendBattleEventMessage 2026-08-23 11:47:25 +03:00
logic_component.rs encode the movement component and push snapshots 2026-08-23 13:14:23 +03:00
logic_game_mode.rs write the tick the client writes 2026-08-23 13:47:34 +03:00
logic_game_object.rs simulate movement, targeting and damage on the server 2026-08-23 13:10:30 +03:00
logic_game_object_manager.rs build and send the battle sector state 2026-08-23 10:24:20 +03:00
logic_game_object_ref.rs battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00
logic_pathfinder.rs walk units around the river instead of through it 2026-08-23 13:23:58 +03:00
logic_simulation.rs regenerate mana on the server 2026-08-23 13:53:41 +03:00
logic_tilemap.rs walk units around the river instead of through it 2026-08-23 13:23:58 +03:00
logic_time.rs battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00
logic_tutorial_manager.rs battle model: LogicBattle, the object manager and BattleResultMessage 2026-08-23 10:00:16 +03:00
mod.rs walk units around the river instead of through it 2026-08-23 13:23:58 +03:00
verify.rs matchmake two players before falling back to a bot 2026-08-23 13:19:38 +03:00