@modlock/modlock 0.1.75 → 0.1.76
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/host.gen.d.ts +20 -0
- package/index.d.ts +1 -1
- package/index.js +1535 -1157
- package/package.json +6 -6
- package/ui.d.ts +71 -5
package/host.gen.d.ts
CHANGED
|
@@ -1491,6 +1491,26 @@ export declare class Player {
|
|
|
1491
1491
|
* call fails, granting nothing, when the ability does not accept it.
|
|
1492
1492
|
*/
|
|
1493
1493
|
giveItem(item: string, imbue?: number): boolean;
|
|
1494
|
+
/**
|
|
1495
|
+
* buyItem buys an item for the hero as the shop does, under the shop's own
|
|
1496
|
+
* rules and for the souls it charges, or fails and charges nothing when the
|
|
1497
|
+
* shop refuses, as away from the shop or without the souls. With imbue, an
|
|
1498
|
+
* imbuing item strengthens whatever ability the hero holds in that slot, 0
|
|
1499
|
+
* to 3, including one ReplaceAbility put there, which the game's own
|
|
1500
|
+
* buydependentitem refuses; the call fails, buying nothing, when the
|
|
1501
|
+
* ability does not accept it.
|
|
1502
|
+
*/
|
|
1503
|
+
buyItem(item: string, imbue?: number, source?: number): boolean;
|
|
1504
|
+
/**
|
|
1505
|
+
* trainAbility trains or upgrades whatever ability the hero holds in a
|
|
1506
|
+
* slot, 0 to 3, as the player holding the upgrade key and pressing the
|
|
1507
|
+
* slot's ability key does: an untrained ability trains for an ability
|
|
1508
|
+
* unlock, and a trained one buys its next tier for ability points. It works
|
|
1509
|
+
* on an ability ReplaceAbility put there, which the game's own commands for
|
|
1510
|
+
* a slot do not reach. When the game refuses, as without an unlock or the
|
|
1511
|
+
* points, the call fails and nothing is spent.
|
|
1512
|
+
*/
|
|
1513
|
+
trainAbility(slot: number): boolean;
|
|
1494
1514
|
/**
|
|
1495
1515
|
* replaceAbility puts the ability named ability, untrained unless keep
|
|
1496
1516
|
* carries the old one's progress, in the hero's ability slot index, as
|
package/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { type ReplayedHit, replayDamage } from './replayed-damage.js';
|
|
|
27
27
|
export { type CatalogEntry, Dropper, dropperButtons } from './dropper.js';
|
|
28
28
|
export { type BoardPage, type BoardRead, type BoardRow, type BoardWindow, type MatchPlace, readBoard, reportMatch, reportScore, type ScoreOptions, } from './scores.js';
|
|
29
29
|
export { decodeSpot, encodeSpot, LoadedSpot, loadSpot, type Placed, type Spot, type SpotObject, triggers, } from './spot.js';
|
|
30
|
-
export { type ButtonProps, type Child, type Component, type Edges, type ElementProps, Fragment, type Gradient, type HeroLookName, type HeroProps, hide, hideHud, cursorFree, freeCursor, type HudPart, type ImageProps, type JSX, jsx, jsxs, type LabelProps, type LayoutProps, type Length, type Overflow, type PanelProps, route, type Scaling, type Shadow, sheet, show, type Style, toast, type Transition, type UiElement, } from './ui.js';
|
|
30
|
+
export { type ButtonProps, type Child, type Component, type Edges, type ElementProps, Fragment, type Gradient, type HeroLookName, type HeroProps, hide, hideHud, cursorFree, freeCursor, abilityBarPresses, type AbilityBarHandler, abilityDisplay, type AbilityRow, type ShownAbility, type HudPart, type ImageProps, type JSX, jsx, jsxs, type LabelProps, type LayoutProps, type Length, type Overflow, type PanelProps, route, type Scaling, type Shadow, sheet, show, type Style, toast, type Transition, type UiElement, uiSound, } from './ui.js';
|
|
31
31
|
/** LogPart is a value log writes as text. */
|
|
32
32
|
export type LogPart = string | number | bigint | boolean | null | undefined;
|
|
33
33
|
/**
|