record and replay the burma shave easter egg

This commit is contained in:
2025-01-15 15:04:44 -06:00
parent 346ce7eb94
commit 4eb425cc91
3 changed files with 25 additions and 8 deletions

View File

@@ -640,6 +640,8 @@ void replay_action(Element& action) {
return;
}else if(t == "cancel_item_target"){
cancel_item_target(did_something, need_redraw, need_reprint);
}else if(t == "easter_egg"){
easter_egg(boost::lexical_cast<int>(action.GetText()));
}else if(t == "advance_time"){
// This is bad regardless of strictness, because visual changes may have occurred which won't get redrawn/reprinted
throw std::string { "Replay system internal error! advance_time() was supposed to be called by the last action, but wasn't: " } + _last_action_type;