@modlock/modlock 0.1.74 → 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 CHANGED
@@ -1399,7 +1399,9 @@ export declare class Player {
1399
1399
  /**
1400
1400
  * selectHero gives the player a hero on a team, 2 or 3, and returns the
1401
1401
  * hero's identifier as Pawn.hero reports it. The hero appears on a later
1402
- * frame.
1402
+ * frame. A hero the player picked through the game's Change Hero wins: the
1403
+ * game removes the old hero before it spawns the pick, and a call in that
1404
+ * gap, up to 5 seconds, fails and leaves the pick to land.
1403
1405
  */
1404
1406
  selectHero(hero: string | number, team: number): number | undefined;
1405
1407
  /**
@@ -1489,6 +1491,26 @@ export declare class Player {
1489
1491
  * call fails, granting nothing, when the ability does not accept it.
1490
1492
  */
1491
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;
1492
1514
  /**
1493
1515
  * replaceAbility puts the ability named ability, untrained unless keep
1494
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
  /**