Torches are now flipped, but next is that same crash.

This commit is contained in:
Zed A. Shaw 2026-02-13 11:10:13 -05:00
parent 0e8b661273
commit 2484802d93
7 changed files with 23 additions and 32 deletions

View file

@ -41,7 +41,7 @@ namespace boss {
using enum game::Event;
switch(ev) {
case BOSS_START:
case COMBAT_START:
$ui.status(L"PLAYER REQUESTS", L"COMMIT");
$battle.ap_refresh();
state(State::PLAYER_REQUESTS);
@ -56,7 +56,7 @@ namespace boss {
switch(ev) {
// this is only if using the debug X key to skip it
case BOSS_START:
case BOSS_END:
state(State::END);
break;
case COMBAT_START:
@ -72,8 +72,6 @@ namespace boss {
fmt::println("NO MORE ACTION!");
}
break;
case TICK:
break; // ignore tick
default:
break;
}
@ -84,7 +82,7 @@ namespace boss {
switch(ev) {
// this is only if using the debug X key to skip it
case BOSS_START:
case BOSS_END:
state(State::END);
break;
case COMBAT_START:
@ -242,7 +240,7 @@ namespace boss {
switch($router.scancode) {
// REALLY? just go to state end or use another event
case KEY::X:
event(game::Event::BOSS_START, {});
event(game::Event::BOSS_END, {});
break;
default:
fmt::println("key press!");