first commit
This commit is contained in:
19
fog/libs/api-interfaces/src/lib/encounter.ts
Executable file
19
fog/libs/api-interfaces/src/lib/encounter.ts
Executable file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user