narrat 2.6.3 → 2.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/narrat.es.js +384 -363
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +37 -37
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +1 -0
- package/dist/stores/skills.d.ts +1 -0
- package/dist/vm/commands/choice.d.ts +2 -1
- package/dist/vm/commands/skill-commands.d.ts +4 -1
- package/dist/vm/vm-helpers.d.ts +1 -0
- package/package.json +1 -1
|
@@ -642,6 +642,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
642
642
|
setupSkillCheck(skillCheck: import("./skills").SkillCheckState, id: string): void;
|
|
643
643
|
passSkillCheck(skillCheckId: string, hide?: boolean | undefined): void;
|
|
644
644
|
failSkillCheck(skillCheckId: string, hide?: boolean | undefined): void;
|
|
645
|
+
resetSkillCheck(skillCheckId: string): void;
|
|
645
646
|
generateSaveData(): import("./skills").Skills;
|
|
646
647
|
getSkillCheck(id: string): import("./skills").SkillCheckState;
|
|
647
648
|
createSkillCheckState(): import("./skills").SkillCheckState;
|
package/dist/stores/skills.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const useSkills: import("pinia").StoreDefinition<"skills", Skills
|
|
|
23
23
|
setupSkillCheck(skillCheck: SkillCheckState, id: string): void;
|
|
24
24
|
passSkillCheck(skillCheckId: string, hide?: boolean): void;
|
|
25
25
|
failSkillCheck(skillCheckId: string, hide?: boolean): void;
|
|
26
|
+
resetSkillCheck(skillCheckId: string): void;
|
|
26
27
|
generateSaveData(): SkillsSave;
|
|
27
28
|
getSkillCheck(id: string): SkillCheckState;
|
|
28
29
|
createSkillCheckState(): SkillCheckState;
|
|
@@ -29,7 +29,8 @@ export interface ChoicePromptReturnValue {
|
|
|
29
29
|
skillId: string;
|
|
30
30
|
skillCheckId: string;
|
|
31
31
|
difficulty: number;
|
|
32
|
-
hideAfterRoll
|
|
32
|
+
hideAfterRoll?: boolean;
|
|
33
|
+
repeatable?: boolean;
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export declare type ChoicePromptReturn = ChoicePromptReturnValue;
|
|
@@ -25,6 +25,9 @@ export interface RollArgs {
|
|
|
25
25
|
id: string;
|
|
26
26
|
skill: string;
|
|
27
27
|
value: number;
|
|
28
|
-
|
|
28
|
+
mode?: string;
|
|
29
29
|
}
|
|
30
30
|
export declare const rollPlugin: CommandPlugin<RollArgs, {}>;
|
|
31
|
+
export declare const resetSkillCheck: CommandPlugin<{
|
|
32
|
+
id: string;
|
|
33
|
+
}, {}>;
|
package/dist/vm/vm-helpers.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface SkillCheckParams {
|
|
|
7
7
|
value: number;
|
|
8
8
|
id: string;
|
|
9
9
|
hideAfterRoll?: boolean;
|
|
10
|
+
repeatable?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare function runSkillCheck(params: SkillCheckParams): SkillCheckState;
|
|
12
13
|
export declare function runConditionCommand(command: Parser.Command<IfOptions, IfStaticOptions>): Parser.Branch | undefined;
|