isaacscript-common 52.0.0 → 52.1.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/dist/index.rollup.d.ts +14 -7
- package/dist/isaacscript-common.lua +307 -236
- package/dist/src/functions/challenges.d.ts +12 -2
- package/dist/src/functions/challenges.d.ts.map +1 -1
- package/dist/src/functions/challenges.lua +12 -0
- package/dist/src/functions/gridEntities.d.ts +2 -5
- package/dist/src/functions/gridEntities.d.ts.map +1 -1
- package/dist/src/functions/gridEntities.lua +220 -212
- package/dist/src/objects/challengeCharacters.d.ts +51 -0
- package/dist/src/objects/challengeCharacters.d.ts.map +1 -0
- package/dist/src/objects/challengeCharacters.lua +54 -0
- package/dist/src/objects/gridEntityTypeToANM2Name.d.ts +32 -0
- package/dist/src/objects/gridEntityTypeToANM2Name.d.ts.map +1 -0
- package/dist/src/objects/gridEntityTypeToANM2Name.lua +35 -0
- package/package.json +1 -1
- package/src/functions/challenges.ts +22 -2
- package/src/functions/gridEntities.ts +33 -19
- package/src/objects/challengeCharacters.ts +52 -0
- package/src/objects/gridEntityTypeToANM2Name.ts +36 -0
- package/dist/src/objects/gridEntityTypeToANM2Path.d.ts +0 -31
- package/dist/src/objects/gridEntityTypeToANM2Path.d.ts.map +0 -1
- package/dist/src/objects/gridEntityTypeToANM2Path.lua +0 -34
- package/src/objects/gridEntityTypeToANM2Path.ts +0 -35
package/dist/index.rollup.d.ts
CHANGED
|
@@ -5011,7 +5011,18 @@ export declare function getCardName(cardType: CardType): string;
|
|
|
5011
5011
|
*/
|
|
5012
5012
|
export declare function getCards(cardType?: CardType | -1): EntityPickupCard[];
|
|
5013
5013
|
|
|
5014
|
-
/**
|
|
5014
|
+
/**
|
|
5015
|
+
* Get the starting character of a challenge. This will only work for vanilla challenges.
|
|
5016
|
+
*
|
|
5017
|
+
* For modded challenges, `PlayerType.ISAAC` (0) will be returned.
|
|
5018
|
+
*/
|
|
5019
|
+
export declare function getChallengeCharacter(challenge: Challenge): PlayerType;
|
|
5020
|
+
|
|
5021
|
+
/**
|
|
5022
|
+
* Get the proper name for a `Challenge` enum. This will only work for vanilla challenges.
|
|
5023
|
+
*
|
|
5024
|
+
* For modded challenges, "Unknown" will be returned.
|
|
5025
|
+
*/
|
|
5015
5026
|
export declare function getChallengeName(challenge: Challenge): string;
|
|
5016
5027
|
|
|
5017
5028
|
/** Helper function to get the numerical damage multiplier for a character. */
|
|
@@ -5745,12 +5756,6 @@ export declare function getGridEntitiesMap(...gridEntityTypes: GridEntityType[])
|
|
|
5745
5756
|
/** Helper function to get the ANM2 path for a grid entity type. */
|
|
5746
5757
|
export declare function getGridEntityANM2Path(gridEntityType: GridEntityType): string | undefined;
|
|
5747
5758
|
|
|
5748
|
-
/**
|
|
5749
|
-
* Helper function to get the ANM2 path for a decoration. This depends on the current room's
|
|
5750
|
-
* backdrop. The values are taken from the "backdrops.xml" file.
|
|
5751
|
-
*/
|
|
5752
|
-
export declare function getGridEntityANM2PathDecoration(): string;
|
|
5753
|
-
|
|
5754
5759
|
/** Helper function to get the top left and bottom right corners of a given grid entity. */
|
|
5755
5760
|
export declare function getGridEntityCollisionPoints(gridEntity: GridEntity): {
|
|
5756
5761
|
topLeft: Vector;
|
|
@@ -6951,6 +6956,8 @@ export declare function getRockAltType(): RockAltType;
|
|
|
6951
6956
|
/**
|
|
6952
6957
|
* Helper function to get the PNG path for a rock. This depends on the current room's backdrop. The
|
|
6953
6958
|
* values are taken from the "backdrops.xml" file.
|
|
6959
|
+
*
|
|
6960
|
+
* All of the rock PNGs are in the "gfx/grid" directory.
|
|
6954
6961
|
*/
|
|
6955
6962
|
export declare function getRockPNGPath(): string;
|
|
6956
6963
|
|