hrbattle 1.1.1 → 1.1.2

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.
@@ -45,11 +45,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
45
45
  }
46
46
  return to.concat(ar || Array.prototype.slice.call(from));
47
47
  };
48
- import designedBuffs from "./json/designed-buffs.json";
49
- import designedHeroSkillBooks from "./json/designed-hero-skill-books.json";
50
- import designedMonsterSkillBooks from "./json/designed-monster-skill-books.json";
51
- import designedRoster from "./json/designed-roster.json";
52
- import designedSkillTemplates from "./json/designed-skill-templates.json";
48
+ import designedBuffs from "./json/designed-buffs.json" with { type: "json" };
49
+ import designedHeroSkillBooks from "./json/designed-hero-skill-books.json" with { type: "json" };
50
+ import designedMonsterSkillBooks from "./json/designed-monster-skill-books.json" with { type: "json" };
51
+ import designedRoster from "./json/designed-roster.json" with { type: "json" };
52
+ import designedSkillTemplates from "./json/designed-skill-templates.json" with { type: "json" };
53
53
  export function loadBattleJsonConfigBundle() {
54
54
  return {
55
55
  buffs: designedBuffs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrbattle",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "一个基于回合制战斗引擎,支持技能脚本、buff系统和效果解析。",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,10 +1,10 @@
1
1
  import type { BattleInitUnit, BuffConfig, SkillDefinition, SkillTemplate, UnitStats } from "../types.js";
2
2
 
3
- import designedBuffs from "./json/designed-buffs.json";
4
- import designedHeroSkillBooks from "./json/designed-hero-skill-books.json";
5
- import designedMonsterSkillBooks from "./json/designed-monster-skill-books.json";
6
- import designedRoster from "./json/designed-roster.json";
7
- import designedSkillTemplates from "./json/designed-skill-templates.json";
3
+ import designedBuffs from "./json/designed-buffs.json" with { type: "json" };
4
+ import designedHeroSkillBooks from "./json/designed-hero-skill-books.json" with { type: "json" };
5
+ import designedMonsterSkillBooks from "./json/designed-monster-skill-books.json" with { type: "json" };
6
+ import designedRoster from "./json/designed-roster.json" with { type: "json" };
7
+ import designedSkillTemplates from "./json/designed-skill-templates.json" with { type: "json" };
8
8
 
9
9
  type JsonHeroSkillBook = {
10
10
  heroId: string;