isaacscript-common 28.7.0 → 29.0.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/index.rollup.d.ts +7 -4
- package/dist/isaacscript-common.lua +3 -3
- package/dist/src/classes/features/other/PersistentEntities.d.ts +5 -2
- package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +1 -1
- package/dist/src/core/constants.d.ts +2 -2
- package/dist/src/core/constants.lua +2 -2
- package/package.json +1 -1
- package/src/classes/features/other/PersistentEntities.ts +3 -3
- package/src/core/constants.ts +2 -2
package/dist/index.rollup.d.ts
CHANGED
|
@@ -9127,14 +9127,14 @@ export declare function mapHasPlayer<V>(map: Map<PlayerIndex, V>, player: Entity
|
|
|
9127
9127
|
* All of the collectibles that grant vision on the map.
|
|
9128
9128
|
*
|
|
9129
9129
|
* Note that:
|
|
9130
|
-
* - Book of Shadows is included, which is an "active mapping" instead of passive.
|
|
9131
9130
|
* - Spelunker Hat is included. Historically, Spelunker Hat was not considered to be mapping, but it
|
|
9132
9131
|
* was buffed in Repentance to show rooms two or more away.
|
|
9132
|
+
* - Book of Secrets is included, which is an "active mapping" instead of passive.
|
|
9133
9133
|
* - Luna is included, even though it is not a very powerful mapping item.
|
|
9134
9134
|
* - Cracked Orb is included, even though it requires the player to be damaged in order for it to be
|
|
9135
9135
|
* activated.
|
|
9136
9136
|
*/
|
|
9137
|
-
export declare const MAPPING_COLLECTIBLES: readonly [CollectibleType.COMPASS, CollectibleType.TREASURE_MAP, CollectibleType.
|
|
9137
|
+
export declare const MAPPING_COLLECTIBLES: readonly [CollectibleType.COMPASS, CollectibleType.TREASURE_MAP, CollectibleType.SPELUNKER_HAT, CollectibleType.CRYSTAL_BALL, CollectibleType.BLUE_MAP, CollectibleType.BOOK_OF_SECRETS, CollectibleType.MIND, CollectibleType.SOL, CollectibleType.LUNA, CollectibleType.CRACKED_ORB];
|
|
9138
9138
|
|
|
9139
9139
|
/**
|
|
9140
9140
|
* Helper function to set a value for a `DefaultMap` that corresponds to an entity, assuming that
|
|
@@ -13028,10 +13028,13 @@ declare class PersistentEntities extends Feature {
|
|
|
13028
13028
|
*
|
|
13029
13029
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PERSISTENT_ENTITIES`.
|
|
13030
13030
|
*
|
|
13031
|
-
* @returns
|
|
13031
|
+
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
13032
13032
|
* with the `removePersistentEntity` function.
|
|
13033
13033
|
*/
|
|
13034
|
-
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector):
|
|
13034
|
+
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector): {
|
|
13035
|
+
entity: Entity;
|
|
13036
|
+
persistentIndex: int;
|
|
13037
|
+
};
|
|
13035
13038
|
}
|
|
13036
13039
|
|
|
13037
13040
|
export declare type PickingUpItem = PickingUpItemNull | PickingUpItemCollectible | PickingUpItemTrinket;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common
|
|
3
|
+
isaacscript-common 29.0.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -17661,10 +17661,10 @@ ____exports.LEVEL_GRID_ROW_WIDTH = 13
|
|
|
17661
17661
|
____exports.MAPPING_COLLECTIBLES = {
|
|
17662
17662
|
CollectibleType.COMPASS,
|
|
17663
17663
|
CollectibleType.TREASURE_MAP,
|
|
17664
|
-
CollectibleType.BOOK_OF_SHADOWS,
|
|
17665
17664
|
CollectibleType.SPELUNKER_HAT,
|
|
17666
17665
|
CollectibleType.CRYSTAL_BALL,
|
|
17667
17666
|
CollectibleType.BLUE_MAP,
|
|
17667
|
+
CollectibleType.BOOK_OF_SECRETS,
|
|
17668
17668
|
CollectibleType.MIND,
|
|
17669
17669
|
CollectibleType.SOL,
|
|
17670
17670
|
CollectibleType.LUNA,
|
|
@@ -50415,7 +50415,7 @@ function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, va
|
|
|
50415
50415
|
position,
|
|
50416
50416
|
v.run.persistentEntityIndexCounter
|
|
50417
50417
|
)
|
|
50418
|
-
return {entity, v.run.persistentEntityIndexCounter}
|
|
50418
|
+
return {entity = entity, persistentIndex = v.run.persistentEntityIndexCounter}
|
|
50419
50419
|
end
|
|
50420
50420
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
|
|
50421
50421
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
|
|
@@ -38,9 +38,12 @@ export declare class PersistentEntities extends Feature {
|
|
|
38
38
|
*
|
|
39
39
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PERSISTENT_ENTITIES`.
|
|
40
40
|
*
|
|
41
|
-
* @returns
|
|
41
|
+
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
42
42
|
* with the `removePersistentEntity` function.
|
|
43
43
|
*/
|
|
44
|
-
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector):
|
|
44
|
+
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector): {
|
|
45
|
+
entity: Entity;
|
|
46
|
+
persistentIndex: int;
|
|
47
|
+
};
|
|
45
48
|
}
|
|
46
49
|
//# sourceMappingURL=PersistentEntities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf,
|
|
1
|
+
{"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,GAAG,CAAA;KAAE;CAa5C"}
|
|
@@ -147,7 +147,7 @@ function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, va
|
|
|
147
147
|
position,
|
|
148
148
|
v.run.persistentEntityIndexCounter
|
|
149
149
|
)
|
|
150
|
-
return {entity, v.run.persistentEntityIndexCounter}
|
|
150
|
+
return {entity = entity, persistentIndex = v.run.persistentEntityIndexCounter}
|
|
151
151
|
end
|
|
152
152
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
|
|
153
153
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
|
|
@@ -72,14 +72,14 @@ export declare const LEVEL_GRID_ROW_WIDTH = 13;
|
|
|
72
72
|
* All of the collectibles that grant vision on the map.
|
|
73
73
|
*
|
|
74
74
|
* Note that:
|
|
75
|
-
* - Book of Shadows is included, which is an "active mapping" instead of passive.
|
|
76
75
|
* - Spelunker Hat is included. Historically, Spelunker Hat was not considered to be mapping, but it
|
|
77
76
|
* was buffed in Repentance to show rooms two or more away.
|
|
77
|
+
* - Book of Secrets is included, which is an "active mapping" instead of passive.
|
|
78
78
|
* - Luna is included, even though it is not a very powerful mapping item.
|
|
79
79
|
* - Cracked Orb is included, even though it requires the player to be damaged in order for it to be
|
|
80
80
|
* activated.
|
|
81
81
|
*/
|
|
82
|
-
export declare const MAPPING_COLLECTIBLES: readonly [CollectibleType.COMPASS, CollectibleType.TREASURE_MAP, CollectibleType.
|
|
82
|
+
export declare const MAPPING_COLLECTIBLES: readonly [CollectibleType.COMPASS, CollectibleType.TREASURE_MAP, CollectibleType.SPELUNKER_HAT, CollectibleType.CRYSTAL_BALL, CollectibleType.BLUE_MAP, CollectibleType.BOOK_OF_SECRETS, CollectibleType.MIND, CollectibleType.SOL, CollectibleType.LUNA, CollectibleType.CRACKED_ORB];
|
|
83
83
|
/**
|
|
84
84
|
* The floor is represented by a 13x13 grid. Room indexes start at 0. The first row is represented
|
|
85
85
|
* by grid indexes from 0 to 12. The second row is represented by grid indexes from 13 to 25, and so
|
|
@@ -69,19 +69,19 @@ ____exports.LEVEL_GRID_ROW_WIDTH = 13
|
|
|
69
69
|
--- All of the collectibles that grant vision on the map.
|
|
70
70
|
--
|
|
71
71
|
-- Note that:
|
|
72
|
-
-- - Book of Shadows is included, which is an "active mapping" instead of passive.
|
|
73
72
|
-- - Spelunker Hat is included. Historically, Spelunker Hat was not considered to be mapping, but it
|
|
74
73
|
-- was buffed in Repentance to show rooms two or more away.
|
|
74
|
+
-- - Book of Secrets is included, which is an "active mapping" instead of passive.
|
|
75
75
|
-- - Luna is included, even though it is not a very powerful mapping item.
|
|
76
76
|
-- - Cracked Orb is included, even though it requires the player to be damaged in order for it to be
|
|
77
77
|
-- activated.
|
|
78
78
|
____exports.MAPPING_COLLECTIBLES = {
|
|
79
79
|
CollectibleType.COMPASS,
|
|
80
80
|
CollectibleType.TREASURE_MAP,
|
|
81
|
-
CollectibleType.BOOK_OF_SHADOWS,
|
|
82
81
|
CollectibleType.SPELUNKER_HAT,
|
|
83
82
|
CollectibleType.CRYSTAL_BALL,
|
|
84
83
|
CollectibleType.BLUE_MAP,
|
|
84
|
+
CollectibleType.BOOK_OF_SECRETS,
|
|
85
85
|
CollectibleType.MIND,
|
|
86
86
|
CollectibleType.SOL,
|
|
87
87
|
CollectibleType.LUNA,
|
package/package.json
CHANGED
|
@@ -201,7 +201,7 @@ export class PersistentEntities extends Feature {
|
|
|
201
201
|
*
|
|
202
202
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PERSISTENT_ENTITIES`.
|
|
203
203
|
*
|
|
204
|
-
* @returns
|
|
204
|
+
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
205
205
|
* with the `removePersistentEntity` function.
|
|
206
206
|
*/
|
|
207
207
|
@Exported
|
|
@@ -210,7 +210,7 @@ export class PersistentEntities extends Feature {
|
|
|
210
210
|
variant: int,
|
|
211
211
|
subType: int,
|
|
212
212
|
position: Vector,
|
|
213
|
-
):
|
|
213
|
+
): { entity: Entity; persistentIndex: int } {
|
|
214
214
|
v.run.persistentEntityIndexCounter++;
|
|
215
215
|
|
|
216
216
|
const entity = this.spawnAndTrack(
|
|
@@ -221,6 +221,6 @@ export class PersistentEntities extends Feature {
|
|
|
221
221
|
v.run.persistentEntityIndexCounter,
|
|
222
222
|
);
|
|
223
223
|
|
|
224
|
-
return
|
|
224
|
+
return { entity, persistentIndex: v.run.persistentEntityIndexCounter };
|
|
225
225
|
}
|
|
226
226
|
}
|
package/src/core/constants.ts
CHANGED
|
@@ -108,9 +108,9 @@ export const LEVEL_GRID_ROW_WIDTH = 13;
|
|
|
108
108
|
* All of the collectibles that grant vision on the map.
|
|
109
109
|
*
|
|
110
110
|
* Note that:
|
|
111
|
-
* - Book of Shadows is included, which is an "active mapping" instead of passive.
|
|
112
111
|
* - Spelunker Hat is included. Historically, Spelunker Hat was not considered to be mapping, but it
|
|
113
112
|
* was buffed in Repentance to show rooms two or more away.
|
|
113
|
+
* - Book of Secrets is included, which is an "active mapping" instead of passive.
|
|
114
114
|
* - Luna is included, even though it is not a very powerful mapping item.
|
|
115
115
|
* - Cracked Orb is included, even though it requires the player to be damaged in order for it to be
|
|
116
116
|
* activated.
|
|
@@ -118,10 +118,10 @@ export const LEVEL_GRID_ROW_WIDTH = 13;
|
|
|
118
118
|
export const MAPPING_COLLECTIBLES = [
|
|
119
119
|
CollectibleType.COMPASS, // 21
|
|
120
120
|
CollectibleType.TREASURE_MAP, // 54
|
|
121
|
-
CollectibleType.BOOK_OF_SHADOWS, // 58
|
|
122
121
|
CollectibleType.SPELUNKER_HAT, // 91
|
|
123
122
|
CollectibleType.CRYSTAL_BALL, // 158
|
|
124
123
|
CollectibleType.BLUE_MAP, // 246
|
|
124
|
+
CollectibleType.BOOK_OF_SECRETS, // 287
|
|
125
125
|
CollectibleType.MIND, // 333
|
|
126
126
|
CollectibleType.SOL, // 588
|
|
127
127
|
CollectibleType.LUNA, // 589
|