isaacscript-common 30.7.0 → 30.7.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 30.7.
|
|
3
|
+
isaacscript-common 30.7.1
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -40846,7 +40846,8 @@ function ____exports.getNextStage(self)
|
|
|
40846
40846
|
local repentanceStage = onRepentanceStage(nil)
|
|
40847
40847
|
local roomGridIndex = getRoomGridIndex(nil)
|
|
40848
40848
|
if backwardsPath then
|
|
40849
|
-
|
|
40849
|
+
local nextStage = asNumber(nil, stage) - 1
|
|
40850
|
+
return nextStage == 0 and LevelStage.HOME or nextStage
|
|
40850
40851
|
end
|
|
40851
40852
|
repeat
|
|
40852
40853
|
local ____switch4 = roomGridIndex
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextStage.d.ts","sourceRoot":"","sources":["../../../src/functions/nextStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"nextStage.d.ts","sourceRoot":"","sources":["../../../src/functions/nextStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,UAAU,CAyFzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,UAAQ,GAAG,SAAS,CAiF3D"}
|
|
@@ -28,7 +28,8 @@ function ____exports.getNextStage(self)
|
|
|
28
28
|
local repentanceStage = onRepentanceStage(nil)
|
|
29
29
|
local roomGridIndex = getRoomGridIndex(nil)
|
|
30
30
|
if backwardsPath then
|
|
31
|
-
|
|
31
|
+
local nextStage = asNumber(nil, stage) - 1
|
|
32
|
+
return nextStage == 0 and LevelStage.HOME or nextStage
|
|
32
33
|
end
|
|
33
34
|
repeat
|
|
34
35
|
local ____switch4 = roomGridIndex
|
package/package.json
CHANGED
|
@@ -33,7 +33,8 @@ export function getNextStage(): LevelStage {
|
|
|
33
33
|
|
|
34
34
|
// First, handle the special case of being on the backwards path.
|
|
35
35
|
if (backwardsPath) {
|
|
36
|
-
|
|
36
|
+
const nextStage = asNumber(stage) - 1;
|
|
37
|
+
return nextStage === 0 ? LevelStage.HOME : nextStage;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
// Second, handle the special case of being in a specific off-grid room.
|