narrat 0.9.4 → 0.10.0
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/CHANGELOG.md +18 -0
- package/lib/components/Skills.vue.d.ts +4 -0
- package/lib/dialog-box.vue.d.ts +1 -0
- package/lib/index.esm.js +338 -93
- package/lib/index.js +337 -92
- package/lib/utils/logger.d.ts +9 -5
- package/lib/utils/skillchecks.d.ts +18 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Narrat changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### New XP System
|
|
6
|
+
|
|
7
|
+
- XP can be accumulated to level
|
|
8
|
+
- config option: `skillOptions.xpPerLevel`
|
|
9
|
+
- Use `add_xp` in script to add xp, just like adding levels
|
|
10
|
+
- XP now displayed in skills menu
|
|
11
|
+
|
|
12
|
+
### Other improvements
|
|
13
|
+
|
|
14
|
+
- Improvements in skill checks display and difficulty
|
|
15
|
+
- Bug fixes to skill check edge cases
|
|
16
|
+
- Fixed a bug when not having a default title screen music
|
|
17
|
+
- Added a new `hideAfterRoll` option to skill checks to hide their choice after they've happened once
|
|
18
|
+
- Refactored skill check code for internal consistency between the different ways they're run
|
|
19
|
+
- New CSS variables and classes to customise the look of skill check prompts
|
|
20
|
+
|
|
3
21
|
## 0.9.4
|
|
4
22
|
|
|
5
23
|
- Fixed a bug when going back to the main menu and reloading the save without refreshing the page
|
|
@@ -10,11 +10,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
skillConf(): {
|
|
11
11
|
[key: string]: SkillData;
|
|
12
12
|
};
|
|
13
|
+
xpPerLevel(): number;
|
|
13
14
|
}, {
|
|
14
15
|
getSkillStyle(skill: string): any;
|
|
15
16
|
getSkillName(skill: string): string;
|
|
16
17
|
clickSkill(skill: string): void;
|
|
17
18
|
closeSkill(): void;
|
|
19
|
+
xpBarWidth(xp: number): {
|
|
20
|
+
width: string;
|
|
21
|
+
};
|
|
18
22
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
19
23
|
close?: unknown;
|
|
20
24
|
} & {
|
package/lib/dialog-box.vue.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
}, {
|
|
22
22
|
chooseOption(choice: DialogChoice): void;
|
|
23
23
|
dialogStyle(choice: DialogChoice): any;
|
|
24
|
+
dialogClass(choice: DialogChoice): "strike-anim";
|
|
24
25
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
25
26
|
options?: unknown;
|
|
26
27
|
active?: unknown;
|