sonolus-next-rush-engine 1.0.18 → 1.1.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
@@ -474,6 +474,14 @@ export const extendedToLevelData = (data, offset = 0) => {
474
474
  'CriticalAttachedSlideTickNote',
475
475
  ].includes(resolveOriginal(ext, ref)?.archetype ?? '');
476
476
  }
477
+ function isScoredSlideTickRef(ref) {
478
+ return [
479
+ 'NormalSlideTickNote',
480
+ 'CriticalSlideTickNote',
481
+ 'NormalAttachedSlideTickNote',
482
+ 'CriticalAttachedSlideTickNote',
483
+ ].includes(resolveOriginal(ext, ref)?.archetype ?? '');
484
+ }
477
485
  function getUltimateTailRef(archetype, startRef, tailRef) {
478
486
  let ultimateTailRef = tailRef;
479
487
  let ultimateTailBeat = getNum(resolveOriginal(ext, tailRef) ?? { archetype: '', data: [] }, '#BEAT');
@@ -502,6 +510,20 @@ export const extendedToLevelData = (data, offset = 0) => {
502
510
  }
503
511
  }
504
512
  visit(tailRef);
513
+ if (isScoredSlideTickRef(ultimateTailRef)) {
514
+ for (const connector of ext.connectors) {
515
+ if (connector.e.archetype !== archetype)
516
+ continue;
517
+ if (getField(connector.e, 'start') !== startRef)
518
+ continue;
519
+ const candidateTailRef = getField(connector.e, 'tail');
520
+ const candidateTailBeat = getNum(resolveOriginal(ext, candidateTailRef) ?? { archetype: '', data: [] }, '#BEAT');
521
+ if (candidateTailBeat > ultimateTailBeat) {
522
+ ultimateTailBeat = candidateTailBeat;
523
+ ultimateTailRef = candidateTailRef;
524
+ }
525
+ }
526
+ }
505
527
  return ultimateTailRef;
506
528
  }
507
529
  function getUltimateStartRef(archetype, startRef, headRef) {
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { USC } from './usc/index.js';
7
7
  export * from './usc/index.js';
8
8
  export { type ExtendedEntityData, type ExtendedEntityDataField, extendedToLevelData, mmwsToUSC, susToUSC, ucmmwsToLevelData, uscToLevelData, };
9
9
  export declare const convertToLevelData: (input: string | Uint8Array | USC | LevelData, offset?: number) => LevelData;
10
- export declare const version = "1.0.18";
10
+ export declare const version = "1.1.0";
11
11
  export declare const databaseEngineItem: {
12
12
  readonly name: "next-rush";
13
13
  readonly version: 13;
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ export const convertToLevelData = (input, offset = 0) => {
65
65
  }
66
66
  return uscToLevelData(usc, offset, true, true);
67
67
  };
68
- export const version = '1.0.18';
68
+ export const version = '1.1.0';
69
69
  export const databaseEngineItem = {
70
70
  name: 'next-rush',
71
71
  version: 13,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-next-rush-engine",
3
- "version": "1.0.18",
3
+ "version": "1.1.0",
4
4
  "description": "Perspective-lane rhythm game for Sonolus",
5
5
  "author": "Hyeon2",
6
6
  "repository": {