sonolus-next-rush-plus-engine 1.3.9 → 1.4.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.
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { USC } from './usc/index.js';
7
7
  export { susToUSC, mmwsToUSC, uscToLevelData, ucmmwsToLevelData };
8
8
  export * from './usc/index.js';
9
9
  export declare const convertToLevelData: (input: string | Uint8Array | USC | LevelData, offset?: number) => LevelData;
10
- export declare const version = "1.3.9";
10
+ export declare const version = "1.4.0";
11
11
  export declare const databaseEngineItem: {
12
12
  readonly name: "next-rush-plus";
13
13
  readonly version: 13;
package/dist/index.js CHANGED
@@ -59,7 +59,7 @@ export const convertToLevelData = (input, offset = 0) => {
59
59
  }
60
60
  return uscToLevelData(usc, offset, true, true);
61
61
  };
62
- export const version = '1.3.9';
62
+ export const version = '1.4.0';
63
63
  export const databaseEngineItem = {
64
64
  name: 'next-rush-plus',
65
65
  version: 13,
@@ -2,7 +2,7 @@ export type USC = {
2
2
  offset: number;
3
3
  objects: USCObject[];
4
4
  };
5
- export type USCObject = USCBpmChange | USCTimeScaleChange | USCSingleNote | USCSlideNote | USCGuideNote | USCDamageNote | USCEvent;
5
+ export type USCObject = USCBpmChange | USCTimeScaleChange | USCSingleNote | USCSlideNote | USCGuideNote | USCDamageNote | USCSkill | USCFever;
6
6
  type BaseUSCObject = {
7
7
  beat: number;
8
8
  timeScaleGroup: number;
@@ -89,17 +89,24 @@ export type USCGuideNote = {
89
89
  fade: USCFade;
90
90
  midpoints: USCGuideMidpointNote[];
91
91
  };
92
- export declare const SkillTypes: {
93
- readonly heal: 0;
94
- readonly score: 1;
95
- readonly judgment: 2;
92
+ export declare const SkillEffects: {
93
+ readonly none: 0;
94
+ readonly heal: 1;
95
+ readonly score: 2;
96
+ readonly judgment: 3;
96
97
  };
97
- export type SkillTypes = keyof typeof SkillTypes;
98
- export type USCEvent = {
99
- type: 'skill' | 'feverChance' | 'feverStart';
100
- force?: boolean;
101
- types?: SkillTypes;
102
- level?: number;
98
+ export type SkillEffects = (typeof SkillEffects)[keyof typeof SkillEffects];
99
+ type Level = 1 | 2 | 3 | 4;
100
+ type USCEvent = {
103
101
  beat: number;
104
102
  };
103
+ export type USCSkill = USCEvent & {
104
+ type: 'skill';
105
+ effect?: SkillEffects;
106
+ level?: Level;
107
+ };
108
+ export type USCFever = USCEvent & {
109
+ type: 'feverChance' | 'feverStart';
110
+ force?: boolean;
111
+ };
105
112
  export {};
package/dist/usc/index.js CHANGED
@@ -13,8 +13,9 @@ export const USCFade = {
13
13
  out: 0,
14
14
  none: 1,
15
15
  };
16
- export const SkillTypes = {
17
- heal: 0,
18
- score: 1,
19
- judgment: 2,
16
+ export const SkillEffects = {
17
+ none: 0,
18
+ heal: 1,
19
+ score: 2,
20
+ judgment: 3,
20
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-next-rush-plus-engine",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "A new Project Sekai inspired engine for Sonolus",
5
5
  "author": "Hyeon2",
6
6
  "repository": {