azeroth-shell 0.2.0 → 0.3.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.
- package/README.md +43 -10
- package/bin/azsh.mjs +15 -1
- package/package.json +5 -2
- package/src/cli/hdArt.mjs +1 -1
- package/src/cli/iconArt.mjs +11 -1
- package/src/cli/modelArt.mjs +7 -4
- package/src/cli/oocPrep.mjs +32 -0
- package/src/cli/repl.mjs +16 -0
- package/src/cli/sixel.mjs +26 -14
- package/src/cli/text.mjs +16 -0
- package/src/cli/tui.mjs +33 -9
- package/src/cli/tuiAutopilot.mjs +17 -8
- package/src/cli/tuiBags.mjs +37 -4
- package/src/cli/tuiCheck.mjs +276 -15
- package/src/cli/tuiCity.mjs +31 -31
- package/src/cli/tuiCompanionKit.mjs +6 -6
- package/src/cli/tuiCompanions.mjs +189 -29
- package/src/cli/tuiCreate.mjs +7 -0
- package/src/cli/tuiDungeon.mjs +56 -20
- package/src/cli/tuiFight.mjs +63 -21
- package/src/cli/tuiFightPanes.mjs +15 -6
- package/src/cli/tuiFloor.mjs +20 -8
- package/src/cli/tuiGear.mjs +9 -10
- package/src/cli/tuiLoot.mjs +5 -6
- package/src/cli/tuiMap.mjs +214 -0
- package/src/cli/tuiPaperdoll.mjs +6 -5
- package/src/cli/tuiPartyStage.mjs +36 -7
- package/src/cli/tuiPet.mjs +16 -8
- package/src/cli/tuiProfessions.mjs +23 -23
- package/src/cli/tuiSaves.mjs +14 -0
- package/src/cli/tuiSearch.mjs +4 -5
- package/src/cli/tuiSettings.mjs +3 -4
- package/src/cli/tuiStage.mjs +72 -16
- package/src/cli/tuiTalents.mjs +3 -4
- package/src/cli/tuiViews.mjs +371 -84
- package/src/cli/tuiWiki.mjs +2 -3
- package/src/cli/tuiWorld.mjs +88 -5
- package/src/data/gear-art.bin.br +0 -0
- package/src/data/hd-art.json +36 -36
- package/src/data/model-art-worn.bin.br +0 -0
- package/src/data/model-art.bin.gz +0 -0
- package/src/data/tables/creatures.json.gz +0 -0
- package/src/data/world-map-sixel.bin.br +0 -0
- package/src/data/world-map.bin.gz +0 -0
- package/src/domain/character/character.ts +6 -0
- package/src/domain/pet/pet.ts +31 -0
- package/src/engine/combat/pickAction.ts +3494 -3487
- package/src/engine/combat/sessionChase.ts +12 -1
- package/src/engine/game/loadReconcile.ts +21 -1
- package/src/engine/game/pets.ts +33 -1
- package/src/engine/game/types.ts +4 -0
package/src/cli/tuiTalents.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
// Talent builds for the Talents tab (B): the premade playerbot specs for your class, loadouts you saved, a pasted
|
|
2
2
|
// talent string (Wowhead-style digits or a classicdb link), and your own string to copy. Applying any of them
|
|
3
3
|
// is a respec at the usual price when points are already spent.
|
|
4
|
-
import { bold, dim, yellow, green, red, cyan } from './text.mjs';
|
|
5
|
-
import { moneyText } from '../domain/economy/money.ts';
|
|
4
|
+
import { bold, dim, yellow, green, red, cyan, coinText } from './text.mjs';
|
|
6
5
|
import { talentLinkFromTalents } from '../domain/character/talentLink.ts';
|
|
7
6
|
import { linkFromClassicdbHash } from '../domain/character/talentImport.ts';
|
|
8
7
|
|
|
9
8
|
function applied(app, r) {
|
|
10
|
-
app.result(r, r.ok ? `Your talents are now ${r.name}${r.cost ? ` (respec ${
|
|
9
|
+
app.result(r, r.ok ? `Your talents are now ${r.name}${r.cost ? ` (respec ${coinText(r.cost)})` : ''}.` : '');
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
/** Spent points cost a respec; say the price before doing it. */
|
|
14
13
|
function withRespec(app, label, run) {
|
|
15
14
|
const cost = app.g.respecCost();
|
|
16
|
-
if (cost > 0) app.confirm(`Switch to ${label}? The respec costs ${
|
|
15
|
+
if (cost > 0) app.confirm(`Switch to ${label}? The respec costs ${coinText(cost)}.`, () => applied(app, run()));
|
|
17
16
|
else applied(app, run());
|
|
18
17
|
}
|
|
19
18
|
|