isaacscript-common 72.9.1 → 73.1.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/isaacscript-common.lua +207 -140
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +27 -2
- package/package.json +2 -2
- package/src/classes/features/other/extraConsoleCommands/commands.ts +26 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common
|
|
3
|
+
isaacscript-common 73.1.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -3642,7 +3642,7 @@ do
|
|
|
3642
3642
|
end
|
|
3643
3643
|
end
|
|
3644
3644
|
do
|
|
3645
|
-
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.collections.
|
|
3645
|
+
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.collections.gridEntityStates")
|
|
3646
3646
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
3647
3647
|
if ____exportKey ~= "default" then
|
|
3648
3648
|
____exports[____exportKey] = ____exportValue
|
|
@@ -3650,7 +3650,7 @@ do
|
|
|
3650
3650
|
end
|
|
3651
3651
|
end
|
|
3652
3652
|
do
|
|
3653
|
-
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.collections.
|
|
3653
|
+
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.collections.gridEntityVariants")
|
|
3654
3654
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
3655
3655
|
if ____exportKey ~= "default" then
|
|
3656
3656
|
____exports[____exportKey] = ____exportValue
|
|
@@ -3658,7 +3658,7 @@ do
|
|
|
3658
3658
|
end
|
|
3659
3659
|
end
|
|
3660
3660
|
do
|
|
3661
|
-
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.collections.
|
|
3661
|
+
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.collections.npcStates")
|
|
3662
3662
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
3663
3663
|
if ____exportKey ~= "default" then
|
|
3664
3664
|
____exports[____exportKey] = ____exportValue
|
|
@@ -10056,6 +10056,182 @@ ____exports.BackwardsRoomSubType.MINES = 29
|
|
|
10056
10056
|
____exports.BackwardsRoomSubType[____exports.BackwardsRoomSubType.MINES] = "MINES"
|
|
10057
10057
|
____exports.BackwardsRoomSubType.MAUSOLEUM = 31
|
|
10058
10058
|
____exports.BackwardsRoomSubType[____exports.BackwardsRoomSubType.MAUSOLEUM] = "MAUSOLEUM"
|
|
10059
|
+
return ____exports
|
|
10060
|
+
end,
|
|
10061
|
+
["lua_modules.isaac-typescript-definitions.dist.src.enums.collections.npcStates"] = function(...)
|
|
10062
|
+
local ____exports = {}
|
|
10063
|
+
--- EntityType.FAMILIAR (3), FamiliarVariant.LOST_SOUL (211).
|
|
10064
|
+
____exports.LostSoulState = {}
|
|
10065
|
+
____exports.LostSoulState.ALIVE = 1
|
|
10066
|
+
____exports.LostSoulState[____exports.LostSoulState.ALIVE] = "ALIVE"
|
|
10067
|
+
____exports.LostSoulState.DEAD = 4
|
|
10068
|
+
____exports.LostSoulState[____exports.LostSoulState.DEAD] = "DEAD"
|
|
10069
|
+
--- For `EntityType.FAMINE` (63).
|
|
10070
|
+
____exports.FamineState = {}
|
|
10071
|
+
____exports.FamineState.MOVE = 4
|
|
10072
|
+
____exports.FamineState[____exports.FamineState.MOVE] = "MOVE"
|
|
10073
|
+
____exports.FamineState.HORIZONTAL_CHARGE = 8
|
|
10074
|
+
____exports.FamineState[____exports.FamineState.HORIZONTAL_CHARGE] = "HORIZONTAL_CHARGE"
|
|
10075
|
+
____exports.FamineState.PHASE_2 = 9
|
|
10076
|
+
____exports.FamineState[____exports.FamineState.PHASE_2] = "PHASE_2"
|
|
10077
|
+
____exports.FamineState.SUMMON = 13
|
|
10078
|
+
____exports.FamineState[____exports.FamineState.SUMMON] = "SUMMON"
|
|
10079
|
+
--- For `EntityType.PESTILENCE` (64).
|
|
10080
|
+
____exports.PestilenceState = {}
|
|
10081
|
+
____exports.PestilenceState.MOVE = 4
|
|
10082
|
+
____exports.PestilenceState[____exports.PestilenceState.MOVE] = "MOVE"
|
|
10083
|
+
____exports.PestilenceState.ATTACK_IPECAC = 8
|
|
10084
|
+
____exports.PestilenceState[____exports.PestilenceState.ATTACK_IPECAC] = "ATTACK_IPECAC"
|
|
10085
|
+
____exports.PestilenceState.SUMMON = 13
|
|
10086
|
+
____exports.PestilenceState[____exports.PestilenceState.SUMMON] = "SUMMON"
|
|
10087
|
+
--- For `EntityType.WAR` (65), `WarVariant.WAR (0).
|
|
10088
|
+
____exports.WarState = {}
|
|
10089
|
+
____exports.WarState.MOVE = 4
|
|
10090
|
+
____exports.WarState[____exports.WarState.MOVE] = "MOVE"
|
|
10091
|
+
____exports.WarState.JUMP_AND_SPAWN_TROLL_BOMBS = 6
|
|
10092
|
+
____exports.WarState[____exports.WarState.JUMP_AND_SPAWN_TROLL_BOMBS] = "JUMP_AND_SPAWN_TROLL_BOMBS"
|
|
10093
|
+
____exports.WarState.HORIZONTAL_CHARGE = 9
|
|
10094
|
+
____exports.WarState[____exports.WarState.HORIZONTAL_CHARGE] = "HORIZONTAL_CHARGE"
|
|
10095
|
+
--- For `EntityType.WAR` (65), `WarVariant.CONQUEST (1).
|
|
10096
|
+
____exports.ConquestState = {}
|
|
10097
|
+
____exports.ConquestState.MOVE = 4
|
|
10098
|
+
____exports.ConquestState[____exports.ConquestState.MOVE] = "MOVE"
|
|
10099
|
+
____exports.ConquestState.JUMP_AND_SPAWN_BEAMS = 6
|
|
10100
|
+
____exports.ConquestState[____exports.ConquestState.JUMP_AND_SPAWN_BEAMS] = "JUMP_AND_SPAWN_BEAMS"
|
|
10101
|
+
____exports.ConquestState.TEAR_ATTACK = 8
|
|
10102
|
+
____exports.ConquestState[____exports.ConquestState.TEAR_ATTACK] = "TEAR_ATTACK"
|
|
10103
|
+
____exports.ConquestState.HORIZONTAL_CHARGE = 9
|
|
10104
|
+
____exports.ConquestState[____exports.ConquestState.HORIZONTAL_CHARGE] = "HORIZONTAL_CHARGE"
|
|
10105
|
+
--- For `EntityType.WAR` (65), `WarVariant.WAR_WITHOUT_HORSE (2).
|
|
10106
|
+
____exports.WarWithoutHorseState = {}
|
|
10107
|
+
____exports.WarWithoutHorseState.MOVE = 4
|
|
10108
|
+
____exports.WarWithoutHorseState[____exports.WarWithoutHorseState.MOVE] = "MOVE"
|
|
10109
|
+
____exports.WarWithoutHorseState.SIT = 8
|
|
10110
|
+
____exports.WarWithoutHorseState[____exports.WarWithoutHorseState.SIT] = "SIT"
|
|
10111
|
+
--- For `EntityType.DEATH` (66).
|
|
10112
|
+
____exports.DeathState = {}
|
|
10113
|
+
____exports.DeathState.APPEAR = 1
|
|
10114
|
+
____exports.DeathState[____exports.DeathState.APPEAR] = "APPEAR"
|
|
10115
|
+
____exports.DeathState.SCYTHE_APPEAR = 3
|
|
10116
|
+
____exports.DeathState[____exports.DeathState.SCYTHE_APPEAR] = "SCYTHE_APPEAR"
|
|
10117
|
+
____exports.DeathState.MOVE = 4
|
|
10118
|
+
____exports.DeathState[____exports.DeathState.MOVE] = "MOVE"
|
|
10119
|
+
____exports.DeathState.JUMP_OFF_HORSE = 7
|
|
10120
|
+
____exports.DeathState[____exports.DeathState.JUMP_OFF_HORSE] = "JUMP_OFF_HORSE"
|
|
10121
|
+
____exports.DeathState.SLOW_ATTACK = 8
|
|
10122
|
+
____exports.DeathState[____exports.DeathState.SLOW_ATTACK] = "SLOW_ATTACK"
|
|
10123
|
+
____exports.DeathState.SUMMON_KNIGHTS = 13
|
|
10124
|
+
____exports.DeathState[____exports.DeathState.SUMMON_KNIGHTS] = "SUMMON_KNIGHTS"
|
|
10125
|
+
____exports.DeathState.SUMMON_SCYTHES = 14
|
|
10126
|
+
____exports.DeathState[____exports.DeathState.SUMMON_SCYTHES] = "SUMMON_SCYTHES"
|
|
10127
|
+
--- For `EntityType.DADDY_LONG_LEGS` (101).
|
|
10128
|
+
____exports.DaddyLongLegsState = {}
|
|
10129
|
+
____exports.DaddyLongLegsState.SLAM_WITH_PROJECTILE_BURST = 4
|
|
10130
|
+
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.SLAM_WITH_PROJECTILE_BURST] = "SLAM_WITH_PROJECTILE_BURST"
|
|
10131
|
+
____exports.DaddyLongLegsState.STOMP_ATTACK_LEG = 7
|
|
10132
|
+
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.STOMP_ATTACK_LEG] = "STOMP_ATTACK_LEG"
|
|
10133
|
+
____exports.DaddyLongLegsState.SPITTING_SPIDERS_ATTACK = 8
|
|
10134
|
+
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.SPITTING_SPIDERS_ATTACK] = "SPITTING_SPIDERS_ATTACK"
|
|
10135
|
+
____exports.DaddyLongLegsState.MULTI_STOMP_ATTACK_MAIN = 9
|
|
10136
|
+
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.MULTI_STOMP_ATTACK_MAIN] = "MULTI_STOMP_ATTACK_MAIN"
|
|
10137
|
+
--- For `EntityType.BIG_HORN` (411), `BigHornVariant.BIG_HORN` (0).
|
|
10138
|
+
____exports.BigHornState = {}
|
|
10139
|
+
____exports.BigHornState.IDLE = 3
|
|
10140
|
+
____exports.BigHornState[____exports.BigHornState.IDLE] = "IDLE"
|
|
10141
|
+
____exports.BigHornState.HEAD_GOING_UP_OR_GOING_DOWN_INTO_HOLE = 4
|
|
10142
|
+
____exports.BigHornState[____exports.BigHornState.HEAD_GOING_UP_OR_GOING_DOWN_INTO_HOLE] = "HEAD_GOING_UP_OR_GOING_DOWN_INTO_HOLE"
|
|
10143
|
+
____exports.BigHornState.HAND_GOING_DOWN_INTO_HOLE = 5
|
|
10144
|
+
____exports.BigHornState[____exports.BigHornState.HAND_GOING_DOWN_INTO_HOLE] = "HAND_GOING_DOWN_INTO_HOLE"
|
|
10145
|
+
____exports.BigHornState.HAND_SLAM_ATTACK = 8
|
|
10146
|
+
____exports.BigHornState[____exports.BigHornState.HAND_SLAM_ATTACK] = "HAND_SLAM_ATTACK"
|
|
10147
|
+
____exports.BigHornState.HAND_THROW_TROLL_BOMB_ATTACK = 9
|
|
10148
|
+
____exports.BigHornState[____exports.BigHornState.HAND_THROW_TROLL_BOMB_ATTACK] = "HAND_THROW_TROLL_BOMB_ATTACK"
|
|
10149
|
+
____exports.BigHornState.HAND_THROW_TRIPLE_TROLL_BOMB_ATTACK = 10
|
|
10150
|
+
____exports.BigHornState[____exports.BigHornState.HAND_THROW_TRIPLE_TROLL_BOMB_ATTACK] = "HAND_THROW_TRIPLE_TROLL_BOMB_ATTACK"
|
|
10151
|
+
____exports.BigHornState.HEAD_BALL_ATTACK = 13
|
|
10152
|
+
____exports.BigHornState[____exports.BigHornState.HEAD_BALL_ATTACK] = "HEAD_BALL_ATTACK"
|
|
10153
|
+
--- For `EntityType.REAP_CREEP` (900).
|
|
10154
|
+
____exports.ReapCreepState = {}
|
|
10155
|
+
____exports.ReapCreepState.CRAWLING_FROM_SIDE_TO_SIDE = 3
|
|
10156
|
+
____exports.ReapCreepState[____exports.ReapCreepState.CRAWLING_FROM_SIDE_TO_SIDE] = "CRAWLING_FROM_SIDE_TO_SIDE"
|
|
10157
|
+
____exports.ReapCreepState.JUMPING_TO_TOP_WALL = 6
|
|
10158
|
+
____exports.ReapCreepState[____exports.ReapCreepState.JUMPING_TO_TOP_WALL] = "JUMPING_TO_TOP_WALL"
|
|
10159
|
+
____exports.ReapCreepState.WALL_SLAM_ATTACK = 7
|
|
10160
|
+
____exports.ReapCreepState[____exports.ReapCreepState.WALL_SLAM_ATTACK] = "WALL_SLAM_ATTACK"
|
|
10161
|
+
____exports.ReapCreepState.PROJECTILE_SPIT_LINE_ATTACK = 8
|
|
10162
|
+
____exports.ReapCreepState[____exports.ReapCreepState.PROJECTILE_SPIT_LINE_ATTACK] = "PROJECTILE_SPIT_LINE_ATTACK"
|
|
10163
|
+
____exports.ReapCreepState.PROJECTILE_SPIT_BURST_ATTACK = 9
|
|
10164
|
+
____exports.ReapCreepState[____exports.ReapCreepState.PROJECTILE_SPIT_BURST_ATTACK] = "PROJECTILE_SPIT_BURST_ATTACK"
|
|
10165
|
+
____exports.ReapCreepState.BRIMSTONE_ATTACK = 10
|
|
10166
|
+
____exports.ReapCreepState[____exports.ReapCreepState.BRIMSTONE_ATTACK] = "BRIMSTONE_ATTACK"
|
|
10167
|
+
____exports.ReapCreepState.SPAWNING_WALL_SPIDERS = 13
|
|
10168
|
+
____exports.ReapCreepState[____exports.ReapCreepState.SPAWNING_WALL_SPIDERS] = "SPAWNING_WALL_SPIDERS"
|
|
10169
|
+
____exports.ReapCreepState.SPAWNING_SPIDERS = 14
|
|
10170
|
+
____exports.ReapCreepState[____exports.ReapCreepState.SPAWNING_SPIDERS] = "SPAWNING_SPIDERS"
|
|
10171
|
+
____exports.ReapCreepState.TRANSFORMING_TO_NEXT_PHASE = 16
|
|
10172
|
+
____exports.ReapCreepState[____exports.ReapCreepState.TRANSFORMING_TO_NEXT_PHASE] = "TRANSFORMING_TO_NEXT_PHASE"
|
|
10173
|
+
--- For `EntityType.COLOSTOMIA` (917).
|
|
10174
|
+
____exports.ColostomiaState = {}
|
|
10175
|
+
____exports.ColostomiaState.IDLE_PHASE_1 = 3
|
|
10176
|
+
____exports.ColostomiaState[____exports.ColostomiaState.IDLE_PHASE_1] = "IDLE_PHASE_1"
|
|
10177
|
+
____exports.ColostomiaState.IDLE_PHASE_2 = 4
|
|
10178
|
+
____exports.ColostomiaState[____exports.ColostomiaState.IDLE_PHASE_2] = "IDLE_PHASE_2"
|
|
10179
|
+
____exports.ColostomiaState.JUMP_ATTACK_WITH_PROJECTILE_SPLASH = 6
|
|
10180
|
+
____exports.ColostomiaState[____exports.ColostomiaState.JUMP_ATTACK_WITH_PROJECTILE_SPLASH] = "JUMP_ATTACK_WITH_PROJECTILE_SPLASH"
|
|
10181
|
+
____exports.ColostomiaState.CHARGE_SLIDE = 8
|
|
10182
|
+
____exports.ColostomiaState[____exports.ColostomiaState.CHARGE_SLIDE] = "CHARGE_SLIDE"
|
|
10183
|
+
____exports.ColostomiaState.SPIT_POOP_BOMB = 9
|
|
10184
|
+
____exports.ColostomiaState[____exports.ColostomiaState.SPIT_POOP_BOMB] = "SPIT_POOP_BOMB"
|
|
10185
|
+
____exports.ColostomiaState.SPIT_TWO_POOP_BOMBS = 10
|
|
10186
|
+
____exports.ColostomiaState[____exports.ColostomiaState.SPIT_TWO_POOP_BOMBS] = "SPIT_TWO_POOP_BOMBS"
|
|
10187
|
+
____exports.ColostomiaState.FART_ATTACK = 11
|
|
10188
|
+
____exports.ColostomiaState[____exports.ColostomiaState.FART_ATTACK] = "FART_ATTACK"
|
|
10189
|
+
____exports.ColostomiaState.TRANSITION_TO_PHASE_2 = 16
|
|
10190
|
+
____exports.ColostomiaState[____exports.ColostomiaState.TRANSITION_TO_PHASE_2] = "TRANSITION_TO_PHASE_2"
|
|
10191
|
+
--- For `EntityType.ULTRA_GREED` (406), `UltraGreedVariant.ULTRA_GREED` (0).
|
|
10192
|
+
____exports.UltraGreedState = {}
|
|
10193
|
+
____exports.UltraGreedState.HANGING = 2
|
|
10194
|
+
____exports.UltraGreedState[____exports.UltraGreedState.HANGING] = "HANGING"
|
|
10195
|
+
____exports.UltraGreedState.IDLE = 3
|
|
10196
|
+
____exports.UltraGreedState[____exports.UltraGreedState.IDLE] = "IDLE"
|
|
10197
|
+
____exports.UltraGreedState.MOVE = 4
|
|
10198
|
+
____exports.UltraGreedState[____exports.UltraGreedState.MOVE] = "MOVE"
|
|
10199
|
+
____exports.UltraGreedState.GOLD_STATUE_BREAKING_OUT = 16
|
|
10200
|
+
____exports.UltraGreedState[____exports.UltraGreedState.GOLD_STATUE_BREAKING_OUT] = "GOLD_STATUE_BREAKING_OUT"
|
|
10201
|
+
____exports.UltraGreedState.EYES_SPINNING = 100
|
|
10202
|
+
____exports.UltraGreedState[____exports.UltraGreedState.EYES_SPINNING] = "EYES_SPINNING"
|
|
10203
|
+
____exports.UltraGreedState.STOMPING = 200
|
|
10204
|
+
____exports.UltraGreedState[____exports.UltraGreedState.STOMPING] = "STOMPING"
|
|
10205
|
+
____exports.UltraGreedState.BLOCKING_WITH_ARMS = 400
|
|
10206
|
+
____exports.UltraGreedState[____exports.UltraGreedState.BLOCKING_WITH_ARMS] = "BLOCKING_WITH_ARMS"
|
|
10207
|
+
____exports.UltraGreedState.SPIN_ATTACK = 510
|
|
10208
|
+
____exports.UltraGreedState[____exports.UltraGreedState.SPIN_ATTACK] = "SPIN_ATTACK"
|
|
10209
|
+
____exports.UltraGreedState.SHOOT_4_COINS = 600
|
|
10210
|
+
____exports.UltraGreedState[____exports.UltraGreedState.SHOOT_4_COINS] = "SHOOT_4_COINS"
|
|
10211
|
+
____exports.UltraGreedState.DYING = 9000
|
|
10212
|
+
____exports.UltraGreedState[____exports.UltraGreedState.DYING] = "DYING"
|
|
10213
|
+
____exports.UltraGreedState.GOLD_STATUE = 9001
|
|
10214
|
+
____exports.UltraGreedState[____exports.UltraGreedState.GOLD_STATUE] = "GOLD_STATUE"
|
|
10215
|
+
--- For `EntityType.ULTRA_GREED` (406), `UltraGreedVariant.ULTRA_GREEDIER` (1).
|
|
10216
|
+
____exports.UltraGreedierState = {}
|
|
10217
|
+
____exports.UltraGreedierState.IDLE = 3
|
|
10218
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.IDLE] = "IDLE"
|
|
10219
|
+
____exports.UltraGreedierState.MOVE = 4
|
|
10220
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.MOVE] = "MOVE"
|
|
10221
|
+
____exports.UltraGreedierState.JUMP = 6
|
|
10222
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.JUMP] = "JUMP"
|
|
10223
|
+
____exports.UltraGreedierState.STOMPING = 200
|
|
10224
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.STOMPING] = "STOMPING"
|
|
10225
|
+
____exports.UltraGreedierState.SHOOT_4_COINS = 600
|
|
10226
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.SHOOT_4_COINS] = "SHOOT_4_COINS"
|
|
10227
|
+
____exports.UltraGreedierState.FIST_POUND = 700
|
|
10228
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.FIST_POUND] = "FIST_POUND"
|
|
10229
|
+
____exports.UltraGreedierState.FIST_POUND_TRIPLE = 710
|
|
10230
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.FIST_POUND_TRIPLE] = "FIST_POUND_TRIPLE"
|
|
10231
|
+
____exports.UltraGreedierState.DYING = 9000
|
|
10232
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.DYING] = "DYING"
|
|
10233
|
+
____exports.UltraGreedierState.POST_EXPLOSION = 9001
|
|
10234
|
+
____exports.UltraGreedierState[____exports.UltraGreedierState.POST_EXPLOSION] = "POST_EXPLOSION"
|
|
10059
10235
|
return ____exports
|
|
10060
10236
|
end,
|
|
10061
10237
|
["lua_modules.isaac-typescript-definitions.dist.src.enums.collections.gridEntityVariants"] = function(...)
|
|
@@ -10225,7 +10401,7 @@ ____exports.StatueVariant.ANGEL = 1
|
|
|
10225
10401
|
____exports.StatueVariant[____exports.StatueVariant.ANGEL] = "ANGEL"
|
|
10226
10402
|
return ____exports
|
|
10227
10403
|
end,
|
|
10228
|
-
["lua_modules.isaac-typescript-definitions.dist.src.enums.collections.
|
|
10404
|
+
["lua_modules.isaac-typescript-definitions.dist.src.enums.collections.gridEntityStates"] = function(...)
|
|
10229
10405
|
local ____exports = {}
|
|
10230
10406
|
--- Used by the following grid entity types:
|
|
10231
10407
|
-- - GridEntityType.ROCK (2)
|
|
@@ -10354,140 +10530,6 @@ ____exports.TeleporterState.ACTIVATED = 1
|
|
|
10354
10530
|
____exports.TeleporterState[____exports.TeleporterState.ACTIVATED] = "ACTIVATED"
|
|
10355
10531
|
____exports.TeleporterState.DISABLED = 2
|
|
10356
10532
|
____exports.TeleporterState[____exports.TeleporterState.DISABLED] = "DISABLED"
|
|
10357
|
-
return ____exports
|
|
10358
|
-
end,
|
|
10359
|
-
["lua_modules.isaac-typescript-definitions.dist.src.enums.collections.entityState"] = function(...)
|
|
10360
|
-
local ____exports = {}
|
|
10361
|
-
--- EntityType.FAMILIAR (3), FamiliarVariant.LOST_SOUL (211).
|
|
10362
|
-
____exports.LostSoulState = {}
|
|
10363
|
-
____exports.LostSoulState.ALIVE = 1
|
|
10364
|
-
____exports.LostSoulState[____exports.LostSoulState.ALIVE] = "ALIVE"
|
|
10365
|
-
____exports.LostSoulState.DEAD = 4
|
|
10366
|
-
____exports.LostSoulState[____exports.LostSoulState.DEAD] = "DEAD"
|
|
10367
|
-
--- For `EntityType.DEATH` (66).
|
|
10368
|
-
____exports.DeathState = {}
|
|
10369
|
-
____exports.DeathState.APPEAR = 1
|
|
10370
|
-
____exports.DeathState[____exports.DeathState.APPEAR] = "APPEAR"
|
|
10371
|
-
____exports.DeathState.SCYTHE_APPEAR = 3
|
|
10372
|
-
____exports.DeathState[____exports.DeathState.SCYTHE_APPEAR] = "SCYTHE_APPEAR"
|
|
10373
|
-
____exports.DeathState.MAIN_IDLE = 4
|
|
10374
|
-
____exports.DeathState[____exports.DeathState.MAIN_IDLE] = "MAIN_IDLE"
|
|
10375
|
-
____exports.DeathState.JUMP_OFF_HORSE = 7
|
|
10376
|
-
____exports.DeathState[____exports.DeathState.JUMP_OFF_HORSE] = "JUMP_OFF_HORSE"
|
|
10377
|
-
____exports.DeathState.SLOW_ATTACK = 8
|
|
10378
|
-
____exports.DeathState[____exports.DeathState.SLOW_ATTACK] = "SLOW_ATTACK"
|
|
10379
|
-
____exports.DeathState.SUMMON_KNIGHTS = 13
|
|
10380
|
-
____exports.DeathState[____exports.DeathState.SUMMON_KNIGHTS] = "SUMMON_KNIGHTS"
|
|
10381
|
-
____exports.DeathState.SUMMON_SCYTHES = 14
|
|
10382
|
-
____exports.DeathState[____exports.DeathState.SUMMON_SCYTHES] = "SUMMON_SCYTHES"
|
|
10383
|
-
--- For `EntityType.DADDY_LONG_LEGS` (101).
|
|
10384
|
-
____exports.DaddyLongLegsState = {}
|
|
10385
|
-
____exports.DaddyLongLegsState.SLAM_WITH_PROJECTILE_BURST = 4
|
|
10386
|
-
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.SLAM_WITH_PROJECTILE_BURST] = "SLAM_WITH_PROJECTILE_BURST"
|
|
10387
|
-
____exports.DaddyLongLegsState.STOMP_ATTACK_LEG = 7
|
|
10388
|
-
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.STOMP_ATTACK_LEG] = "STOMP_ATTACK_LEG"
|
|
10389
|
-
____exports.DaddyLongLegsState.SPITTING_SPIDERS_ATTACK = 8
|
|
10390
|
-
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.SPITTING_SPIDERS_ATTACK] = "SPITTING_SPIDERS_ATTACK"
|
|
10391
|
-
____exports.DaddyLongLegsState.MULTI_STOMP_ATTACK_MAIN = 9
|
|
10392
|
-
____exports.DaddyLongLegsState[____exports.DaddyLongLegsState.MULTI_STOMP_ATTACK_MAIN] = "MULTI_STOMP_ATTACK_MAIN"
|
|
10393
|
-
--- For `EntityType.BIG_HORN` (411), `BigHornVariant.BIG_HORN` (0).
|
|
10394
|
-
____exports.BigHornState = {}
|
|
10395
|
-
____exports.BigHornState.IDLE = 3
|
|
10396
|
-
____exports.BigHornState[____exports.BigHornState.IDLE] = "IDLE"
|
|
10397
|
-
____exports.BigHornState.HEAD_GOING_UP_OR_GOING_DOWN_INTO_HOLE = 4
|
|
10398
|
-
____exports.BigHornState[____exports.BigHornState.HEAD_GOING_UP_OR_GOING_DOWN_INTO_HOLE] = "HEAD_GOING_UP_OR_GOING_DOWN_INTO_HOLE"
|
|
10399
|
-
____exports.BigHornState.HAND_GOING_DOWN_INTO_HOLE = 5
|
|
10400
|
-
____exports.BigHornState[____exports.BigHornState.HAND_GOING_DOWN_INTO_HOLE] = "HAND_GOING_DOWN_INTO_HOLE"
|
|
10401
|
-
____exports.BigHornState.HAND_SLAM_ATTACK = 8
|
|
10402
|
-
____exports.BigHornState[____exports.BigHornState.HAND_SLAM_ATTACK] = "HAND_SLAM_ATTACK"
|
|
10403
|
-
____exports.BigHornState.HAND_THROW_TROLL_BOMB_ATTACK = 9
|
|
10404
|
-
____exports.BigHornState[____exports.BigHornState.HAND_THROW_TROLL_BOMB_ATTACK] = "HAND_THROW_TROLL_BOMB_ATTACK"
|
|
10405
|
-
____exports.BigHornState.HAND_THROW_TRIPLE_TROLL_BOMB_ATTACK = 10
|
|
10406
|
-
____exports.BigHornState[____exports.BigHornState.HAND_THROW_TRIPLE_TROLL_BOMB_ATTACK] = "HAND_THROW_TRIPLE_TROLL_BOMB_ATTACK"
|
|
10407
|
-
____exports.BigHornState.HEAD_BALL_ATTACK = 13
|
|
10408
|
-
____exports.BigHornState[____exports.BigHornState.HEAD_BALL_ATTACK] = "HEAD_BALL_ATTACK"
|
|
10409
|
-
--- For `EntityType.REAP_CREEP` (900).
|
|
10410
|
-
____exports.ReapCreepState = {}
|
|
10411
|
-
____exports.ReapCreepState.CRAWLING_FROM_SIDE_TO_SIDE = 3
|
|
10412
|
-
____exports.ReapCreepState[____exports.ReapCreepState.CRAWLING_FROM_SIDE_TO_SIDE] = "CRAWLING_FROM_SIDE_TO_SIDE"
|
|
10413
|
-
____exports.ReapCreepState.JUMPING_TO_TOP_WALL = 6
|
|
10414
|
-
____exports.ReapCreepState[____exports.ReapCreepState.JUMPING_TO_TOP_WALL] = "JUMPING_TO_TOP_WALL"
|
|
10415
|
-
____exports.ReapCreepState.WALL_SLAM_ATTACK = 7
|
|
10416
|
-
____exports.ReapCreepState[____exports.ReapCreepState.WALL_SLAM_ATTACK] = "WALL_SLAM_ATTACK"
|
|
10417
|
-
____exports.ReapCreepState.PROJECTILE_SPIT_LINE_ATTACK = 8
|
|
10418
|
-
____exports.ReapCreepState[____exports.ReapCreepState.PROJECTILE_SPIT_LINE_ATTACK] = "PROJECTILE_SPIT_LINE_ATTACK"
|
|
10419
|
-
____exports.ReapCreepState.PROJECTILE_SPIT_BURST_ATTACK = 9
|
|
10420
|
-
____exports.ReapCreepState[____exports.ReapCreepState.PROJECTILE_SPIT_BURST_ATTACK] = "PROJECTILE_SPIT_BURST_ATTACK"
|
|
10421
|
-
____exports.ReapCreepState.BRIMSTONE_ATTACK = 10
|
|
10422
|
-
____exports.ReapCreepState[____exports.ReapCreepState.BRIMSTONE_ATTACK] = "BRIMSTONE_ATTACK"
|
|
10423
|
-
____exports.ReapCreepState.SPAWNING_WALL_SPIDERS = 13
|
|
10424
|
-
____exports.ReapCreepState[____exports.ReapCreepState.SPAWNING_WALL_SPIDERS] = "SPAWNING_WALL_SPIDERS"
|
|
10425
|
-
____exports.ReapCreepState.SPAWNING_SPIDERS = 14
|
|
10426
|
-
____exports.ReapCreepState[____exports.ReapCreepState.SPAWNING_SPIDERS] = "SPAWNING_SPIDERS"
|
|
10427
|
-
____exports.ReapCreepState.TRANSFORMING_TO_NEXT_PHASE = 16
|
|
10428
|
-
____exports.ReapCreepState[____exports.ReapCreepState.TRANSFORMING_TO_NEXT_PHASE] = "TRANSFORMING_TO_NEXT_PHASE"
|
|
10429
|
-
--- For `EntityType.COLOSTOMIA` (917).
|
|
10430
|
-
____exports.ColostomiaState = {}
|
|
10431
|
-
____exports.ColostomiaState.IDLE_PHASE_1 = 3
|
|
10432
|
-
____exports.ColostomiaState[____exports.ColostomiaState.IDLE_PHASE_1] = "IDLE_PHASE_1"
|
|
10433
|
-
____exports.ColostomiaState.IDLE_PHASE_2 = 4
|
|
10434
|
-
____exports.ColostomiaState[____exports.ColostomiaState.IDLE_PHASE_2] = "IDLE_PHASE_2"
|
|
10435
|
-
____exports.ColostomiaState.JUMP_ATTACK_WITH_PROJECTILE_SPLASH = 6
|
|
10436
|
-
____exports.ColostomiaState[____exports.ColostomiaState.JUMP_ATTACK_WITH_PROJECTILE_SPLASH] = "JUMP_ATTACK_WITH_PROJECTILE_SPLASH"
|
|
10437
|
-
____exports.ColostomiaState.CHARGE_SLIDE = 8
|
|
10438
|
-
____exports.ColostomiaState[____exports.ColostomiaState.CHARGE_SLIDE] = "CHARGE_SLIDE"
|
|
10439
|
-
____exports.ColostomiaState.SPIT_POOP_BOMB = 9
|
|
10440
|
-
____exports.ColostomiaState[____exports.ColostomiaState.SPIT_POOP_BOMB] = "SPIT_POOP_BOMB"
|
|
10441
|
-
____exports.ColostomiaState.SPIT_TWO_POOP_BOMBS = 10
|
|
10442
|
-
____exports.ColostomiaState[____exports.ColostomiaState.SPIT_TWO_POOP_BOMBS] = "SPIT_TWO_POOP_BOMBS"
|
|
10443
|
-
____exports.ColostomiaState.FART_ATTACK = 11
|
|
10444
|
-
____exports.ColostomiaState[____exports.ColostomiaState.FART_ATTACK] = "FART_ATTACK"
|
|
10445
|
-
____exports.ColostomiaState.TRANSITION_TO_PHASE_2 = 16
|
|
10446
|
-
____exports.ColostomiaState[____exports.ColostomiaState.TRANSITION_TO_PHASE_2] = "TRANSITION_TO_PHASE_2"
|
|
10447
|
-
--- For `EntityType.ULTRA_GREED` (406), `UltraGreedVariant.ULTRA_GREED` (0).
|
|
10448
|
-
____exports.UltraGreedState = {}
|
|
10449
|
-
____exports.UltraGreedState.HANGING = 2
|
|
10450
|
-
____exports.UltraGreedState[____exports.UltraGreedState.HANGING] = "HANGING"
|
|
10451
|
-
____exports.UltraGreedState.IDLE = 3
|
|
10452
|
-
____exports.UltraGreedState[____exports.UltraGreedState.IDLE] = "IDLE"
|
|
10453
|
-
____exports.UltraGreedState.MOVE = 4
|
|
10454
|
-
____exports.UltraGreedState[____exports.UltraGreedState.MOVE] = "MOVE"
|
|
10455
|
-
____exports.UltraGreedState.GOLD_STATUE_BREAKING_OUT = 16
|
|
10456
|
-
____exports.UltraGreedState[____exports.UltraGreedState.GOLD_STATUE_BREAKING_OUT] = "GOLD_STATUE_BREAKING_OUT"
|
|
10457
|
-
____exports.UltraGreedState.EYES_SPINNING = 100
|
|
10458
|
-
____exports.UltraGreedState[____exports.UltraGreedState.EYES_SPINNING] = "EYES_SPINNING"
|
|
10459
|
-
____exports.UltraGreedState.STOMPING = 200
|
|
10460
|
-
____exports.UltraGreedState[____exports.UltraGreedState.STOMPING] = "STOMPING"
|
|
10461
|
-
____exports.UltraGreedState.BLOCKING_WITH_ARMS = 400
|
|
10462
|
-
____exports.UltraGreedState[____exports.UltraGreedState.BLOCKING_WITH_ARMS] = "BLOCKING_WITH_ARMS"
|
|
10463
|
-
____exports.UltraGreedState.SPIN_ATTACK = 510
|
|
10464
|
-
____exports.UltraGreedState[____exports.UltraGreedState.SPIN_ATTACK] = "SPIN_ATTACK"
|
|
10465
|
-
____exports.UltraGreedState.SHOOT_4_COINS = 600
|
|
10466
|
-
____exports.UltraGreedState[____exports.UltraGreedState.SHOOT_4_COINS] = "SHOOT_4_COINS"
|
|
10467
|
-
____exports.UltraGreedState.DYING = 9000
|
|
10468
|
-
____exports.UltraGreedState[____exports.UltraGreedState.DYING] = "DYING"
|
|
10469
|
-
____exports.UltraGreedState.GOLD_STATUE = 9001
|
|
10470
|
-
____exports.UltraGreedState[____exports.UltraGreedState.GOLD_STATUE] = "GOLD_STATUE"
|
|
10471
|
-
--- For `EntityType.ULTRA_GREED` (406), `UltraGreedVariant.ULTRA_GREEDIER` (1).
|
|
10472
|
-
____exports.UltraGreedierState = {}
|
|
10473
|
-
____exports.UltraGreedierState.IDLE = 3
|
|
10474
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.IDLE] = "IDLE"
|
|
10475
|
-
____exports.UltraGreedierState.MOVE = 4
|
|
10476
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.MOVE] = "MOVE"
|
|
10477
|
-
____exports.UltraGreedierState.JUMP = 6
|
|
10478
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.JUMP] = "JUMP"
|
|
10479
|
-
____exports.UltraGreedierState.STOMPING = 200
|
|
10480
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.STOMPING] = "STOMPING"
|
|
10481
|
-
____exports.UltraGreedierState.SHOOT_4_COINS = 600
|
|
10482
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.SHOOT_4_COINS] = "SHOOT_4_COINS"
|
|
10483
|
-
____exports.UltraGreedierState.FIST_POUND = 700
|
|
10484
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.FIST_POUND] = "FIST_POUND"
|
|
10485
|
-
____exports.UltraGreedierState.FIST_POUND_TRIPLE = 710
|
|
10486
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.FIST_POUND_TRIPLE] = "FIST_POUND_TRIPLE"
|
|
10487
|
-
____exports.UltraGreedierState.DYING = 9000
|
|
10488
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.DYING] = "DYING"
|
|
10489
|
-
____exports.UltraGreedierState.POST_EXPLOSION = 9001
|
|
10490
|
-
____exports.UltraGreedierState[____exports.UltraGreedierState.POST_EXPLOSION] = "POST_EXPLOSION"
|
|
10491
10533
|
return ____exports
|
|
10492
10534
|
end,
|
|
10493
10535
|
["lua_modules.isaac-typescript-definitions.dist.src.enums.WeaponType"] = function(...)
|
|
@@ -53348,10 +53390,12 @@ return ____exports
|
|
|
53348
53390
|
["src.classes.features.other.extraConsoleCommands.commands"] = function(...)
|
|
53349
53391
|
local ____lualib = require("lualib_bundle")
|
|
53350
53392
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
53393
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
53351
53394
|
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
53352
53395
|
local ____exports = {}
|
|
53353
53396
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
53354
53397
|
local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
|
|
53398
|
+
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
53355
53399
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
53356
53400
|
local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
|
|
53357
53401
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -53432,6 +53476,8 @@ local ____playerIndex = require("src.functions.playerIndex")
|
|
|
53432
53476
|
local getPlayers = ____playerIndex.getPlayers
|
|
53433
53477
|
local ____players = require("src.functions.players")
|
|
53434
53478
|
local getPlayerName = ____players.getPlayerName
|
|
53479
|
+
local ____roomData = require("src.functions.roomData")
|
|
53480
|
+
local getRoomData = ____roomData.getRoomData
|
|
53435
53481
|
local ____roomGrid = require("src.functions.roomGrid")
|
|
53436
53482
|
local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
|
|
53437
53483
|
local ____roomTransition = require("src.functions.roomTransition")
|
|
@@ -53445,6 +53491,7 @@ local setUnseeded = ____run.setUnseeded
|
|
|
53445
53491
|
local ____spawnCollectible = require("src.functions.spawnCollectible")
|
|
53446
53492
|
local spawnCollectibleUnsafe = ____spawnCollectible.spawnCollectibleUnsafe
|
|
53447
53493
|
local ____stage = require("src.functions.stage")
|
|
53494
|
+
local onStage = ____stage.onStage
|
|
53448
53495
|
local setStage = ____stage.setStage
|
|
53449
53496
|
local ____string = require("src.functions.string")
|
|
53450
53497
|
local getMapPartialMatch = ____string.getMapPartialMatch
|
|
@@ -53468,6 +53515,8 @@ local ____roomNameToTypeMap = require("src.maps.roomNameToTypeMap")
|
|
|
53468
53515
|
local ROOM_NAME_TO_TYPE_MAP = ____roomNameToTypeMap.ROOM_NAME_TO_TYPE_MAP
|
|
53469
53516
|
local ____trinketNameToTypeMap = require("src.maps.trinketNameToTypeMap")
|
|
53470
53517
|
local TRINKET_NAME_TO_TYPE_MAP = ____trinketNameToTypeMap.TRINKET_NAME_TO_TYPE_MAP
|
|
53518
|
+
local ____roomTypeNames = require("src.objects.roomTypeNames")
|
|
53519
|
+
local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
|
|
53471
53520
|
local ____subroutines = require("src.classes.features.other.extraConsoleCommands.subroutines")
|
|
53472
53521
|
local addHeart = ____subroutines.addHeart
|
|
53473
53522
|
local devilAngel = ____subroutines.devilAngel
|
|
@@ -53480,7 +53529,25 @@ local warpToRoomType = ____subroutines.warpToRoomType
|
|
|
53480
53529
|
local ____v = require("src.classes.features.other.extraConsoleCommands.v")
|
|
53481
53530
|
local v = ____v.v
|
|
53482
53531
|
function ____exports.bossRoom(self)
|
|
53483
|
-
|
|
53532
|
+
local roomType = RoomType.BOSS
|
|
53533
|
+
local roomGridIndexes = getRoomGridIndexesForType(nil, roomType)
|
|
53534
|
+
local roomGridIndex = roomGridIndexes[1]
|
|
53535
|
+
if onStage(nil, LevelStage.VOID) then
|
|
53536
|
+
roomGridIndex = __TS__ArrayFind(
|
|
53537
|
+
roomGridIndexes,
|
|
53538
|
+
function(____, thisRoomGridIndex)
|
|
53539
|
+
local ____opt_0 = getRoomData(nil, thisRoomGridIndex)
|
|
53540
|
+
return (____opt_0 and ____opt_0.Subtype) == BossID.DELIRIUM
|
|
53541
|
+
end
|
|
53542
|
+
)
|
|
53543
|
+
end
|
|
53544
|
+
local roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS]
|
|
53545
|
+
if roomGridIndex == nil then
|
|
53546
|
+
print(("There are no " .. roomTypeName) .. "s on this floor.")
|
|
53547
|
+
return
|
|
53548
|
+
end
|
|
53549
|
+
changeRoom(nil, roomGridIndex)
|
|
53550
|
+
print(((("Warped to room type: " .. roomTypeName) .. " (") .. tostring(roomType)) .. ")")
|
|
53484
53551
|
end
|
|
53485
53552
|
function ____exports.chaosCardTears(self)
|
|
53486
53553
|
v.persistent.chaosCardTears = not v.persistent.chaosCardTears
|
|
@@ -48,7 +48,7 @@ export declare function boneHearts(params: string): void;
|
|
|
48
48
|
export declare function boss(): void;
|
|
49
49
|
/** Warps to the room next to the first Boss Room on the floor. */
|
|
50
50
|
export declare function bossNextRoom(): void;
|
|
51
|
-
/** Warps to the first Boss Room on the floor. */
|
|
51
|
+
/** Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void). */
|
|
52
52
|
export declare function bossRoom(): void;
|
|
53
53
|
/** Warps to the Boss Rush for the floor. */
|
|
54
54
|
export declare function bossRush(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAuJA;;;;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;A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AI,CAM7B;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,IAAI,IAAI,CAInC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB1C;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC;AAED,yCAAyC;AACzC,wBAAgB,EAAE,IAAI,IAAI,CAEzB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
3
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
3
4
|
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
4
5
|
local ____exports = {}
|
|
5
6
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
7
|
local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
|
|
8
|
+
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
7
9
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
8
10
|
local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
|
|
9
11
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -84,6 +86,8 @@ local ____playerIndex = require("src.functions.playerIndex")
|
|
|
84
86
|
local getPlayers = ____playerIndex.getPlayers
|
|
85
87
|
local ____players = require("src.functions.players")
|
|
86
88
|
local getPlayerName = ____players.getPlayerName
|
|
89
|
+
local ____roomData = require("src.functions.roomData")
|
|
90
|
+
local getRoomData = ____roomData.getRoomData
|
|
87
91
|
local ____roomGrid = require("src.functions.roomGrid")
|
|
88
92
|
local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
|
|
89
93
|
local ____roomTransition = require("src.functions.roomTransition")
|
|
@@ -97,6 +101,7 @@ local setUnseeded = ____run.setUnseeded
|
|
|
97
101
|
local ____spawnCollectible = require("src.functions.spawnCollectible")
|
|
98
102
|
local spawnCollectibleUnsafe = ____spawnCollectible.spawnCollectibleUnsafe
|
|
99
103
|
local ____stage = require("src.functions.stage")
|
|
104
|
+
local onStage = ____stage.onStage
|
|
100
105
|
local setStage = ____stage.setStage
|
|
101
106
|
local ____string = require("src.functions.string")
|
|
102
107
|
local getMapPartialMatch = ____string.getMapPartialMatch
|
|
@@ -120,6 +125,8 @@ local ____roomNameToTypeMap = require("src.maps.roomNameToTypeMap")
|
|
|
120
125
|
local ROOM_NAME_TO_TYPE_MAP = ____roomNameToTypeMap.ROOM_NAME_TO_TYPE_MAP
|
|
121
126
|
local ____trinketNameToTypeMap = require("src.maps.trinketNameToTypeMap")
|
|
122
127
|
local TRINKET_NAME_TO_TYPE_MAP = ____trinketNameToTypeMap.TRINKET_NAME_TO_TYPE_MAP
|
|
128
|
+
local ____roomTypeNames = require("src.objects.roomTypeNames")
|
|
129
|
+
local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
|
|
123
130
|
local ____subroutines = require("src.classes.features.other.extraConsoleCommands.subroutines")
|
|
124
131
|
local addHeart = ____subroutines.addHeart
|
|
125
132
|
local devilAngel = ____subroutines.devilAngel
|
|
@@ -131,9 +138,27 @@ local warpNextToRoomType = ____subroutines.warpNextToRoomType
|
|
|
131
138
|
local warpToRoomType = ____subroutines.warpToRoomType
|
|
132
139
|
local ____v = require("src.classes.features.other.extraConsoleCommands.v")
|
|
133
140
|
local v = ____v.v
|
|
134
|
-
--- Warps to the first Boss Room on the floor.
|
|
141
|
+
--- Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void).
|
|
135
142
|
function ____exports.bossRoom(self)
|
|
136
|
-
|
|
143
|
+
local roomType = RoomType.BOSS
|
|
144
|
+
local roomGridIndexes = getRoomGridIndexesForType(nil, roomType)
|
|
145
|
+
local roomGridIndex = roomGridIndexes[1]
|
|
146
|
+
if onStage(nil, LevelStage.VOID) then
|
|
147
|
+
roomGridIndex = __TS__ArrayFind(
|
|
148
|
+
roomGridIndexes,
|
|
149
|
+
function(____, thisRoomGridIndex)
|
|
150
|
+
local ____opt_0 = getRoomData(nil, thisRoomGridIndex)
|
|
151
|
+
return (____opt_0 and ____opt_0.Subtype) == BossID.DELIRIUM
|
|
152
|
+
end
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
local roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS]
|
|
156
|
+
if roomGridIndex == nil then
|
|
157
|
+
print(("There are no " .. roomTypeName) .. "s on this floor.")
|
|
158
|
+
return
|
|
159
|
+
end
|
|
160
|
+
changeRoom(nil, roomGridIndex)
|
|
161
|
+
print(((("Warped to room type: " .. roomTypeName) .. " (") .. tostring(roomType)) .. ")")
|
|
137
162
|
end
|
|
138
163
|
--- Toggles Chaos Card tears for the player. Useful for killing enemies very fast without using
|
|
139
164
|
-- "debug 10".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "73.1.0",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "dist/src/index",
|
|
26
26
|
"types": "dist/index.rollup.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^
|
|
28
|
+
"isaac-typescript-definitions": "^37.0.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -45,6 +45,7 @@ import type {
|
|
|
45
45
|
} from "isaac-typescript-definitions";
|
|
46
46
|
import {
|
|
47
47
|
ActiveSlot,
|
|
48
|
+
BossID,
|
|
48
49
|
CacheFlag,
|
|
49
50
|
Challenge,
|
|
50
51
|
CollectibleType,
|
|
@@ -114,12 +115,13 @@ import {
|
|
|
114
115
|
} from "../../../../functions/playerCollectibles";
|
|
115
116
|
import { getPlayers } from "../../../../functions/playerIndex";
|
|
116
117
|
import { getPlayerName } from "../../../../functions/players";
|
|
118
|
+
import { getRoomData } from "../../../../functions/roomData";
|
|
117
119
|
import { gridCoordinatesToWorldPosition } from "../../../../functions/roomGrid";
|
|
118
120
|
import { reloadRoom as reloadRoomFunction } from "../../../../functions/roomTransition";
|
|
119
121
|
import { changeRoom } from "../../../../functions/rooms";
|
|
120
122
|
import { onSetSeed, restart, setUnseeded } from "../../../../functions/run";
|
|
121
123
|
import { spawnCollectibleUnsafe } from "../../../../functions/spawnCollectible";
|
|
122
|
-
import { setStage } from "../../../../functions/stage";
|
|
124
|
+
import { onStage, setStage } from "../../../../functions/stage";
|
|
123
125
|
import { getMapPartialMatch } from "../../../../functions/string";
|
|
124
126
|
import { getGoldenTrinketType } from "../../../../functions/trinkets";
|
|
125
127
|
import {
|
|
@@ -134,6 +136,7 @@ import { COLLECTIBLE_NAME_TO_TYPE_MAP } from "../../../../maps/collectibleNameTo
|
|
|
134
136
|
import { PILL_NAME_TO_EFFECT_MAP } from "../../../../maps/pillNameToEffectMap";
|
|
135
137
|
import { ROOM_NAME_TO_TYPE_MAP } from "../../../../maps/roomNameToTypeMap";
|
|
136
138
|
import { TRINKET_NAME_TO_TYPE_MAP } from "../../../../maps/trinketNameToTypeMap";
|
|
139
|
+
import { ROOM_TYPE_NAMES } from "../../../../objects/roomTypeNames";
|
|
137
140
|
import {
|
|
138
141
|
addHeart,
|
|
139
142
|
devilAngel,
|
|
@@ -335,9 +338,29 @@ export function bossNextRoom(): void {
|
|
|
335
338
|
warpNextToRoomType(RoomType.BOSS);
|
|
336
339
|
}
|
|
337
340
|
|
|
338
|
-
/** Warps to the first Boss Room on the floor. */
|
|
341
|
+
/** Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void). */
|
|
339
342
|
export function bossRoom(): void {
|
|
340
|
-
warpToRoomType
|
|
343
|
+
// Most of the logic here is copied from the "warpToRoomType" function.
|
|
344
|
+
const roomType = RoomType.BOSS;
|
|
345
|
+
const roomGridIndexes = getRoomGridIndexesForType(roomType);
|
|
346
|
+
|
|
347
|
+
let roomGridIndex = roomGridIndexes[0];
|
|
348
|
+
|
|
349
|
+
if (onStage(LevelStage.VOID)) {
|
|
350
|
+
roomGridIndex = roomGridIndexes.find(
|
|
351
|
+
(thisRoomGridIndex) =>
|
|
352
|
+
getRoomData(thisRoomGridIndex)?.Subtype === BossID.DELIRIUM,
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
const roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS];
|
|
357
|
+
if (roomGridIndex === undefined) {
|
|
358
|
+
print(`There are no ${roomTypeName}s on this floor.`);
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
changeRoom(roomGridIndex);
|
|
363
|
+
print(`Warped to room type: ${roomTypeName} (${roomType})`);
|
|
341
364
|
}
|
|
342
365
|
|
|
343
366
|
/** Warps to the Boss Rush for the floor. */
|