isaacscript-common 82.0.2 → 83.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/functions/bosses.d.ts +25 -22
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.lua +36 -36
- package/dist/functions/stage.d.ts +17 -5
- package/dist/functions/stage.d.ts.map +1 -1
- package/dist/functions/stage.lua +70 -23
- package/dist/index.rollup.d.ts +46 -28
- package/dist/isaacscript-common.lua +397 -332
- package/dist/objects/stageIDNames.d.ts +40 -0
- package/dist/objects/stageIDNames.d.ts.map +1 -0
- package/dist/objects/stageIDNames.lua +41 -0
- package/dist/objects/stageToStageID.d.ts +2 -1
- package/dist/objects/stageToStageID.d.ts.map +1 -1
- package/dist/objects/stageToStageID.lua +29 -0
- package/dist/objects/versusScreenBackgroundColors.d.ts +0 -6
- package/dist/objects/versusScreenBackgroundColors.d.ts.map +1 -1
- package/dist/objects/versusScreenBackgroundColors.lua +2 -8
- package/dist/objects/versusScreenDirtSpotColors.d.ts +0 -6
- package/dist/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
- package/dist/objects/versusScreenDirtSpotColors.lua +2 -8
- package/dist/sets/bossSets.d.ts +3 -3
- package/dist/sets/bossSets.d.ts.map +1 -1
- package/dist/sets/bossSets.lua +197 -119
- package/package.json +2 -2
- package/src/functions/bosses.ts +42 -38
- package/src/functions/stage.ts +62 -8
- package/src/objects/stageIDNames.ts +41 -0
- package/src/objects/stageToStageID.ts +33 -1
- package/src/objects/versusScreenBackgroundColors.ts +2 -8
- package/src/objects/versusScreenDirtSpotColors.ts +2 -8
- package/src/sets/bossSets.ts +143 -136
- package/dist/objects/levelNames.d.ts +0 -115
- package/dist/objects/levelNames.d.ts.map +0 -1
- package/dist/objects/levelNames.lua +0 -117
- package/src/objects/levelNames.ts +0 -141
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from "stages.xml". Note that unlike "stages.xml":
|
|
3
|
+
*
|
|
4
|
+
* - `StageID.BLUE_WOMB` (13) is specified with a name of "Blue Womb" instead of "???".
|
|
5
|
+
* - `StageID.StageID.BACKWARDS` (36) is specified with a name of "The Ascent" instead of "???".
|
|
6
|
+
*/
|
|
7
|
+
export declare const STAGE_ID_NAMES: {
|
|
8
|
+
readonly 0: "Special Rooms";
|
|
9
|
+
readonly 1: "Basement";
|
|
10
|
+
readonly 2: "Cellar";
|
|
11
|
+
readonly 3: "Burning Basement";
|
|
12
|
+
readonly 4: "Caves";
|
|
13
|
+
readonly 5: "Catacombs";
|
|
14
|
+
readonly 6: "Flooded Caves";
|
|
15
|
+
readonly 7: "Depths";
|
|
16
|
+
readonly 8: "Necropolis";
|
|
17
|
+
readonly 9: "Dank Depths";
|
|
18
|
+
readonly 10: "Womb";
|
|
19
|
+
readonly 11: "Utero";
|
|
20
|
+
readonly 12: "Scarred Womb";
|
|
21
|
+
readonly 13: "Blue Womb";
|
|
22
|
+
readonly 14: "Sheol";
|
|
23
|
+
readonly 15: "Cathedral";
|
|
24
|
+
readonly 16: "Dark Room";
|
|
25
|
+
readonly 17: "Chest";
|
|
26
|
+
readonly 24: "The Shop";
|
|
27
|
+
readonly 25: "Ultra Greed";
|
|
28
|
+
readonly 26: "The Void";
|
|
29
|
+
readonly 27: "Downpour";
|
|
30
|
+
readonly 28: "Dross";
|
|
31
|
+
readonly 29: "Mines";
|
|
32
|
+
readonly 30: "Ashpit";
|
|
33
|
+
readonly 31: "Mausoleum";
|
|
34
|
+
readonly 32: "Gehenna";
|
|
35
|
+
readonly 33: "Corpse";
|
|
36
|
+
readonly 34: "Mortis";
|
|
37
|
+
readonly 35: "Home";
|
|
38
|
+
readonly 36: "The Ascent";
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=stageIDNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stageIDNames.d.ts","sourceRoot":"","sources":["../../src/objects/stageIDNames.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCiB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local StageID = ____isaac_2Dtypescript_2Ddefinitions.StageID
|
|
4
|
+
--- Derived from "stages.xml". Note that unlike "stages.xml":
|
|
5
|
+
--
|
|
6
|
+
-- - `StageID.BLUE_WOMB` (13) is specified with a name of "Blue Womb" instead of "???".
|
|
7
|
+
-- - `StageID.StageID.BACKWARDS` (36) is specified with a name of "The Ascent" instead of "???".
|
|
8
|
+
____exports.STAGE_ID_NAMES = {
|
|
9
|
+
[StageID.SPECIAL_ROOMS] = "Special Rooms",
|
|
10
|
+
[StageID.BASEMENT] = "Basement",
|
|
11
|
+
[StageID.CELLAR] = "Cellar",
|
|
12
|
+
[StageID.BURNING_BASEMENT] = "Burning Basement",
|
|
13
|
+
[StageID.CAVES] = "Caves",
|
|
14
|
+
[StageID.CATACOMBS] = "Catacombs",
|
|
15
|
+
[StageID.FLOODED_CAVES] = "Flooded Caves",
|
|
16
|
+
[StageID.DEPTHS] = "Depths",
|
|
17
|
+
[StageID.NECROPOLIS] = "Necropolis",
|
|
18
|
+
[StageID.DANK_DEPTHS] = "Dank Depths",
|
|
19
|
+
[StageID.WOMB] = "Womb",
|
|
20
|
+
[StageID.UTERO] = "Utero",
|
|
21
|
+
[StageID.SCARRED_WOMB] = "Scarred Womb",
|
|
22
|
+
[StageID.BLUE_WOMB] = "Blue Womb",
|
|
23
|
+
[StageID.SHEOL] = "Sheol",
|
|
24
|
+
[StageID.CATHEDRAL] = "Cathedral",
|
|
25
|
+
[StageID.DARK_ROOM] = "Dark Room",
|
|
26
|
+
[StageID.CHEST] = "Chest",
|
|
27
|
+
[StageID.SHOP] = "The Shop",
|
|
28
|
+
[StageID.ULTRA_GREED] = "Ultra Greed",
|
|
29
|
+
[StageID.VOID] = "The Void",
|
|
30
|
+
[StageID.DOWNPOUR] = "Downpour",
|
|
31
|
+
[StageID.DROSS] = "Dross",
|
|
32
|
+
[StageID.MINES] = "Mines",
|
|
33
|
+
[StageID.ASHPIT] = "Ashpit",
|
|
34
|
+
[StageID.MAUSOLEUM] = "Mausoleum",
|
|
35
|
+
[StageID.GEHENNA] = "Gehenna",
|
|
36
|
+
[StageID.CORPSE] = "Corpse",
|
|
37
|
+
[StageID.MORTIS] = "Mortis",
|
|
38
|
+
[StageID.HOME] = "Home",
|
|
39
|
+
[StageID.BACKWARDS] = "The Ascent"
|
|
40
|
+
}
|
|
41
|
+
return ____exports
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StageID } from "isaac-typescript-definitions";
|
|
1
|
+
import { LevelStage, StageID, StageType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare const STAGE_TO_STAGE_ID: {
|
|
3
3
|
readonly 1: {
|
|
4
4
|
readonly 0: StageID.BASEMENT;
|
|
@@ -105,4 +105,5 @@ export declare const STAGE_TO_STAGE_ID: {
|
|
|
105
105
|
readonly 5: StageID.HOME;
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
+
export declare const STAGE_TO_STAGE_ID_GREED_MODE: ReadonlyMap<LevelStage, Record<StageType, StageID>>;
|
|
108
109
|
//# sourceMappingURL=stageToStageID.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stageToStageID.d.ts","sourceRoot":"","sources":["../../src/objects/stageToStageID.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"stageToStageID.d.ts","sourceRoot":"","sources":["../../src/objects/stageToStageID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAoF9E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcqC,CAAC;AAoBpE,eAAO,MAAM,4BAA4B,qDAWvC,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
1
3
|
local ____exports = {}
|
|
2
4
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
5
|
local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
|
|
4
6
|
local StageID = ____isaac_2Dtypescript_2Ddefinitions.StageID
|
|
5
7
|
local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
|
|
8
|
+
local ____ReadonlyMap = require("types.ReadonlyMap")
|
|
9
|
+
local ReadonlyMap = ____ReadonlyMap.ReadonlyMap
|
|
6
10
|
local BASEMENT_TO_STAGE_ID = {
|
|
7
11
|
[StageType.ORIGINAL] = StageID.BASEMENT,
|
|
8
12
|
[StageType.WRATH_OF_THE_LAMB] = StageID.CELLAR,
|
|
@@ -90,4 +94,29 @@ ____exports.STAGE_TO_STAGE_ID = {
|
|
|
90
94
|
[LevelStage.VOID] = VOID_TO_STAGE_ID,
|
|
91
95
|
[LevelStage.HOME] = HOME_TO_STAGE_ID
|
|
92
96
|
}
|
|
97
|
+
local SHOP_TO_STAGE_ID = {
|
|
98
|
+
[StageType.ORIGINAL] = StageID.SHOP,
|
|
99
|
+
[StageType.WRATH_OF_THE_LAMB] = StageID.SHOP,
|
|
100
|
+
[StageType.AFTERBIRTH] = StageID.SHOP,
|
|
101
|
+
[StageType.GREED_MODE] = StageID.SHOP,
|
|
102
|
+
[StageType.REPENTANCE] = StageID.SHOP,
|
|
103
|
+
[StageType.REPENTANCE_B] = StageID.SHOP
|
|
104
|
+
}
|
|
105
|
+
local ULTRA_GREED_TO_STAGE_ID = {
|
|
106
|
+
[StageType.ORIGINAL] = StageID.ULTRA_GREED,
|
|
107
|
+
[StageType.WRATH_OF_THE_LAMB] = StageID.ULTRA_GREED,
|
|
108
|
+
[StageType.AFTERBIRTH] = StageID.ULTRA_GREED,
|
|
109
|
+
[StageType.GREED_MODE] = StageID.ULTRA_GREED,
|
|
110
|
+
[StageType.REPENTANCE] = StageID.ULTRA_GREED,
|
|
111
|
+
[StageType.REPENTANCE_B] = StageID.ULTRA_GREED
|
|
112
|
+
}
|
|
113
|
+
____exports.STAGE_TO_STAGE_ID_GREED_MODE = __TS__New(ReadonlyMap, {
|
|
114
|
+
{LevelStage.BASEMENT_GREED_MODE, BASEMENT_TO_STAGE_ID},
|
|
115
|
+
{LevelStage.CAVES_GREED_MODE, CAVES_TO_STAGE_ID},
|
|
116
|
+
{LevelStage.DEPTHS_GREED_MODE, DEPTHS_TO_STAGE_ID},
|
|
117
|
+
{LevelStage.WOMB_GREED_MODE, WOMB_TO_STAGE_ID},
|
|
118
|
+
{LevelStage.SHEOL_GREED_MODE, SHEOL_CATHEDRAL_TO_STAGE_ID},
|
|
119
|
+
{LevelStage.SHOP_GREED_MODE, SHOP_TO_STAGE_ID},
|
|
120
|
+
{LevelStage.ULTRA_GREED_GREED_MODE, ULTRA_GREED_TO_STAGE_ID}
|
|
121
|
+
})
|
|
93
122
|
return ____exports
|
|
@@ -18,12 +18,6 @@ export declare const VERSUS_SCREEN_BACKGROUND_COLORS: {
|
|
|
18
18
|
readonly 15: Readonly<Color>;
|
|
19
19
|
readonly 16: Readonly<Color>;
|
|
20
20
|
readonly 17: Readonly<Color>;
|
|
21
|
-
readonly 18: Readonly<Color>;
|
|
22
|
-
readonly 19: Readonly<Color>;
|
|
23
|
-
readonly 20: Readonly<Color>;
|
|
24
|
-
readonly 21: Readonly<Color>;
|
|
25
|
-
readonly 22: Readonly<Color>;
|
|
26
|
-
readonly 23: Readonly<Color>;
|
|
27
21
|
readonly 24: Readonly<Color>;
|
|
28
22
|
readonly 25: Readonly<Color>;
|
|
29
23
|
readonly 26: Readonly<Color>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versusScreenBackgroundColors.d.ts","sourceRoot":"","sources":["../../src/objects/versusScreenBackgroundColors.ts"],"names":[],"mappings":"AAYA,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"versusScreenBackgroundColors.d.ts","sourceRoot":"","sources":["../../src/objects/versusScreenBackgroundColors.ts"],"names":[],"mappings":"AAYA,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCS,CAAC"}
|
|
@@ -30,14 +30,8 @@ ____exports.VERSUS_SCREEN_BACKGROUND_COLORS = {
|
|
|
30
30
|
[StageID.CATHEDRAL] = newReadonlyColor(nil, 6 / 255, 13 / 255, 17 / 255),
|
|
31
31
|
[StageID.DARK_ROOM] = newReadonlyColor(nil, 9 / 255, 4 / 255, 3 / 255),
|
|
32
32
|
[StageID.CHEST] = newReadonlyColor(nil, 15 / 255, 9 / 255, 6 / 255),
|
|
33
|
-
[StageID.
|
|
34
|
-
[StageID.
|
|
35
|
-
[StageID.CAVES_GREED_MODE] = CAVES_COLOR,
|
|
36
|
-
[StageID.DEPTHS_GREED_MODE] = DEPTHS_COLOR,
|
|
37
|
-
[StageID.WOMB_GREED_MODE] = WOMB_COLOR,
|
|
38
|
-
[StageID.SHEOL_GREED_MODE] = SHEOL_COLOR,
|
|
39
|
-
[StageID.SHOP_GREED_MODE] = DEFAULT_COLOR,
|
|
40
|
-
[StageID.ULTRA_GREED_GREED_MODE] = DEFAULT_COLOR,
|
|
33
|
+
[StageID.SHOP] = DEFAULT_COLOR,
|
|
34
|
+
[StageID.ULTRA_GREED] = DEFAULT_COLOR,
|
|
41
35
|
[StageID.VOID] = newReadonlyColor(nil, 0, 0, 0),
|
|
42
36
|
[StageID.DOWNPOUR] = newReadonlyColor(nil, 29 / 255, 30 / 255, 32 / 255),
|
|
43
37
|
[StageID.DROSS] = newReadonlyColor(nil, 35 / 255, 35 / 255, 29 / 255),
|
|
@@ -18,12 +18,6 @@ export declare const VERSUS_SCREEN_DIRT_SPOT_COLORS: {
|
|
|
18
18
|
readonly 15: Readonly<Color>;
|
|
19
19
|
readonly 16: Readonly<Color>;
|
|
20
20
|
readonly 17: Readonly<Color>;
|
|
21
|
-
readonly 18: Readonly<Color>;
|
|
22
|
-
readonly 19: Readonly<Color>;
|
|
23
|
-
readonly 20: Readonly<Color>;
|
|
24
|
-
readonly 21: Readonly<Color>;
|
|
25
|
-
readonly 22: Readonly<Color>;
|
|
26
|
-
readonly 23: Readonly<Color>;
|
|
27
21
|
readonly 24: Readonly<Color>;
|
|
28
22
|
readonly 25: Readonly<Color>;
|
|
29
23
|
readonly 26: Readonly<Color>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versusScreenDirtSpotColors.d.ts","sourceRoot":"","sources":["../../src/objects/versusScreenDirtSpotColors.ts"],"names":[],"mappings":"AAYA,4CAA4C;AAC5C,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"versusScreenDirtSpotColors.d.ts","sourceRoot":"","sources":["../../src/objects/versusScreenDirtSpotColors.ts"],"names":[],"mappings":"AAYA,4CAA4C;AAC5C,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCU,CAAC"}
|
|
@@ -30,14 +30,8 @@ ____exports.VERSUS_SCREEN_DIRT_SPOT_COLORS = {
|
|
|
30
30
|
[StageID.CATHEDRAL] = newReadonlyColor(nil, 44 / 255, 100 / 255, 111 / 255),
|
|
31
31
|
[StageID.DARK_ROOM] = newReadonlyColor(nil, 80 / 255, 38 / 255, 20 / 255),
|
|
32
32
|
[StageID.CHEST] = newReadonlyColor(nil, 175 / 255, 108 / 255, 72 / 255),
|
|
33
|
-
[StageID.
|
|
34
|
-
[StageID.
|
|
35
|
-
[StageID.CAVES_GREED_MODE] = CAVES_COLOR,
|
|
36
|
-
[StageID.DEPTHS_GREED_MODE] = DEPTHS_COLOR,
|
|
37
|
-
[StageID.WOMB_GREED_MODE] = WOMB_COLOR,
|
|
38
|
-
[StageID.SHEOL_GREED_MODE] = SHEOL_COLOR,
|
|
39
|
-
[StageID.SHOP_GREED_MODE] = DEFAULT_COLOR,
|
|
40
|
-
[StageID.ULTRA_GREED_GREED_MODE] = DEFAULT_COLOR,
|
|
33
|
+
[StageID.SHOP] = DEFAULT_COLOR,
|
|
34
|
+
[StageID.ULTRA_GREED] = DEFAULT_COLOR,
|
|
41
35
|
[StageID.VOID] = newReadonlyColor(nil, 70 / 255, 5 / 255, 5 / 255),
|
|
42
36
|
[StageID.DOWNPOUR] = newReadonlyColor(nil, 149 / 255, 157 / 255, 167 / 255),
|
|
43
37
|
[StageID.DROSS] = newReadonlyColor(nil, 179 / 255, 179 / 255, 143 / 255),
|
package/dist/sets/bossSets.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BossID, LevelStage, StageID } from "isaac-typescript-definitions";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const STAGE_ID_TO_BOSS_IDS: ReadonlyMap<StageID, readonly BossID[]>;
|
|
3
3
|
export declare const STAGE_TO_COMBINED_BOSS_SET_MAP: ReadonlyMap<LevelStage, ReadonlySet<BossID>>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const ALL_BOSSES: readonly BossID[];
|
|
5
|
+
export declare const NON_STORY_BOSSES: readonly BossID[];
|
|
6
6
|
export declare const BOSS_ID_TO_STAGE_IDS: Readonly<Record<BossID, ReadonlySet<StageID>>>;
|
|
7
7
|
//# sourceMappingURL=bossSets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bossSets.d.ts","sourceRoot":"","sources":["../../src/sets/bossSets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"bossSets.d.ts","sourceRoot":"","sources":["../../src/sets/bossSets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAgb3E,eAAO,MAAM,oBAAoB,yCAiChC,CAAC;AAEF,eAAO,MAAM,8BAA8B,8CAiBzC,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,SAAS,MAAM,EAEvC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAE7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,gDA+B7B,CAAC"}
|