feat: port scenario action effects

This commit is contained in:
Hide_D committed 2026-07-30 19:00:04 +00:00
1 parent 7f31459385
commit c68d992046
39 files changed
+1131 -95

No files matched your search

@@ -37,7 +37,7 @@ const makeGeneral = (): General => ({
describe('typed general action events', () => {
it('folds synchronous event handlers in the supplied ref ownership order', () => {
const trace: string[] = [];
const names = ['nation', 'officer', 'domestic', 'war', 'personality', 'crew', 'inherit', 'item'];
const names = ['nation', 'officer', 'domestic', 'war', 'personality', 'crew', 'inherit', 'scenario', 'item'];
const modules: GeneralActionModule[] = names.map((name) => ({
eventHandlers: {
'strategy.succeeded': (_context, event) => {
@@ -56,8 +56,8 @@ describe('typed general action events', () => {
personality: modules[4]!,
crewType: modules[5]!,
inheritance: modules[6]!,
scenario: null,
items: [modules[7]!],
scenario: modules[7]!,
items: [modules[8]!],
});
const pipeline = new GeneralActionPipeline(stack);