isaacscript-common 1.2.257 → 1.2.260
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/callbacks/postPlayerReordered.lua +9 -6
- package/dist/callbacks/subscriptions/postBombInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postBoneSwing.lua +2 -3
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +2 -3
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +2 -3
- package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +2 -3
- package/dist/callbacks/subscriptions/postCustomRevive.lua +2 -3
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postEsauJr.lua +2 -3
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +2 -3
- package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -3
- package/dist/callbacks/subscriptions/postFlip.lua +2 -3
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postGridEntityBroken.lua +2 -3
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +2 -3
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +2 -3
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +2 -3
- package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +2 -3
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +2 -3
- package/dist/callbacks/subscriptions/postItemPickup.lua +2 -3
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +2 -3
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postPickupCollect.lua +2 -3
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +2 -3
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postPurchase.lua +2 -3
- package/dist/callbacks/subscriptions/postSacrifice.lua +2 -3
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +2 -3
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +2 -3
- package/dist/callbacks/subscriptions/postSlotInit.lua +2 -3
- package/dist/callbacks/subscriptions/postSlotRender.lua +2 -3
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +2 -3
- package/dist/callbacks/subscriptions/postTearInitLate.lua +2 -3
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +2 -3
- package/dist/callbacks/subscriptions/postTransformation.lua +2 -3
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +2 -3
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +2 -3
- package/dist/callbacks/subscriptions/preCustomRevive.lua +2 -3
- package/dist/callbacks/subscriptions/preItemPickup.lua +2 -3
- package/dist/callbacks/subscriptions/preNewLevel.lua +2 -3
- package/dist/callbacks/subscriptions/roomClearChange.lua +2 -3
- package/dist/features/deployJSONRoom.lua +2 -3
- package/dist/features/playerInventory.lua +3 -4
- package/dist/features/runInNFrames.lua +6 -5
- package/dist/features/sirenHelpers.lua +2 -2
- package/dist/features/taintedLazarusPlayers.lua +6 -6
- package/dist/functions/array.lua +5 -6
- package/dist/functions/benchmark.lua +1 -2
- package/dist/functions/collectibleCacheFlag.lua +1 -2
- package/dist/functions/deepCopy.lua +4 -5
- package/dist/functions/doors.lua +1 -2
- package/dist/functions/entity.d.ts +8 -8
- package/dist/functions/entity.lua +9 -13
- package/dist/functions/entitySpecific.d.ts +46 -46
- package/dist/functions/entitySpecific.lua +122 -123
- package/dist/functions/globals.lua +1 -2
- package/dist/functions/gridEntity.lua +2 -3
- package/dist/functions/log.lua +1 -1
- package/dist/functions/math.lua +3 -4
- package/dist/functions/player.lua +1 -2
- package/dist/functions/playerHealth.lua +3 -4
- package/dist/functions/playerIndex.lua +1 -2
- package/dist/functions/pocketItems.lua +6 -7
- package/dist/functions/rooms.lua +2 -3
- package/dist/functions/table.lua +5 -6
- package/dist/functions/utils.lua +2 -3
- package/dist/lualib_bundle.lua +358 -388
- package/package.json +4 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
3
2
|
local ____exports = {}
|
|
4
3
|
local ____constants = require("constants")
|
|
5
4
|
local VectorZero = ____constants.VectorZero
|
|
@@ -7,213 +6,213 @@ local ____entity = require("functions.entity")
|
|
|
7
6
|
local getEntities = ____entity.getEntities
|
|
8
7
|
local removeEntities = ____entity.removeEntities
|
|
9
8
|
local spawn = ____entity.spawn
|
|
10
|
-
function ____exports.getBombs(self,
|
|
11
|
-
if
|
|
12
|
-
|
|
9
|
+
function ____exports.getBombs(self, bombVariant, subType)
|
|
10
|
+
if bombVariant == nil then
|
|
11
|
+
bombVariant = -1
|
|
13
12
|
end
|
|
14
|
-
if
|
|
15
|
-
|
|
13
|
+
if subType == nil then
|
|
14
|
+
subType = -1
|
|
16
15
|
end
|
|
17
|
-
local entities = getEntities(nil, EntityType.ENTITY_BOMB,
|
|
16
|
+
local entities = getEntities(nil, EntityType.ENTITY_BOMB, bombVariant, subType)
|
|
18
17
|
local bombs = {}
|
|
19
18
|
for ____, entity in ipairs(entities) do
|
|
20
19
|
local bomb = entity:ToBomb()
|
|
21
20
|
if bomb ~= nil then
|
|
22
|
-
|
|
21
|
+
bombs[#bombs + 1] = bomb
|
|
23
22
|
end
|
|
24
23
|
end
|
|
25
24
|
return bombs
|
|
26
25
|
end
|
|
27
|
-
function ____exports.getEffects(self,
|
|
28
|
-
if
|
|
29
|
-
|
|
26
|
+
function ____exports.getEffects(self, effectVariant, subType)
|
|
27
|
+
if effectVariant == nil then
|
|
28
|
+
effectVariant = -1
|
|
30
29
|
end
|
|
31
|
-
if
|
|
32
|
-
|
|
30
|
+
if subType == nil then
|
|
31
|
+
subType = -1
|
|
33
32
|
end
|
|
34
|
-
local entities = getEntities(nil, EntityType.ENTITY_EFFECT,
|
|
33
|
+
local entities = getEntities(nil, EntityType.ENTITY_EFFECT, effectVariant, subType)
|
|
35
34
|
local effects = {}
|
|
36
35
|
for ____, entity in ipairs(entities) do
|
|
37
36
|
local effect = entity:ToEffect()
|
|
38
37
|
if effect ~= nil then
|
|
39
|
-
|
|
38
|
+
effects[#effects + 1] = effect
|
|
40
39
|
end
|
|
41
40
|
end
|
|
42
41
|
return effects
|
|
43
42
|
end
|
|
44
|
-
function ____exports.getFamiliars(self,
|
|
45
|
-
if
|
|
46
|
-
|
|
43
|
+
function ____exports.getFamiliars(self, familiarVariant, subType)
|
|
44
|
+
if familiarVariant == nil then
|
|
45
|
+
familiarVariant = -1
|
|
47
46
|
end
|
|
48
|
-
if
|
|
49
|
-
|
|
47
|
+
if subType == nil then
|
|
48
|
+
subType = -1
|
|
50
49
|
end
|
|
51
|
-
local entities = getEntities(nil, EntityType.ENTITY_FAMILIAR,
|
|
50
|
+
local entities = getEntities(nil, EntityType.ENTITY_FAMILIAR, familiarVariant, subType)
|
|
52
51
|
local familiars = {}
|
|
53
52
|
for ____, entity in ipairs(entities) do
|
|
54
53
|
local familiar = entity:ToFamiliar()
|
|
55
54
|
if familiar ~= nil then
|
|
56
|
-
|
|
55
|
+
familiars[#familiars + 1] = familiar
|
|
57
56
|
end
|
|
58
57
|
end
|
|
59
58
|
return familiars
|
|
60
59
|
end
|
|
61
|
-
function ____exports.getKnives(self,
|
|
62
|
-
if
|
|
63
|
-
|
|
60
|
+
function ____exports.getKnives(self, knifeVariant, subType)
|
|
61
|
+
if knifeVariant == nil then
|
|
62
|
+
knifeVariant = -1
|
|
64
63
|
end
|
|
65
|
-
if
|
|
66
|
-
|
|
64
|
+
if subType == nil then
|
|
65
|
+
subType = -1
|
|
67
66
|
end
|
|
68
|
-
local entities = getEntities(nil, EntityType.ENTITY_KNIFE,
|
|
67
|
+
local entities = getEntities(nil, EntityType.ENTITY_KNIFE, knifeVariant, subType)
|
|
69
68
|
local knives = {}
|
|
70
69
|
for ____, entity in ipairs(entities) do
|
|
71
70
|
local knife = entity:ToKnife()
|
|
72
71
|
if knife ~= nil then
|
|
73
|
-
|
|
72
|
+
knives[#knives + 1] = knife
|
|
74
73
|
end
|
|
75
74
|
end
|
|
76
75
|
return knives
|
|
77
76
|
end
|
|
78
|
-
function ____exports.getLasers(self,
|
|
79
|
-
if
|
|
80
|
-
|
|
77
|
+
function ____exports.getLasers(self, laserVariant, subType)
|
|
78
|
+
if laserVariant == nil then
|
|
79
|
+
laserVariant = -1
|
|
81
80
|
end
|
|
82
|
-
if
|
|
83
|
-
|
|
81
|
+
if subType == nil then
|
|
82
|
+
subType = -1
|
|
84
83
|
end
|
|
85
|
-
local entities = getEntities(nil, EntityType.ENTITY_LASER,
|
|
84
|
+
local entities = getEntities(nil, EntityType.ENTITY_LASER, laserVariant, subType)
|
|
86
85
|
local lasers = {}
|
|
87
86
|
for ____, entity in ipairs(entities) do
|
|
88
87
|
local laser = entity:ToLaser()
|
|
89
88
|
if laser ~= nil then
|
|
90
|
-
|
|
89
|
+
lasers[#lasers + 1] = laser
|
|
91
90
|
end
|
|
92
91
|
end
|
|
93
92
|
return lasers
|
|
94
93
|
end
|
|
95
|
-
function ____exports.getNPCs(self,
|
|
94
|
+
function ____exports.getNPCs(self, entityType, variant, subType, ignoreFriendly)
|
|
96
95
|
if ignoreFriendly == nil then
|
|
97
96
|
ignoreFriendly = false
|
|
98
97
|
end
|
|
99
98
|
local entities = getEntities(
|
|
100
99
|
nil,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
entityType,
|
|
101
|
+
variant,
|
|
102
|
+
subType,
|
|
104
103
|
ignoreFriendly
|
|
105
104
|
)
|
|
106
105
|
local npcs = {}
|
|
107
106
|
for ____, entity in ipairs(entities) do
|
|
108
107
|
local npc = entity:ToNPC()
|
|
109
108
|
if npc ~= nil then
|
|
110
|
-
|
|
109
|
+
npcs[#npcs + 1] = npc
|
|
111
110
|
end
|
|
112
111
|
end
|
|
113
112
|
return npcs
|
|
114
113
|
end
|
|
115
|
-
function ____exports.getPickups(self,
|
|
116
|
-
if
|
|
117
|
-
|
|
114
|
+
function ____exports.getPickups(self, pickupVariant, subType)
|
|
115
|
+
if pickupVariant == nil then
|
|
116
|
+
pickupVariant = -1
|
|
118
117
|
end
|
|
119
|
-
if
|
|
120
|
-
|
|
118
|
+
if subType == nil then
|
|
119
|
+
subType = -1
|
|
121
120
|
end
|
|
122
|
-
local entities = getEntities(nil, EntityType.ENTITY_PICKUP,
|
|
121
|
+
local entities = getEntities(nil, EntityType.ENTITY_PICKUP, pickupVariant, subType)
|
|
123
122
|
local pickups = {}
|
|
124
123
|
for ____, entity in ipairs(entities) do
|
|
125
124
|
local pickup = entity:ToPickup()
|
|
126
125
|
if pickup ~= nil then
|
|
127
|
-
|
|
126
|
+
pickups[#pickups + 1] = pickup
|
|
128
127
|
end
|
|
129
128
|
end
|
|
130
129
|
return pickups
|
|
131
130
|
end
|
|
132
|
-
function ____exports.getProjectiles(self,
|
|
133
|
-
if
|
|
134
|
-
|
|
131
|
+
function ____exports.getProjectiles(self, projectileVariant, subType)
|
|
132
|
+
if projectileVariant == nil then
|
|
133
|
+
projectileVariant = -1
|
|
135
134
|
end
|
|
136
|
-
if
|
|
137
|
-
|
|
135
|
+
if subType == nil then
|
|
136
|
+
subType = -1
|
|
138
137
|
end
|
|
139
|
-
local entities = getEntities(nil, EntityType.ENTITY_PROJECTILE,
|
|
138
|
+
local entities = getEntities(nil, EntityType.ENTITY_PROJECTILE, projectileVariant, subType)
|
|
140
139
|
local projectiles = {}
|
|
141
140
|
for ____, entity in ipairs(entities) do
|
|
142
141
|
local projectile = entity:ToProjectile()
|
|
143
142
|
if projectile ~= nil then
|
|
144
|
-
|
|
143
|
+
projectiles[#projectiles + 1] = projectile
|
|
145
144
|
end
|
|
146
145
|
end
|
|
147
146
|
return projectiles
|
|
148
147
|
end
|
|
149
|
-
function ____exports.getSlots(self,
|
|
150
|
-
if
|
|
151
|
-
|
|
148
|
+
function ____exports.getSlots(self, slotVariant, subType)
|
|
149
|
+
if slotVariant == nil then
|
|
150
|
+
slotVariant = -1
|
|
152
151
|
end
|
|
153
|
-
if
|
|
154
|
-
|
|
152
|
+
if subType == nil then
|
|
153
|
+
subType = -1
|
|
155
154
|
end
|
|
156
|
-
local slots = getEntities(nil, EntityType.ENTITY_SLOT,
|
|
155
|
+
local slots = getEntities(nil, EntityType.ENTITY_SLOT, slotVariant, subType)
|
|
157
156
|
return slots
|
|
158
157
|
end
|
|
159
|
-
function ____exports.getTears(self,
|
|
160
|
-
if
|
|
161
|
-
|
|
158
|
+
function ____exports.getTears(self, tearVariant, subType)
|
|
159
|
+
if tearVariant == nil then
|
|
160
|
+
tearVariant = -1
|
|
162
161
|
end
|
|
163
|
-
if
|
|
164
|
-
|
|
162
|
+
if subType == nil then
|
|
163
|
+
subType = -1
|
|
165
164
|
end
|
|
166
|
-
local entities = getEntities(nil, EntityType.ENTITY_TEAR,
|
|
165
|
+
local entities = getEntities(nil, EntityType.ENTITY_TEAR, tearVariant, subType)
|
|
167
166
|
local tears = {}
|
|
168
167
|
for ____, entity in ipairs(entities) do
|
|
169
168
|
local tear = entity:ToTear()
|
|
170
169
|
if tear ~= nil then
|
|
171
|
-
|
|
170
|
+
tears[#tears + 1] = tear
|
|
172
171
|
end
|
|
173
172
|
end
|
|
174
173
|
return tears
|
|
175
174
|
end
|
|
176
|
-
function ____exports.removeAllBombs(self,
|
|
177
|
-
local bombs = ____exports.getBombs(nil,
|
|
175
|
+
function ____exports.removeAllBombs(self, bombVariant, subType, cap)
|
|
176
|
+
local bombs = ____exports.getBombs(nil, bombVariant, subType)
|
|
178
177
|
return removeEntities(nil, bombs, cap)
|
|
179
178
|
end
|
|
180
|
-
function ____exports.removeAllEffects(self,
|
|
181
|
-
local effects = ____exports.getEffects(nil,
|
|
179
|
+
function ____exports.removeAllEffects(self, effectVariant, subType, cap)
|
|
180
|
+
local effects = ____exports.getEffects(nil, effectVariant, subType)
|
|
182
181
|
return removeEntities(nil, effects, cap)
|
|
183
182
|
end
|
|
184
|
-
function ____exports.removeAllFamiliars(self,
|
|
185
|
-
local familiars = ____exports.getFamiliars(nil,
|
|
183
|
+
function ____exports.removeAllFamiliars(self, familiarVariant, subType, cap)
|
|
184
|
+
local familiars = ____exports.getFamiliars(nil, familiarVariant, subType)
|
|
186
185
|
return removeEntities(nil, familiars, cap)
|
|
187
186
|
end
|
|
188
|
-
function ____exports.removeAllKnives(self,
|
|
189
|
-
local knives = ____exports.getKnives(nil,
|
|
187
|
+
function ____exports.removeAllKnives(self, knifeVariant, subType, cap)
|
|
188
|
+
local knives = ____exports.getKnives(nil, knifeVariant, subType)
|
|
190
189
|
return removeEntities(nil, knives, cap)
|
|
191
190
|
end
|
|
192
|
-
function ____exports.removeAllLasers(self,
|
|
193
|
-
local lasers = ____exports.getLasers(nil,
|
|
191
|
+
function ____exports.removeAllLasers(self, laserVariant, subType, cap)
|
|
192
|
+
local lasers = ____exports.getLasers(nil, laserVariant, subType)
|
|
194
193
|
return removeEntities(nil, lasers, cap)
|
|
195
194
|
end
|
|
196
195
|
function ____exports.removeAllNPCs(self, cap)
|
|
197
196
|
local npcs = ____exports.getNPCs(nil)
|
|
198
197
|
return removeEntities(nil, npcs, cap)
|
|
199
198
|
end
|
|
200
|
-
function ____exports.removeAllPickups(self,
|
|
201
|
-
local pickups = ____exports.getPickups(nil,
|
|
199
|
+
function ____exports.removeAllPickups(self, pickupVariant, subType, cap)
|
|
200
|
+
local pickups = ____exports.getPickups(nil, pickupVariant, subType)
|
|
202
201
|
return removeEntities(nil, pickups, cap)
|
|
203
202
|
end
|
|
204
|
-
function ____exports.removeAllProjectiles(self,
|
|
205
|
-
local projectiles = ____exports.getProjectiles(nil,
|
|
203
|
+
function ____exports.removeAllProjectiles(self, projectileVariant, subType, cap)
|
|
204
|
+
local projectiles = ____exports.getProjectiles(nil, projectileVariant, subType)
|
|
206
205
|
return removeEntities(nil, projectiles, cap)
|
|
207
206
|
end
|
|
208
|
-
function ____exports.removeAllSlots(self,
|
|
209
|
-
local slots = ____exports.getSlots(nil,
|
|
207
|
+
function ____exports.removeAllSlots(self, slotVariant, subType, cap)
|
|
208
|
+
local slots = ____exports.getSlots(nil, slotVariant, subType)
|
|
210
209
|
return removeEntities(nil, slots, cap)
|
|
211
210
|
end
|
|
212
|
-
function ____exports.removeAllTears(self,
|
|
213
|
-
local tears = ____exports.getTears(nil,
|
|
211
|
+
function ____exports.removeAllTears(self, tearVariant, subType, cap)
|
|
212
|
+
local tears = ____exports.getTears(nil, tearVariant, subType)
|
|
214
213
|
return removeEntities(nil, tears, cap)
|
|
215
214
|
end
|
|
216
|
-
function ____exports.spawnBomb(self,
|
|
215
|
+
function ____exports.spawnBomb(self, bombVariant, subType, position, velocity, spawner, seed)
|
|
217
216
|
if velocity == nil then
|
|
218
217
|
velocity = VectorZero
|
|
219
218
|
end
|
|
@@ -226,7 +225,7 @@ function ____exports.spawnBomb(self, variant, subType, position, velocity, spawn
|
|
|
226
225
|
local entity = spawn(
|
|
227
226
|
nil,
|
|
228
227
|
EntityType.ENTITY_BOMB,
|
|
229
|
-
|
|
228
|
+
bombVariant,
|
|
230
229
|
subType,
|
|
231
230
|
position,
|
|
232
231
|
velocity,
|
|
@@ -239,7 +238,7 @@ function ____exports.spawnBomb(self, variant, subType, position, velocity, spawn
|
|
|
239
238
|
end
|
|
240
239
|
return bomb
|
|
241
240
|
end
|
|
242
|
-
function ____exports.spawnBombWithSeed(self,
|
|
241
|
+
function ____exports.spawnBombWithSeed(self, bombVariant, subType, position, seed, velocity, spawner)
|
|
243
242
|
if velocity == nil then
|
|
244
243
|
velocity = VectorZero
|
|
245
244
|
end
|
|
@@ -248,7 +247,7 @@ function ____exports.spawnBombWithSeed(self, variant, subType, position, seed, v
|
|
|
248
247
|
end
|
|
249
248
|
return ____exports.spawnBomb(
|
|
250
249
|
nil,
|
|
251
|
-
|
|
250
|
+
bombVariant,
|
|
252
251
|
subType,
|
|
253
252
|
position,
|
|
254
253
|
velocity,
|
|
@@ -256,7 +255,7 @@ function ____exports.spawnBombWithSeed(self, variant, subType, position, seed, v
|
|
|
256
255
|
seed
|
|
257
256
|
)
|
|
258
257
|
end
|
|
259
|
-
function ____exports.spawnEffect(self,
|
|
258
|
+
function ____exports.spawnEffect(self, effectVariant, subType, position, velocity, spawner, seed)
|
|
260
259
|
if velocity == nil then
|
|
261
260
|
velocity = VectorZero
|
|
262
261
|
end
|
|
@@ -269,7 +268,7 @@ function ____exports.spawnEffect(self, variant, subType, position, velocity, spa
|
|
|
269
268
|
local entity = spawn(
|
|
270
269
|
nil,
|
|
271
270
|
EntityType.ENTITY_EFFECT,
|
|
272
|
-
|
|
271
|
+
effectVariant,
|
|
273
272
|
subType,
|
|
274
273
|
position,
|
|
275
274
|
velocity,
|
|
@@ -282,7 +281,7 @@ function ____exports.spawnEffect(self, variant, subType, position, velocity, spa
|
|
|
282
281
|
end
|
|
283
282
|
return effect
|
|
284
283
|
end
|
|
285
|
-
function ____exports.spawnEffectWithSeed(self,
|
|
284
|
+
function ____exports.spawnEffectWithSeed(self, effectVariant, subType, position, seed, velocity, spawner)
|
|
286
285
|
if velocity == nil then
|
|
287
286
|
velocity = VectorZero
|
|
288
287
|
end
|
|
@@ -291,7 +290,7 @@ function ____exports.spawnEffectWithSeed(self, variant, subType, position, seed,
|
|
|
291
290
|
end
|
|
292
291
|
return ____exports.spawnEffect(
|
|
293
292
|
nil,
|
|
294
|
-
|
|
293
|
+
effectVariant,
|
|
295
294
|
subType,
|
|
296
295
|
position,
|
|
297
296
|
velocity,
|
|
@@ -299,7 +298,7 @@ function ____exports.spawnEffectWithSeed(self, variant, subType, position, seed,
|
|
|
299
298
|
seed
|
|
300
299
|
)
|
|
301
300
|
end
|
|
302
|
-
function ____exports.spawnFamiliar(self,
|
|
301
|
+
function ____exports.spawnFamiliar(self, familiarVariant, subType, position, velocity, spawner, seed)
|
|
303
302
|
if velocity == nil then
|
|
304
303
|
velocity = VectorZero
|
|
305
304
|
end
|
|
@@ -312,7 +311,7 @@ function ____exports.spawnFamiliar(self, variant, subType, position, velocity, s
|
|
|
312
311
|
local entity = spawn(
|
|
313
312
|
nil,
|
|
314
313
|
EntityType.ENTITY_FAMILIAR,
|
|
315
|
-
|
|
314
|
+
familiarVariant,
|
|
316
315
|
subType,
|
|
317
316
|
position,
|
|
318
317
|
velocity,
|
|
@@ -325,7 +324,7 @@ function ____exports.spawnFamiliar(self, variant, subType, position, velocity, s
|
|
|
325
324
|
end
|
|
326
325
|
return familiar
|
|
327
326
|
end
|
|
328
|
-
function ____exports.spawnFamiliarWithSeed(self,
|
|
327
|
+
function ____exports.spawnFamiliarWithSeed(self, familiarVariant, subType, position, seed, velocity, spawner)
|
|
329
328
|
if velocity == nil then
|
|
330
329
|
velocity = VectorZero
|
|
331
330
|
end
|
|
@@ -334,7 +333,7 @@ function ____exports.spawnFamiliarWithSeed(self, variant, subType, position, see
|
|
|
334
333
|
end
|
|
335
334
|
return ____exports.spawnFamiliar(
|
|
336
335
|
nil,
|
|
337
|
-
|
|
336
|
+
familiarVariant,
|
|
338
337
|
subType,
|
|
339
338
|
position,
|
|
340
339
|
velocity,
|
|
@@ -342,7 +341,7 @@ function ____exports.spawnFamiliarWithSeed(self, variant, subType, position, see
|
|
|
342
341
|
seed
|
|
343
342
|
)
|
|
344
343
|
end
|
|
345
|
-
function ____exports.spawnKnife(self,
|
|
344
|
+
function ____exports.spawnKnife(self, knifeVariant, subType, position, velocity, spawner, seed)
|
|
346
345
|
if velocity == nil then
|
|
347
346
|
velocity = VectorZero
|
|
348
347
|
end
|
|
@@ -355,7 +354,7 @@ function ____exports.spawnKnife(self, variant, subType, position, velocity, spaw
|
|
|
355
354
|
local entity = spawn(
|
|
356
355
|
nil,
|
|
357
356
|
EntityType.ENTITY_KNIFE,
|
|
358
|
-
|
|
357
|
+
knifeVariant,
|
|
359
358
|
subType,
|
|
360
359
|
position,
|
|
361
360
|
velocity,
|
|
@@ -368,7 +367,7 @@ function ____exports.spawnKnife(self, variant, subType, position, velocity, spaw
|
|
|
368
367
|
end
|
|
369
368
|
return knife
|
|
370
369
|
end
|
|
371
|
-
function ____exports.spawnKnifeWithSeed(self,
|
|
370
|
+
function ____exports.spawnKnifeWithSeed(self, knifeVariant, subType, position, seed, velocity, spawner)
|
|
372
371
|
if velocity == nil then
|
|
373
372
|
velocity = VectorZero
|
|
374
373
|
end
|
|
@@ -377,7 +376,7 @@ function ____exports.spawnKnifeWithSeed(self, variant, subType, position, seed,
|
|
|
377
376
|
end
|
|
378
377
|
return ____exports.spawnKnife(
|
|
379
378
|
nil,
|
|
380
|
-
|
|
379
|
+
knifeVariant,
|
|
381
380
|
subType,
|
|
382
381
|
position,
|
|
383
382
|
velocity,
|
|
@@ -385,7 +384,7 @@ function ____exports.spawnKnifeWithSeed(self, variant, subType, position, seed,
|
|
|
385
384
|
seed
|
|
386
385
|
)
|
|
387
386
|
end
|
|
388
|
-
function ____exports.spawnLaser(self,
|
|
387
|
+
function ____exports.spawnLaser(self, laserVariant, subType, position, velocity, spawner, seed)
|
|
389
388
|
if velocity == nil then
|
|
390
389
|
velocity = VectorZero
|
|
391
390
|
end
|
|
@@ -398,7 +397,7 @@ function ____exports.spawnLaser(self, variant, subType, position, velocity, spaw
|
|
|
398
397
|
local entity = spawn(
|
|
399
398
|
nil,
|
|
400
399
|
EntityType.ENTITY_LASER,
|
|
401
|
-
|
|
400
|
+
laserVariant,
|
|
402
401
|
subType,
|
|
403
402
|
position,
|
|
404
403
|
velocity,
|
|
@@ -411,7 +410,7 @@ function ____exports.spawnLaser(self, variant, subType, position, velocity, spaw
|
|
|
411
410
|
end
|
|
412
411
|
return laser
|
|
413
412
|
end
|
|
414
|
-
function ____exports.spawnLaserWithSeed(self,
|
|
413
|
+
function ____exports.spawnLaserWithSeed(self, laserVariant, subType, position, seed, velocity, spawner)
|
|
415
414
|
if velocity == nil then
|
|
416
415
|
velocity = VectorZero
|
|
417
416
|
end
|
|
@@ -420,7 +419,7 @@ function ____exports.spawnLaserWithSeed(self, variant, subType, position, seed,
|
|
|
420
419
|
end
|
|
421
420
|
return ____exports.spawnLaser(
|
|
422
421
|
nil,
|
|
423
|
-
|
|
422
|
+
laserVariant,
|
|
424
423
|
subType,
|
|
425
424
|
position,
|
|
426
425
|
velocity,
|
|
@@ -472,7 +471,7 @@ function ____exports.spawnNPCWithSeed(self, entityType, variant, subType, positi
|
|
|
472
471
|
seed
|
|
473
472
|
)
|
|
474
473
|
end
|
|
475
|
-
function ____exports.spawnPickup(self,
|
|
474
|
+
function ____exports.spawnPickup(self, pickupVariant, subType, position, velocity, spawner, seed)
|
|
476
475
|
if velocity == nil then
|
|
477
476
|
velocity = VectorZero
|
|
478
477
|
end
|
|
@@ -485,7 +484,7 @@ function ____exports.spawnPickup(self, variant, subType, position, velocity, spa
|
|
|
485
484
|
local entity = spawn(
|
|
486
485
|
nil,
|
|
487
486
|
EntityType.ENTITY_PICKUP,
|
|
488
|
-
|
|
487
|
+
pickupVariant,
|
|
489
488
|
subType,
|
|
490
489
|
position,
|
|
491
490
|
velocity,
|
|
@@ -498,7 +497,7 @@ function ____exports.spawnPickup(self, variant, subType, position, velocity, spa
|
|
|
498
497
|
end
|
|
499
498
|
return pickup
|
|
500
499
|
end
|
|
501
|
-
function ____exports.spawnPickupWithSeed(self,
|
|
500
|
+
function ____exports.spawnPickupWithSeed(self, pickupVariant, subType, position, seed, velocity, spawner)
|
|
502
501
|
if velocity == nil then
|
|
503
502
|
velocity = VectorZero
|
|
504
503
|
end
|
|
@@ -507,7 +506,7 @@ function ____exports.spawnPickupWithSeed(self, variant, subType, position, seed,
|
|
|
507
506
|
end
|
|
508
507
|
return ____exports.spawnPickup(
|
|
509
508
|
nil,
|
|
510
|
-
|
|
509
|
+
pickupVariant,
|
|
511
510
|
subType,
|
|
512
511
|
position,
|
|
513
512
|
velocity,
|
|
@@ -515,7 +514,7 @@ function ____exports.spawnPickupWithSeed(self, variant, subType, position, seed,
|
|
|
515
514
|
seed
|
|
516
515
|
)
|
|
517
516
|
end
|
|
518
|
-
function ____exports.spawnProjectile(self,
|
|
517
|
+
function ____exports.spawnProjectile(self, projectileVariant, subType, position, velocity, spawner, seed)
|
|
519
518
|
if velocity == nil then
|
|
520
519
|
velocity = VectorZero
|
|
521
520
|
end
|
|
@@ -528,7 +527,7 @@ function ____exports.spawnProjectile(self, variant, subType, position, velocity,
|
|
|
528
527
|
local entity = spawn(
|
|
529
528
|
nil,
|
|
530
529
|
EntityType.ENTITY_PROJECTILE,
|
|
531
|
-
|
|
530
|
+
projectileVariant,
|
|
532
531
|
subType,
|
|
533
532
|
position,
|
|
534
533
|
velocity,
|
|
@@ -541,7 +540,7 @@ function ____exports.spawnProjectile(self, variant, subType, position, velocity,
|
|
|
541
540
|
end
|
|
542
541
|
return projectile
|
|
543
542
|
end
|
|
544
|
-
function ____exports.spawnProjectileWithSeed(self,
|
|
543
|
+
function ____exports.spawnProjectileWithSeed(self, projectileVariant, subType, position, seed, velocity, spawner)
|
|
545
544
|
if velocity == nil then
|
|
546
545
|
velocity = VectorZero
|
|
547
546
|
end
|
|
@@ -550,7 +549,7 @@ function ____exports.spawnProjectileWithSeed(self, variant, subType, position, s
|
|
|
550
549
|
end
|
|
551
550
|
return ____exports.spawnProjectile(
|
|
552
551
|
nil,
|
|
553
|
-
|
|
552
|
+
projectileVariant,
|
|
554
553
|
subType,
|
|
555
554
|
position,
|
|
556
555
|
velocity,
|
|
@@ -558,7 +557,7 @@ function ____exports.spawnProjectileWithSeed(self, variant, subType, position, s
|
|
|
558
557
|
seed
|
|
559
558
|
)
|
|
560
559
|
end
|
|
561
|
-
function ____exports.spawnSlot(self,
|
|
560
|
+
function ____exports.spawnSlot(self, slotVariant, subType, position, velocity, spawner, seed)
|
|
562
561
|
if velocity == nil then
|
|
563
562
|
velocity = VectorZero
|
|
564
563
|
end
|
|
@@ -571,7 +570,7 @@ function ____exports.spawnSlot(self, variant, subType, position, velocity, spawn
|
|
|
571
570
|
return spawn(
|
|
572
571
|
nil,
|
|
573
572
|
EntityType.ENTITY_SLOT,
|
|
574
|
-
|
|
573
|
+
slotVariant,
|
|
575
574
|
subType,
|
|
576
575
|
position,
|
|
577
576
|
velocity,
|
|
@@ -579,7 +578,7 @@ function ____exports.spawnSlot(self, variant, subType, position, velocity, spawn
|
|
|
579
578
|
seed
|
|
580
579
|
)
|
|
581
580
|
end
|
|
582
|
-
function ____exports.spawnSlotWithSeed(self,
|
|
581
|
+
function ____exports.spawnSlotWithSeed(self, slotVariant, subType, position, seed, velocity, spawner)
|
|
583
582
|
if velocity == nil then
|
|
584
583
|
velocity = VectorZero
|
|
585
584
|
end
|
|
@@ -588,7 +587,7 @@ function ____exports.spawnSlotWithSeed(self, variant, subType, position, seed, v
|
|
|
588
587
|
end
|
|
589
588
|
return ____exports.spawnSlot(
|
|
590
589
|
nil,
|
|
591
|
-
|
|
590
|
+
slotVariant,
|
|
592
591
|
subType,
|
|
593
592
|
position,
|
|
594
593
|
velocity,
|
|
@@ -596,7 +595,7 @@ function ____exports.spawnSlotWithSeed(self, variant, subType, position, seed, v
|
|
|
596
595
|
seed
|
|
597
596
|
)
|
|
598
597
|
end
|
|
599
|
-
function ____exports.spawnTear(self,
|
|
598
|
+
function ____exports.spawnTear(self, tearVariant, subType, position, velocity, spawner, seed)
|
|
600
599
|
if velocity == nil then
|
|
601
600
|
velocity = VectorZero
|
|
602
601
|
end
|
|
@@ -609,7 +608,7 @@ function ____exports.spawnTear(self, variant, subType, position, velocity, spawn
|
|
|
609
608
|
local entity = spawn(
|
|
610
609
|
nil,
|
|
611
610
|
EntityType.ENTITY_TEAR,
|
|
612
|
-
|
|
611
|
+
tearVariant,
|
|
613
612
|
subType,
|
|
614
613
|
position,
|
|
615
614
|
velocity,
|
|
@@ -622,7 +621,7 @@ function ____exports.spawnTear(self, variant, subType, position, velocity, spawn
|
|
|
622
621
|
end
|
|
623
622
|
return tear
|
|
624
623
|
end
|
|
625
|
-
function ____exports.spawnTearWithSeed(self,
|
|
624
|
+
function ____exports.spawnTearWithSeed(self, tearVariant, subType, position, seed, velocity, spawner)
|
|
626
625
|
if velocity == nil then
|
|
627
626
|
velocity = VectorZero
|
|
628
627
|
end
|
|
@@ -631,7 +630,7 @@ function ____exports.spawnTearWithSeed(self, variant, subType, position, seed, v
|
|
|
631
630
|
end
|
|
632
631
|
return ____exports.spawnTear(
|
|
633
632
|
nil,
|
|
634
|
-
|
|
633
|
+
tearVariant,
|
|
635
634
|
subType,
|
|
636
635
|
position,
|
|
637
636
|
velocity,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local Set = ____lualib.Set
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
5
4
|
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
6
5
|
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
7
6
|
local ____exports = {}
|
|
@@ -202,7 +201,7 @@ function ____exports.getNewGlobals(self)
|
|
|
202
201
|
for key, value in pairs(_G) do
|
|
203
202
|
if not defaultGlobals:has(key) then
|
|
204
203
|
local keyValueTuple = {key, value}
|
|
205
|
-
|
|
204
|
+
newGlobals[#newGlobals + 1] = keyValueTuple
|
|
206
205
|
end
|
|
207
206
|
end
|
|
208
207
|
__TS__ArraySort(newGlobals, twoDimensionalSort)
|
|
@@ -2,7 +2,6 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Set = ____lualib.Set
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
5
|
-
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
6
5
|
local Map = ____lualib.Map
|
|
7
6
|
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
8
7
|
local ____exports = {}
|
|
@@ -34,7 +33,7 @@ function getAllGridEntities(self)
|
|
|
34
33
|
for ____, gridIndex in ipairs(range(nil, gridSize - 1)) do
|
|
35
34
|
local gridEntity = room:GetGridEntity(gridIndex)
|
|
36
35
|
if gridEntity ~= nil then
|
|
37
|
-
|
|
36
|
+
gridEntities[#gridEntities + 1] = gridEntity
|
|
38
37
|
end
|
|
39
38
|
end
|
|
40
39
|
return gridEntities
|
|
@@ -172,7 +171,7 @@ function ____exports.getSurroundingGridEntities(self, gridEntity)
|
|
|
172
171
|
for ____, surroundingGridIndex in ipairs(surroundingGridIndexes) do
|
|
173
172
|
local surroundingGridEntity = room:GetGridEntity(surroundingGridIndex)
|
|
174
173
|
if surroundingGridEntity ~= nil then
|
|
175
|
-
|
|
174
|
+
surroundingGridEntities[#surroundingGridEntities + 1] = surroundingGridEntity
|
|
176
175
|
end
|
|
177
176
|
end
|
|
178
177
|
return surroundingGridEntities
|
package/dist/functions/log.lua
CHANGED
|
@@ -339,7 +339,7 @@ function ____exports.logPlayerHealth(player)
|
|
|
339
339
|
____exports.log(" Broken hearts: " .. tostring(playerHealth.brokenHearts))
|
|
340
340
|
____exports.log(" Soul charges: " .. tostring(playerHealth.soulCharges))
|
|
341
341
|
____exports.log(" Blood charges: " .. tostring(playerHealth.bloodCharges))
|
|
342
|
-
____exports.log((" Soul heart types: [" .. table.concat(playerHealth.soulHeartTypes, ","
|
|
342
|
+
____exports.log((" Soul heart types: [" .. table.concat(playerHealth.soulHeartTypes, ",")) .. "]")
|
|
343
343
|
end
|
|
344
344
|
function ____exports.logProjectileFlags(flags)
|
|
345
345
|
____exports.logFlags(flags, ProjectileFlags, "projectile")
|