@scml-dol-maplebirch/types 5.4.10 → 5.4.12
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/compat/{DoLPcompat.d.ts → DoLP.d.ts} +9 -9
- package/compat/DoLX.d.ts +11 -0
- package/compat/NewWorld.d.ts +40 -0
- package/index.d.ts +3 -0
- package/maplebirch.d.ts +3 -0
- package/modules/Character.d.ts +1 -1
- package/modules/CharacterAddon/Transformation.d.ts +2 -0
- package/package.json +1 -1
- package/types/global.d.ts +10 -0
|
@@ -18,17 +18,17 @@ interface TransformationPatch {
|
|
|
18
18
|
parts?: TransformationPart[];
|
|
19
19
|
traits?: TransformationPart[];
|
|
20
20
|
}
|
|
21
|
-
declare class
|
|
22
|
-
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly SuppressConditions: Record<string, SuppressCondition[]>;
|
|
21
|
+
declare class DoLPTransformations {
|
|
22
|
+
static active(name: string, part: string): boolean;
|
|
23
|
+
static readonly PreservedTraits: readonly ['fangs', 'sharpEyes', 'dragonEyes', 'mateForLife', 'chase', 'flaunting', 'preyAnimal', 'strongFeet', 'predatoryAnimal', 'tempTolerance', 'aquatic', 'wdgrace', 'activeTF'];
|
|
25
24
|
static readonly AnimalTransforms: NativeTransformState[];
|
|
26
25
|
static readonly AnimalMacros: NativeMacroMap;
|
|
27
26
|
static readonly HistoryTransforms: NativeHistoryEntry[];
|
|
27
|
+
static readonly DecayConditions: Record<string, DecayCondition[]>;
|
|
28
|
+
static readonly SuppressConditions: Record<string, SuppressCondition[]>;
|
|
28
29
|
static readonly BuildUpdaters: Record<string, BuildUpdater>;
|
|
29
30
|
static readonly TransformationPatches: Record<string, TransformationPatch>;
|
|
30
31
|
static readonly Transformations: SetupTransformation[];
|
|
31
|
-
static readonly PreservedTraits: string[];
|
|
32
32
|
static change(change: number): number;
|
|
33
33
|
static composite(): void;
|
|
34
34
|
private static forceAngel;
|
|
@@ -44,12 +44,12 @@ declare class Transformations {
|
|
|
44
44
|
private static mergeProperties;
|
|
45
45
|
private static mergeParts;
|
|
46
46
|
}
|
|
47
|
-
declare class
|
|
47
|
+
declare class DoLP {
|
|
48
48
|
static get isDoLP(): boolean;
|
|
49
49
|
static install(core: MaplebirchCore): void;
|
|
50
|
-
static readonly Transformations: typeof
|
|
50
|
+
static readonly Transformations: typeof DoLPTransformations;
|
|
51
51
|
static nnpc: {
|
|
52
|
-
showfn: (options: Record<string,
|
|
52
|
+
showfn: (options: Record<string, unknown>) => boolean;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
export default
|
|
55
|
+
export default DoLP;
|
package/compat/DoLX.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MaplebirchCore } from '../core.js';
|
|
2
|
+
declare class DoLX {
|
|
3
|
+
static get isDoLX(): boolean;
|
|
4
|
+
static readonly PreservedTraits: readonly ['dragonTongue', 'ironWill', 'leviathan'];
|
|
5
|
+
static install(core: MaplebirchCore): void;
|
|
6
|
+
static extend(valid: {
|
|
7
|
+
names: Set<string>;
|
|
8
|
+
traits: Set<string>;
|
|
9
|
+
}): void;
|
|
10
|
+
}
|
|
11
|
+
export default DoLX;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { MaplebirchCore } from '../core.js';
|
|
2
|
+
import type { BuildUpdater, DecayCondition, NativeHistoryEntry, NativeMacroMap, NativeTransformState, SuppressCondition } from '../modules/CharacterAddon/TransformationConfig.js';
|
|
3
|
+
interface TransformationPart {
|
|
4
|
+
name: string;
|
|
5
|
+
tfRequired: number;
|
|
6
|
+
default?: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
interface SetupTransformation {
|
|
10
|
+
name: string;
|
|
11
|
+
readonly level: number;
|
|
12
|
+
readonly build: number;
|
|
13
|
+
type: string;
|
|
14
|
+
parts: TransformationPart[];
|
|
15
|
+
traits: TransformationPart[];
|
|
16
|
+
}
|
|
17
|
+
declare class NewWorldTransformations {
|
|
18
|
+
static readonly PreservedTraits: readonly ['fangs', 'sharpEyes', 'dragonEyes', 'dragonTongue', 'mateForLife', 'chase', 'flaunting', 'ironWill', 'preyAnimal', 'strongFeet', 'predatoryAnimal', 'tempTolerance', 'aquatic', 'leviathan', 'incognito', 'kicks', 'strongnose', 'lungs', 'aquatail', 'vigorous', 'longtongue', 'webbedfeet'];
|
|
19
|
+
static readonly AnimalTransforms: NativeTransformState[];
|
|
20
|
+
static readonly AnimalMacros: NativeMacroMap;
|
|
21
|
+
static readonly HistoryTransforms: NativeHistoryEntry[];
|
|
22
|
+
static readonly DecayConditions: Record<string, DecayCondition[]>;
|
|
23
|
+
static readonly SuppressConditions: Record<string, SuppressCondition[]>;
|
|
24
|
+
static readonly BuildUpdaters: Record<string, BuildUpdater>;
|
|
25
|
+
static readonly Transformations: SetupTransformation[];
|
|
26
|
+
static extend(valid: {
|
|
27
|
+
names: Set<string>;
|
|
28
|
+
traits: Set<string>;
|
|
29
|
+
}): void;
|
|
30
|
+
static merge<T extends {
|
|
31
|
+
name?: string;
|
|
32
|
+
}>(base: T[]): Array<T | SetupTransformation>;
|
|
33
|
+
}
|
|
34
|
+
declare class NewWorld {
|
|
35
|
+
static get isNewWorld(): boolean;
|
|
36
|
+
static readonly Transformations: typeof NewWorldTransformations;
|
|
37
|
+
static guard(): void;
|
|
38
|
+
static install(core: MaplebirchCore): void;
|
|
39
|
+
}
|
|
40
|
+
export default NewWorld;
|
package/index.d.ts
CHANGED
|
@@ -9,3 +9,6 @@ export type { CoreModules } from './modules/DoL/types.js';
|
|
|
9
9
|
export { default as DoLDynamic } from './modules/DoL/Dynamic.js';
|
|
10
10
|
export { default as DoLToolCollection } from './modules/DoL/ToolCollection.js';
|
|
11
11
|
export { default as ImageLoader } from './modules/Frameworks/ImageLoader.js';
|
|
12
|
+
export { default as DoLP } from './compat/DoLP.js';
|
|
13
|
+
export { default as DoLX } from './compat/DoLX.js';
|
|
14
|
+
export { default as NewWorld } from './compat/NewWorld.js';
|
package/maplebirch.d.ts
CHANGED
|
@@ -9,3 +9,6 @@ export type { CoreModules } from './modules/DoL/types.js';
|
|
|
9
9
|
export { default as DoLDynamic } from './modules/DoL/Dynamic.js';
|
|
10
10
|
export { default as DoLToolCollection } from './modules/DoL/ToolCollection.js';
|
|
11
11
|
export { default as ImageLoader } from './modules/Frameworks/ImageLoader.js';
|
|
12
|
+
export { default as DoLP } from './compat/DoLP.js';
|
|
13
|
+
export { default as DoLX } from './compat/DoLX.js';
|
|
14
|
+
export { default as NewWorld } from './compat/NewWorld.js';
|
package/modules/Character.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ScopedLog } from '../infra/Diagnostics.js';
|
|
|
3
3
|
import type AddonPlugin from '../services/AddonPlugin.js';
|
|
4
4
|
import Pet from './CharacterAddon/Pet.js';
|
|
5
5
|
import Transformation from './CharacterAddon/Transformation.js';
|
|
6
|
-
export type ProcessType = 'pre' | 'post';
|
|
6
|
+
export type ProcessType = 'before' | 'pre' | 'post';
|
|
7
7
|
export type ModelTarget<TModel = CanvasModel | CanvasModelOptions> = string | string[] | ((modelName: string, model?: TModel) => boolean);
|
|
8
8
|
export type ProcessHandler = (options: any, model?: CanvasModel) => void;
|
|
9
9
|
interface LayerUseOptions {
|
|
@@ -55,6 +55,8 @@ declare class Transformation {
|
|
|
55
55
|
readonly coexistConditions: Array<() => boolean>;
|
|
56
56
|
constructor(manager: Character);
|
|
57
57
|
private get isDoLP();
|
|
58
|
+
private get isDoLX();
|
|
59
|
+
private get isNewWorld();
|
|
58
60
|
get coexist(): boolean;
|
|
59
61
|
private get animalTransforms();
|
|
60
62
|
private get animalMacros();
|
package/package.json
CHANGED
package/types/global.d.ts
CHANGED
|
@@ -75,6 +75,16 @@ declare global {
|
|
|
75
75
|
};
|
|
76
76
|
pregnancyDaysEta: typeof pregnancyDaysEta;
|
|
77
77
|
getChildDays: typeof getChildDays;
|
|
78
|
+
Transformations?: {
|
|
79
|
+
defaults?: Record<string, {
|
|
80
|
+
colour?: {
|
|
81
|
+
h: number;
|
|
82
|
+
s: number;
|
|
83
|
+
l: number;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
[key: string]: unknown;
|
|
87
|
+
};
|
|
78
88
|
}
|
|
79
89
|
const lanSwitch: typeof _languageSwitch;
|
|
80
90
|
const Links: LinksAPI;
|