isaacscript-common 87.8.0 → 87.8.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.
@@ -1 +1 @@
1
- {"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,MAAM,EACN,UAAU,EAGX,MAAM,8BAA8B,CAAC;AAiCtC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,SAAS,SAAS,EAAE,CAGtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,IAAI,SAAS,MAAM,EAAE,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,SAAS,MAAM,EAAE,CAExD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CA0B9C;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,GAChB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAEjC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,SAAS,MAAM,EAAE,GAAG,SAAS,CAE/B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAEpE;AAED;;;;;;;;;;GAUG;AAC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;AAED,6FAA6F;AAC7F,wBAAgB,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAE7C;AAoCD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,SAAS,GAAE,IAAI,GAAG,GAAG,GAAG,SAAqB,EAC7C,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAiCX;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAYX"}
@@ -113,6 +113,10 @@ function getBossID() {
113
113
  return bossID;
114
114
  }
115
115
  function getBossIDFromEntityTypeVariant(entityType, variant) {
116
+ // First, handle some special cases.
117
+ if (entityType === isaac_typescript_definitions_1.EntityType.HORSEMAN_HEAD) {
118
+ return isaac_typescript_definitions_1.BossID.HEADLESS_HORSEMAN;
119
+ }
116
120
  const entityTypeVariant = `${entityType}.${variant}`;
117
121
  return entityTypeVariantToBossIDMap_1.ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP.get(entityTypeVariant);
118
122
  }
@@ -136,6 +136,9 @@ function ____exports.getBossID(self)
136
136
  return bossID
137
137
  end
138
138
  function ____exports.getBossIDFromEntityTypeVariant(self, entityType, variant)
139
+ if entityType == EntityType.HORSEMAN_HEAD then
140
+ return BossID.HEADLESS_HORSEMAN
141
+ end
139
142
  local entityTypeVariant = (tostring(entityType) .. ".") .. tostring(variant)
140
143
  return ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP:get(entityTypeVariant)
141
144
  end
@@ -208,21 +211,21 @@ local function getNumBossSegments(self, entityType, variant, numSegments)
208
211
  return numSegments
209
212
  end
210
213
  repeat
211
- local ____switch23 = entityType
212
- local ____cond23 = ____switch23 == EntityType.CHUB
213
- if ____cond23 then
214
+ local ____switch24 = entityType
215
+ local ____cond24 = ____switch24 == EntityType.CHUB
216
+ if ____cond24 then
214
217
  do
215
218
  return 3
216
219
  end
217
220
  end
218
- ____cond23 = ____cond23 or ____switch23 == EntityType.LOKI
219
- if ____cond23 then
221
+ ____cond24 = ____cond24 or ____switch24 == EntityType.LOKI
222
+ if ____cond24 then
220
223
  do
221
224
  return variant == LokiVariant.LOKII and 2 or 1
222
225
  end
223
226
  end
224
- ____cond23 = ____cond23 or ____switch23 == EntityType.GURGLING
225
- if ____cond23 then
227
+ ____cond24 = ____cond24 or ____switch24 == EntityType.GURGLING
228
+ if ____cond24 then
226
229
  do
227
230
  return 2
228
231
  end
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/functions/decorators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;;;GAMG;AAGH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAC5C,WAAW,EAAE,CAAC,EACd,GAAG,YAAY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AAC,CAAC,CAAC,IAEpD,EAAE,SAAS,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAClD,QAAQ,UAAU,EAClB,aAAa,MAAM,EACnB,aAAa,uBAAuB,CAAC,EAAE,CAAC,KACvC,IAAI,CA4BR"}
@@ -1,25 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * If you decide to structure your mod as a set of feature classes, you can use decorators to
4
- * automatically register callbacks.
5
- *
6
- * Currently, there are two decorators:
7
- * - `@Callback`
8
- * - `@CallbackCustom`
9
- *
10
- * For example:
11
- *
12
- * ```ts
13
- * export class MyFeature extends ModFeature {
14
- * @Callback(ModCallback.POST_GAME_STARTED)
15
- * postGameStarted(isContinued: boolean): void {
16
- * Isaac.DebugString(`Callback fired: POST_GAME_STARTED`);
17
- * }
18
- * }
19
- * ```
20
- *
21
- * @module
22
- */
2
+ /* eslint-disable jsdoc/escape-inline-tags */
23
3
  Object.defineProperty(exports, "__esModule", { value: true });
24
4
  exports.Callback = Callback;
25
5
  exports.CallbackCustom = CallbackCustom;
@@ -62,10 +62,10 @@ export declare function getObjectPartialMatch<T>(searchText: string, object: Rea
62
62
  * const array = ["foo", "bar"];
63
63
  * const searchText = "f";
64
64
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
65
- *
66
- * @returns If a match was found, returns the array element. If a match was not
67
- * found, returns undefined.
68
65
  * ```
66
+ *
67
+ * @returns If a match was found, returns the array element. If a match was not found, returns
68
+ * undefined.
69
69
  */
70
70
  export declare function getPartialMatch(searchText: string, array: readonly string[]): string | undefined;
71
71
  /**
@@ -103,10 +103,10 @@ function getObjectPartialMatch(searchText, object) {
103
103
  * const array = ["foo", "bar"];
104
104
  * const searchText = "f";
105
105
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
106
- *
107
- * @returns If a match was found, returns the array element. If a match was not
108
- * found, returns undefined.
109
106
  * ```
107
+ *
108
+ * @returns If a match was found, returns the array element. If a match was not found, returns
109
+ * undefined.
110
110
  */
111
111
  function getPartialMatch(searchText, array) {
112
112
  const sortedArray = array.toSorted();
@@ -26,10 +26,10 @@ local assertDefined = ____utils.assertDefined
26
26
  -- const array = ["foo", "bar"];
27
27
  -- const searchText = "f";
28
28
  -- const match = getPartialMatch(array, searchText); // match is now equal to "foo"
29
- --
30
- -- @returns If a match was found, returns the array element. If a match was not
31
- -- found, returns undefined.
32
29
  -- ```
30
+ --
31
+ -- @returns If a match was found, returns the array element. If a match was not found, returns
32
+ -- undefined.
33
33
  function ____exports.getPartialMatch(self, searchText, array)
34
34
  local sortedArray = __TS__ArrayToSorted(array)
35
35
  searchText = string.lower(searchText)
@@ -6657,10 +6657,10 @@ export declare function getParentFunctionDescription(this: void, levels?: number
6657
6657
  * const array = ["foo", "bar"];
6658
6658
  * const searchText = "f";
6659
6659
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
6660
- *
6661
- * @returns If a match was found, returns the array element. If a match was not
6662
- * found, returns undefined.
6663
6660
  * ```
6661
+ *
6662
+ * @returns If a match was found, returns the array element. If a match was not found, returns
6663
+ * undefined.
6664
6664
  */
6665
6665
  export declare function getPartialMatch(searchText: string, array: readonly string[]): string | undefined;
6666
6666
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 87.7.0
3
+ isaacscript-common 87.8.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -17915,10 +17915,10 @@ local assertDefined = ____utils.assertDefined
17915
17915
  -- const array = ["foo", "bar"];
17916
17916
  -- const searchText = "f";
17917
17917
  -- const match = getPartialMatch(array, searchText); // match is now equal to "foo"
17918
- --
17919
- -- @returns If a match was found, returns the array element. If a match was not
17920
- -- found, returns undefined.
17921
17918
  -- ```
17919
+ --
17920
+ -- @returns If a match was found, returns the array element. If a match was not found, returns
17921
+ -- undefined.
17922
17922
  function ____exports.getPartialMatch(self, searchText, array)
17923
17923
  local sortedArray = __TS__ArrayToSorted(array)
17924
17924
  searchText = string.lower(searchText)
@@ -51836,6 +51836,9 @@ function ____exports.getBossID(self)
51836
51836
  return bossID
51837
51837
  end
51838
51838
  function ____exports.getBossIDFromEntityTypeVariant(self, entityType, variant)
51839
+ if entityType == EntityType.HORSEMAN_HEAD then
51840
+ return BossID.HEADLESS_HORSEMAN
51841
+ end
51839
51842
  local entityTypeVariant = (tostring(entityType) .. ".") .. tostring(variant)
51840
51843
  return ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP:get(entityTypeVariant)
51841
51844
  end
@@ -51908,21 +51911,21 @@ local function getNumBossSegments(self, entityType, variant, numSegments)
51908
51911
  return numSegments
51909
51912
  end
51910
51913
  repeat
51911
- local ____switch23 = entityType
51912
- local ____cond23 = ____switch23 == EntityType.CHUB
51913
- if ____cond23 then
51914
+ local ____switch24 = entityType
51915
+ local ____cond24 = ____switch24 == EntityType.CHUB
51916
+ if ____cond24 then
51914
51917
  do
51915
51918
  return 3
51916
51919
  end
51917
51920
  end
51918
- ____cond23 = ____cond23 or ____switch23 == EntityType.LOKI
51919
- if ____cond23 then
51921
+ ____cond24 = ____cond24 or ____switch24 == EntityType.LOKI
51922
+ if ____cond24 then
51920
51923
  do
51921
51924
  return variant == LokiVariant.LOKII and 2 or 1
51922
51925
  end
51923
51926
  end
51924
- ____cond23 = ____cond23 or ____switch23 == EntityType.GURGLING
51925
- if ____cond23 then
51927
+ ____cond24 = ____cond24 or ____switch24 == EntityType.GURGLING
51928
+ if ____cond24 then
51926
51929
  do
51927
51930
  return 2
51928
51931
  end
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.13"
8
+ "packageVersion": "7.53.3"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "87.8.0",
3
+ "version": "87.8.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -34,13 +34,13 @@
34
34
  "lint": "tsx --tsconfig ./scripts/tsconfig.json ./scripts/lint.mts"
35
35
  },
36
36
  "dependencies": {
37
- "isaac-typescript-definitions": "42.3.0"
37
+ "isaac-typescript-definitions": "42.3.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@microsoft/api-extractor": "7.52.13",
41
- "complete-node": "12.0.0",
40
+ "@microsoft/api-extractor": "7.53.3",
41
+ "complete-node": "12.2.1",
42
42
  "eslint-plugin-sort-exports": "0.9.1",
43
- "typescript-eslint": "8.43.0",
43
+ "typescript-eslint": "8.46.2",
44
44
  "typescript-to-lua": "1.32.0"
45
45
  }
46
46
  }
@@ -130,6 +130,11 @@ export function getBossIDFromEntityTypeVariant(
130
130
  entityType: EntityType,
131
131
  variant: int,
132
132
  ): BossID | undefined {
133
+ // First, handle some special cases.
134
+ if (entityType === EntityType.HORSEMAN_HEAD) {
135
+ return BossID.HEADLESS_HORSEMAN;
136
+ }
137
+
133
138
  const entityTypeVariant = `${entityType}.${variant}`;
134
139
  return ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP.get(entityTypeVariant);
135
140
  }
@@ -1,3 +1,5 @@
1
+ /* eslint-disable jsdoc/escape-inline-tags */
2
+
1
3
  /**
2
4
  * If you decide to structure your mod as a set of feature classes, you can use decorators to
3
5
  * automatically register callbacks.
@@ -114,10 +114,10 @@ export function getObjectPartialMatch<T>(
114
114
  * const array = ["foo", "bar"];
115
115
  * const searchText = "f";
116
116
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
117
- *
118
- * @returns If a match was found, returns the array element. If a match was not
119
- * found, returns undefined.
120
117
  * ```
118
+ *
119
+ * @returns If a match was found, returns the array element. If a match was not found, returns
120
+ * undefined.
121
121
  */
122
122
  export function getPartialMatch(
123
123
  searchText: string,