20 lines
481 B
TypeScript
20 lines
481 B
TypeScript
|
|
import { MissionDifficulty, MissionState } from './mission';
|
||
|
|
import { SurvivorStats } from './survivor';
|
||
|
|
|
||
|
|
export interface EncounterResult {
|
||
|
|
outcome: 'success' | 'injury' | 'sacrifice';
|
||
|
|
text: string;
|
||
|
|
successChance: number;
|
||
|
|
roll: number;
|
||
|
|
nextState: MissionState;
|
||
|
|
nextStats: SurvivorStats;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ResolveEncounterInput {
|
||
|
|
stats: SurvivorStats;
|
||
|
|
difficulty: MissionDifficulty;
|
||
|
|
perkIds: string[];
|
||
|
|
tickIndex: number;
|
||
|
|
seed?: number;
|
||
|
|
}
|