isaacscript-common 6.20.1 → 6.22.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/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.lua +4 -0
- package/dist/constantsFirstLast.d.ts +2 -2
- package/dist/constantsFirstLast.lua +2 -2
- package/dist/enums/RockAltType.d.ts +12 -1
- package/dist/enums/RockAltType.d.ts.map +1 -1
- package/dist/enums/RockAltType.lua +4 -2
- package/dist/enums/private/StageTravelState.d.ts +4 -3
- package/dist/enums/private/StageTravelState.d.ts.map +1 -1
- package/dist/enums/private/StageTravelState.lua +6 -4
- package/dist/features/customStage/backdrop.d.ts.map +1 -1
- package/dist/features/customStage/backdrop.lua +3 -2
- package/dist/features/customStage/customStageConstants.d.ts +11 -0
- package/dist/features/customStage/customStageConstants.d.ts.map +1 -1
- package/dist/features/customStage/customStageConstants.lua +10 -0
- package/dist/features/customStage/customStageGridEntities.d.ts +1 -0
- package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.lua +65 -23
- package/dist/features/customStage/exports.d.ts +17 -3
- package/dist/features/customStage/exports.d.ts.map +1 -1
- package/dist/features/customStage/exports.lua +65 -46
- package/dist/features/customStage/init.d.ts.map +1 -1
- package/dist/features/customStage/init.lua +7 -12
- package/dist/features/customStage/shadows.d.ts.map +1 -1
- package/dist/features/customStage/shadows.lua +2 -1
- package/dist/features/customStage/streakText.d.ts +0 -7
- package/dist/features/customStage/streakText.d.ts.map +1 -1
- package/dist/features/customStage/streakText.lua +52 -85
- package/dist/features/customStage/v.d.ts +13 -0
- package/dist/features/customStage/v.d.ts.map +1 -1
- package/dist/features/customStage/v.lua +6 -1
- package/dist/features/customStage/versusScreen.d.ts.map +1 -1
- package/dist/features/customStage/versusScreen.lua +32 -1
- package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
- package/dist/features/customTrapdoor/blackSprite.lua +2 -1
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +4 -0
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
- package/dist/features/customTrapdoor/exports.d.ts +11 -7
- package/dist/features/customTrapdoor/exports.d.ts.map +1 -1
- package/dist/features/customTrapdoor/exports.lua +6 -5
- package/dist/features/customTrapdoor/init.d.ts.map +1 -1
- package/dist/features/customTrapdoor/init.lua +35 -20
- package/dist/features/customTrapdoor/touched.lua +1 -1
- package/dist/features/customTrapdoor/v.d.ts +2 -2
- package/dist/features/customTrapdoor/v.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.lua +3 -3
- package/dist/features/playerInventory.d.ts +7 -0
- package/dist/features/playerInventory.d.ts.map +1 -1
- package/dist/features/playerInventory.lua +7 -0
- package/dist/features/saveDataManager/exports.d.ts +3 -0
- package/dist/features/saveDataManager/exports.d.ts.map +1 -1
- package/dist/features/saveDataManager/exports.lua +3 -0
- package/dist/functions/collectibleSet.d.ts +1 -1
- package/dist/functions/collectibleSet.lua +1 -1
- package/dist/functions/doors.d.ts +10 -0
- package/dist/functions/doors.d.ts.map +1 -1
- package/dist/functions/doors.lua +6 -0
- package/dist/functions/levelGrid.lua +1 -1
- package/dist/functions/log.d.ts +1 -15
- package/dist/functions/log.d.ts.map +1 -1
- package/dist/functions/log.lua +3 -218
- package/dist/functions/logEntities.d.ts +16 -0
- package/dist/functions/logEntities.d.ts.map +1 -0
- package/dist/functions/logEntities.lua +220 -0
- package/dist/functions/rockAlt.d.ts +6 -5
- package/dist/functions/rockAlt.d.ts.map +1 -1
- package/dist/functions/rockAlt.lua +147 -18
- package/dist/functions/roomData.d.ts +1 -1
- package/dist/functions/roomData.d.ts.map +1 -1
- package/dist/functions/roomTransition.d.ts +26 -0
- package/dist/functions/roomTransition.d.ts.map +1 -0
- package/dist/functions/roomTransition.lua +75 -0
- package/dist/functions/rooms.d.ts +36 -35
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.lua +94 -99
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +8 -0
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +2 -2
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -1
- package/dist/objects/backdropTypeToRockAltType.lua +3 -3
- package/dist/types/TrapdoorDestination.d.ts +3 -0
- package/dist/types/TrapdoorDestination.d.ts.map +1 -0
- package/dist/types/TrapdoorDestination.lua +2 -0
- package/package.json +2 -2
- package/src/constants.ts +6 -0
- package/src/constantsFirstLast.ts +2 -2
- package/src/enums/RockAltType.ts +14 -1
- package/src/enums/private/StageTravelState.ts +2 -1
- package/src/features/customStage/backdrop.ts +2 -1
- package/src/features/customStage/customStageConstants.ts +16 -0
- package/src/features/customStage/customStageGridEntities.ts +61 -0
- package/src/features/customStage/exports.ts +81 -42
- package/src/features/customStage/init.ts +7 -18
- package/src/features/customStage/shadows.ts +2 -1
- package/src/features/customStage/streakText.ts +59 -96
- package/src/features/customStage/v.ts +17 -0
- package/src/features/customStage/versusScreen.ts +29 -0
- package/src/features/customTrapdoor/blackSprite.ts +6 -1
- package/src/features/customTrapdoor/customTrapdoorConstants.ts +4 -0
- package/src/features/customTrapdoor/exports.ts +8 -6
- package/src/features/customTrapdoor/init.ts +55 -23
- package/src/features/customTrapdoor/touched.ts +4 -1
- package/src/features/customTrapdoor/v.ts +2 -5
- package/src/features/extraConsoleCommands/commandsSubroutines.ts +4 -1
- package/src/features/playerInventory.ts +7 -0
- package/src/features/saveDataManager/exports.ts +3 -0
- package/src/functions/collectibleSet.ts +1 -1
- package/src/functions/doors.ts +10 -0
- package/src/functions/levelGrid.ts +1 -1
- package/src/functions/log.ts +1 -279
- package/src/functions/logEntities.ts +276 -0
- package/src/functions/rockAlt.ts +147 -19
- package/src/functions/roomData.ts +1 -1
- package/src/functions/roomTransition.ts +78 -0
- package/src/functions/rooms.ts +104 -107
- package/src/index.ts +1 -0
- package/src/interfaces/private/CustomTrapdoorDescription.ts +2 -2
- package/src/objects/backdropTypeToRockAltType.ts +3 -3
- package/src/types/TrapdoorDestination.ts +5 -0
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { CollectibleType, ItemPoolType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* The combination of the following flags:
|
|
4
|
+
* - `DisplayFlag.VISIBLE` (1 << 0)
|
|
5
|
+
* - `DisplayFlag.SHADOW` (1 << 1)
|
|
6
|
+
* - `DisplayFlag.SHOW_ICON` (1 << 2)
|
|
7
|
+
*/
|
|
2
8
|
export declare const ALL_DISPLAY_FLAGS: BitFlags<number & {
|
|
3
9
|
readonly __bitFlagBrand: symbol;
|
|
4
10
|
} & {
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGf,YAAY,EAEb,MAAM,8BAA8B,CAAC;AAKtC,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,oGAAoG;AACpG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C;;;;GAIG;A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AAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
|
package/dist/constants.lua
CHANGED
|
@@ -10,6 +10,10 @@ local ____enums = require("functions.enums")
|
|
|
10
10
|
local getEnumLength = ____enums.getEnumLength
|
|
11
11
|
local ____flag = require("functions.flag")
|
|
12
12
|
local addFlag = ____flag.addFlag
|
|
13
|
+
--- The combination of the following flags:
|
|
14
|
+
-- - `DisplayFlag.VISIBLE` (1 << 0)
|
|
15
|
+
-- - `DisplayFlag.SHADOW` (1 << 1)
|
|
16
|
+
-- - `DisplayFlag.SHOW_ICON` (1 << 2)
|
|
13
17
|
____exports.ALL_DISPLAY_FLAGS = addFlag(nil, DisplayFlag.VISIBLE, DisplayFlag.SHADOW, DisplayFlag.SHOW_ICON)
|
|
14
18
|
--- The distance of the laser when Azazel does not have any range up items yet. For more info, see
|
|
15
19
|
-- the documentation for the `getAzazelBrimstoneDistance` function.
|
|
@@ -4,8 +4,8 @@ export declare const FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
|
|
|
4
4
|
/**
|
|
5
5
|
* Will change depending on how many modded collectibles there are.
|
|
6
6
|
*
|
|
7
|
-
* Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles
|
|
8
|
-
* subtract one to account for `CollectibleType.NULL`.)
|
|
7
|
+
* Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles, like
|
|
8
|
+
* 666. We subtract one to account for `CollectibleType.NULL`.)
|
|
9
9
|
*/
|
|
10
10
|
export declare const LAST_COLLECTIBLE_TYPE: CollectibleType;
|
|
11
11
|
/**
|
|
@@ -17,8 +17,8 @@ local getLastEnumValue = ____enums.getLastEnumValue
|
|
|
17
17
|
____exports.FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION
|
|
18
18
|
--- Will change depending on how many modded collectibles there are.
|
|
19
19
|
--
|
|
20
|
-
-- Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles
|
|
21
|
-
-- subtract one to account for `CollectibleType.NULL`.)
|
|
20
|
+
-- Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles, like
|
|
21
|
+
-- 666. We subtract one to account for `CollectibleType.NULL`.)
|
|
22
22
|
____exports.LAST_COLLECTIBLE_TYPE = itemConfig:GetCollectibles().Size - 1
|
|
23
23
|
--- Calculated from the `CollectibleType` enum.
|
|
24
24
|
--
|
|
@@ -3,6 +3,17 @@ export declare enum RockAltType {
|
|
|
3
3
|
MUSHROOM = 1,
|
|
4
4
|
SKULL = 2,
|
|
5
5
|
POLYP = 3,
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Destroying buckets in Downpour give different outcomes than in Dross.
|
|
8
|
+
*
|
|
9
|
+
* See: https://bindingofisaacrebirth.fandom.com/wiki/Rocks#Buckets
|
|
10
|
+
*/
|
|
11
|
+
BUCKET_DOWNPOUR = 4,
|
|
12
|
+
/**
|
|
13
|
+
* Destroying buckets in Dross give different outcomes than in Downpour.
|
|
14
|
+
*
|
|
15
|
+
* See: https://bindingofisaacrebirth.fandom.com/wiki/Rocks#Buckets
|
|
16
|
+
*/
|
|
17
|
+
BUCKET_DROSS = 5
|
|
7
18
|
}
|
|
8
19
|
//# sourceMappingURL=RockAltType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RockAltType.d.ts","sourceRoot":"","sources":["../../src/enums/RockAltType.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,GAAG,IAAA;IACH,QAAQ,IAAA;IACR,KAAK,IAAA;IACL,KAAK,IAAA;
|
|
1
|
+
{"version":3,"file":"RockAltType.d.ts","sourceRoot":"","sources":["../../src/enums/RockAltType.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,GAAG,IAAA;IACH,QAAQ,IAAA;IACR,KAAK,IAAA;IACL,KAAK,IAAA;IAEL;;;;OAIG;IACH,eAAe,IAAA;IAEf;;;;OAIG;IACH,YAAY,IAAA;CACb"}
|
|
@@ -8,6 +8,8 @@ ____exports.RockAltType.SKULL = 2
|
|
|
8
8
|
____exports.RockAltType[____exports.RockAltType.SKULL] = "SKULL"
|
|
9
9
|
____exports.RockAltType.POLYP = 3
|
|
10
10
|
____exports.RockAltType[____exports.RockAltType.POLYP] = "POLYP"
|
|
11
|
-
____exports.RockAltType.
|
|
12
|
-
____exports.RockAltType[____exports.RockAltType.
|
|
11
|
+
____exports.RockAltType.BUCKET_DOWNPOUR = 4
|
|
12
|
+
____exports.RockAltType[____exports.RockAltType.BUCKET_DOWNPOUR] = "BUCKET_DOWNPOUR"
|
|
13
|
+
____exports.RockAltType.BUCKET_DROSS = 5
|
|
14
|
+
____exports.RockAltType[____exports.RockAltType.BUCKET_DROSS] = "BUCKET_DROSS"
|
|
13
15
|
return ____exports
|
|
@@ -2,8 +2,9 @@ export declare enum StageTravelState {
|
|
|
2
2
|
NONE = 0,
|
|
3
3
|
PLAYERS_JUMPING_DOWN = 1,
|
|
4
4
|
PIXELATION_TO_BLACK = 2,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
WAITING_FOR_FIRST_PIXELATION_TO_END = 3,
|
|
6
|
+
WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY = 4,
|
|
7
|
+
PIXELATION_TO_ROOM = 5,
|
|
8
|
+
PLAYERS_LAYING_DOWN = 6
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=StageTravelState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageTravelState.d.ts","sourceRoot":"","sources":["../../../src/enums/private/StageTravelState.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,IAAA;IACJ,oBAAoB,IAAA;IACpB,mBAAmB,IAAA;IACnB,
|
|
1
|
+
{"version":3,"file":"StageTravelState.d.ts","sourceRoot":"","sources":["../../../src/enums/private/StageTravelState.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,IAAA;IACJ,oBAAoB,IAAA;IACpB,mBAAmB,IAAA;IACnB,mCAAmC,IAAA;IACnC,6CAA6C,IAAA;IAC7C,kBAAkB,IAAA;IAClB,mBAAmB,IAAA;CACpB"}
|
|
@@ -6,10 +6,12 @@ ____exports.StageTravelState.PLAYERS_JUMPING_DOWN = 1
|
|
|
6
6
|
____exports.StageTravelState[____exports.StageTravelState.PLAYERS_JUMPING_DOWN] = "PLAYERS_JUMPING_DOWN"
|
|
7
7
|
____exports.StageTravelState.PIXELATION_TO_BLACK = 2
|
|
8
8
|
____exports.StageTravelState[____exports.StageTravelState.PIXELATION_TO_BLACK] = "PIXELATION_TO_BLACK"
|
|
9
|
-
____exports.StageTravelState.
|
|
10
|
-
____exports.StageTravelState[____exports.StageTravelState.
|
|
11
|
-
____exports.StageTravelState.
|
|
9
|
+
____exports.StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END = 3
|
|
10
|
+
____exports.StageTravelState[____exports.StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END] = "WAITING_FOR_FIRST_PIXELATION_TO_END"
|
|
11
|
+
____exports.StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY = 4
|
|
12
|
+
____exports.StageTravelState[____exports.StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY] = "WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY"
|
|
13
|
+
____exports.StageTravelState.PIXELATION_TO_ROOM = 5
|
|
12
14
|
____exports.StageTravelState[____exports.StageTravelState.PIXELATION_TO_ROOM] = "PIXELATION_TO_ROOM"
|
|
13
|
-
____exports.StageTravelState.PLAYERS_LAYING_DOWN =
|
|
15
|
+
____exports.StageTravelState.PLAYERS_LAYING_DOWN = 6
|
|
14
16
|
____exports.StageTravelState[____exports.StageTravelState.PLAYERS_LAYING_DOWN] = "PLAYERS_LAYING_DOWN"
|
|
15
17
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/backdrop.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/backdrop.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AA2E3D,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAc1D"}
|
|
@@ -2,7 +2,7 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Set = ____lualib.Set
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
|
-
local getBackdropPNGPath, spawnWallEntity, spawnSecondWallEntity, spawnFloorEntity, getNumFloorLayers, BackdropKind, DEFAULT_BACKDROP, ROOM_SHAPE_WALL_ANM2_LAYERS, ROOM_SHAPE_WALL_EXTRA_ANM2_LAYERS, WALL_OFFSET, L_FLOOR_ANM2_LAYERS, N_FLOOR_ANM2_LAYERS, BACKDROP_EFFECT_VARIANT
|
|
5
|
+
local getBackdropPNGPath, spawnWallEntity, spawnSecondWallEntity, spawnFloorEntity, getNumFloorLayers, BackdropKind, DEFAULT_BACKDROP, ROOM_SHAPE_WALL_ANM2_LAYERS, ROOM_SHAPE_WALL_EXTRA_ANM2_LAYERS, WALL_OFFSET, L_FLOOR_ANM2_LAYERS, N_FLOOR_ANM2_LAYERS, BACKDROP_EFFECT_VARIANT, BACKDROP_EFFECT_SUBTYPE
|
|
6
6
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
7
|
local EffectVariant = ____isaac_2Dtypescript_2Ddefinitions.EffectVariant
|
|
8
8
|
local EntityFlag = ____isaac_2Dtypescript_2Ddefinitions.EntityFlag
|
|
@@ -39,7 +39,7 @@ function spawnWallEntity(self, customStage, rng, isExtraWall)
|
|
|
39
39
|
local wallEffect = spawnEffectWithSeed(
|
|
40
40
|
nil,
|
|
41
41
|
BACKDROP_EFFECT_VARIANT,
|
|
42
|
-
|
|
42
|
+
BACKDROP_EFFECT_SUBTYPE,
|
|
43
43
|
VectorZero,
|
|
44
44
|
1
|
|
45
45
|
)
|
|
@@ -177,6 +177,7 @@ WALL_OFFSET = Vector(-80, -80)
|
|
|
177
177
|
L_FLOOR_ANM2_LAYERS = {16, 17}
|
|
178
178
|
N_FLOOR_ANM2_LAYERS = {18, 19}
|
|
179
179
|
BACKDROP_EFFECT_VARIANT = EffectVariant.LADDER
|
|
180
|
+
BACKDROP_EFFECT_SUBTYPE = 101
|
|
180
181
|
local BACKDROP_ROOM_TYPE_SET = __TS__New(Set, {RoomType.DEFAULT, RoomType.BOSS, RoomType.MINI_BOSS})
|
|
181
182
|
function ____exports.setBackdrop(self, customStage)
|
|
182
183
|
local room = game:GetRoom()
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
1
2
|
export declare const ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = "gfx/isaacscript-custom-stage";
|
|
3
|
+
/** Corresponds to "ui_streak.anm2". */
|
|
4
|
+
export declare enum UIStreakAnimation {
|
|
5
|
+
NONE = 0,
|
|
6
|
+
TEXT = 1,
|
|
7
|
+
TEXT_STAY = 2
|
|
8
|
+
}
|
|
9
|
+
/** Corresponds to "ui_streak.anm2". */
|
|
10
|
+
export declare const UI_STREAK_ANIMATION_END_FRAMES: {
|
|
11
|
+
readonly [key in UIStreakAnimation]: int;
|
|
12
|
+
};
|
|
2
13
|
//# sourceMappingURL=customStageConstants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customStageConstants.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"customStageConstants.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageConstants.ts"],"names":[],"mappings":";AAAA,eAAO,MAAM,iCAAiC,iCAAiC,CAAC;AAEhF,uCAAuC;AACvC,oBAAY,iBAAiB;IAC3B,IAAI,IAAA;IACJ,IAAI,IAAA;IACJ,SAAS,IAAA;CACV;AAED,uCAAuC;AACvC,eAAO,MAAM,8BAA8B,EAAE;IAC3C,QAAQ,EAAE,GAAG,IAAI,iBAAiB,GAAG,GAAG;CAKhC,CAAC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
____exports.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = "gfx/isaacscript-custom-stage"
|
|
3
|
+
--- Corresponds to "ui_streak.anm2".
|
|
4
|
+
____exports.UIStreakAnimation = {}
|
|
5
|
+
____exports.UIStreakAnimation.NONE = 0
|
|
6
|
+
____exports.UIStreakAnimation[____exports.UIStreakAnimation.NONE] = "NONE"
|
|
7
|
+
____exports.UIStreakAnimation.TEXT = 1
|
|
8
|
+
____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT] = "TEXT"
|
|
9
|
+
____exports.UIStreakAnimation.TEXT_STAY = 2
|
|
10
|
+
____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT_STAY] = "TEXT_STAY"
|
|
11
|
+
--- Corresponds to "ui_streak.anm2".
|
|
12
|
+
____exports.UI_STREAK_ANIMATION_END_FRAMES = {[____exports.UIStreakAnimation.NONE] = 0, [____exports.UIStreakAnimation.TEXT] = 69, [____exports.UIStreakAnimation.TEXT_STAY] = 1}
|
|
3
13
|
return ____exports
|
|
@@ -8,6 +8,7 @@ export declare function setCustomRockGraphics(customStage: CustomStage, gridEnti
|
|
|
8
8
|
export declare function setCustomPitGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
9
9
|
/** For GridEntityType.DOOR (16) */
|
|
10
10
|
export declare function setCustomDoorGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
11
|
+
export declare function convertVanillaTrapdoors(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
11
12
|
/**
|
|
12
13
|
* The rewards are based on the ones from the wiki:
|
|
13
14
|
* https://bindingofisaacrebirth.fandom.com/wiki/Rocks#Urns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customStageGridEntities.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageGridEntities.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"customStageGridEntities.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageGridEntities.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAM3D,0CAA0C;AAC1C,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAyBN;AAED,oCAAoC;AACpC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAqBN;AAED,mCAAmC;AACnC,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAkBN;AAED,mCAAmC;AACnC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAmBN;AAuDD,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAsBN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAsBN"}
|
|
@@ -5,6 +5,7 @@ local getNewDoorPNGPath, removeEntitiesSpawnedFromGridEntity
|
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
7
7
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
8
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
8
9
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
9
10
|
local ____DecorationVariant = require("enums.DecorationVariant")
|
|
10
11
|
local DecorationVariant = ____DecorationVariant.DecorationVariant
|
|
@@ -12,17 +13,27 @@ local ____entities = require("functions.entities")
|
|
|
12
13
|
local removeEntities = ____entities.removeEntities
|
|
13
14
|
local ____entitiesSpecific = require("functions.entitiesSpecific")
|
|
14
15
|
local getNPCs = ____entitiesSpecific.getNPCs
|
|
16
|
+
local ____gridEntities = require("functions.gridEntities")
|
|
17
|
+
local removeGridEntity = ____gridEntities.removeGridEntity
|
|
15
18
|
local ____pickupsSpecific = require("functions.pickupsSpecific")
|
|
16
19
|
local getCoins = ____pickupsSpecific.getCoins
|
|
17
20
|
local getCollectibles = ____pickupsSpecific.getCollectibles
|
|
18
21
|
local getTrinkets = ____pickupsSpecific.getTrinkets
|
|
22
|
+
local ____stage = require("functions.stage")
|
|
23
|
+
local calculateStageType = ____stage.calculateStageType
|
|
19
24
|
local ____vector = require("functions.vector")
|
|
20
25
|
local vectorEquals = ____vector.vectorEquals
|
|
26
|
+
local ____exports = require("features.customTrapdoor.exports")
|
|
27
|
+
local spawnCustomTrapdoor = ____exports.spawnCustomTrapdoor
|
|
28
|
+
local ____exports = require("features.customStage.exports")
|
|
29
|
+
local DEFAULT_BASE_STAGE = ____exports.DEFAULT_BASE_STAGE
|
|
30
|
+
local ____v = require("features.customStage.v")
|
|
31
|
+
local v = ____v.default
|
|
21
32
|
function getNewDoorPNGPath(self, customStage, fileName)
|
|
22
33
|
repeat
|
|
23
|
-
local
|
|
24
|
-
local
|
|
25
|
-
if
|
|
34
|
+
local ____switch21 = fileName
|
|
35
|
+
local ____cond21 = ____switch21 == "gfx/grid/door_01_normaldoor.anm2"
|
|
36
|
+
if ____cond21 then
|
|
26
37
|
do
|
|
27
38
|
local ____customStage_doorPNGPaths_normal_0 = customStage.doorPNGPaths
|
|
28
39
|
if ____customStage_doorPNGPaths_normal_0 ~= nil then
|
|
@@ -31,8 +42,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
31
42
|
return ____customStage_doorPNGPaths_normal_0
|
|
32
43
|
end
|
|
33
44
|
end
|
|
34
|
-
|
|
35
|
-
if
|
|
45
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_02_treasureroomdoor.anm2"
|
|
46
|
+
if ____cond21 then
|
|
36
47
|
do
|
|
37
48
|
local ____customStage_doorPNGPaths_treasureRoom_2 = customStage.doorPNGPaths
|
|
38
49
|
if ____customStage_doorPNGPaths_treasureRoom_2 ~= nil then
|
|
@@ -41,8 +52,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
41
52
|
return ____customStage_doorPNGPaths_treasureRoom_2
|
|
42
53
|
end
|
|
43
54
|
end
|
|
44
|
-
|
|
45
|
-
if
|
|
55
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_03_ambushroomdoor.anm2"
|
|
56
|
+
if ____cond21 then
|
|
46
57
|
do
|
|
47
58
|
local ____customStage_doorPNGPaths_normalChallengeRoom_4 = customStage.doorPNGPaths
|
|
48
59
|
if ____customStage_doorPNGPaths_normalChallengeRoom_4 ~= nil then
|
|
@@ -51,8 +62,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
51
62
|
return ____customStage_doorPNGPaths_normalChallengeRoom_4
|
|
52
63
|
end
|
|
53
64
|
end
|
|
54
|
-
|
|
55
|
-
if
|
|
65
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_04_selfsacrificeroomdoor.anm2"
|
|
66
|
+
if ____cond21 then
|
|
56
67
|
do
|
|
57
68
|
local ____customStage_doorPNGPaths_curseRoom_6 = customStage.doorPNGPaths
|
|
58
69
|
if ____customStage_doorPNGPaths_curseRoom_6 ~= nil then
|
|
@@ -61,8 +72,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
61
72
|
return ____customStage_doorPNGPaths_curseRoom_6
|
|
62
73
|
end
|
|
63
74
|
end
|
|
64
|
-
|
|
65
|
-
if
|
|
75
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_05_arcaderoomdoor.anm2"
|
|
76
|
+
if ____cond21 then
|
|
66
77
|
do
|
|
67
78
|
local ____customStage_doorPNGPaths_arcade_8 = customStage.doorPNGPaths
|
|
68
79
|
if ____customStage_doorPNGPaths_arcade_8 ~= nil then
|
|
@@ -71,8 +82,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
71
82
|
return ____customStage_doorPNGPaths_arcade_8
|
|
72
83
|
end
|
|
73
84
|
end
|
|
74
|
-
|
|
75
|
-
if
|
|
85
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_07_devilroomdoor.anm2"
|
|
86
|
+
if ____cond21 then
|
|
76
87
|
do
|
|
77
88
|
local ____customStage_doorPNGPaths_devilRoom_10 = customStage.doorPNGPaths
|
|
78
89
|
if ____customStage_doorPNGPaths_devilRoom_10 ~= nil then
|
|
@@ -81,8 +92,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
81
92
|
return ____customStage_doorPNGPaths_devilRoom_10
|
|
82
93
|
end
|
|
83
94
|
end
|
|
84
|
-
|
|
85
|
-
if
|
|
95
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_07_holyroomdoor.anm2"
|
|
96
|
+
if ____cond21 then
|
|
86
97
|
do
|
|
87
98
|
local ____customStage_doorPNGPaths_angelRoom_12 = customStage.doorPNGPaths
|
|
88
99
|
if ____customStage_doorPNGPaths_angelRoom_12 ~= nil then
|
|
@@ -91,8 +102,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
91
102
|
return ____customStage_doorPNGPaths_angelRoom_12
|
|
92
103
|
end
|
|
93
104
|
end
|
|
94
|
-
|
|
95
|
-
if
|
|
105
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_08_holeinwall.anm2"
|
|
106
|
+
if ____cond21 then
|
|
96
107
|
do
|
|
97
108
|
local ____customStage_doorPNGPaths_secretRoom_14 = customStage.doorPNGPaths
|
|
98
109
|
if ____customStage_doorPNGPaths_secretRoom_14 ~= nil then
|
|
@@ -101,8 +112,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
101
112
|
return ____customStage_doorPNGPaths_secretRoom_14
|
|
102
113
|
end
|
|
103
114
|
end
|
|
104
|
-
|
|
105
|
-
if
|
|
115
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_09_bossambushroomdoor.anm2"
|
|
116
|
+
if ____cond21 then
|
|
106
117
|
do
|
|
107
118
|
local ____customStage_doorPNGPaths_bossChallengeRoom_16 = customStage.doorPNGPaths
|
|
108
119
|
if ____customStage_doorPNGPaths_bossChallengeRoom_16 ~= nil then
|
|
@@ -111,8 +122,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
111
122
|
return ____customStage_doorPNGPaths_bossChallengeRoom_16
|
|
112
123
|
end
|
|
113
124
|
end
|
|
114
|
-
|
|
115
|
-
if
|
|
125
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_10_bossroomdoor.anm2"
|
|
126
|
+
if ____cond21 then
|
|
116
127
|
do
|
|
117
128
|
local ____customStage_doorPNGPaths_bossRoom_18 = customStage.doorPNGPaths
|
|
118
129
|
if ____customStage_doorPNGPaths_bossRoom_18 ~= nil then
|
|
@@ -121,8 +132,8 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
121
132
|
return ____customStage_doorPNGPaths_bossRoom_18
|
|
122
133
|
end
|
|
123
134
|
end
|
|
124
|
-
|
|
125
|
-
if
|
|
135
|
+
____cond21 = ____cond21 or ____switch21 == "gfx/grid/door_15_bossrushdoor.anm2"
|
|
136
|
+
if ____cond21 then
|
|
126
137
|
do
|
|
127
138
|
local ____customStage_doorPNGPaths_bossRush_20 = customStage.doorPNGPaths
|
|
128
139
|
if ____customStage_doorPNGPaths_bossRush_20 ~= nil then
|
|
@@ -146,6 +157,10 @@ function ____exports.setCustomDecorationGraphics(self, customStage, gridEntity)
|
|
|
146
157
|
if customStage.decorationsPNGPath == nil then
|
|
147
158
|
return
|
|
148
159
|
end
|
|
160
|
+
local gridEntityType = gridEntity:GetType()
|
|
161
|
+
if gridEntityType ~= GridEntityType.DECORATION then
|
|
162
|
+
return
|
|
163
|
+
end
|
|
149
164
|
local variant = gridEntity:GetVariant()
|
|
150
165
|
if variant ~= DecorationVariant.VANILLA_DECORATION then
|
|
151
166
|
return
|
|
@@ -162,6 +177,10 @@ function ____exports.setCustomRockGraphics(self, customStage, gridEntity)
|
|
|
162
177
|
if customStage.rocksPNGPath == nil then
|
|
163
178
|
return
|
|
164
179
|
end
|
|
180
|
+
local gridEntityRock = gridEntity:ToRock()
|
|
181
|
+
if gridEntityRock == nil then
|
|
182
|
+
return
|
|
183
|
+
end
|
|
165
184
|
local sprite = gridEntity:GetSprite()
|
|
166
185
|
local fileName = sprite:GetFilename()
|
|
167
186
|
if fileName == "gfx/grid/grid_rock.anm2" then
|
|
@@ -177,6 +196,10 @@ function ____exports.setCustomPitGraphics(self, customStage, gridEntity)
|
|
|
177
196
|
if customStage.pitsPNGPath == nil then
|
|
178
197
|
return
|
|
179
198
|
end
|
|
199
|
+
local gridEntityPit = gridEntity:ToPit()
|
|
200
|
+
if gridEntityPit == nil then
|
|
201
|
+
return
|
|
202
|
+
end
|
|
180
203
|
local sprite = gridEntity:GetSprite()
|
|
181
204
|
local fileName = sprite:GetFilename()
|
|
182
205
|
if fileName == "gfx/grid/grid_pit.anm2" then
|
|
@@ -186,6 +209,13 @@ function ____exports.setCustomPitGraphics(self, customStage, gridEntity)
|
|
|
186
209
|
end
|
|
187
210
|
--- For GridEntityType.DOOR (16)
|
|
188
211
|
function ____exports.setCustomDoorGraphics(self, customStage, gridEntity)
|
|
212
|
+
if customStage.doorPNGPaths == nil then
|
|
213
|
+
return
|
|
214
|
+
end
|
|
215
|
+
local gridEntityDoor = gridEntity:ToDoor()
|
|
216
|
+
if gridEntityDoor == nil then
|
|
217
|
+
return
|
|
218
|
+
end
|
|
189
219
|
local sprite = gridEntity:GetSprite()
|
|
190
220
|
local fileName = sprite:GetFilename()
|
|
191
221
|
local doorPNGPath = getNewDoorPNGPath(nil, customStage, fileName)
|
|
@@ -194,6 +224,18 @@ function ____exports.setCustomDoorGraphics(self, customStage, gridEntity)
|
|
|
194
224
|
sprite:LoadGraphics()
|
|
195
225
|
end
|
|
196
226
|
end
|
|
227
|
+
function ____exports.convertVanillaTrapdoors(self, customStage, gridEntity)
|
|
228
|
+
local gridEntityType = gridEntity:GetType()
|
|
229
|
+
if gridEntityType ~= GridEntityType.TRAPDOOR then
|
|
230
|
+
return
|
|
231
|
+
end
|
|
232
|
+
removeGridEntity(nil, gridEntity, true)
|
|
233
|
+
local baseStage = customStage.baseStage == nil and DEFAULT_BASE_STAGE or customStage.baseStage
|
|
234
|
+
local vanillaNextStage = baseStage + 2
|
|
235
|
+
local vanillaNextStageType = calculateStageType(nil, vanillaNextStage)
|
|
236
|
+
local destination = v.run.firstFloor and ({customStage.name, 2}) or ({vanillaNextStage, vanillaNextStageType})
|
|
237
|
+
spawnCustomTrapdoor(nil, gridEntity.Position, destination)
|
|
238
|
+
end
|
|
197
239
|
--- The rewards are based on the ones from the wiki:
|
|
198
240
|
-- https://bindingofisaacrebirth.fandom.com/wiki/Rocks#Urns
|
|
199
241
|
--
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { EntityType } from "isaac-typescript-definitions";
|
|
1
|
+
import { EntityType, LevelStage, StageType } from "isaac-typescript-definitions";
|
|
2
|
+
export declare const DEFAULT_BASE_STAGE = LevelStage.BASEMENT_2;
|
|
3
|
+
export declare const DEFAULT_BASE_STAGE_TYPE = StageType.ORIGINAL;
|
|
4
|
+
export declare const INVALID_STAGE_VALUE: LevelStage;
|
|
2
5
|
/**
|
|
3
6
|
* Helper function to warp to a custom stage/level.
|
|
4
7
|
*
|
|
5
8
|
* Custom stages/levels must first be defined in the "tsconfig.json" file. See the documentation for
|
|
6
9
|
* more details: https://isaacscript.github.io/main/custom-stages/
|
|
10
|
+
*
|
|
11
|
+
* @param name The name of the custom stage, corresponding to what is in the "tsconfig.json" file.
|
|
12
|
+
* @param firstFloor Optional. Whether to go to the first floor or the second floor. For example, if
|
|
13
|
+
* you have a custom stage emulating Caves, then the first floor would be Caves 1,
|
|
14
|
+
* and the second floor would be Caves 2. Default is true.
|
|
15
|
+
* @param verbose Optional. Whether to log additional information about the rooms that are chosen.
|
|
16
|
+
* Default is false.
|
|
7
17
|
*/
|
|
8
|
-
export declare function setCustomStage(name: string, verbose?: boolean): void;
|
|
9
|
-
export declare function setCustomStageDebug(): void;
|
|
18
|
+
export declare function setCustomStage(name: string, firstFloor?: boolean, verbose?: boolean): void;
|
|
10
19
|
/**
|
|
11
20
|
* By default, unknown bosses will be drawn on the boss "versus" screen as "???". If your custom
|
|
12
21
|
* stage has custom bosses, you can use this function to register the corresponding graphic file
|
|
@@ -33,4 +42,9 @@ export declare function setCustomStageDebug(): void;
|
|
|
33
42
|
* will be displayed on the right side of the boss "versus" screen.
|
|
34
43
|
*/
|
|
35
44
|
export declare function registerCustomBoss(entityType: EntityType, variant: int, subType: int, namePNGPath: string, portraitPNGPath: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Helper function to disable the custom stage. This is typically called before taking the player to
|
|
47
|
+
* a vanilla floor.
|
|
48
|
+
*/
|
|
49
|
+
export declare function disableCustomStage(): void;
|
|
36
50
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EAGV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAmBtC,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAE1D,eAAO,MAAM,mBAAmB,YAAmB,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,UAAU,UAAO,EACjB,OAAO,UAAQ,GACd,IAAI,CAwDN;AA4ED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,IAAI,CAGN;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|