isaacscript-common 15.6.1 → 15.6.2
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.d.ts +15 -9
- package/dist/isaacscript-common.lua +70 -79
- package/dist/src/callbacks.d.ts +1 -1
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/classes/DefaultMap.d.ts +1 -1
- package/dist/src/classes/DefaultMap.d.ts.map +1 -1
- package/dist/src/classes/ModUpgradedBase.lua +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCustomRevive.d.ts +1 -1
- package/dist/src/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomRemove.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityRemove.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts +3 -3
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPurchase.d.ts +1 -1
- package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTransformation.d.ts +1 -1
- package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomHotkeys.lua +2 -2
- package/dist/src/classes/features/other/CustomStages.lua +4 -4
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts +2 -2
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +33 -48
- package/dist/src/classes/features/other/RoomHistory.d.ts +2 -2
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +1 -1
- package/dist/src/classes/private/CustomCallback.d.ts +2 -2
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/core/upgradeMod.d.ts +1 -1
- package/dist/src/core/upgradeMod.d.ts.map +1 -1
- package/dist/src/functions/bitSet128.d.ts +1 -1
- package/dist/src/functions/bitSet128.d.ts.map +1 -1
- package/dist/src/functions/color.d.ts +1 -1
- package/dist/src/functions/color.d.ts.map +1 -1
- package/dist/src/functions/flag.lua +5 -1
- package/dist/src/functions/gridIndex.lua +1 -1
- package/dist/src/functions/input.d.ts +1 -1
- package/dist/src/functions/input.d.ts.map +1 -1
- package/dist/src/functions/input.lua +0 -3
- package/dist/src/functions/kColor.d.ts +1 -1
- package/dist/src/functions/kColor.d.ts.map +1 -1
- package/dist/src/functions/logEntities.lua +9 -9
- package/dist/src/functions/logMisc.lua +1 -4
- package/dist/src/functions/pills.d.ts +3 -3
- package/dist/src/functions/pills.lua +3 -3
- package/dist/src/functions/rng.d.ts +1 -1
- package/dist/src/functions/rng.d.ts.map +1 -1
- package/dist/src/functions/roomShapeWalls.lua +2 -2
- package/dist/src/functions/run.lua +1 -1
- package/dist/src/functions/ui.d.ts +1 -1
- package/dist/src/functions/ui.lua +1 -1
- package/dist/src/functions/vector.d.ts +7 -1
- package/dist/src/functions/vector.d.ts.map +1 -1
- package/dist/src/functions/vector.lua +4 -0
- package/dist/src/interfaces/CustomStageTSConfig.d.ts +1 -1
- package/dist/src/interfaces/CustomStageTSConfig.d.ts.map +1 -1
- package/dist/src/interfaces/PlayerHealth.d.ts +1 -1
- package/dist/src/interfaces/PlayerHealth.d.ts.map +1 -1
- package/dist/src/interfaces/SaveData.d.ts +12 -12
- package/dist/src/interfaces/SaveData.d.ts.map +1 -1
- package/dist/src/interfaces/private/CustomStage.d.ts +3 -3
- package/dist/src/interfaces/private/CustomStage.d.ts.map +1 -1
- package/dist/src/objects/isaacAPIClassTypeToFunctions.d.ts +2 -2
- package/dist/src/objects/isaacAPIClassTypeToFunctions.d.ts.map +1 -1
- package/dist/src/types/AllButFirst.d.ts +1 -1
- package/dist/src/types/AllButFirst.d.ts.map +1 -1
- package/dist/src/types/AllButLast.d.ts +1 -1
- package/dist/src/types/AllButLast.d.ts.map +1 -1
- package/dist/src/types/AnyClass.d.ts +1 -1
- package/dist/src/types/AnyClass.d.ts.map +1 -1
- package/dist/src/types/AnyEntity.d.ts +1 -1
- package/dist/src/types/AnyEntity.d.ts.map +1 -1
- package/dist/src/types/AnyFunction.d.ts +1 -1
- package/dist/src/types/AnyFunction.d.ts.map +1 -1
- package/dist/src/types/AnyGridEntity.d.ts +1 -1
- package/dist/src/types/AnyGridEntity.d.ts.map +1 -1
- package/dist/src/types/CollectibleIndex.d.ts +1 -1
- package/dist/src/types/CollectibleIndex.d.ts.map +1 -1
- package/dist/src/types/ConversionHeartSubType.d.ts +1 -1
- package/dist/src/types/ConversionHeartSubType.d.ts.map +1 -1
- package/dist/src/types/EntityID.d.ts +1 -1
- package/dist/src/types/EntityID.d.ts.map +1 -1
- package/dist/src/types/FunctionTuple.d.ts +1 -1
- package/dist/src/types/FunctionTuple.d.ts.map +1 -1
- package/dist/src/types/GridEntityID.d.ts +1 -1
- package/dist/src/types/GridEntityID.d.ts.map +1 -1
- package/dist/src/types/HasAllEnumKeys.d.ts +1 -1
- package/dist/src/types/HasAllEnumKeys.d.ts.map +1 -1
- package/dist/src/types/HasFunction.d.ts +1 -1
- package/dist/src/types/HasFunction.d.ts.map +1 -1
- package/dist/src/types/Immutable.d.ts +6 -6
- package/dist/src/types/Immutable.d.ts.map +1 -1
- package/dist/src/types/LowercaseKeys.d.ts +1 -1
- package/dist/src/types/LowercaseKeys.d.ts.map +1 -1
- package/dist/src/types/ModUpgraded.d.ts +3 -3
- package/dist/src/types/ModUpgraded.d.ts.map +1 -1
- package/dist/src/types/PickingUpItem.d.ts +1 -1
- package/dist/src/types/PickingUpItem.d.ts.map +1 -1
- package/dist/src/types/PickupIndex.d.ts +1 -1
- package/dist/src/types/PickupIndex.d.ts.map +1 -1
- package/dist/src/types/PlayerIndex.d.ts +1 -1
- package/dist/src/types/PlayerIndex.d.ts.map +1 -1
- package/dist/src/types/PossibleStatType.d.ts +1 -1
- package/dist/src/types/PossibleStatType.d.ts.map +1 -1
- package/dist/src/types/PublicInterface.d.ts +1 -1
- package/dist/src/types/PublicInterface.d.ts.map +1 -1
- package/dist/src/types/StartsWithLowercase.d.ts +1 -1
- package/dist/src/types/StartsWithLowercase.d.ts.map +1 -1
- package/dist/src/types/StartsWithUppercase.d.ts +1 -1
- package/dist/src/types/StartsWithUppercase.d.ts.map +1 -1
- package/dist/src/types/TSTLClass.d.ts +1 -1
- package/dist/src/types/TSTLClass.d.ts.map +1 -1
- package/dist/src/types/TupleToIntersection.d.ts +1 -1
- package/dist/src/types/TupleToIntersection.d.ts.map +1 -1
- package/dist/src/types/TupleToUnion.d.ts +1 -1
- package/dist/src/types/TupleToUnion.d.ts.map +1 -1
- package/dist/src/types/UnionToIntersection.d.ts +1 -1
- package/dist/src/types/UnionToIntersection.d.ts.map +1 -1
- package/dist/src/types/UppercaseKeys.d.ts +1 -1
- package/dist/src/types/UppercaseKeys.d.ts.map +1 -1
- package/dist/src/types/WeightedArray.d.ts +1 -1
- package/dist/src/types/WeightedArray.d.ts.map +1 -1
- package/dist/src/types/Writable.d.ts +1 -1
- package/dist/src/types/Writable.d.ts.map +1 -1
- package/dist/src/types/private/AllButFirst.d.ts +1 -1
- package/dist/src/types/private/AllButFirst.d.ts.map +1 -1
- package/dist/src/types/private/CallbackTuple.d.ts +2 -2
- package/dist/src/types/private/CallbackTuple.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/features/other/PickupIndexCreation.ts +43 -53
- package/src/classes/features/other/RoomHistory.ts +2 -2
- package/src/classes/features/other/extraConsoleCommands/commands.ts +2 -0
- package/src/functions/flag.ts +1 -1
- package/src/functions/input.ts +1 -5
- package/src/functions/pills.ts +3 -3
- package/src/functions/ui.ts +1 -1
- package/src/functions/vector.ts +6 -0
|
@@ -2,7 +2,7 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
2
2
|
import { PlayerIndex } from "../../types/PlayerIndex";
|
|
3
3
|
import { DefaultMap } from "../DefaultMap";
|
|
4
4
|
import { CustomCallback } from "../private/CustomCallback";
|
|
5
|
-
|
|
5
|
+
type T = ModCallbackCustom.POST_PURCHASE;
|
|
6
6
|
export declare class PostPurchase extends CustomCallback<T> {
|
|
7
7
|
v: {
|
|
8
8
|
room: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,CAAC;AAEzC,qBAAa,YAAa,SAAQ,cAAc,CAAC,CAAC,CAAC;IACjC,CAAC;;;;MAMf;;IAcF,UAAmB,UAAU,8LAG1B,OAAO,CAUR;IAGF,OAAO,CAAC,0BAA0B,CAehC;IAEF,OAAO,CAAC,qBAAqB;CAS9B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
2
2
|
import { CustomCallback, FireArgs, OptionalArgs } from "../private/CustomCallback";
|
|
3
|
-
|
|
3
|
+
type T = ModCallbackCustom.POST_ROOM_CLEAR_CHANGED;
|
|
4
4
|
export declare class PostRoomClearChanged extends CustomCallback<T> {
|
|
5
5
|
v: {
|
|
6
6
|
room: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostRoomClearChanged.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostRoomClearChanged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostRoomClearChanged.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostRoomClearChanged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzC,CAAC;;;;MAIf;;IAeF,UAAmB,UAAU,aACjB,SAAS,CAAC,CAAC,gBACP,aAAa,CAAC,CAAC,KAC5B,OAAO,CAKR;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,oBAAoB,CAK1B;CACH"}
|
|
@@ -3,7 +3,7 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
3
3
|
import { PlayerIndex } from "../../types/PlayerIndex";
|
|
4
4
|
import { DefaultMap } from "../DefaultMap";
|
|
5
5
|
import { CustomCallback, OptionalArgs } from "../private/CustomCallback";
|
|
6
|
-
|
|
6
|
+
type T = ModCallbackCustom.POST_TRANSFORMATION;
|
|
7
7
|
export declare class PostTransformation extends CustomCallback<T> {
|
|
8
8
|
v: {
|
|
9
9
|
run: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostTransformation.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostTransformation.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAE/C,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACvC,CAAC;;;;MAQf;;IAcF,UAAmB,UAAU,6FAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAOR;IAGF,OAAO,CAAC,0BAA0B,CAkBhC;CACH"}
|
|
@@ -132,7 +132,7 @@ function CustomRevive.prototype.logStateChanged(self)
|
|
|
132
132
|
if DEBUG then
|
|
133
133
|
log(
|
|
134
134
|
nil,
|
|
135
|
-
((("Custom revive state changed: " ..
|
|
135
|
+
((("Custom revive state changed: " .. CustomReviveState[self.v.run.state]) .. " (") .. tostring(self.v.run.state)) .. ")"
|
|
136
136
|
)
|
|
137
137
|
end
|
|
138
138
|
end
|
|
@@ -11,7 +11,7 @@ import { PostGridEntityStateChanged } from "../../callbacks/PostGridEntityStateC
|
|
|
11
11
|
import { PostGridEntityUpdate } from "../../callbacks/PostGridEntityUpdate";
|
|
12
12
|
import { Feature } from "../../private/Feature";
|
|
13
13
|
import { CustomGridEntities } from "./CustomGridEntities";
|
|
14
|
-
|
|
14
|
+
type GridEntityTuple = [
|
|
15
15
|
gridEntityType: GridEntityType,
|
|
16
16
|
variant: int,
|
|
17
17
|
state: int
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridEntityUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityUpdateDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,8BAA8B,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"GridEntityUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityUpdateDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,8BAA8B,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,O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59,7 +59,7 @@ function CustomHotkeys.prototype.setConditionalHotkey(self, getKeyFunc, triggerF
|
|
|
59
59
|
end
|
|
60
60
|
function CustomHotkeys.prototype.setHotkey(self, keyboard, triggerFunc)
|
|
61
61
|
if self.staticHotkeyFunctionMap:has(keyboard) then
|
|
62
|
-
error(((("Failed to register a hotkey due to a hotkey already being defined for: Keyboard." ..
|
|
62
|
+
error(((("Failed to register a hotkey due to a hotkey already being defined for: Keyboard." .. Keyboard[keyboard]) .. " (") .. tostring(keyboard)) .. ")")
|
|
63
63
|
end
|
|
64
64
|
self.staticHotkeyFunctionMap:set(keyboard, triggerFunc)
|
|
65
65
|
end
|
|
@@ -71,7 +71,7 @@ function CustomHotkeys.prototype.unsetConditionalHotkey(self, getKeyFunc)
|
|
|
71
71
|
end
|
|
72
72
|
function CustomHotkeys.prototype.unsetHotkey(self, keyboard)
|
|
73
73
|
if not self.staticHotkeyFunctionMap:has(keyboard) then
|
|
74
|
-
error(((("Failed to unregister a hotkey since there is no existing hotkey defined for: Keyboard." ..
|
|
74
|
+
error(((("Failed to unregister a hotkey since there is no existing hotkey defined for: Keyboard." .. Keyboard[keyboard]) .. " (") .. tostring(keyboard)) .. ")")
|
|
75
75
|
end
|
|
76
76
|
self.staticHotkeyFunctionMap:delete(keyboard)
|
|
77
77
|
end
|
|
@@ -246,7 +246,7 @@ function CustomStages.prototype.setStageRoomsData(self, customStage, rng, verbos
|
|
|
246
246
|
if roomType == RoomType.DEFAULT then
|
|
247
247
|
logError(
|
|
248
248
|
nil,
|
|
249
|
-
(((("Failed to find any custom rooms for RoomType." ..
|
|
249
|
+
(((("Failed to find any custom rooms for RoomType." .. RoomType[roomType]) .. " (") .. tostring(roomType)) .. ") for custom stage: ") .. customStage.name
|
|
250
250
|
)
|
|
251
251
|
end
|
|
252
252
|
goto __continue26
|
|
@@ -256,7 +256,7 @@ function CustomStages.prototype.setStageRoomsData(self, customStage, rng, verbos
|
|
|
256
256
|
if roomDoorSlotFlagMap == nil then
|
|
257
257
|
logError(
|
|
258
258
|
nil,
|
|
259
|
-
(((((((("Failed to find any custom rooms for RoomType." ..
|
|
259
|
+
(((((((("Failed to find any custom rooms for RoomType." .. RoomType[roomType]) .. " (") .. tostring(roomType)) .. ") + RoomShape.") .. RoomShape[roomShape]) .. " (") .. tostring(roomShape)) .. ") for custom stage: ") .. customStage.name
|
|
260
260
|
)
|
|
261
261
|
goto __continue26
|
|
262
262
|
end
|
|
@@ -265,13 +265,13 @@ function CustomStages.prototype.setStageRoomsData(self, customStage, rng, verbos
|
|
|
265
265
|
if roomsMetadata == nil then
|
|
266
266
|
logError(
|
|
267
267
|
nil,
|
|
268
|
-
(((((((((("Failed to find any custom rooms for RoomType." ..
|
|
268
|
+
(((((((((("Failed to find any custom rooms for RoomType." .. RoomType[roomType]) .. " (") .. tostring(roomType)) .. ") + RoomShape.") .. RoomShape[roomShape]) .. " (") .. tostring(roomShape)) .. ") + DoorSlotFlags ") .. tostring(doorSlotFlags)) .. " for custom stage: ") .. customStage.name
|
|
269
269
|
)
|
|
270
270
|
local header = ("For reference, a DoorSlotFlags of " .. tostring(doorSlotFlags)) .. " is equal to the following doors being enabled:\n"
|
|
271
271
|
local doorSlots = doorSlotFlagsToDoorSlots(nil, doorSlotFlags)
|
|
272
272
|
local doorSlotLines = __TS__ArrayMap(
|
|
273
273
|
doorSlots,
|
|
274
|
-
function(____, doorSlot) return ((("- DoorSlot." ..
|
|
274
|
+
function(____, doorSlot) return ((("- DoorSlot." .. DoorSlot[doorSlot]) .. " (") .. tostring(doorSlot)) .. ")" end
|
|
275
275
|
)
|
|
276
276
|
local explanation = header .. table.concat(doorSlotLines, "\n")
|
|
277
277
|
logError(nil, explanation)
|
|
@@ -4,7 +4,8 @@ import { Feature } from "../../private/Feature";
|
|
|
4
4
|
export declare class PickupIndexCreation extends Feature {
|
|
5
5
|
private roomHistory;
|
|
6
6
|
private postPickupInit;
|
|
7
|
-
private
|
|
7
|
+
private setPickupIndex;
|
|
8
|
+
private getPickupIndexFromPreviousData;
|
|
8
9
|
private postEntityRemovePickup;
|
|
9
10
|
private checkDespawningFromPlayerLeavingRoom;
|
|
10
11
|
/**
|
|
@@ -12,7 +13,6 @@ export declare class PickupIndexCreation extends Feature {
|
|
|
12
13
|
* Keep track of the metadata for later.
|
|
13
14
|
*/
|
|
14
15
|
private trackDespawningPickupMetadata;
|
|
15
|
-
private postNewRoomReordered;
|
|
16
16
|
private getPostAscentPickupIndex;
|
|
17
17
|
/**
|
|
18
18
|
* Mods often have to track variables relating to a pickups. Finding an index for these kinds of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,mBAAoB,SAAQ,OAAO;IAsB9C,OAAO,CAAC,WAAW,CAAc;IAoBjC,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,8BAA8B;IAiBtC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,oCAAoC;IAc5C;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAiDrC,OAAO,CAAC,wBAAwB;IA2BhC;;;;;;;;;;;;;;;OAeG;IAEI,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;CAgBzD"}
|
|
@@ -17,12 +17,8 @@ local ____decorators = require("src.decorators")
|
|
|
17
17
|
local Exported = ____decorators.Exported
|
|
18
18
|
local ____ISCFeature = require("src.enums.ISCFeature")
|
|
19
19
|
local ISCFeature = ____ISCFeature.ISCFeature
|
|
20
|
-
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
21
|
-
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
22
20
|
local ____entities = require("src.functions.entities")
|
|
23
21
|
local getEntityID = ____entities.getEntityID
|
|
24
|
-
local ____entitiesSpecific = require("src.functions.entitiesSpecific")
|
|
25
|
-
local getPickups = ____entitiesSpecific.getPickups
|
|
26
22
|
local ____roomData = require("src.functions.roomData")
|
|
27
23
|
local getRoomListIndex = ____roomData.getRoomListIndex
|
|
28
24
|
local ____stage = require("src.functions.stage")
|
|
@@ -62,53 +58,41 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory)
|
|
|
62
58
|
room = {pickupIndexes = __TS__New(Map)}
|
|
63
59
|
}
|
|
64
60
|
self.postPickupInit = function(____, pickup)
|
|
65
|
-
self:
|
|
61
|
+
self:setPickupIndex(pickup)
|
|
66
62
|
end
|
|
67
63
|
self.postEntityRemovePickup = function(____, entity)
|
|
68
64
|
self:checkDespawningFromPlayerLeavingRoom(entity)
|
|
69
65
|
end
|
|
70
|
-
self.postNewRoomReordered = function()
|
|
71
|
-
local room = game:GetRoom()
|
|
72
|
-
local isFirstVisit = room:IsFirstVisit()
|
|
73
|
-
if isFirstVisit then
|
|
74
|
-
return
|
|
75
|
-
end
|
|
76
|
-
local roomListIndex = getRoomListIndex(nil)
|
|
77
|
-
local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(roomListIndex)
|
|
78
|
-
for ____, pickup in ipairs(getPickups(nil)) do
|
|
79
|
-
local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
|
|
80
|
-
if pickupIndex == nil then
|
|
81
|
-
pickupIndex = self:getPostAscentPickupIndex(pickup)
|
|
82
|
-
end
|
|
83
|
-
if pickupIndex == nil then
|
|
84
|
-
local ____self_v_run_0, ____pickupCounter_1 = self.v.run, "pickupCounter"
|
|
85
|
-
____self_v_run_0[____pickupCounter_1] = ____self_v_run_0[____pickupCounter_1] + 1
|
|
86
|
-
pickupIndex = self.v.run.pickupCounter
|
|
87
|
-
end
|
|
88
|
-
local ptrHash = GetPtrHash(pickup)
|
|
89
|
-
self.v.room.pickupIndexes:set(ptrHash, pickupIndex)
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
66
|
self.featuresUsed = {ISCFeature.ROOM_HISTORY}
|
|
93
67
|
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, {self.postPickupInit}}, {ModCallback.POST_ENTITY_REMOVE, {self.postEntityRemovePickup, EntityType.PICKUP}}}
|
|
94
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, {self.postNewRoomReordered}}}
|
|
95
68
|
self.roomHistory = roomHistory
|
|
96
69
|
end
|
|
97
|
-
function PickupIndexCreation.prototype.
|
|
70
|
+
function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
|
|
98
71
|
local ptrHash = GetPtrHash(pickup)
|
|
99
72
|
if self.v.room.pickupIndexes:has(ptrHash) then
|
|
100
73
|
return
|
|
101
74
|
end
|
|
75
|
+
local pickupIndexFromLevelData = self:getPickupIndexFromPreviousData(pickup)
|
|
102
76
|
local room = game:GetRoom()
|
|
103
77
|
local isFirstVisit = room:IsFirstVisit()
|
|
104
78
|
local roomFrameCount = room:GetFrameCount()
|
|
105
|
-
if not isFirstVisit and roomFrameCount <= 0 then
|
|
79
|
+
if pickupIndexFromLevelData ~= nil and not isFirstVisit and roomFrameCount <= 0 then
|
|
80
|
+
self.v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
|
|
106
81
|
return
|
|
107
82
|
end
|
|
108
|
-
local
|
|
109
|
-
|
|
83
|
+
local ____self_v_run_0, ____pickupCounter_1 = self.v.run, "pickupCounter"
|
|
84
|
+
____self_v_run_0[____pickupCounter_1] = ____self_v_run_0[____pickupCounter_1] + 1
|
|
110
85
|
self.v.room.pickupIndexes:set(ptrHash, self.v.run.pickupCounter)
|
|
111
86
|
end
|
|
87
|
+
function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pickup)
|
|
88
|
+
local roomListIndex = getRoomListIndex(nil)
|
|
89
|
+
local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(roomListIndex)
|
|
90
|
+
local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
|
|
91
|
+
if pickupIndex == nil then
|
|
92
|
+
pickupIndex = self:getPostAscentPickupIndex(pickup)
|
|
93
|
+
end
|
|
94
|
+
return pickupIndex
|
|
95
|
+
end
|
|
112
96
|
function PickupIndexCreation.prototype.checkDespawningFromPlayerLeavingRoom(self, entity)
|
|
113
97
|
local ptrHash = GetPtrHash(entity)
|
|
114
98
|
local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
|
|
@@ -135,16 +119,16 @@ function PickupIndexCreation.prototype.trackDespawningPickupMetadata(self, entit
|
|
|
135
119
|
local room = game:GetRoom()
|
|
136
120
|
local roomType = room:GetType()
|
|
137
121
|
repeat
|
|
138
|
-
local
|
|
139
|
-
local
|
|
140
|
-
if
|
|
122
|
+
local ____switch17 = roomType
|
|
123
|
+
local ____cond17 = ____switch17 == RoomType.TREASURE
|
|
124
|
+
if ____cond17 then
|
|
141
125
|
do
|
|
142
126
|
self.v.run.pickupDataTreasureRooms:set(pickupIndex, pickupDescription)
|
|
143
127
|
break
|
|
144
128
|
end
|
|
145
129
|
end
|
|
146
|
-
|
|
147
|
-
if
|
|
130
|
+
____cond17 = ____cond17 or ____switch17 == RoomType.BOSS
|
|
131
|
+
if ____cond17 then
|
|
148
132
|
do
|
|
149
133
|
self.v.run.pickupDataBossRooms:set(pickupIndex, pickupDescription)
|
|
150
134
|
break
|
|
@@ -164,15 +148,15 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
|
|
|
164
148
|
local room = game:GetRoom()
|
|
165
149
|
local roomType = room:GetType()
|
|
166
150
|
repeat
|
|
167
|
-
local
|
|
168
|
-
local
|
|
169
|
-
if
|
|
151
|
+
local ____switch23 = roomType
|
|
152
|
+
local ____cond23 = ____switch23 == RoomType.TREASURE
|
|
153
|
+
if ____cond23 then
|
|
170
154
|
do
|
|
171
155
|
return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataTreasureRooms)
|
|
172
156
|
end
|
|
173
157
|
end
|
|
174
|
-
|
|
175
|
-
if
|
|
158
|
+
____cond23 = ____cond23 or ____switch23 == RoomType.BOSS
|
|
159
|
+
if ____cond23 then
|
|
176
160
|
do
|
|
177
161
|
return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataBossRooms)
|
|
178
162
|
end
|
|
@@ -187,15 +171,16 @@ end
|
|
|
187
171
|
function PickupIndexCreation.prototype.getPickupIndex(self, pickup)
|
|
188
172
|
local ptrHash = GetPtrHash(pickup)
|
|
189
173
|
local pickupIndexInitial = self.v.room.pickupIndexes:get(ptrHash)
|
|
190
|
-
if pickupIndexInitial
|
|
191
|
-
|
|
174
|
+
if pickupIndexInitial ~= nil then
|
|
175
|
+
return pickupIndexInitial
|
|
192
176
|
end
|
|
177
|
+
self:setPickupIndex(pickup)
|
|
193
178
|
local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
|
|
194
|
-
if pickupIndex
|
|
195
|
-
|
|
196
|
-
error("Failed to generate a new pickup index for pickup: " .. entityID)
|
|
179
|
+
if pickupIndex ~= nil then
|
|
180
|
+
return pickupIndex
|
|
197
181
|
end
|
|
198
|
-
|
|
182
|
+
local entityID = getEntityID(nil, pickup)
|
|
183
|
+
error("Failed to generate a new pickup index for pickup: " .. entityID)
|
|
199
184
|
end
|
|
200
185
|
__TS__Decorate({Exported}, PickupIndexCreation.prototype, "getPickupIndex", true)
|
|
201
186
|
return ____exports
|
|
@@ -33,8 +33,8 @@ export declare class RoomHistory extends Feature {
|
|
|
33
33
|
/**
|
|
34
34
|
* Helper function to detect if the game is in the state where the room index has changed to a new
|
|
35
35
|
* room, but the entities from the previous room are currently in the process of despawning. (At
|
|
36
|
-
* this point, the `POST_NEW_ROOM` callback
|
|
37
|
-
* entry in the room history array for the current room.)
|
|
36
|
+
* this point, the `POST_NEW_ROOM` callback and the `POST_NEW_ROOM_EARLY` callback will not have
|
|
37
|
+
* fired yet, and there will not be an entry in the room history array for the current room.)
|
|
38
38
|
*
|
|
39
39
|
* This function is intended to be used in the `POST_ENTITY_REMOVE` callback to detect when an
|
|
40
40
|
* entity is despawning.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAwIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wCAAwC;AACxC,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,kEAAkE;AAClE,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,iDAAiD;AACjD,w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G;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,gDAAgD;AAChD,wBAAgB,aAAa,IAAI,IAAI,CAGpC;AAED,oCAAoC;AACpC,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED,0FAA0F;AAC1F,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAE9B;AAED,yEAAyE;AACzE,wBAAgB,OAAO,IAAI,IAAI,CAI9B;AAED,wCAAwC;AACxC,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAuB3C;AAED,4CAA4C;AAC5C,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,8CAA8C;AAC9C,wBAAgB,YAAY,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAwIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH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,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
|
|
@@ -631,7 +631,7 @@ function ____exports.getCharge(self, params)
|
|
|
631
631
|
local totalCharge = getTotalCharge(nil, player, activeSlot)
|
|
632
632
|
printConsole(
|
|
633
633
|
nil,
|
|
634
|
-
(((("Total charge for ActiveSlot." ..
|
|
634
|
+
(((("Total charge for ActiveSlot." .. ActiveSlot[activeSlot]) .. " (") .. tostring(activeSlot)) .. ") is: ") .. tostring(totalCharge)
|
|
635
635
|
)
|
|
636
636
|
end
|
|
637
637
|
--- Prints the current position of all players.
|
|
@@ -2,8 +2,8 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
2
2
|
import { AddCallbackParametersCustom } from "../../interfaces/private/AddCallbackParametersCustom";
|
|
3
3
|
import { AllButFirst } from "../../types/private/AllButFirst";
|
|
4
4
|
import { Feature } from "./Feature";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type FireArgs<T extends ModCallbackCustom> = Parameters<AddCallbackParametersCustom[T][0]>;
|
|
6
|
+
export type OptionalArgs<T extends ModCallbackCustom> = AllButFirst<AddCallbackParametersCustom[T]>;
|
|
7
7
|
/**
|
|
8
8
|
* The base class for a custom callback. Individual custom callbacks (and validation callbacks) will
|
|
9
9
|
* extend from this class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCallback.d.ts","sourceRoot":"","sources":["../../../../src/classes/private/CustomCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,
|
|
1
|
+
{"version":3,"file":"CustomCallback.d.ts","sourceRoot":"","sources":["../../../../src/classes/private/CustomCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,iBAAiB,IAAI,UAAU,CAC5D,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAClC,CAAC;AACF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,iBAAiB,IAAI,WAAW,CACjE,2BAA2B,CAAC,CAAC,CAAC,CAC/B,CAAC;AAEF;;;GAGG;AACH,8BAAsB,cAAc,CAClC,CAAC,SAAS,iBAAiB,CAC3B,SAAQ,OAAO;IACf,OAAO,CAAC,aAAa,CAA6C;IAE3D,aAAa,CAAC,GAAG,IAAI,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,IAAI;IAInE;;;OAGG;IACI,gBAAgB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAYnE,IAAI,gBACI,SAAS,CAAC,CAAC,KACvB,WAAW,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAoB9C;IAEF;;;OAGG;IAEH,SAAS,CAAC,UAAU,EAAE,CACpB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EACrB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,KAC1B,OAAO,CAAc;CAC3B"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="isaac-typescript-definitions" />
|
|
3
3
|
import { ISCFeature } from "../enums/ISCFeature";
|
|
4
4
|
import { ModUpgraded } from "../types/ModUpgraded";
|
|
5
|
-
|
|
5
|
+
type ISCFeatureTuple<T extends readonly ISCFeature[]> = ISCFeature extends T["length"] ? 'The list of features must be a tuple. Use the "as const" assertion when declaring the array.' : T;
|
|
6
6
|
/**
|
|
7
7
|
* Use this function to enable the custom callbacks and other optional features provided by
|
|
8
8
|
* `isaacscript-common`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgradeMod.d.ts","sourceRoot":"","sources":["../../../src/core/upgradeMod.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"upgradeMod.d.ts","sourceRoot":"","sources":["../../../src/core/upgradeMod.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,eAAe,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,IAClD,UAAU,SAAS,CAAC,CAAC,QAAQ,CAAC,GAC1B,8FAA8F,GAC9F,CAAC,CAAC;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,GAAG,KAAK,EAAE,EAClE,UAAU,EAAE,GAAG,EACf,QAAQ,GAAE,eAAe,CAAC,CAAC,CAAuC,EAClE,KAAK,UAAQ,EACb,aAAa,CAAC,EAAE,KAAK,GACpB,WAAW,CAAC,CAAC,CAAC,CAQhB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@typescript-to-lua/language-extensions" />
|
|
2
2
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
3
|
-
export
|
|
3
|
+
export type SerializedBitSet128 = LuaMap<string, unknown> & {
|
|
4
4
|
readonly __serializedBitSet128Brand: symbol;
|
|
5
5
|
readonly __kind: CopyableIsaacAPIClassType.BIT_SET_128;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitSet128.d.ts","sourceRoot":"","sources":["../../../src/functions/bitSet128.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAUzE,
|
|
1
|
+
{"version":3,"file":"bitSet128.d.ts","sourceRoot":"","sources":["../../../src/functions/bitSet128.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAUzE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC1D,QAAQ,CAAC,0BAA0B,EAAE,MAAM,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC,WAAW,CAAC;CACxD,CAAC;AAKF,6DAA6D;AAC7D,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAW7D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,mBAAmB,GAC7B,SAAS,CAqBX;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,SAAS,CAEhE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,mBAAmB,CAQ/B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,mBAAmB,CAW5E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@typescript-to-lua/language-extensions" />
|
|
2
2
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
3
|
-
export
|
|
3
|
+
export type SerializedColor = LuaMap<string, unknown> & {
|
|
4
4
|
readonly __serializedColorBrand: symbol;
|
|
5
5
|
readonly __kind: CopyableIsaacAPIClassType.COLOR;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/functions/color.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAYzE,
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/functions/color.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAYzE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACtD,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC,KAAK,CAAC;CAClD,CAAC;AAKF,wBAAgB,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAEjE;AAED,yDAAyD;AACzD,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAgB7C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,CA8B9D;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,KAAK,SAAI,GACR,KAAK,CAQP;AAED,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,KAAK,CAExD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,eAAe,CAM5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,eAAe,CAW5D"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
1
3
|
local ____exports = {}
|
|
2
4
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
5
|
local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
|
|
@@ -52,7 +54,9 @@ end
|
|
|
52
54
|
-- use the reverse mapping to find the associated key of a given enum value. Use this helper
|
|
53
55
|
-- function instead of indexing the enum directly.)
|
|
54
56
|
function ____exports.getFlagName(self, flag, flagEnum)
|
|
55
|
-
for
|
|
57
|
+
for ____, ____value in ipairs(__TS__ObjectEntries(flagEnum)) do
|
|
58
|
+
local key = ____value[1]
|
|
59
|
+
local value = ____value[2]
|
|
56
60
|
if value == flag then
|
|
57
61
|
return key
|
|
58
62
|
end
|
|
@@ -27,6 +27,6 @@ function ____exports.getGridIndexesBetween(self, gridIndex1, gridIndex2, roomSha
|
|
|
27
27
|
if isOnVerticalLine then
|
|
28
28
|
return iRange(nil, gridIndex1, gridIndex2, gridWidth)
|
|
29
29
|
end
|
|
30
|
-
error(((((((("Failed to get the grid indexes between " .. tostring(gridIndex1)) .. " and ") .. tostring(gridIndex2)) .. " for RoomShape.") ..
|
|
30
|
+
error(((((((("Failed to get the grid indexes between " .. tostring(gridIndex1)) .. " and ") .. tostring(gridIndex2)) .. " for RoomShape.") .. RoomShape[roomShape]) .. " (") .. tostring(roomShape)) .. ") since they are not on the same horizontal or vertical line.")
|
|
31
31
|
end
|
|
32
32
|
return ____exports
|
|
@@ -5,7 +5,7 @@ export declare const SHOOTING_ACTIONS_SET: ReadonlySet<ButtonAction>;
|
|
|
5
5
|
* Helper function to get the enum name for the specified `Controller` value. Note that this will
|
|
6
6
|
* trim off the "BUTTON_" prefix.
|
|
7
7
|
*/
|
|
8
|
-
export declare function controllerToString(controller: Controller): string
|
|
8
|
+
export declare function controllerToString(controller: Controller): string;
|
|
9
9
|
export declare function getMoveActions(): ReadonlySet<ButtonAction>;
|
|
10
10
|
export declare function getShootActions(): ReadonlySet<ButtonAction>;
|
|
11
11
|
/** Iterates over all inputs to determine if a particular button is pressed (i.e. held down). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/functions/input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAuBtC,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AASF,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/functions/input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAuBtC,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AASF,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAE1D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAGjE;AAED,wBAAgB,cAAc,IAAI,WAAW,CAAC,YAAY,CAAC,CAE1D;AAED,wBAAgB,eAAe,IAAI,WAAW,CAAC,YAAY,CAAC,CAE3D;AAED,gGAAgG;AAChG,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAK7E;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,YAAY,GACzB,OAAO,CAKT;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAI9D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEhE;AAED,wBAAgB,6BAA6B,IAAI,OAAO,CAIvD;AAED,wBAAgB,+BAA+B,IAAI,OAAO,CAIzD;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEjE;AAED,wBAAgB,8BAA8B,IAAI,OAAO,CAIxD;AAED,wBAAgB,gCAAgC,IAAI,OAAO,CAI1D;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,GACjB,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -32,9 +32,6 @@ ____exports.SHOOTING_ACTIONS_SET = __TS__New(Set, SHOOTING_ACTIONS)
|
|
|
32
32
|
-- trim off the "BUTTON_" prefix.
|
|
33
33
|
function ____exports.controllerToString(self, controller)
|
|
34
34
|
local key = Controller[controller]
|
|
35
|
-
if key == nil then
|
|
36
|
-
return nil
|
|
37
|
-
end
|
|
38
35
|
return trimPrefix(nil, key, "BUTTON_")
|
|
39
36
|
end
|
|
40
37
|
function ____exports.getMoveActions(self)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@typescript-to-lua/language-extensions" />
|
|
2
2
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
3
|
-
export
|
|
3
|
+
export type SerializedKColor = LuaMap<string, unknown> & {
|
|
4
4
|
readonly __serializedKColorBrand: symbol;
|
|
5
5
|
readonly __kind: CopyableIsaacAPIClassType.K_COLOR;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kColor.d.ts","sourceRoot":"","sources":["../../../src/functions/kColor.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAYzE,
|
|
1
|
+
{"version":3,"file":"kColor.d.ts","sourceRoot":"","sources":["../../../src/functions/kColor.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAYzE,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACvD,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC,OAAO,CAAC;CACpD,CAAC;AAKF,0DAA0D;AAC1D,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQjD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CA+BlE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,KAAK,SAAI,GACR,MAAM,CAQR;AAED,gFAAgF;AAChF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,MAAM,CAE1D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,gBAAgB,CAQ5B;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAEtE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAWhE"}
|
|
@@ -36,23 +36,23 @@ function getEntityLogLine(self, entity, num)
|
|
|
36
36
|
msg = msg .. getEntityID(nil, entity)
|
|
37
37
|
local bomb = entity:ToBomb()
|
|
38
38
|
if bomb ~= nil then
|
|
39
|
-
msg = msg .. (" (bomb - BombVariant." ..
|
|
39
|
+
msg = msg .. (" (bomb - BombVariant." .. BombVariant[bomb.Variant]) .. ")"
|
|
40
40
|
end
|
|
41
41
|
local effect = entity:ToEffect()
|
|
42
42
|
if effect ~= nil then
|
|
43
|
-
msg = msg .. (((" (effect - EffectVariant." ..
|
|
43
|
+
msg = msg .. (((" (effect - EffectVariant." .. EffectVariant[effect.Variant]) .. ") (State: ") .. tostring(effect.State)) .. ")"
|
|
44
44
|
end
|
|
45
45
|
local familiar = entity:ToFamiliar()
|
|
46
46
|
if familiar ~= nil then
|
|
47
|
-
msg = msg .. (((" (familiar - FamiliarVariant." ..
|
|
47
|
+
msg = msg .. (((" (familiar - FamiliarVariant." .. FamiliarVariant[familiar.Variant]) .. ") (State: ") .. tostring(familiar.State)) .. ")"
|
|
48
48
|
end
|
|
49
49
|
local knife = entity:ToKnife()
|
|
50
50
|
if knife ~= nil then
|
|
51
|
-
msg = msg .. (" (knife - KnifeVariant." ..
|
|
51
|
+
msg = msg .. (" (knife - KnifeVariant." .. KnifeVariant[knife.Variant]) .. ")"
|
|
52
52
|
end
|
|
53
53
|
local laser = entity:ToLaser()
|
|
54
54
|
if laser ~= nil then
|
|
55
|
-
msg = msg .. (" (laser - LaserVariant." ..
|
|
55
|
+
msg = msg .. (" (laser - LaserVariant." .. LaserVariant[laser.Variant]) .. ")"
|
|
56
56
|
end
|
|
57
57
|
local npc = entity:ToNPC()
|
|
58
58
|
if npc ~= nil then
|
|
@@ -60,19 +60,19 @@ function getEntityLogLine(self, entity, num)
|
|
|
60
60
|
end
|
|
61
61
|
local pickup = entity:ToPickup()
|
|
62
62
|
if pickup ~= nil then
|
|
63
|
-
msg = msg .. (((" (pickup - PickupVariant." ..
|
|
63
|
+
msg = msg .. (((" (pickup - PickupVariant." .. PickupVariant[pickup.Variant]) .. ") (State: ") .. tostring(pickup.State)) .. ")"
|
|
64
64
|
end
|
|
65
65
|
local player = entity:ToPlayer()
|
|
66
66
|
if player ~= nil then
|
|
67
|
-
msg = msg .. (" (player - PlayerVariant." ..
|
|
67
|
+
msg = msg .. (" (player - PlayerVariant." .. PlayerVariant[player.Variant]) .. ")"
|
|
68
68
|
end
|
|
69
69
|
local projectile = entity:ToProjectile()
|
|
70
70
|
if projectile ~= nil then
|
|
71
|
-
msg = msg .. (" (projectile - ProjectileVariant." ..
|
|
71
|
+
msg = msg .. (" (projectile - ProjectileVariant." .. ProjectileVariant[projectile.Variant]) .. "))"
|
|
72
72
|
end
|
|
73
73
|
local tear = entity:ToTear()
|
|
74
74
|
if tear ~= nil then
|
|
75
|
-
msg = msg .. (" (tear - TearVariant." ..
|
|
75
|
+
msg = msg .. (" (tear - TearVariant." .. TearVariant[tear.Variant]) .. "))"
|
|
76
76
|
end
|
|
77
77
|
msg = msg .. "\n"
|
|
78
78
|
msg = msg .. (" - Index: " .. tostring(entity.Index)) .. "\n"
|
|
@@ -284,10 +284,7 @@ function ____exports.logPlayerHealth(self, player)
|
|
|
284
284
|
)
|
|
285
285
|
log(nil, " Soul heart types: [")
|
|
286
286
|
for ____, soulHeartType in ipairs(playerHealth.soulHeartTypes) do
|
|
287
|
-
log(
|
|
288
|
-
nil,
|
|
289
|
-
" HeartSubType." .. tostring(HeartSubType[soulHeartType])
|
|
290
|
-
)
|
|
287
|
+
log(nil, " HeartSubType." .. HeartSubType[soulHeartType])
|
|
291
288
|
end
|
|
292
289
|
log(nil, " ]")
|
|
293
290
|
end
|
|
@@ -51,9 +51,9 @@ export declare function getPillEffectClass(pillEffect: PillEffect): ItemConfigPi
|
|
|
51
51
|
export declare function getPillEffectName(pillEffect: PillEffect): string;
|
|
52
52
|
/**
|
|
53
53
|
* Helper function to get a pill effect type from a PillEffect enum value. In this context, the type
|
|
54
|
-
* is equal to positive, negative, or neutral. This is derived from the suffix of the
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* is equal to positive, negative, or neutral. This is derived from the suffix of the "class" tag in
|
|
55
|
+
* the "pocketitems.xml" file. Use the `getPillEffectClass` helper function to determine the "power"
|
|
56
|
+
* of the pill.
|
|
57
57
|
*
|
|
58
58
|
* Due to limitations in the API, this function will not work properly for modded pill effects, and
|
|
59
59
|
* will always return `DEFAULT_PILL_EFFECT_TYPE` in those cases.
|
|
@@ -113,9 +113,9 @@ function ____exports.getPillEffectName(self, pillEffect)
|
|
|
113
113
|
return DEFAULT_PILL_EFFECT_NAME
|
|
114
114
|
end
|
|
115
115
|
--- Helper function to get a pill effect type from a PillEffect enum value. In this context, the type
|
|
116
|
-
-- is equal to positive, negative, or neutral. This is derived from the suffix of the
|
|
117
|
-
--
|
|
118
|
-
--
|
|
116
|
+
-- is equal to positive, negative, or neutral. This is derived from the suffix of the "class" tag in
|
|
117
|
+
-- the "pocketitems.xml" file. Use the `getPillEffectClass` helper function to determine the "power"
|
|
118
|
+
-- of the pill.
|
|
119
119
|
--
|
|
120
120
|
-- Due to limitations in the API, this function will not work properly for modded pill effects, and
|
|
121
121
|
-- will always return `DEFAULT_PILL_EFFECT_TYPE` in those cases.
|