isaacscript-common 1.0.494 → 1.0.495
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/constants.d.ts +2 -2
- package/dist/constants.lua +7 -1
- package/dist/functions/player.d.ts +3 -2
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ export declare const BOMB_EXPLODE_FRAME = 45;
|
|
|
9
9
|
export declare const CHARACTERS_WITH_AN_ACTIVE_ITEM: Set<PlayerType>;
|
|
10
10
|
/**
|
|
11
11
|
* The set of characters where red heart containers will be turned into soul hearts (e.g. Blue
|
|
12
|
-
* Baby). This
|
|
12
|
+
* Baby). This includes The Lost and Tainted Lost. This does not include Keeper or Tainted Keeper.
|
|
13
13
|
*/
|
|
14
14
|
export declare const CHARACTERS_WITH_NO_RED_HEARTS: Set<PlayerType>;
|
|
15
15
|
/**
|
|
16
16
|
* The set of characters where soul hearts will be automatically stripped away (e.g. Bethany). This
|
|
17
|
-
*
|
|
17
|
+
* includes The Lost and Tainted Lost.
|
|
18
18
|
*/
|
|
19
19
|
export declare const CHARACTERS_WITH_NO_SOUL_HEARTS: Set<PlayerType>;
|
|
20
20
|
export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.POOL_TREASURE;
|
package/dist/constants.lua
CHANGED
|
@@ -26,7 +26,13 @@ ____exports.CHARACTERS_WITH_NO_RED_HEARTS = __TS__New(Set, {
|
|
|
26
26
|
PlayerType.PLAYER_THEFORGOTTEN_B,
|
|
27
27
|
PlayerType.PLAYER_BETHANY_B
|
|
28
28
|
})
|
|
29
|
-
____exports.CHARACTERS_WITH_NO_SOUL_HEARTS = __TS__New(Set, {
|
|
29
|
+
____exports.CHARACTERS_WITH_NO_SOUL_HEARTS = __TS__New(Set, {
|
|
30
|
+
PlayerType.PLAYER_THELOST,
|
|
31
|
+
PlayerType.PLAYER_KEEPER,
|
|
32
|
+
PlayerType.PLAYER_BETHANY,
|
|
33
|
+
PlayerType.PLAYER_THELOST_B,
|
|
34
|
+
PlayerType.PLAYER_KEEPER_B
|
|
35
|
+
})
|
|
30
36
|
____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.POOL_TREASURE
|
|
31
37
|
____exports.DISTANCE_OF_GRID_TILE = 40
|
|
32
38
|
____exports.DOOR_HITBOX_DISTANCE = 11
|
|
@@ -22,8 +22,9 @@ export declare function anyPlayerHasTrinket(trinketType: TrinketType | int): boo
|
|
|
22
22
|
export declare function anyPlayerIs(matchingCharacter: PlayerType): boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Helper function to see if the provided character can have red heart containers. Returns true for
|
|
25
|
-
* characters like Isaac, Magdalene, or Cain. Returns
|
|
26
|
-
*
|
|
25
|
+
* characters like Isaac, Magdalene, or Cain. Returns true for Keeper and Tainted Keeper, even
|
|
26
|
+
* though coin containers are not technically the same as red heart containers. Returns false for
|
|
27
|
+
* characters like Blue Baby. Returns false for The Lost and Tainted Lost.
|
|
27
28
|
*/
|
|
28
29
|
export declare function characterCanHaveRedHearts(character: PlayerType): boolean;
|
|
29
30
|
/**
|