clibuddy 1.0.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.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +60 -0
  3. package/dist/adventure/adventureUI.d.ts +24 -0
  4. package/dist/adventure/adventureUI.js +290 -0
  5. package/dist/adventure/adventures.d.ts +4 -0
  6. package/dist/adventure/adventures.js +206 -0
  7. package/dist/adventure/biomes.d.ts +30 -0
  8. package/dist/adventure/biomes.js +80 -0
  9. package/dist/adventure/combat/combat.d.ts +14 -0
  10. package/dist/adventure/combat/combat.js +638 -0
  11. package/dist/adventure/combat/combatUI.d.ts +5 -0
  12. package/dist/adventure/combat/combatUI.js +116 -0
  13. package/dist/adventure/combat/conditions.d.ts +20 -0
  14. package/dist/adventure/combat/conditions.js +111 -0
  15. package/dist/adventure/combat/enemies.d.ts +4 -0
  16. package/dist/adventure/combat/enemies.js +430 -0
  17. package/dist/adventure/combat/gear.d.ts +3 -0
  18. package/dist/adventure/combat/gear.js +199 -0
  19. package/dist/adventure/combat/skills.d.ts +6 -0
  20. package/dist/adventure/combat/skills.js +197 -0
  21. package/dist/adventure/combat.d.ts +31 -0
  22. package/dist/adventure/combat.js +732 -0
  23. package/dist/adventure/combatUI.d.ts +5 -0
  24. package/dist/adventure/combatUI.js +116 -0
  25. package/dist/adventure/endless.d.ts +18 -0
  26. package/dist/adventure/endless.js +154 -0
  27. package/dist/adventure/enemies.d.ts +4 -0
  28. package/dist/adventure/enemies.js +320 -0
  29. package/dist/adventure/engine.d.ts +20 -0
  30. package/dist/adventure/engine.js +137 -0
  31. package/dist/adventure/gear.d.ts +3 -0
  32. package/dist/adventure/gear.js +149 -0
  33. package/dist/adventure/generation/biomes.d.ts +30 -0
  34. package/dist/adventure/generation/biomes.js +102 -0
  35. package/dist/adventure/generation/endless.d.ts +18 -0
  36. package/dist/adventure/generation/endless.js +154 -0
  37. package/dist/adventure/generation/generator.d.ts +9 -0
  38. package/dist/adventure/generation/generator.js +245 -0
  39. package/dist/adventure/generation/templates.d.ts +25 -0
  40. package/dist/adventure/generation/templates.js +228 -0
  41. package/dist/adventure/generator.d.ts +9 -0
  42. package/dist/adventure/generator.js +245 -0
  43. package/dist/adventure/skills.d.ts +6 -0
  44. package/dist/adventure/skills.js +197 -0
  45. package/dist/adventure/templates.d.ts +25 -0
  46. package/dist/adventure/templates.js +228 -0
  47. package/dist/adventure/types.d.ts +236 -0
  48. package/dist/adventure/types.js +97 -0
  49. package/dist/app/state.d.ts +49 -0
  50. package/dist/app/state.js +51 -0
  51. package/dist/buddy/activities.d.ts +16 -0
  52. package/dist/buddy/activities.js +90 -0
  53. package/dist/buddy/decay.d.ts +3 -0
  54. package/dist/buddy/decay.js +45 -0
  55. package/dist/buddy/leveling.d.ts +11 -0
  56. package/dist/buddy/leveling.js +25 -0
  57. package/dist/buddy/roll.d.ts +4 -0
  58. package/dist/buddy/roll.js +61 -0
  59. package/dist/buddy/species.d.ts +4 -0
  60. package/dist/buddy/species.js +592 -0
  61. package/dist/buddy/titles.d.ts +17 -0
  62. package/dist/buddy/titles.js +89 -0
  63. package/dist/buddy/types.d.ts +92 -0
  64. package/dist/buddy/types.js +21 -0
  65. package/dist/commands/actions.d.ts +2 -0
  66. package/dist/commands/actions.js +141 -0
  67. package/dist/commands/admin.d.ts +2 -0
  68. package/dist/commands/admin.js +202 -0
  69. package/dist/commands/registry.d.ts +25 -0
  70. package/dist/commands/registry.js +31 -0
  71. package/dist/commands/social.d.ts +2 -0
  72. package/dist/commands/social.js +92 -0
  73. package/dist/dialogue/engine.d.ts +7 -0
  74. package/dist/dialogue/engine.js +68 -0
  75. package/dist/dialogue/lines.d.ts +26 -0
  76. package/dist/dialogue/lines.js +294 -0
  77. package/dist/events/engine.d.ts +20 -0
  78. package/dist/events/engine.js +51 -0
  79. package/dist/events/events.d.ts +13 -0
  80. package/dist/events/events.js +149 -0
  81. package/dist/index.d.ts +10 -0
  82. package/dist/index.js +1665 -0
  83. package/dist/inventory/finding.d.ts +11 -0
  84. package/dist/inventory/finding.js +99 -0
  85. package/dist/inventory/items.d.ts +31 -0
  86. package/dist/inventory/items.js +63 -0
  87. package/dist/minigames/copycat.d.ts +2 -0
  88. package/dist/minigames/copycat.js +153 -0
  89. package/dist/minigames/fetch.d.ts +2 -0
  90. package/dist/minigames/fetch.js +179 -0
  91. package/dist/minigames/moodmatch.d.ts +2 -0
  92. package/dist/minigames/moodmatch.js +144 -0
  93. package/dist/minigames/quickpaws.d.ts +2 -0
  94. package/dist/minigames/quickpaws.js +142 -0
  95. package/dist/minigames/registry.d.ts +5 -0
  96. package/dist/minigames/registry.js +16 -0
  97. package/dist/minigames/rpsplus.d.ts +2 -0
  98. package/dist/minigames/rpsplus.js +168 -0
  99. package/dist/minigames/treasurehunt.d.ts +2 -0
  100. package/dist/minigames/treasurehunt.js +146 -0
  101. package/dist/minigames/types.d.ts +30 -0
  102. package/dist/minigames/types.js +69 -0
  103. package/dist/rendering/commandPalette.d.ts +16 -0
  104. package/dist/rendering/commandPalette.js +77 -0
  105. package/dist/rendering/display.d.ts +9 -0
  106. package/dist/rendering/display.js +231 -0
  107. package/dist/rendering/inventoryUI.d.ts +14 -0
  108. package/dist/rendering/inventoryUI.js +99 -0
  109. package/dist/rendering/items.d.ts +7 -0
  110. package/dist/rendering/items.js +34 -0
  111. package/dist/rendering/listUtils.d.ts +3 -0
  112. package/dist/rendering/listUtils.js +24 -0
  113. package/dist/rendering/minigameUI.d.ts +11 -0
  114. package/dist/rendering/minigameUI.js +37 -0
  115. package/dist/rendering/overlayUI.d.ts +24 -0
  116. package/dist/rendering/overlayUI.js +184 -0
  117. package/dist/rendering/scene.d.ts +8 -0
  118. package/dist/rendering/scene.js +87 -0
  119. package/dist/rendering/screen.d.ts +43 -0
  120. package/dist/rendering/screen.js +97 -0
  121. package/dist/sound/sound.d.ts +11 -0
  122. package/dist/sound/sound.js +55 -0
  123. package/dist/state/save.d.ts +5 -0
  124. package/dist/state/save.js +100 -0
  125. package/dist/state/settings.d.ts +7 -0
  126. package/dist/state/settings.js +81 -0
  127. package/dist/story/mainStory.d.ts +4 -0
  128. package/dist/story/mainStory.js +3111 -0
  129. package/dist/story/npcs.d.ts +17 -0
  130. package/dist/story/npcs.js +137 -0
  131. package/dist/story/progress.d.ts +26 -0
  132. package/dist/story/progress.js +168 -0
  133. package/dist/story/seasonal.d.ts +6 -0
  134. package/dist/story/seasonal.js +96 -0
  135. package/dist/story/shop.d.ts +7 -0
  136. package/dist/story/shop.js +26 -0
  137. package/dist/story/sideQuests.d.ts +4 -0
  138. package/dist/story/sideQuests.js +151 -0
  139. package/dist/story/types.d.ts +61 -0
  140. package/dist/story/types.js +36 -0
  141. package/dist/updates.d.ts +23 -0
  142. package/dist/updates.js +142 -0
  143. package/package.json +53 -0
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BIOMES = void 0;
4
+ exports.getBiome = getBiome;
5
+ exports.getAllBiomeIds = getAllBiomeIds;
6
+ exports.BIOMES = {
7
+ forest: {
8
+ id: "forest", name: "Forest",
9
+ enemies: { easy: ["squirrel", "mushroom"], medium: ["shadowfox", "crow", "vinecreeper"], hard: ["stormwolf"], boss: ["marshking"] },
10
+ loot: { common: ["berry", "herb", "stick", "wooden_stick"], uncommon: ["fish", "ball", "iron_sword", "leaf_cloak"], rare: ["cake", "crystal_blade", "chain_mail", "thorn_whip", "bark_shield"], epic: ["flame_scepter", "phoenix_robe", "sunblade"] },
11
+ nouns: ["forest", "woods", "grove", "thicket", "glade", "canopy", "clearing", "dell", "copse", "woodland"],
12
+ adjectives: ["sun-dappled", "misty", "ancient", "overgrown", "quiet", "verdant", "whispering", "wild", "fragrant", "twilit"],
13
+ landmarks: ["old oak tree", "mossy stone", "babbling brook", "fallen log", "ring of mushrooms", "fox den", "berry bush", "tree stump", "vine curtain"],
14
+ hidingSpots: ["the bushes", "behind a tree", "the undergrowth", "a hollow log", "thick ferns", "a bird's nest", "tangled roots", "a flower patch"],
15
+ directions: ["a shady path", "a sun-lit trail", "a narrow deer path", "a moss-covered passage", "through the ferns", "along the stream", "under low branches", "past the berry thicket"],
16
+ comfortSpecies: ["rabbit", "fox"],
17
+ },
18
+ caves: {
19
+ id: "caves", name: "Crystal Caves",
20
+ enemies: { easy: ["mushroom", "snail"], medium: ["golem", "crow", "rustknight"], hard: ["golem", "lavabeetle", "crystalbasilisk"], boss: ["crystalguardian"] },
21
+ loot: { common: ["herb", "wooden_stick"], uncommon: ["potion", "iron_sword", "chain_mail"], rare: ["crystal_blade", "crystal_armor", "midnight_bow"], epic: ["flame_scepter", "dragon_fang", "sunblade"] },
22
+ nouns: ["cavern", "tunnel", "grotto", "chamber", "crevice", "mine shaft", "chasm", "alcove", "passage", "vault"],
23
+ adjectives: ["glowing", "dark", "crystalline", "echoing", "damp", "deep", "narrow", "sparkling", "cold", "silent"],
24
+ landmarks: ["crystal cluster", "underground pool", "stalactite formation", "glowing vein", "ancient carving", "mineral deposit", "dripping ceiling", "crystal arch", "phosphorescent moss"],
25
+ hidingSpots: ["the shadows", "behind a stalagmite", "a dark alcove", "a crack in the wall", "under a ledge", "in a shallow pool", "behind crystal pillars", "a narrow fissure"],
26
+ directions: ["a narrow crystal tunnel", "a wide cavern", "a descending slope", "a flooded passage", "through a crystal archway", "down a spiral path", "along an underground river", "past glowing mushrooms"],
27
+ comfortSpecies: ["frog", "dragon"],
28
+ },
29
+ mountains: {
30
+ id: "mountains", name: "Windy Peaks",
31
+ enemies: { easy: ["squirrel", "flamesprite"], medium: ["crow", "shadowfox", "emberfox"], hard: ["stormwolf", "lavabeetle", "crystalbasilisk"], boss: ["crystalguardian"] },
32
+ loot: { common: ["berry", "herb"], uncommon: ["potion", "chain_mail", "swift_boots"], rare: ["crystal_armor", "elixir", "dodge_cloak"], epic: ["dragon_fang", "dragon_scale_armor"] },
33
+ nouns: ["peak", "ridge", "cliff", "plateau", "pass", "summit", "crag", "ledge", "slope", "mountain"],
34
+ adjectives: ["windswept", "frozen", "steep", "treacherous", "snow-covered", "jagged", "towering", "icy", "barren", "majestic"],
35
+ landmarks: ["cairn of stones", "frozen waterfall", "eagle's nest", "mountain shrine", "wind-carved rock", "ice cave mouth", "abandoned camp", "prayer flags", "lookout point"],
36
+ hidingSpots: ["the mist", "behind a boulder", "a snow drift", "a rocky overhang", "a crevasse", "swirling clouds", "an ice formation", "behind a cairn"],
37
+ directions: ["a steep climb", "a rocky path", "a sheltered ravine", "a windy ridge", "across a rope bridge", "up a narrow ledge", "through a snow field", "along a goat trail"],
38
+ comfortSpecies: ["owl", "phoenix"],
39
+ },
40
+ swamp: {
41
+ id: "swamp", name: "Shadow Marsh",
42
+ enemies: { easy: ["snail", "mushroom", "puddleslime"], medium: ["shadowfox", "vinecreeper"], hard: ["stormwolf", "bogwitch"], boss: ["marshking"] },
43
+ loot: { common: ["herb", "stick"], uncommon: ["potion", "fish"], rare: ["elixir", "crystal_blade", "thorn_whip"], epic: ["phoenix_robe", "flame_scepter", "coral_plate"] },
44
+ nouns: ["marsh", "bog", "swamp", "fen", "wetland", "mire", "bayou", "quagmire", "morass", "lagoon"],
45
+ adjectives: ["murky", "foggy", "dank", "eerie", "bubbling", "stagnant", "slimy", "haunted", "oppressive", "dark"],
46
+ landmarks: ["dead tree", "lily pad cluster", "gas vent", "sunken ruins", "rotting dock", "will-o-wisp", "hanging moss", "frog choir spot", "ancient bridge"],
47
+ hidingSpots: ["the fog", "under the water", "behind reeds", "the murk", "beneath lily pads", "in the mud", "behind a dead tree", "thick marsh grass"],
48
+ directions: ["a rickety boardwalk", "through shallow muck", "along the bank", "over mossy stones", "past bubbling mud", "through cattails", "across stepping stones", "under drooping willows"],
49
+ comfortSpecies: ["frog"],
50
+ },
51
+ ruins: {
52
+ id: "ruins", name: "Ancient Ruins",
53
+ enemies: { easy: ["mushroom", "flamesprite"], medium: ["golem", "crow", "rustknight"], hard: ["golem", "stormwolf", "crystalbasilisk"], boss: ["crystalguardian"] },
54
+ loot: { common: ["herb", "wooden_stick"], uncommon: ["iron_sword", "chain_mail", "potion"], rare: ["crystal_blade", "crystal_armor", "midnight_bow"], epic: ["dragon_fang", "dragon_scale_armor", "sunblade"] },
55
+ nouns: ["ruins", "temple", "hall", "corridor", "chamber", "sanctum", "crypt", "gallery", "courtyard", "archive"],
56
+ adjectives: ["crumbling", "ancient", "vine-covered", "mysterious", "silent", "forgotten", "sacred", "dusty", "ornate", "eerie"],
57
+ landmarks: ["broken statue", "faded mural", "altar", "collapsed pillar", "sealed door", "mosaic floor", "empty fountain", "stone throne", "inscription wall"],
58
+ hidingSpots: ["the rubble", "behind a pillar", "in the shadows", "a collapsed archway", "an empty alcove", "behind a statue", "under debris", "a dark doorway"],
59
+ directions: ["a dusty corridor", "through a cracked door", "down worn steps", "past fallen columns", "through an archway", "along a mosaic path", "into a side chamber", "up a spiral staircase"],
60
+ comfortSpecies: ["owl", "cat"],
61
+ },
62
+ volcano: {
63
+ id: "volcano", name: "Molten Core",
64
+ enemies: { easy: ["mushroom", "flamesprite"], medium: ["golem", "emberfox"], hard: ["lavabeetle", "stormwolf"], boss: ["crystalguardian", "infernodrake"] },
65
+ loot: { common: ["herb"], uncommon: ["potion", "iron_sword", "fire_amulet"], rare: ["flame_scepter", "elixir"], epic: ["dragon_fang", "dragon_scale_armor"] },
66
+ nouns: ["volcano", "caldera", "lava tube", "vent", "magma chamber", "crater", "furnace", "forge", "inferno", "core"],
67
+ adjectives: ["scorching", "glowing", "smoldering", "blazing", "sulfurous", "molten", "blistering", "incandescent", "ashen", "fiery"],
68
+ landmarks: ["lava flow", "obsidian formation", "fire geyser", "molten pool", "charred skeleton", "cooled lava bridge", "fire crystal", "volcanic vent", "magma spring"],
69
+ hidingSpots: ["the heat haze", "behind cooled lava", "an obsidian wall", "a vent plume", "ash clouds", "a lava tube", "behind a fire crystal", "a smoldering crater"],
70
+ directions: ["across a lava bridge", "through a cooled tunnel", "along the crater rim", "past a fire geyser", "over hardened magma", "through an ash field", "along the caldera edge", "into the furnace depths"],
71
+ comfortSpecies: ["phoenix", "dragon"],
72
+ },
73
+ };
74
+ function getBiome(id) {
75
+ return exports.BIOMES[id];
76
+ }
77
+ function getAllBiomeIds() {
78
+ return Object.keys(exports.BIOMES);
79
+ }
80
+ //# sourceMappingURL=biomes.js.map
@@ -0,0 +1,14 @@
1
+ import { BuddyState } from "../../buddy/types";
2
+ import { CombatStats, CombatState, EnemyDef, SkillDef } from "../types";
3
+ export declare function deriveCombatStats(state: BuddyState): CombatStats;
4
+ export declare function deriveEnemyStats(enemy: EnemyDef, playerLevel?: number): CombatStats;
5
+ export declare function startCombat(state: BuddyState, enemy: EnemyDef, morale?: number): CombatState;
6
+ export declare function playerAttack(combat: CombatState): CombatState;
7
+ export declare function playerDefend(combat: CombatState): CombatState;
8
+ export declare function playerFlee(combat: CombatState): CombatState;
9
+ export declare function playerUseSkill(combat: CombatState, skill: SkillDef): CombatState;
10
+ export declare function enemyTurn(combat: CombatState): CombatState;
11
+ export { processConditions, applyShield, hasCondition, addCondition, getConditionStatMod } from "./conditions";
12
+ /** Called each tick to advance animation phases */
13
+ export declare function tickCombat(combat: CombatState): CombatState;
14
+ //# sourceMappingURL=combat.d.ts.map