isaacscript-common 71.0.0 → 71.0.1

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.
@@ -5065,7 +5065,7 @@ export declare function getChallengeCharacter(challenge: Challenge): PlayerType;
5065
5065
  *
5066
5066
  * For modded challenges, an empty array will be returned.
5067
5067
  */
5068
- export declare function getChallengeCollectibles(challenge: Challenge): readonly CollectibleType[];
5068
+ export declare function getChallengeCollectibleTypes(challenge: Challenge): readonly CollectibleType[];
5069
5069
 
5070
5070
  /**
5071
5071
  * Get the proper name for a `Challenge` enum. This will only work for vanilla challenges.
@@ -5081,7 +5081,7 @@ export declare function getChallengeName(challenge: Challenge): string;
5081
5081
  *
5082
5082
  * For modded challenges, `undefined` will be returned.
5083
5083
  */
5084
- export declare function getChallengeTrinket(challenge: Challenge): TrinketType | undefined;
5084
+ export declare function getChallengeTrinketType(challenge: Challenge): TrinketType | undefined;
5085
5085
 
5086
5086
  /** Helper function to get the numerical damage multiplier for a character. */
5087
5087
  export declare function getCharacterDamageMultiplier(character: PlayerType, hasWhoreOfBabylon?: boolean): float;
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 71.0.0
3
+ isaacscript-common 71.0.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -54777,12 +54777,12 @@ ____exports.CHALLENGE_CHARACTERS = {
54777
54777
  }
54778
54778
  return ____exports
54779
54779
  end,
54780
- ["src.objects.challengeCollectibles"] = function(...)
54780
+ ["src.objects.challengeCollectibleTypes"] = function(...)
54781
54781
  local ____exports = {}
54782
54782
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
54783
54783
  local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
54784
54784
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
54785
- ____exports.CHALLENGE_COLLECTIBLES = {
54785
+ ____exports.CHALLENGE_COLLECTIBLE_TYPES = {
54786
54786
  [Challenge.NULL] = {},
54787
54787
  [Challenge.PITCH_BLACK] = {},
54788
54788
  [Challenge.HIGH_BROW] = {CollectibleType.NUMBER_ONE, CollectibleType.BUTT_BOMBS, CollectibleType.E_COLI, CollectibleType.FLUSH},
@@ -54910,12 +54910,12 @@ ____exports.CHALLENGE_NAMES = {
54910
54910
  }
54911
54911
  return ____exports
54912
54912
  end,
54913
- ["src.objects.challengeTrinkets"] = function(...)
54913
+ ["src.objects.challengeTrinketType"] = function(...)
54914
54914
  local ____exports = {}
54915
54915
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
54916
54916
  local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
54917
54917
  local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
54918
- ____exports.CHALLENGE_TRINKETS = {
54918
+ ____exports.CHALLENGE_TRINKET_TYPE = {
54919
54919
  [Challenge.NULL] = nil,
54920
54920
  [Challenge.PITCH_BLACK] = nil,
54921
54921
  [Challenge.HIGH_BROW] = TrinketType.PETRIFIED_POOP,
@@ -54977,13 +54977,13 @@ local DEFAULT_CHALLENGE_BOSS_ID = ____challengeBosses.DEFAULT_CHALLENGE_BOSS_ID
54977
54977
  local ____challengeCharacters = require("src.objects.challengeCharacters")
54978
54978
  local CHALLENGE_CHARACTERS = ____challengeCharacters.CHALLENGE_CHARACTERS
54979
54979
  local DEFAULT_CHALLENGE_CHARACTER = ____challengeCharacters.DEFAULT_CHALLENGE_CHARACTER
54980
- local ____challengeCollectibles = require("src.objects.challengeCollectibles")
54981
- local CHALLENGE_COLLECTIBLES = ____challengeCollectibles.CHALLENGE_COLLECTIBLES
54980
+ local ____challengeCollectibleTypes = require("src.objects.challengeCollectibleTypes")
54981
+ local CHALLENGE_COLLECTIBLE_TYPES = ____challengeCollectibleTypes.CHALLENGE_COLLECTIBLE_TYPES
54982
54982
  local ____challengeNames = require("src.objects.challengeNames")
54983
54983
  local CHALLENGE_NAMES = ____challengeNames.CHALLENGE_NAMES
54984
54984
  local DEFAULT_CHALLENGE_NAME = ____challengeNames.DEFAULT_CHALLENGE_NAME
54985
- local ____challengeTrinkets = require("src.objects.challengeTrinkets")
54986
- local CHALLENGE_TRINKETS = ____challengeTrinkets.CHALLENGE_TRINKETS
54985
+ local ____challengeTrinketType = require("src.objects.challengeTrinketType")
54986
+ local CHALLENGE_TRINKET_TYPE = ____challengeTrinketType.CHALLENGE_TRINKET_TYPE
54987
54987
  local ____log = require("src.functions.log")
54988
54988
  local log = ____log.log
54989
54989
  function ____exports.onAnyChallenge(self)
@@ -55005,15 +55005,15 @@ function ____exports.getChallengeCharacter(self, challenge)
55005
55005
  local challengeCharacter = CHALLENGE_CHARACTERS[challenge]
55006
55006
  return challengeCharacter or DEFAULT_CHALLENGE_CHARACTER
55007
55007
  end
55008
- function ____exports.getChallengeCollectibles(self, challenge)
55009
- return CHALLENGE_COLLECTIBLES[challenge]
55008
+ function ____exports.getChallengeCollectibleTypes(self, challenge)
55009
+ return CHALLENGE_COLLECTIBLE_TYPES[challenge]
55010
55010
  end
55011
55011
  function ____exports.getChallengeName(self, challenge)
55012
55012
  local challengeName = CHALLENGE_NAMES[challenge]
55013
55013
  return challengeName or DEFAULT_CHALLENGE_NAME
55014
55014
  end
55015
- function ____exports.getChallengeTrinket(self, challenge)
55016
- return CHALLENGE_TRINKETS[challenge]
55015
+ function ____exports.getChallengeTrinketType(self, challenge)
55016
+ return CHALLENGE_TRINKET_TYPE[challenge]
55017
55017
  end
55018
55018
  function ____exports.onChallenge(self, ...)
55019
55019
  local challenges = {...}
@@ -29,7 +29,7 @@ export declare function getChallengeCharacter(challenge: Challenge): PlayerType;
29
29
  *
30
30
  * For modded challenges, an empty array will be returned.
31
31
  */
32
- export declare function getChallengeCollectibles(challenge: Challenge): readonly CollectibleType[];
32
+ export declare function getChallengeCollectibleTypes(challenge: Challenge): readonly CollectibleType[];
33
33
  /**
34
34
  * Get the proper name for a `Challenge` enum. This will only work for vanilla challenges.
35
35
  *
@@ -43,7 +43,7 @@ export declare function getChallengeName(challenge: Challenge): string;
43
43
  *
44
44
  * For modded challenges, `undefined` will be returned.
45
45
  */
46
- export declare function getChallengeTrinket(challenge: Challenge): TrinketType | undefined;
46
+ export declare function getChallengeTrinketType(challenge: Challenge): TrinketType | undefined;
47
47
  /** Helper function to see if the player is playing any challenge. */
48
48
  export declare function onAnyChallenge(): boolean;
49
49
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"challenges.d.ts","sourceRoot":"","sources":["../../../src/functions/challenges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAiBzD;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAQrC;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAK7D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAKtE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,SAAS,GACnB,SAAS,eAAe,EAAE,CAE5B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAK7D;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,SAAS,GACnB,WAAW,GAAG,SAAS,CAEzB;AAED,qEAAqE;AACrE,wBAAgB,cAAc,IAAI,OAAO,CAGxC;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAG/D;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAQvD"}
1
+ {"version":3,"file":"challenges.d.ts","sourceRoot":"","sources":["../../../src/functions/challenges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAiBzD;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAQrC;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAK7D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAKtE;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,SAAS,GACnB,SAAS,eAAe,EAAE,CAE5B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAK7D;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,SAAS,GACnB,WAAW,GAAG,SAAS,CAEzB;AAED,qEAAqE;AACrE,wBAAgB,cAAc,IAAI,OAAO,CAGxC;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAG/D;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAQvD"}
@@ -9,13 +9,13 @@ local DEFAULT_CHALLENGE_BOSS_ID = ____challengeBosses.DEFAULT_CHALLENGE_BOSS_ID
9
9
  local ____challengeCharacters = require("src.objects.challengeCharacters")
10
10
  local CHALLENGE_CHARACTERS = ____challengeCharacters.CHALLENGE_CHARACTERS
11
11
  local DEFAULT_CHALLENGE_CHARACTER = ____challengeCharacters.DEFAULT_CHALLENGE_CHARACTER
12
- local ____challengeCollectibles = require("src.objects.challengeCollectibles")
13
- local CHALLENGE_COLLECTIBLES = ____challengeCollectibles.CHALLENGE_COLLECTIBLES
12
+ local ____challengeCollectibleTypes = require("src.objects.challengeCollectibleTypes")
13
+ local CHALLENGE_COLLECTIBLE_TYPES = ____challengeCollectibleTypes.CHALLENGE_COLLECTIBLE_TYPES
14
14
  local ____challengeNames = require("src.objects.challengeNames")
15
15
  local CHALLENGE_NAMES = ____challengeNames.CHALLENGE_NAMES
16
16
  local DEFAULT_CHALLENGE_NAME = ____challengeNames.DEFAULT_CHALLENGE_NAME
17
- local ____challengeTrinkets = require("src.objects.challengeTrinkets")
18
- local CHALLENGE_TRINKETS = ____challengeTrinkets.CHALLENGE_TRINKETS
17
+ local ____challengeTrinketType = require("src.objects.challengeTrinketType")
18
+ local CHALLENGE_TRINKET_TYPE = ____challengeTrinketType.CHALLENGE_TRINKET_TYPE
19
19
  local ____log = require("src.functions.log")
20
20
  local log = ____log.log
21
21
  --- Helper function to see if the player is playing any challenge.
@@ -56,8 +56,8 @@ end
56
56
  --- Get the extra starting collectibles for a challenge. This will only work for vanilla challenges.
57
57
  --
58
58
  -- For modded challenges, an empty array will be returned.
59
- function ____exports.getChallengeCollectibles(self, challenge)
60
- return CHALLENGE_COLLECTIBLES[challenge]
59
+ function ____exports.getChallengeCollectibleTypes(self, challenge)
60
+ return CHALLENGE_COLLECTIBLE_TYPES[challenge]
61
61
  end
62
62
  --- Get the proper name for a `Challenge` enum. This will only work for vanilla challenges.
63
63
  --
@@ -71,8 +71,8 @@ end
71
71
  -- If a challenge does not grant a starting trinket, `undefined` will be returned.
72
72
  --
73
73
  -- For modded challenges, `undefined` will be returned.
74
- function ____exports.getChallengeTrinket(self, challenge)
75
- return CHALLENGE_TRINKETS[challenge]
74
+ function ____exports.getChallengeTrinketType(self, challenge)
75
+ return CHALLENGE_TRINKET_TYPE[challenge]
76
76
  end
77
77
  --- Helper function to check to see if the player is playing a particular challenge.
78
78
  --
@@ -5,7 +5,7 @@ import { CollectibleType } from "isaac-typescript-definitions";
5
5
  *
6
6
  * Taken from the "challenges.xml" file.
7
7
  */
8
- export declare const CHALLENGE_COLLECTIBLES: {
8
+ export declare const CHALLENGE_COLLECTIBLE_TYPES: {
9
9
  readonly 0: readonly [];
10
10
  readonly 1: readonly [];
11
11
  readonly 2: readonly [CollectibleType.NUMBER_ONE, CollectibleType.BUTT_BOMBS, CollectibleType.E_COLI, CollectibleType.FLUSH];
@@ -53,4 +53,4 @@ export declare const CHALLENGE_COLLECTIBLES: {
53
53
  readonly 44: readonly [CollectibleType.DADS_KEY];
54
54
  readonly 45: readonly [CollectibleType.TMTRAINER];
55
55
  };
56
- //# sourceMappingURL=challengeCollectibles.d.ts.map
56
+ //# sourceMappingURL=challengeCollectibleTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"challengeCollectibleTypes.d.ts","sourceRoot":"","sources":["../../../src/objects/challengeCollectibleTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiS0B,CAAC"}
@@ -6,7 +6,7 @@ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
6
6
  -- starting collectibles are represented by an empty array.
7
7
  --
8
8
  -- Taken from the "challenges.xml" file.
9
- ____exports.CHALLENGE_COLLECTIBLES = {
9
+ ____exports.CHALLENGE_COLLECTIBLE_TYPES = {
10
10
  [Challenge.NULL] = {},
11
11
  [Challenge.PITCH_BLACK] = {},
12
12
  [Challenge.HIGH_BROW] = {CollectibleType.NUMBER_ONE, CollectibleType.BUTT_BOMBS, CollectibleType.E_COLI, CollectibleType.FLUSH},
@@ -5,7 +5,7 @@ import { TrinketType } from "isaac-typescript-definitions";
5
5
  *
6
6
  * Taken from the "challenges.xml" file.
7
7
  */
8
- export declare const CHALLENGE_TRINKETS: {
8
+ export declare const CHALLENGE_TRINKET_TYPE: {
9
9
  readonly 0: undefined;
10
10
  readonly 1: undefined;
11
11
  readonly 2: TrinketType.PETRIFIED_POOP;
@@ -53,4 +53,4 @@ export declare const CHALLENGE_TRINKETS: {
53
53
  readonly 44: undefined;
54
54
  readonly 45: undefined;
55
55
  };
56
- //# sourceMappingURL=challengeTrinkets.d.ts.map
56
+ //# sourceMappingURL=challengeTrinketType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"challengeTrinketType.d.ts","sourceRoot":"","sources":["../../../src/objects/challengeTrinketType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C4B,CAAC"}
@@ -6,7 +6,7 @@ local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
6
6
  -- will have a value of `undefined`.
7
7
  --
8
8
  -- Taken from the "challenges.xml" file.
9
- ____exports.CHALLENGE_TRINKETS = {
9
+ ____exports.CHALLENGE_TRINKET_TYPE = {
10
10
  [Challenge.NULL] = nil,
11
11
  [Challenge.PITCH_BLACK] = nil,
12
12
  [Challenge.HIGH_BROW] = TrinketType.PETRIFIED_POOP,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "71.0.0",
3
+ "version": "71.0.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -13,12 +13,12 @@ import {
13
13
  CHALLENGE_CHARACTERS,
14
14
  DEFAULT_CHALLENGE_CHARACTER,
15
15
  } from "../objects/challengeCharacters";
16
- import { CHALLENGE_COLLECTIBLES } from "../objects/challengeCollectibles";
16
+ import { CHALLENGE_COLLECTIBLE_TYPES } from "../objects/challengeCollectibleTypes";
17
17
  import {
18
18
  CHALLENGE_NAMES,
19
19
  DEFAULT_CHALLENGE_NAME,
20
20
  } from "../objects/challengeNames";
21
- import { CHALLENGE_TRINKETS } from "../objects/challengeTrinkets";
21
+ import { CHALLENGE_TRINKET_TYPE } from "../objects/challengeTrinketType";
22
22
  import { log } from "./log";
23
23
 
24
24
  /**
@@ -71,10 +71,10 @@ export function getChallengeCharacter(challenge: Challenge): PlayerType {
71
71
  *
72
72
  * For modded challenges, an empty array will be returned.
73
73
  */
74
- export function getChallengeCollectibles(
74
+ export function getChallengeCollectibleTypes(
75
75
  challenge: Challenge,
76
76
  ): readonly CollectibleType[] {
77
- return CHALLENGE_COLLECTIBLES[challenge];
77
+ return CHALLENGE_COLLECTIBLE_TYPES[challenge];
78
78
  }
79
79
 
80
80
  /**
@@ -96,10 +96,10 @@ export function getChallengeName(challenge: Challenge): string {
96
96
  *
97
97
  * For modded challenges, `undefined` will be returned.
98
98
  */
99
- export function getChallengeTrinket(
99
+ export function getChallengeTrinketType(
100
100
  challenge: Challenge,
101
101
  ): TrinketType | undefined {
102
- return CHALLENGE_TRINKETS[challenge];
102
+ return CHALLENGE_TRINKET_TYPE[challenge];
103
103
  }
104
104
 
105
105
  /** Helper function to see if the player is playing any challenge. */
@@ -6,7 +6,7 @@ import { Challenge, CollectibleType } from "isaac-typescript-definitions";
6
6
  *
7
7
  * Taken from the "challenges.xml" file.
8
8
  */
9
- export const CHALLENGE_COLLECTIBLES = {
9
+ export const CHALLENGE_COLLECTIBLE_TYPES = {
10
10
  // 0
11
11
  [Challenge.NULL]: [],
12
12
 
@@ -6,7 +6,7 @@ import { Challenge, TrinketType } from "isaac-typescript-definitions";
6
6
  *
7
7
  * Taken from the "challenges.xml" file.
8
8
  */
9
- export const CHALLENGE_TRINKETS = {
9
+ export const CHALLENGE_TRINKET_TYPE = {
10
10
  [Challenge.NULL]: undefined, // 0
11
11
  [Challenge.PITCH_BLACK]: undefined, // 1
12
12
  [Challenge.HIGH_BROW]: TrinketType.PETRIFIED_POOP, // 2
@@ -1 +0,0 @@
1
- {"version":3,"file":"challengeCollectibles.d.ts","sourceRoot":"","sources":["../../../src/objects/challengeCollectibles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiS+B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"challengeTrinkets.d.ts","sourceRoot":"","sources":["../../../src/objects/challengeTrinkets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CgC,CAAC"}