isaacscript-common 17.2.1 → 17.4.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.d.ts +67 -55
- package/dist/isaacscript-common.lua +124 -110
- package/dist/src/classes/features/other/CustomHotkeys.d.ts +4 -0
- package/dist/src/classes/features/other/CustomHotkeys.d.ts.map +1 -1
- package/dist/src/classes/features/other/SpawnCollectible.d.ts +4 -4
- package/dist/src/classes/features/other/SpawnCollectible.d.ts.map +1 -1
- package/dist/src/classes/features/other/SpawnCollectible.lua +4 -4
- package/dist/src/classes/features/other/SpawnRockAltRewards.d.ts +3 -2
- package/dist/src/classes/features/other/SpawnRockAltRewards.d.ts.map +1 -1
- package/dist/src/classes/features/other/SpawnRockAltRewards.lua +4 -1
- package/dist/src/functions/bosses.d.ts +2 -2
- package/dist/src/functions/bosses.d.ts.map +1 -1
- package/dist/src/functions/bosses.lua +5 -5
- package/dist/src/functions/entities.d.ts +5 -5
- package/dist/src/functions/entities.d.ts.map +1 -1
- package/dist/src/functions/entities.lua +10 -8
- package/dist/src/functions/entitiesSpecific.d.ts +20 -20
- package/dist/src/functions/entitiesSpecific.d.ts.map +1 -1
- package/dist/src/functions/entitiesSpecific.lua +40 -40
- package/dist/src/functions/pickupsSpecific.d.ts +18 -18
- package/dist/src/functions/pickupsSpecific.d.ts.map +1 -1
- package/dist/src/functions/pickupsSpecific.lua +36 -36
- package/dist/src/functions/players.d.ts +7 -0
- package/dist/src/functions/players.d.ts.map +1 -1
- package/dist/src/functions/players.lua +26 -13
- package/dist/src/functions/spawnCollectible.d.ts +4 -4
- package/dist/src/functions/spawnCollectible.d.ts.map +1 -1
- package/dist/src/functions/spawnCollectible.lua +6 -6
- package/package.json +2 -2
- package/src/classes/features/other/CustomHotkeys.ts +4 -0
- package/src/classes/features/other/SpawnCollectible.ts +6 -6
- package/src/classes/features/other/SpawnRockAltRewards.ts +7 -3
- package/src/functions/bosses.ts +13 -5
- package/src/functions/entities.ts +14 -8
- package/src/functions/entitiesSpecific.ts +40 -40
- package/src/functions/pickupsSpecific.ts +84 -36
- package/src/functions/players.ts +21 -0
- package/src/functions/spawnCollectible.ts +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 17.
|
|
3
|
+
isaacscript-common 17.4.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -19504,7 +19504,7 @@ function ____exports.setEntityRandomColor(self, entity)
|
|
|
19504
19504
|
false
|
|
19505
19505
|
)
|
|
19506
19506
|
end
|
|
19507
|
-
function ____exports.spawn(self, entityType, variant, subType,
|
|
19507
|
+
function ____exports.spawn(self, entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
19508
19508
|
if velocity == nil then
|
|
19509
19509
|
velocity = VectorZero
|
|
19510
19510
|
end
|
|
@@ -19514,7 +19514,8 @@ function ____exports.spawn(self, entityType, variant, subType, position, velocit
|
|
|
19514
19514
|
if seedOrRNG == nil then
|
|
19515
19515
|
seedOrRNG = nil
|
|
19516
19516
|
end
|
|
19517
|
-
|
|
19517
|
+
local room = game:GetRoom()
|
|
19518
|
+
if positionOrGridIndex == nil then
|
|
19518
19519
|
local entityID = ____exports.getEntityIDFromConstituents(nil, entityType, variant, subType)
|
|
19519
19520
|
error(("Failed to spawn entity " .. entityID) .. " since an undefined position was passed to the \"spawn\" function.")
|
|
19520
19521
|
end
|
|
@@ -19522,6 +19523,7 @@ function ____exports.spawn(self, entityType, variant, subType, position, velocit
|
|
|
19522
19523
|
local entityID = ____exports.getEntityIDFromConstituents(nil, entityType, variant, subType)
|
|
19523
19524
|
error(("Failed to spawn entity " .. entityID) .. " since an undefined velocity was passed to the \"spawn\" function.")
|
|
19524
19525
|
end
|
|
19526
|
+
local position = isVector(nil, positionOrGridIndex) and positionOrGridIndex or room:GetGridPosition(positionOrGridIndex)
|
|
19525
19527
|
if seedOrRNG == nil then
|
|
19526
19528
|
return Isaac.Spawn(
|
|
19527
19529
|
entityType,
|
|
@@ -19543,7 +19545,7 @@ function ____exports.spawn(self, entityType, variant, subType, position, velocit
|
|
|
19543
19545
|
seed
|
|
19544
19546
|
)
|
|
19545
19547
|
end
|
|
19546
|
-
function ____exports.spawnEntityID(self, entityID,
|
|
19548
|
+
function ____exports.spawnEntityID(self, entityID, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
19547
19549
|
if velocity == nil then
|
|
19548
19550
|
velocity = VectorZero
|
|
19549
19551
|
end
|
|
@@ -19559,13 +19561,13 @@ function ____exports.spawnEntityID(self, entityID, position, velocity, spawner,
|
|
|
19559
19561
|
entityType,
|
|
19560
19562
|
variant,
|
|
19561
19563
|
subType,
|
|
19562
|
-
|
|
19564
|
+
positionOrGridIndex,
|
|
19563
19565
|
velocity,
|
|
19564
19566
|
spawner,
|
|
19565
19567
|
seedOrRNG
|
|
19566
19568
|
)
|
|
19567
19569
|
end
|
|
19568
|
-
function ____exports.spawnWithSeed(self, entityType, variant, subType,
|
|
19570
|
+
function ____exports.spawnWithSeed(self, entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
19569
19571
|
if velocity == nil then
|
|
19570
19572
|
velocity = VectorZero
|
|
19571
19573
|
end
|
|
@@ -19577,7 +19579,7 @@ function ____exports.spawnWithSeed(self, entityType, variant, subType, position,
|
|
|
19577
19579
|
entityType,
|
|
19578
19580
|
variant,
|
|
19579
19581
|
subType,
|
|
19580
|
-
|
|
19582
|
+
positionOrGridIndex,
|
|
19581
19583
|
velocity,
|
|
19582
19584
|
spawner,
|
|
19583
19585
|
seedOrRNG
|
|
@@ -21468,6 +21470,15 @@ function ____exports.canPlayerCrushRocks(self, player)
|
|
|
21468
21470
|
local effects = player:GetEffects()
|
|
21469
21471
|
return player:HasCollectible(CollectibleType.LEO) or player:HasCollectible(CollectibleType.THUNDER_THIGHS) or effects:HasCollectibleEffect(CollectibleType.MEGA_MUSH) or player:HasPlayerForm(PlayerForm.STOMPY)
|
|
21470
21472
|
end
|
|
21473
|
+
function ____exports.dequeueItem(self, player)
|
|
21474
|
+
if player.QueuedItem.Item == nil then
|
|
21475
|
+
return false
|
|
21476
|
+
end
|
|
21477
|
+
local queue = player.QueuedItem
|
|
21478
|
+
queue.Item = nil
|
|
21479
|
+
player.QueuedItem = queue
|
|
21480
|
+
return true
|
|
21481
|
+
end
|
|
21471
21482
|
function ____exports.getActiveItemSlot(self, player, collectibleType)
|
|
21472
21483
|
local activeSlots = getEnumValues(nil, ActiveSlot)
|
|
21473
21484
|
return __TS__ArrayFind(
|
|
@@ -21737,7 +21748,7 @@ function ____exports.removeAllActiveItems(self, player)
|
|
|
21737
21748
|
do
|
|
21738
21749
|
local collectibleType = player:GetActiveItem(activeSlot)
|
|
21739
21750
|
if collectibleType == CollectibleType.NULL then
|
|
21740
|
-
goto
|
|
21751
|
+
goto __continue91
|
|
21741
21752
|
end
|
|
21742
21753
|
local hasCollectible
|
|
21743
21754
|
repeat
|
|
@@ -21747,7 +21758,7 @@ function ____exports.removeAllActiveItems(self, player)
|
|
|
21747
21758
|
end
|
|
21748
21759
|
until not hasCollectible
|
|
21749
21760
|
end
|
|
21750
|
-
::
|
|
21761
|
+
::__continue91::
|
|
21751
21762
|
end
|
|
21752
21763
|
end
|
|
21753
21764
|
function ____exports.removeAllPlayerTrinkets(self, player)
|
|
@@ -21755,7 +21766,7 @@ function ____exports.removeAllPlayerTrinkets(self, player)
|
|
|
21755
21766
|
do
|
|
21756
21767
|
local trinketType = player:GetTrinket(trinketSlot)
|
|
21757
21768
|
if trinketType == TrinketType.NULL then
|
|
21758
|
-
goto
|
|
21769
|
+
goto __continue96
|
|
21759
21770
|
end
|
|
21760
21771
|
local hasTrinket
|
|
21761
21772
|
repeat
|
|
@@ -21765,7 +21776,7 @@ function ____exports.removeAllPlayerTrinkets(self, player)
|
|
|
21765
21776
|
end
|
|
21766
21777
|
until not hasTrinket
|
|
21767
21778
|
end
|
|
21768
|
-
::
|
|
21779
|
+
::__continue96::
|
|
21769
21780
|
end
|
|
21770
21781
|
end
|
|
21771
21782
|
function ____exports.removeCollectibleCostume(self, player, collectibleType)
|
|
@@ -21819,9 +21830,9 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
21819
21830
|
itemPool:RemoveCollectible(collectibleType)
|
|
21820
21831
|
end
|
|
21821
21832
|
repeat
|
|
21822
|
-
local
|
|
21823
|
-
local
|
|
21824
|
-
if
|
|
21833
|
+
local ____switch115 = activeSlot
|
|
21834
|
+
local ____cond115 = ____switch115 == ActiveSlot.PRIMARY
|
|
21835
|
+
if ____cond115 then
|
|
21825
21836
|
do
|
|
21826
21837
|
if primaryCollectibleType ~= CollectibleType.NULL then
|
|
21827
21838
|
player:RemoveCollectible(primaryCollectibleType)
|
|
@@ -21830,8 +21841,8 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
21830
21841
|
break
|
|
21831
21842
|
end
|
|
21832
21843
|
end
|
|
21833
|
-
|
|
21834
|
-
if
|
|
21844
|
+
____cond115 = ____cond115 or ____switch115 == ActiveSlot.SECONDARY
|
|
21845
|
+
if ____cond115 then
|
|
21835
21846
|
do
|
|
21836
21847
|
if primaryCollectibleType ~= CollectibleType.NULL then
|
|
21837
21848
|
player:RemoveCollectible(primaryCollectibleType)
|
|
@@ -21846,16 +21857,16 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
21846
21857
|
break
|
|
21847
21858
|
end
|
|
21848
21859
|
end
|
|
21849
|
-
|
|
21850
|
-
if
|
|
21860
|
+
____cond115 = ____cond115 or ____switch115 == ActiveSlot.POCKET
|
|
21861
|
+
if ____cond115 then
|
|
21851
21862
|
do
|
|
21852
21863
|
player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
|
|
21853
21864
|
player:SetActiveCharge(charge, activeSlot)
|
|
21854
21865
|
break
|
|
21855
21866
|
end
|
|
21856
21867
|
end
|
|
21857
|
-
|
|
21858
|
-
if
|
|
21868
|
+
____cond115 = ____cond115 or ____switch115 == ActiveSlot.POCKET_SINGLE_USE
|
|
21869
|
+
if ____cond115 then
|
|
21859
21870
|
do
|
|
21860
21871
|
player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
|
|
21861
21872
|
break
|
|
@@ -22788,7 +22799,7 @@ function ____exports.removeAllTears(self, tearVariant, subType, cap)
|
|
|
22788
22799
|
local tears = ____exports.getTears(nil, tearVariant, subType)
|
|
22789
22800
|
return removeEntities(nil, tears, cap)
|
|
22790
22801
|
end
|
|
22791
|
-
function ____exports.spawnBomb(self, bombVariant, subType,
|
|
22802
|
+
function ____exports.spawnBomb(self, bombVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
22792
22803
|
if velocity == nil then
|
|
22793
22804
|
velocity = VectorZero
|
|
22794
22805
|
end
|
|
@@ -22803,7 +22814,7 @@ function ____exports.spawnBomb(self, bombVariant, subType, position, velocity, s
|
|
|
22803
22814
|
EntityType.BOMB,
|
|
22804
22815
|
bombVariant,
|
|
22805
22816
|
subType,
|
|
22806
|
-
|
|
22817
|
+
positionOrGridIndex,
|
|
22807
22818
|
velocity,
|
|
22808
22819
|
spawner,
|
|
22809
22820
|
seedOrRNG
|
|
@@ -22814,7 +22825,7 @@ function ____exports.spawnBomb(self, bombVariant, subType, position, velocity, s
|
|
|
22814
22825
|
end
|
|
22815
22826
|
return bomb
|
|
22816
22827
|
end
|
|
22817
|
-
function ____exports.spawnBombWithSeed(self, bombVariant, subType,
|
|
22828
|
+
function ____exports.spawnBombWithSeed(self, bombVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
22818
22829
|
if velocity == nil then
|
|
22819
22830
|
velocity = VectorZero
|
|
22820
22831
|
end
|
|
@@ -22825,13 +22836,13 @@ function ____exports.spawnBombWithSeed(self, bombVariant, subType, position, see
|
|
|
22825
22836
|
nil,
|
|
22826
22837
|
bombVariant,
|
|
22827
22838
|
subType,
|
|
22828
|
-
|
|
22839
|
+
positionOrGridIndex,
|
|
22829
22840
|
velocity,
|
|
22830
22841
|
spawner,
|
|
22831
22842
|
seedOrRNG
|
|
22832
22843
|
)
|
|
22833
22844
|
end
|
|
22834
|
-
function ____exports.spawnEffect(self, effectVariant, subType,
|
|
22845
|
+
function ____exports.spawnEffect(self, effectVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
22835
22846
|
if velocity == nil then
|
|
22836
22847
|
velocity = VectorZero
|
|
22837
22848
|
end
|
|
@@ -22846,7 +22857,7 @@ function ____exports.spawnEffect(self, effectVariant, subType, position, velocit
|
|
|
22846
22857
|
EntityType.EFFECT,
|
|
22847
22858
|
effectVariant,
|
|
22848
22859
|
subType,
|
|
22849
|
-
|
|
22860
|
+
positionOrGridIndex,
|
|
22850
22861
|
velocity,
|
|
22851
22862
|
spawner,
|
|
22852
22863
|
seedOrRNG
|
|
@@ -22857,7 +22868,7 @@ function ____exports.spawnEffect(self, effectVariant, subType, position, velocit
|
|
|
22857
22868
|
end
|
|
22858
22869
|
return effect
|
|
22859
22870
|
end
|
|
22860
|
-
function ____exports.spawnEffectWithSeed(self, effectVariant, subType,
|
|
22871
|
+
function ____exports.spawnEffectWithSeed(self, effectVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
22861
22872
|
if velocity == nil then
|
|
22862
22873
|
velocity = VectorZero
|
|
22863
22874
|
end
|
|
@@ -22868,13 +22879,13 @@ function ____exports.spawnEffectWithSeed(self, effectVariant, subType, position,
|
|
|
22868
22879
|
nil,
|
|
22869
22880
|
effectVariant,
|
|
22870
22881
|
subType,
|
|
22871
|
-
|
|
22882
|
+
positionOrGridIndex,
|
|
22872
22883
|
velocity,
|
|
22873
22884
|
spawner,
|
|
22874
22885
|
seedOrRNG
|
|
22875
22886
|
)
|
|
22876
22887
|
end
|
|
22877
|
-
function ____exports.spawnFamiliar(self, familiarVariant, subType,
|
|
22888
|
+
function ____exports.spawnFamiliar(self, familiarVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
22878
22889
|
if velocity == nil then
|
|
22879
22890
|
velocity = VectorZero
|
|
22880
22891
|
end
|
|
@@ -22889,7 +22900,7 @@ function ____exports.spawnFamiliar(self, familiarVariant, subType, position, vel
|
|
|
22889
22900
|
EntityType.FAMILIAR,
|
|
22890
22901
|
familiarVariant,
|
|
22891
22902
|
subType,
|
|
22892
|
-
|
|
22903
|
+
positionOrGridIndex,
|
|
22893
22904
|
velocity,
|
|
22894
22905
|
spawner,
|
|
22895
22906
|
seedOrRNG
|
|
@@ -22900,7 +22911,7 @@ function ____exports.spawnFamiliar(self, familiarVariant, subType, position, vel
|
|
|
22900
22911
|
end
|
|
22901
22912
|
return familiar
|
|
22902
22913
|
end
|
|
22903
|
-
function ____exports.spawnFamiliarWithSeed(self, familiarVariant, subType,
|
|
22914
|
+
function ____exports.spawnFamiliarWithSeed(self, familiarVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
22904
22915
|
if velocity == nil then
|
|
22905
22916
|
velocity = VectorZero
|
|
22906
22917
|
end
|
|
@@ -22911,13 +22922,13 @@ function ____exports.spawnFamiliarWithSeed(self, familiarVariant, subType, posit
|
|
|
22911
22922
|
nil,
|
|
22912
22923
|
familiarVariant,
|
|
22913
22924
|
subType,
|
|
22914
|
-
|
|
22925
|
+
positionOrGridIndex,
|
|
22915
22926
|
velocity,
|
|
22916
22927
|
spawner,
|
|
22917
22928
|
seedOrRNG
|
|
22918
22929
|
)
|
|
22919
22930
|
end
|
|
22920
|
-
function ____exports.spawnKnife(self, knifeVariant, subType,
|
|
22931
|
+
function ____exports.spawnKnife(self, knifeVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
22921
22932
|
if velocity == nil then
|
|
22922
22933
|
velocity = VectorZero
|
|
22923
22934
|
end
|
|
@@ -22932,7 +22943,7 @@ function ____exports.spawnKnife(self, knifeVariant, subType, position, velocity,
|
|
|
22932
22943
|
EntityType.KNIFE,
|
|
22933
22944
|
knifeVariant,
|
|
22934
22945
|
subType,
|
|
22935
|
-
|
|
22946
|
+
positionOrGridIndex,
|
|
22936
22947
|
velocity,
|
|
22937
22948
|
spawner,
|
|
22938
22949
|
seedOrRNG
|
|
@@ -22943,7 +22954,7 @@ function ____exports.spawnKnife(self, knifeVariant, subType, position, velocity,
|
|
|
22943
22954
|
end
|
|
22944
22955
|
return knife
|
|
22945
22956
|
end
|
|
22946
|
-
function ____exports.spawnKnifeWithSeed(self, knifeVariant, subType,
|
|
22957
|
+
function ____exports.spawnKnifeWithSeed(self, knifeVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
22947
22958
|
if velocity == nil then
|
|
22948
22959
|
velocity = VectorZero
|
|
22949
22960
|
end
|
|
@@ -22954,13 +22965,13 @@ function ____exports.spawnKnifeWithSeed(self, knifeVariant, subType, position, s
|
|
|
22954
22965
|
nil,
|
|
22955
22966
|
knifeVariant,
|
|
22956
22967
|
subType,
|
|
22957
|
-
|
|
22968
|
+
positionOrGridIndex,
|
|
22958
22969
|
velocity,
|
|
22959
22970
|
spawner,
|
|
22960
22971
|
seedOrRNG
|
|
22961
22972
|
)
|
|
22962
22973
|
end
|
|
22963
|
-
function ____exports.spawnLaser(self, laserVariant, subType,
|
|
22974
|
+
function ____exports.spawnLaser(self, laserVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
22964
22975
|
if velocity == nil then
|
|
22965
22976
|
velocity = VectorZero
|
|
22966
22977
|
end
|
|
@@ -22975,7 +22986,7 @@ function ____exports.spawnLaser(self, laserVariant, subType, position, velocity,
|
|
|
22975
22986
|
EntityType.LASER,
|
|
22976
22987
|
laserVariant,
|
|
22977
22988
|
subType,
|
|
22978
|
-
|
|
22989
|
+
positionOrGridIndex,
|
|
22979
22990
|
velocity,
|
|
22980
22991
|
spawner,
|
|
22981
22992
|
seedOrRNG
|
|
@@ -22986,7 +22997,7 @@ function ____exports.spawnLaser(self, laserVariant, subType, position, velocity,
|
|
|
22986
22997
|
end
|
|
22987
22998
|
return laser
|
|
22988
22999
|
end
|
|
22989
|
-
function ____exports.spawnLaserWithSeed(self, laserVariant, subType,
|
|
23000
|
+
function ____exports.spawnLaserWithSeed(self, laserVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
22990
23001
|
if velocity == nil then
|
|
22991
23002
|
velocity = VectorZero
|
|
22992
23003
|
end
|
|
@@ -22997,13 +23008,13 @@ function ____exports.spawnLaserWithSeed(self, laserVariant, subType, position, s
|
|
|
22997
23008
|
nil,
|
|
22998
23009
|
laserVariant,
|
|
22999
23010
|
subType,
|
|
23000
|
-
|
|
23011
|
+
positionOrGridIndex,
|
|
23001
23012
|
velocity,
|
|
23002
23013
|
spawner,
|
|
23003
23014
|
seedOrRNG
|
|
23004
23015
|
)
|
|
23005
23016
|
end
|
|
23006
|
-
function ____exports.spawnNPC(self, entityType, variant, subType,
|
|
23017
|
+
function ____exports.spawnNPC(self, entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
23007
23018
|
if velocity == nil then
|
|
23008
23019
|
velocity = VectorZero
|
|
23009
23020
|
end
|
|
@@ -23018,7 +23029,7 @@ function ____exports.spawnNPC(self, entityType, variant, subType, position, velo
|
|
|
23018
23029
|
entityType,
|
|
23019
23030
|
variant,
|
|
23020
23031
|
subType,
|
|
23021
|
-
|
|
23032
|
+
positionOrGridIndex,
|
|
23022
23033
|
velocity,
|
|
23023
23034
|
spawner,
|
|
23024
23035
|
seedOrRNG
|
|
@@ -23029,7 +23040,7 @@ function ____exports.spawnNPC(self, entityType, variant, subType, position, velo
|
|
|
23029
23040
|
end
|
|
23030
23041
|
return npc
|
|
23031
23042
|
end
|
|
23032
|
-
function ____exports.spawnNPCWithSeed(self, entityType, variant, subType,
|
|
23043
|
+
function ____exports.spawnNPCWithSeed(self, entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
23033
23044
|
if velocity == nil then
|
|
23034
23045
|
velocity = VectorZero
|
|
23035
23046
|
end
|
|
@@ -23041,13 +23052,13 @@ function ____exports.spawnNPCWithSeed(self, entityType, variant, subType, positi
|
|
|
23041
23052
|
entityType,
|
|
23042
23053
|
variant,
|
|
23043
23054
|
subType,
|
|
23044
|
-
|
|
23055
|
+
positionOrGridIndex,
|
|
23045
23056
|
velocity,
|
|
23046
23057
|
spawner,
|
|
23047
23058
|
seedOrRNG
|
|
23048
23059
|
)
|
|
23049
23060
|
end
|
|
23050
|
-
function ____exports.spawnPickup(self, pickupVariant, subType,
|
|
23061
|
+
function ____exports.spawnPickup(self, pickupVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
23051
23062
|
if velocity == nil then
|
|
23052
23063
|
velocity = VectorZero
|
|
23053
23064
|
end
|
|
@@ -23062,7 +23073,7 @@ function ____exports.spawnPickup(self, pickupVariant, subType, position, velocit
|
|
|
23062
23073
|
EntityType.PICKUP,
|
|
23063
23074
|
pickupVariant,
|
|
23064
23075
|
subType,
|
|
23065
|
-
|
|
23076
|
+
positionOrGridIndex,
|
|
23066
23077
|
velocity,
|
|
23067
23078
|
spawner,
|
|
23068
23079
|
seedOrRNG
|
|
@@ -23073,7 +23084,7 @@ function ____exports.spawnPickup(self, pickupVariant, subType, position, velocit
|
|
|
23073
23084
|
end
|
|
23074
23085
|
return pickup
|
|
23075
23086
|
end
|
|
23076
|
-
function ____exports.spawnPickupWithSeed(self, pickupVariant, subType,
|
|
23087
|
+
function ____exports.spawnPickupWithSeed(self, pickupVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
23077
23088
|
if velocity == nil then
|
|
23078
23089
|
velocity = VectorZero
|
|
23079
23090
|
end
|
|
@@ -23084,13 +23095,13 @@ function ____exports.spawnPickupWithSeed(self, pickupVariant, subType, position,
|
|
|
23084
23095
|
nil,
|
|
23085
23096
|
pickupVariant,
|
|
23086
23097
|
subType,
|
|
23087
|
-
|
|
23098
|
+
positionOrGridIndex,
|
|
23088
23099
|
velocity,
|
|
23089
23100
|
spawner,
|
|
23090
23101
|
seedOrRNG
|
|
23091
23102
|
)
|
|
23092
23103
|
end
|
|
23093
|
-
function ____exports.spawnProjectile(self, projectileVariant, subType,
|
|
23104
|
+
function ____exports.spawnProjectile(self, projectileVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
23094
23105
|
if velocity == nil then
|
|
23095
23106
|
velocity = VectorZero
|
|
23096
23107
|
end
|
|
@@ -23105,7 +23116,7 @@ function ____exports.spawnProjectile(self, projectileVariant, subType, position,
|
|
|
23105
23116
|
EntityType.PROJECTILE,
|
|
23106
23117
|
projectileVariant,
|
|
23107
23118
|
subType,
|
|
23108
|
-
|
|
23119
|
+
positionOrGridIndex,
|
|
23109
23120
|
velocity,
|
|
23110
23121
|
spawner,
|
|
23111
23122
|
seedOrRNG
|
|
@@ -23116,7 +23127,7 @@ function ____exports.spawnProjectile(self, projectileVariant, subType, position,
|
|
|
23116
23127
|
end
|
|
23117
23128
|
return projectile
|
|
23118
23129
|
end
|
|
23119
|
-
function ____exports.spawnProjectileWithSeed(self, projectileVariant, subType,
|
|
23130
|
+
function ____exports.spawnProjectileWithSeed(self, projectileVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
23120
23131
|
if velocity == nil then
|
|
23121
23132
|
velocity = VectorZero
|
|
23122
23133
|
end
|
|
@@ -23127,13 +23138,13 @@ function ____exports.spawnProjectileWithSeed(self, projectileVariant, subType, p
|
|
|
23127
23138
|
nil,
|
|
23128
23139
|
projectileVariant,
|
|
23129
23140
|
subType,
|
|
23130
|
-
|
|
23141
|
+
positionOrGridIndex,
|
|
23131
23142
|
velocity,
|
|
23132
23143
|
spawner,
|
|
23133
23144
|
seedOrRNG
|
|
23134
23145
|
)
|
|
23135
23146
|
end
|
|
23136
|
-
function ____exports.spawnSlot(self, slotVariant, subType,
|
|
23147
|
+
function ____exports.spawnSlot(self, slotVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
23137
23148
|
if velocity == nil then
|
|
23138
23149
|
velocity = VectorZero
|
|
23139
23150
|
end
|
|
@@ -23148,13 +23159,13 @@ function ____exports.spawnSlot(self, slotVariant, subType, position, velocity, s
|
|
|
23148
23159
|
EntityType.SLOT,
|
|
23149
23160
|
slotVariant,
|
|
23150
23161
|
subType,
|
|
23151
|
-
|
|
23162
|
+
positionOrGridIndex,
|
|
23152
23163
|
velocity,
|
|
23153
23164
|
spawner,
|
|
23154
23165
|
seedOrRNG
|
|
23155
23166
|
)
|
|
23156
23167
|
end
|
|
23157
|
-
function ____exports.spawnSlotWithSeed(self, slotVariant, subType,
|
|
23168
|
+
function ____exports.spawnSlotWithSeed(self, slotVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
23158
23169
|
if velocity == nil then
|
|
23159
23170
|
velocity = VectorZero
|
|
23160
23171
|
end
|
|
@@ -23165,13 +23176,13 @@ function ____exports.spawnSlotWithSeed(self, slotVariant, subType, position, see
|
|
|
23165
23176
|
nil,
|
|
23166
23177
|
slotVariant,
|
|
23167
23178
|
subType,
|
|
23168
|
-
|
|
23179
|
+
positionOrGridIndex,
|
|
23169
23180
|
velocity,
|
|
23170
23181
|
spawner,
|
|
23171
23182
|
seedOrRNG
|
|
23172
23183
|
)
|
|
23173
23184
|
end
|
|
23174
|
-
function ____exports.spawnTear(self, tearVariant, subType,
|
|
23185
|
+
function ____exports.spawnTear(self, tearVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
23175
23186
|
if velocity == nil then
|
|
23176
23187
|
velocity = VectorZero
|
|
23177
23188
|
end
|
|
@@ -23186,7 +23197,7 @@ function ____exports.spawnTear(self, tearVariant, subType, position, velocity, s
|
|
|
23186
23197
|
EntityType.TEAR,
|
|
23187
23198
|
tearVariant,
|
|
23188
23199
|
subType,
|
|
23189
|
-
|
|
23200
|
+
positionOrGridIndex,
|
|
23190
23201
|
velocity,
|
|
23191
23202
|
spawner,
|
|
23192
23203
|
seedOrRNG
|
|
@@ -23197,7 +23208,7 @@ function ____exports.spawnTear(self, tearVariant, subType, position, velocity, s
|
|
|
23197
23208
|
end
|
|
23198
23209
|
return tear
|
|
23199
23210
|
end
|
|
23200
|
-
function ____exports.spawnTearWithSeed(self, tearVariant, subType,
|
|
23211
|
+
function ____exports.spawnTearWithSeed(self, tearVariant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
23201
23212
|
if velocity == nil then
|
|
23202
23213
|
velocity = VectorZero
|
|
23203
23214
|
end
|
|
@@ -23208,7 +23219,7 @@ function ____exports.spawnTearWithSeed(self, tearVariant, subType, position, see
|
|
|
23208
23219
|
nil,
|
|
23209
23220
|
tearVariant,
|
|
23210
23221
|
subType,
|
|
23211
|
-
|
|
23222
|
+
positionOrGridIndex,
|
|
23212
23223
|
velocity,
|
|
23213
23224
|
spawner,
|
|
23214
23225
|
seedOrRNG
|
|
@@ -33729,7 +33740,7 @@ end
|
|
|
33729
33740
|
function ____exports.removeAllTrinkets(self, trinketType, cap)
|
|
33730
33741
|
return removeAllPickups(nil, PickupVariant.TRINKET, trinketType, cap)
|
|
33731
33742
|
end
|
|
33732
|
-
function ____exports.spawnBattery(self, batterySubType,
|
|
33743
|
+
function ____exports.spawnBattery(self, batterySubType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33733
33744
|
if velocity == nil then
|
|
33734
33745
|
velocity = VectorZero
|
|
33735
33746
|
end
|
|
@@ -33743,13 +33754,13 @@ function ____exports.spawnBattery(self, batterySubType, position, velocity, spaw
|
|
|
33743
33754
|
nil,
|
|
33744
33755
|
PickupVariant.LIL_BATTERY,
|
|
33745
33756
|
batterySubType,
|
|
33746
|
-
|
|
33757
|
+
positionOrGridIndex,
|
|
33747
33758
|
velocity,
|
|
33748
33759
|
spawner,
|
|
33749
33760
|
seedOrRNG
|
|
33750
33761
|
)
|
|
33751
33762
|
end
|
|
33752
|
-
function ____exports.spawnBatteryWithSeed(self, batterySubType,
|
|
33763
|
+
function ____exports.spawnBatteryWithSeed(self, batterySubType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33753
33764
|
if velocity == nil then
|
|
33754
33765
|
velocity = VectorZero
|
|
33755
33766
|
end
|
|
@@ -33759,13 +33770,13 @@ function ____exports.spawnBatteryWithSeed(self, batterySubType, position, seedOr
|
|
|
33759
33770
|
return ____exports.spawnBattery(
|
|
33760
33771
|
nil,
|
|
33761
33772
|
batterySubType,
|
|
33762
|
-
|
|
33773
|
+
positionOrGridIndex,
|
|
33763
33774
|
velocity,
|
|
33764
33775
|
spawner,
|
|
33765
33776
|
seedOrRNG
|
|
33766
33777
|
)
|
|
33767
33778
|
end
|
|
33768
|
-
function ____exports.spawnBombPickup(self, bombSubType,
|
|
33779
|
+
function ____exports.spawnBombPickup(self, bombSubType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33769
33780
|
if velocity == nil then
|
|
33770
33781
|
velocity = VectorZero
|
|
33771
33782
|
end
|
|
@@ -33779,13 +33790,13 @@ function ____exports.spawnBombPickup(self, bombSubType, position, velocity, spaw
|
|
|
33779
33790
|
nil,
|
|
33780
33791
|
PickupVariant.BOMB,
|
|
33781
33792
|
bombSubType,
|
|
33782
|
-
|
|
33793
|
+
positionOrGridIndex,
|
|
33783
33794
|
velocity,
|
|
33784
33795
|
spawner,
|
|
33785
33796
|
seedOrRNG
|
|
33786
33797
|
)
|
|
33787
33798
|
end
|
|
33788
|
-
function ____exports.spawnBombPickupWithSeed(self, bombSubType,
|
|
33799
|
+
function ____exports.spawnBombPickupWithSeed(self, bombSubType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33789
33800
|
if velocity == nil then
|
|
33790
33801
|
velocity = VectorZero
|
|
33791
33802
|
end
|
|
@@ -33795,13 +33806,13 @@ function ____exports.spawnBombPickupWithSeed(self, bombSubType, position, seedOr
|
|
|
33795
33806
|
return ____exports.spawnBombPickup(
|
|
33796
33807
|
nil,
|
|
33797
33808
|
bombSubType,
|
|
33798
|
-
|
|
33809
|
+
positionOrGridIndex,
|
|
33799
33810
|
velocity,
|
|
33800
33811
|
spawner,
|
|
33801
33812
|
seedOrRNG
|
|
33802
33813
|
)
|
|
33803
33814
|
end
|
|
33804
|
-
function ____exports.spawnCard(self, cardType,
|
|
33815
|
+
function ____exports.spawnCard(self, cardType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33805
33816
|
if velocity == nil then
|
|
33806
33817
|
velocity = VectorZero
|
|
33807
33818
|
end
|
|
@@ -33815,13 +33826,13 @@ function ____exports.spawnCard(self, cardType, position, velocity, spawner, seed
|
|
|
33815
33826
|
nil,
|
|
33816
33827
|
PickupVariant.TAROT_CARD,
|
|
33817
33828
|
cardType,
|
|
33818
|
-
|
|
33829
|
+
positionOrGridIndex,
|
|
33819
33830
|
velocity,
|
|
33820
33831
|
spawner,
|
|
33821
33832
|
seedOrRNG
|
|
33822
33833
|
)
|
|
33823
33834
|
end
|
|
33824
|
-
function ____exports.spawnCardWithSeed(self, cardType,
|
|
33835
|
+
function ____exports.spawnCardWithSeed(self, cardType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33825
33836
|
if velocity == nil then
|
|
33826
33837
|
velocity = VectorZero
|
|
33827
33838
|
end
|
|
@@ -33831,13 +33842,13 @@ function ____exports.spawnCardWithSeed(self, cardType, position, seedOrRNG, velo
|
|
|
33831
33842
|
return ____exports.spawnCard(
|
|
33832
33843
|
nil,
|
|
33833
33844
|
cardType,
|
|
33834
|
-
|
|
33845
|
+
positionOrGridIndex,
|
|
33835
33846
|
velocity,
|
|
33836
33847
|
spawner,
|
|
33837
33848
|
seedOrRNG
|
|
33838
33849
|
)
|
|
33839
33850
|
end
|
|
33840
|
-
function ____exports.spawnCoin(self, coinSubType,
|
|
33851
|
+
function ____exports.spawnCoin(self, coinSubType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33841
33852
|
if velocity == nil then
|
|
33842
33853
|
velocity = VectorZero
|
|
33843
33854
|
end
|
|
@@ -33851,13 +33862,13 @@ function ____exports.spawnCoin(self, coinSubType, position, velocity, spawner, s
|
|
|
33851
33862
|
nil,
|
|
33852
33863
|
PickupVariant.COIN,
|
|
33853
33864
|
coinSubType,
|
|
33854
|
-
|
|
33865
|
+
positionOrGridIndex,
|
|
33855
33866
|
velocity,
|
|
33856
33867
|
spawner,
|
|
33857
33868
|
seedOrRNG
|
|
33858
33869
|
)
|
|
33859
33870
|
end
|
|
33860
|
-
function ____exports.spawnCoinWithSeed(self, coinSubType,
|
|
33871
|
+
function ____exports.spawnCoinWithSeed(self, coinSubType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33861
33872
|
if velocity == nil then
|
|
33862
33873
|
velocity = VectorZero
|
|
33863
33874
|
end
|
|
@@ -33867,13 +33878,13 @@ function ____exports.spawnCoinWithSeed(self, coinSubType, position, seedOrRNG, v
|
|
|
33867
33878
|
return ____exports.spawnCoin(
|
|
33868
33879
|
nil,
|
|
33869
33880
|
coinSubType,
|
|
33870
|
-
|
|
33881
|
+
positionOrGridIndex,
|
|
33871
33882
|
velocity,
|
|
33872
33883
|
spawner,
|
|
33873
33884
|
seedOrRNG
|
|
33874
33885
|
)
|
|
33875
33886
|
end
|
|
33876
|
-
function ____exports.spawnHeart(self, heartSubType,
|
|
33887
|
+
function ____exports.spawnHeart(self, heartSubType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33877
33888
|
if velocity == nil then
|
|
33878
33889
|
velocity = VectorZero
|
|
33879
33890
|
end
|
|
@@ -33887,13 +33898,13 @@ function ____exports.spawnHeart(self, heartSubType, position, velocity, spawner,
|
|
|
33887
33898
|
nil,
|
|
33888
33899
|
PickupVariant.HEART,
|
|
33889
33900
|
heartSubType,
|
|
33890
|
-
|
|
33901
|
+
positionOrGridIndex,
|
|
33891
33902
|
velocity,
|
|
33892
33903
|
spawner,
|
|
33893
33904
|
seedOrRNG
|
|
33894
33905
|
)
|
|
33895
33906
|
end
|
|
33896
|
-
function ____exports.spawnHeartWithSeed(self, heartSubType,
|
|
33907
|
+
function ____exports.spawnHeartWithSeed(self, heartSubType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33897
33908
|
if velocity == nil then
|
|
33898
33909
|
velocity = VectorZero
|
|
33899
33910
|
end
|
|
@@ -33903,13 +33914,13 @@ function ____exports.spawnHeartWithSeed(self, heartSubType, position, seedOrRNG,
|
|
|
33903
33914
|
return ____exports.spawnHeart(
|
|
33904
33915
|
nil,
|
|
33905
33916
|
heartSubType,
|
|
33906
|
-
|
|
33917
|
+
positionOrGridIndex,
|
|
33907
33918
|
velocity,
|
|
33908
33919
|
spawner,
|
|
33909
33920
|
seedOrRNG
|
|
33910
33921
|
)
|
|
33911
33922
|
end
|
|
33912
|
-
function ____exports.spawnKey(self, keySubType,
|
|
33923
|
+
function ____exports.spawnKey(self, keySubType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33913
33924
|
if velocity == nil then
|
|
33914
33925
|
velocity = VectorZero
|
|
33915
33926
|
end
|
|
@@ -33923,13 +33934,13 @@ function ____exports.spawnKey(self, keySubType, position, velocity, spawner, see
|
|
|
33923
33934
|
nil,
|
|
33924
33935
|
PickupVariant.KEY,
|
|
33925
33936
|
keySubType,
|
|
33926
|
-
|
|
33937
|
+
positionOrGridIndex,
|
|
33927
33938
|
velocity,
|
|
33928
33939
|
spawner,
|
|
33929
33940
|
seedOrRNG
|
|
33930
33941
|
)
|
|
33931
33942
|
end
|
|
33932
|
-
function ____exports.spawnKeyWithSeed(self, keySubType,
|
|
33943
|
+
function ____exports.spawnKeyWithSeed(self, keySubType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33933
33944
|
if velocity == nil then
|
|
33934
33945
|
velocity = VectorZero
|
|
33935
33946
|
end
|
|
@@ -33939,13 +33950,13 @@ function ____exports.spawnKeyWithSeed(self, keySubType, position, seedOrRNG, vel
|
|
|
33939
33950
|
return ____exports.spawnKey(
|
|
33940
33951
|
nil,
|
|
33941
33952
|
keySubType,
|
|
33942
|
-
|
|
33953
|
+
positionOrGridIndex,
|
|
33943
33954
|
velocity,
|
|
33944
33955
|
spawner,
|
|
33945
33956
|
seedOrRNG
|
|
33946
33957
|
)
|
|
33947
33958
|
end
|
|
33948
|
-
function ____exports.spawnPill(self, pillColor,
|
|
33959
|
+
function ____exports.spawnPill(self, pillColor, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33949
33960
|
if velocity == nil then
|
|
33950
33961
|
velocity = VectorZero
|
|
33951
33962
|
end
|
|
@@ -33959,13 +33970,13 @@ function ____exports.spawnPill(self, pillColor, position, velocity, spawner, see
|
|
|
33959
33970
|
nil,
|
|
33960
33971
|
PickupVariant.PILL,
|
|
33961
33972
|
pillColor,
|
|
33962
|
-
|
|
33973
|
+
positionOrGridIndex,
|
|
33963
33974
|
velocity,
|
|
33964
33975
|
spawner,
|
|
33965
33976
|
seedOrRNG
|
|
33966
33977
|
)
|
|
33967
33978
|
end
|
|
33968
|
-
function ____exports.spawnPillWithSeed(self, pillColor,
|
|
33979
|
+
function ____exports.spawnPillWithSeed(self, pillColor, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
33969
33980
|
if velocity == nil then
|
|
33970
33981
|
velocity = VectorZero
|
|
33971
33982
|
end
|
|
@@ -33975,13 +33986,13 @@ function ____exports.spawnPillWithSeed(self, pillColor, position, seedOrRNG, vel
|
|
|
33975
33986
|
return ____exports.spawnPill(
|
|
33976
33987
|
nil,
|
|
33977
33988
|
pillColor,
|
|
33978
|
-
|
|
33989
|
+
positionOrGridIndex,
|
|
33979
33990
|
velocity,
|
|
33980
33991
|
spawner,
|
|
33981
33992
|
seedOrRNG
|
|
33982
33993
|
)
|
|
33983
33994
|
end
|
|
33984
|
-
function ____exports.spawnSack(self, sackSubType,
|
|
33995
|
+
function ____exports.spawnSack(self, sackSubType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
33985
33996
|
if velocity == nil then
|
|
33986
33997
|
velocity = VectorZero
|
|
33987
33998
|
end
|
|
@@ -33995,13 +34006,13 @@ function ____exports.spawnSack(self, sackSubType, position, velocity, spawner, s
|
|
|
33995
34006
|
nil,
|
|
33996
34007
|
PickupVariant.SACK,
|
|
33997
34008
|
sackSubType,
|
|
33998
|
-
|
|
34009
|
+
positionOrGridIndex,
|
|
33999
34010
|
velocity,
|
|
34000
34011
|
spawner,
|
|
34001
34012
|
seedOrRNG
|
|
34002
34013
|
)
|
|
34003
34014
|
end
|
|
34004
|
-
function ____exports.spawnSackWithSeed(self, sackSubType,
|
|
34015
|
+
function ____exports.spawnSackWithSeed(self, sackSubType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
34005
34016
|
if velocity == nil then
|
|
34006
34017
|
velocity = VectorZero
|
|
34007
34018
|
end
|
|
@@ -34011,13 +34022,13 @@ function ____exports.spawnSackWithSeed(self, sackSubType, position, seedOrRNG, v
|
|
|
34011
34022
|
return ____exports.spawnSack(
|
|
34012
34023
|
nil,
|
|
34013
34024
|
sackSubType,
|
|
34014
|
-
|
|
34025
|
+
positionOrGridIndex,
|
|
34015
34026
|
velocity,
|
|
34016
34027
|
spawner,
|
|
34017
34028
|
seedOrRNG
|
|
34018
34029
|
)
|
|
34019
34030
|
end
|
|
34020
|
-
function ____exports.spawnTrinket(self, trinketType,
|
|
34031
|
+
function ____exports.spawnTrinket(self, trinketType, positionOrGridIndex, velocity, spawner, seedOrRNG)
|
|
34021
34032
|
if velocity == nil then
|
|
34022
34033
|
velocity = VectorZero
|
|
34023
34034
|
end
|
|
@@ -34031,13 +34042,13 @@ function ____exports.spawnTrinket(self, trinketType, position, velocity, spawner
|
|
|
34031
34042
|
nil,
|
|
34032
34043
|
PickupVariant.TRINKET,
|
|
34033
34044
|
trinketType,
|
|
34034
|
-
|
|
34045
|
+
positionOrGridIndex,
|
|
34035
34046
|
velocity,
|
|
34036
34047
|
spawner,
|
|
34037
34048
|
seedOrRNG
|
|
34038
34049
|
)
|
|
34039
34050
|
end
|
|
34040
|
-
function ____exports.spawnTrinketWithSeed(self, trinketType,
|
|
34051
|
+
function ____exports.spawnTrinketWithSeed(self, trinketType, positionOrGridIndex, seedOrRNG, velocity, spawner)
|
|
34041
34052
|
if velocity == nil then
|
|
34042
34053
|
velocity = VectorZero
|
|
34043
34054
|
end
|
|
@@ -34047,7 +34058,7 @@ function ____exports.spawnTrinketWithSeed(self, trinketType, position, seedOrRNG
|
|
|
34047
34058
|
return ____exports.spawnTrinket(
|
|
34048
34059
|
nil,
|
|
34049
34060
|
trinketType,
|
|
34050
|
-
|
|
34061
|
+
positionOrGridIndex,
|
|
34051
34062
|
velocity,
|
|
34052
34063
|
spawner,
|
|
34053
34064
|
seedOrRNG
|
|
@@ -38526,7 +38537,7 @@ end
|
|
|
38526
38537
|
function ____exports.isSin(self, npc)
|
|
38527
38538
|
return SIN_ENTITY_TYPES_SET:has(npc.Type)
|
|
38528
38539
|
end
|
|
38529
|
-
function ____exports.spawnBoss(self, entityType, variant, subType,
|
|
38540
|
+
function ____exports.spawnBoss(self, entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG, numSegments)
|
|
38530
38541
|
if velocity == nil then
|
|
38531
38542
|
velocity = VectorZero
|
|
38532
38543
|
end
|
|
@@ -38542,7 +38553,7 @@ function ____exports.spawnBoss(self, entityType, variant, subType, position, vel
|
|
|
38542
38553
|
entityType,
|
|
38543
38554
|
variant,
|
|
38544
38555
|
subType,
|
|
38545
|
-
|
|
38556
|
+
positionOrGridIndex,
|
|
38546
38557
|
velocity,
|
|
38547
38558
|
spawner,
|
|
38548
38559
|
seed
|
|
@@ -38559,7 +38570,7 @@ function ____exports.spawnBoss(self, entityType, variant, subType, position, vel
|
|
|
38559
38570
|
entityType,
|
|
38560
38571
|
variant,
|
|
38561
38572
|
subType,
|
|
38562
|
-
|
|
38573
|
+
positionOrGridIndex,
|
|
38563
38574
|
velocity,
|
|
38564
38575
|
spawner,
|
|
38565
38576
|
seed
|
|
@@ -38569,7 +38580,7 @@ function ____exports.spawnBoss(self, entityType, variant, subType, position, vel
|
|
|
38569
38580
|
end
|
|
38570
38581
|
return npc
|
|
38571
38582
|
end
|
|
38572
|
-
function ____exports.spawnBossWithSeed(self, entityType, variant, subType,
|
|
38583
|
+
function ____exports.spawnBossWithSeed(self, entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity, spawner, numSegments)
|
|
38573
38584
|
if velocity == nil then
|
|
38574
38585
|
velocity = VectorZero
|
|
38575
38586
|
end
|
|
@@ -38582,7 +38593,7 @@ function ____exports.spawnBossWithSeed(self, entityType, variant, subType, posit
|
|
|
38582
38593
|
entityType,
|
|
38583
38594
|
variant,
|
|
38584
38595
|
subType,
|
|
38585
|
-
|
|
38596
|
+
positionOrGridIndex,
|
|
38586
38597
|
velocity,
|
|
38587
38598
|
spawner,
|
|
38588
38599
|
seed,
|
|
@@ -41383,7 +41394,7 @@ local anyPlayerIs = ____players.anyPlayerIs
|
|
|
41383
41394
|
local ____rng = require("src.functions.rng")
|
|
41384
41395
|
local getRandomSeed = ____rng.getRandomSeed
|
|
41385
41396
|
local isRNG = ____rng.isRNG
|
|
41386
|
-
function ____exports.spawnCollectibleUnsafe(self, collectibleType,
|
|
41397
|
+
function ____exports.spawnCollectibleUnsafe(self, collectibleType, positionOrGridIndex, seedOrRNG, options, forceFreeItem, spawner)
|
|
41387
41398
|
if seedOrRNG == nil then
|
|
41388
41399
|
seedOrRNG = getRandomSeed(nil)
|
|
41389
41400
|
end
|
|
@@ -41398,7 +41409,7 @@ function ____exports.spawnCollectibleUnsafe(self, collectibleType, position, see
|
|
|
41398
41409
|
nil,
|
|
41399
41410
|
PickupVariant.COLLECTIBLE,
|
|
41400
41411
|
collectibleType,
|
|
41401
|
-
|
|
41412
|
+
positionOrGridIndex,
|
|
41402
41413
|
seed,
|
|
41403
41414
|
VectorZero,
|
|
41404
41415
|
spawner
|
|
@@ -41412,14 +41423,14 @@ function ____exports.spawnCollectibleUnsafe(self, collectibleType, position, see
|
|
|
41412
41423
|
end
|
|
41413
41424
|
return collectible
|
|
41414
41425
|
end
|
|
41415
|
-
function ____exports.spawnEmptyCollectible(self,
|
|
41426
|
+
function ____exports.spawnEmptyCollectible(self, positionOrGridIndex, seedOrRNG)
|
|
41416
41427
|
if seedOrRNG == nil then
|
|
41417
41428
|
seedOrRNG = getRandomSeed(nil)
|
|
41418
41429
|
end
|
|
41419
41430
|
local collectible = ____exports.spawnCollectibleUnsafe(
|
|
41420
41431
|
nil,
|
|
41421
41432
|
CollectibleType.SAD_ONION,
|
|
41422
|
-
|
|
41433
|
+
positionOrGridIndex,
|
|
41423
41434
|
seedOrRNG,
|
|
41424
41435
|
false,
|
|
41425
41436
|
true
|
|
@@ -41527,7 +41538,7 @@ function SpawnCollectible.prototype.____constructor(self, preventCollectibleRota
|
|
|
41527
41538
|
self.featuresUsed = {ISCFeature.PREVENT_COLLECTIBLE_ROTATION}
|
|
41528
41539
|
self.preventCollectibleRotation = preventCollectibleRotation
|
|
41529
41540
|
end
|
|
41530
|
-
function SpawnCollectible.prototype.spawnCollectible(self, collectibleType,
|
|
41541
|
+
function SpawnCollectible.prototype.spawnCollectible(self, collectibleType, positionOrGridIndex, seedOrRNG, options, forceFreeItem, spawner)
|
|
41531
41542
|
if seedOrRNG == nil then
|
|
41532
41543
|
seedOrRNG = getRandomSeed(nil)
|
|
41533
41544
|
end
|
|
@@ -41540,7 +41551,7 @@ function SpawnCollectible.prototype.spawnCollectible(self, collectibleType, posi
|
|
|
41540
41551
|
local collectible = spawnCollectibleUnsafe(
|
|
41541
41552
|
nil,
|
|
41542
41553
|
collectibleType,
|
|
41543
|
-
|
|
41554
|
+
positionOrGridIndex,
|
|
41544
41555
|
seedOrRNG,
|
|
41545
41556
|
options,
|
|
41546
41557
|
forceFreeItem,
|
|
@@ -41551,7 +41562,7 @@ function SpawnCollectible.prototype.spawnCollectible(self, collectibleType, posi
|
|
|
41551
41562
|
end
|
|
41552
41563
|
return collectible
|
|
41553
41564
|
end
|
|
41554
|
-
function SpawnCollectible.prototype.spawnCollectibleFromPool(self, itemPoolType,
|
|
41565
|
+
function SpawnCollectible.prototype.spawnCollectibleFromPool(self, itemPoolType, positionOrGridIndex, seedOrRNG, options, forceFreeItem, spawner)
|
|
41555
41566
|
if seedOrRNG == nil then
|
|
41556
41567
|
seedOrRNG = getRandomSeed(nil)
|
|
41557
41568
|
end
|
|
@@ -41565,7 +41576,7 @@ function SpawnCollectible.prototype.spawnCollectibleFromPool(self, itemPoolType,
|
|
|
41565
41576
|
local collectibleType = itemPool:GetCollectible(itemPoolType)
|
|
41566
41577
|
return self:spawnCollectible(
|
|
41567
41578
|
collectibleType,
|
|
41568
|
-
|
|
41579
|
+
positionOrGridIndex,
|
|
41569
41580
|
seedOrRNG,
|
|
41570
41581
|
options,
|
|
41571
41582
|
forceFreeItem,
|
|
@@ -47992,6 +48003,7 @@ local ____utils = require("src.functions.utils")
|
|
|
47992
48003
|
local ____repeat = ____utils["repeat"]
|
|
47993
48004
|
local ____vector = require("src.functions.vector")
|
|
47994
48005
|
local getRandomVector = ____vector.getRandomVector
|
|
48006
|
+
local isVector = ____vector.isVector
|
|
47995
48007
|
local ____Feature = require("src.classes.private.Feature")
|
|
47996
48008
|
local Feature = ____Feature.Feature
|
|
47997
48009
|
local ROCK_ALT_CHANCES = {NOTHING = 0.68, BASIC_DROP = 0.0967, TRINKET = 0.025, COLLECTIBLE = 0.005}
|
|
@@ -48009,10 +48021,12 @@ function SpawnRockAltRewards.prototype.____constructor(self, itemPoolDetection)
|
|
|
48009
48021
|
self.featuresUsed = {ISCFeature.ITEM_POOL_DETECTION}
|
|
48010
48022
|
self.itemPoolDetection = itemPoolDetection
|
|
48011
48023
|
end
|
|
48012
|
-
function SpawnRockAltRewards.prototype.spawnRockAltReward(self,
|
|
48024
|
+
function SpawnRockAltRewards.prototype.spawnRockAltReward(self, positionOrGridIndex, rockAltType, seedOrRNG)
|
|
48013
48025
|
if seedOrRNG == nil then
|
|
48014
48026
|
seedOrRNG = getRandomSeed(nil)
|
|
48015
48027
|
end
|
|
48028
|
+
local room = game:GetRoom()
|
|
48029
|
+
local position = isVector(nil, positionOrGridIndex) and positionOrGridIndex or room:GetGridPosition(positionOrGridIndex)
|
|
48016
48030
|
local rng = isRNG(nil, seedOrRNG) and seedOrRNG or newRNG(nil, seedOrRNG)
|
|
48017
48031
|
repeat
|
|
48018
48032
|
local ____switch4 = rockAltType
|