isaacscript-common 12.3.8 → 12.5.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 +16 -7
- package/dist/isaacscript-common.lua +90 -4
- package/dist/src/core/constants.d.ts +1 -0
- package/dist/src/core/constants.d.ts.map +1 -1
- package/dist/src/core/constants.lua +1 -0
- package/dist/src/features/extraConsoleCommands/listCommands.d.ts +2 -0
- package/dist/src/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/src/features/extraConsoleCommands/listCommands.lua +6 -0
- package/dist/src/functions/entities.d.ts +7 -0
- package/dist/src/functions/entities.d.ts.map +1 -1
- package/dist/src/functions/entities.lua +11 -1
- package/dist/src/functions/ui.d.ts +6 -7
- package/dist/src/functions/ui.d.ts.map +1 -1
- package/dist/src/functions/ui.lua +7 -9
- package/dist/src/sets/entitiesWithArmorSet.d.ts +13 -0
- package/dist/src/sets/entitiesWithArmorSet.d.ts.map +1 -0
- package/dist/src/sets/entitiesWithArmorSet.lua +82 -0
- package/package.json +1 -1
- package/src/core/constants.ts +2 -0
- package/src/features/extraConsoleCommands/listCommands.ts +10 -1
- package/src/functions/entities.ts +12 -0
- package/src/functions/ui.ts +7 -10
- package/src/sets/entitiesWithArmorSet.ts +78 -0
package/dist/index.d.ts
CHANGED
|
@@ -1937,6 +1937,8 @@ export declare function doesPlayerHaveAllBlackHearts(player: EntityPlayer): bool
|
|
|
1937
1937
|
*/
|
|
1938
1938
|
export declare function doesPlayerHaveAllSoulHearts(player: EntityPlayer): boolean;
|
|
1939
1939
|
|
|
1940
|
+
export declare const DOGMA_ROOM_GRID_INDEX = 109;
|
|
1941
|
+
|
|
1940
1942
|
export declare const DOOR_HITBOX_RADIUS = 11;
|
|
1941
1943
|
|
|
1942
1944
|
export declare function doorSlotFlagsToDoorSlots(doorSlotFlags: BitFlags<DoorSlotFlag>): DoorSlot[];
|
|
@@ -3416,14 +3418,13 @@ export declare function getHorsePillColor(pillColor: PillColor): PillColor;
|
|
|
3416
3418
|
export declare function getHorsePillColors(): PillColor[];
|
|
3417
3419
|
|
|
3418
3420
|
/**
|
|
3419
|
-
* In the options menu, players have the ability to set a HUD offset.
|
|
3420
|
-
*
|
|
3421
|
-
*
|
|
3422
|
-
* offset setting so that mods can render UI elements to the screen in the correct position.
|
|
3421
|
+
* In the options menu, players have the ability to set a HUD offset. This uses the current HUD
|
|
3422
|
+
* offset to generate a vector that should be added to the corresponding position that you want to
|
|
3423
|
+
* draw a UI element.
|
|
3423
3424
|
*
|
|
3424
|
-
*
|
|
3425
|
-
*
|
|
3426
|
-
*
|
|
3425
|
+
* For example:
|
|
3426
|
+
* - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
|
|
3427
|
+
* - If the user has a HUD offset of 1.0 configured, this function will return `Vector(20, 12)`.
|
|
3427
3428
|
*/
|
|
3428
3429
|
export declare function getHUDOffsetVector(): Vector;
|
|
3429
3430
|
|
|
@@ -5408,6 +5409,14 @@ export declare function gridIndexToGridPosition(gridIndex: int, roomShape: RoomS
|
|
|
5408
5409
|
*/
|
|
5409
5410
|
export declare function gridPositionToWorldPosition(gridPosition: Vector): Vector;
|
|
5410
5411
|
|
|
5412
|
+
/**
|
|
5413
|
+
* Helper function to see if a particular entity has armor. In this context, armor refers to the
|
|
5414
|
+
* damage scaling mechanic. For example, Ultra Greed has armor, but a Gaper does not.
|
|
5415
|
+
*
|
|
5416
|
+
* For more on armor, see the wiki: https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling
|
|
5417
|
+
*/
|
|
5418
|
+
export declare function hasArmor(entity: Entity): boolean;
|
|
5419
|
+
|
|
5411
5420
|
export declare function hasCurse(curse: LevelCurse): boolean;
|
|
5412
5421
|
|
|
5413
5422
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 12.
|
|
3
|
+
isaacscript-common 12.5.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -19152,6 +19152,7 @@ ____exports.BOMB_EXPLODE_FRAME = 45
|
|
|
19152
19152
|
____exports.COLLECTIBLE_INITIAL_WAIT = 20
|
|
19153
19153
|
____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
|
|
19154
19154
|
____exports.DISTANCE_OF_GRID_TILE = 40
|
|
19155
|
+
____exports.DOGMA_ROOM_GRID_INDEX = 109
|
|
19155
19156
|
____exports.DOOR_HITBOX_RADIUS = 11
|
|
19156
19157
|
____exports.EGGY_STATE_FRAME_OF_FINAL_SPIDER = 45
|
|
19157
19158
|
____exports.EMPTY_PNG_PATH = "gfx/none.png"
|
|
@@ -19288,6 +19289,81 @@ return ____exports
|
|
|
19288
19289
|
end,
|
|
19289
19290
|
["src.types.AnyGridEntity"] = function(...)
|
|
19290
19291
|
local ____exports = {}
|
|
19292
|
+
return ____exports
|
|
19293
|
+
end,
|
|
19294
|
+
["src.sets.entitiesWithArmorSet"] = function(...)
|
|
19295
|
+
local ____lualib = require("lualib_bundle")
|
|
19296
|
+
local Set = ____lualib.Set
|
|
19297
|
+
local __TS__New = ____lualib.__TS__New
|
|
19298
|
+
local ____exports = {}
|
|
19299
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
19300
|
+
local BeastVariant = ____isaac_2Dtypescript_2Ddefinitions.BeastVariant
|
|
19301
|
+
local BloodPuppyVariant = ____isaac_2Dtypescript_2Ddefinitions.BloodPuppyVariant
|
|
19302
|
+
local BoomFlyVariant = ____isaac_2Dtypescript_2Ddefinitions.BoomFlyVariant
|
|
19303
|
+
local Charger2Variant = ____isaac_2Dtypescript_2Ddefinitions.Charger2Variant
|
|
19304
|
+
local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
|
|
19305
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
19306
|
+
local FacelessVariant = ____isaac_2Dtypescript_2Ddefinitions.FacelessVariant
|
|
19307
|
+
local Gaper2Variant = ____isaac_2Dtypescript_2Ddefinitions.Gaper2Variant
|
|
19308
|
+
local GuttyFattyVariant = ____isaac_2Dtypescript_2Ddefinitions.GuttyFattyVariant
|
|
19309
|
+
local HiveVariant = ____isaac_2Dtypescript_2Ddefinitions.HiveVariant
|
|
19310
|
+
local HopperVariant = ____isaac_2Dtypescript_2Ddefinitions.HopperVariant
|
|
19311
|
+
local IsaacVariant = ____isaac_2Dtypescript_2Ddefinitions.IsaacVariant
|
|
19312
|
+
local MegaSatanVariant = ____isaac_2Dtypescript_2Ddefinitions.MegaSatanVariant
|
|
19313
|
+
local MoleVariant = ____isaac_2Dtypescript_2Ddefinitions.MoleVariant
|
|
19314
|
+
local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
|
|
19315
|
+
local PooterVariant = ____isaac_2Dtypescript_2Ddefinitions.PooterVariant
|
|
19316
|
+
local RoundWormVariant = ____isaac_2Dtypescript_2Ddefinitions.RoundWormVariant
|
|
19317
|
+
local SubHorfVariant = ____isaac_2Dtypescript_2Ddefinitions.SubHorfVariant
|
|
19318
|
+
local SuckerVariant = ____isaac_2Dtypescript_2Ddefinitions.SuckerVariant
|
|
19319
|
+
local UltraGreedVariant = ____isaac_2Dtypescript_2Ddefinitions.UltraGreedVariant
|
|
19320
|
+
local WallCreepVariant = ____isaac_2Dtypescript_2Ddefinitions.WallCreepVariant
|
|
19321
|
+
____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
19322
|
+
Set,
|
|
19323
|
+
{
|
|
19324
|
+
(tostring(EntityType.POOTER) .. ".") .. tostring(PooterVariant.TAINTED_POOTER),
|
|
19325
|
+
(tostring(EntityType.HIVE) .. ".") .. tostring(HiveVariant.TAINTED_MULLIGAN),
|
|
19326
|
+
(tostring(EntityType.BOOM_FLY) .. ".") .. tostring(BoomFlyVariant.TAINTED_BOOM_FLY),
|
|
19327
|
+
(tostring(EntityType.HOPPER) .. ".") .. tostring(HopperVariant.TAINTED_HOPPER),
|
|
19328
|
+
tostring(EntityType.SPITTY),
|
|
19329
|
+
(tostring(EntityType.SUCKER) .. ".") .. tostring(SuckerVariant.TAINTED_SUCKER),
|
|
19330
|
+
(tostring(EntityType.ISAAC) .. ".") .. tostring(IsaacVariant.BLUE_BABY_HUSH),
|
|
19331
|
+
(tostring(EntityType.WALL_CREEP) .. ".") .. tostring(WallCreepVariant.TAINTED_SOY_CREEP),
|
|
19332
|
+
(tostring(EntityType.ROUND_WORM) .. ".") .. tostring(RoundWormVariant.TAINTED_ROUND_WORM),
|
|
19333
|
+
(tostring(EntityType.ROUND_WORM) .. ".") .. tostring(RoundWormVariant.TAINTED_TUBE_WORM),
|
|
19334
|
+
(tostring(EntityType.MEGA_SATAN) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN),
|
|
19335
|
+
(tostring(EntityType.MEGA_SATAN) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_RIGHT_HAND),
|
|
19336
|
+
(tostring(EntityType.MEGA_SATAN) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_LEFT_HAND),
|
|
19337
|
+
(tostring(EntityType.MEGA_SATAN_2) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN),
|
|
19338
|
+
(tostring(EntityType.MEGA_SATAN_2) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_RIGHT_HAND),
|
|
19339
|
+
(tostring(EntityType.MEGA_SATAN_2) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_LEFT_HAND),
|
|
19340
|
+
(tostring(EntityType.ULTRA_GREED) .. ".") .. tostring(UltraGreedVariant.ULTRA_GREED),
|
|
19341
|
+
(tostring(EntityType.ULTRA_GREED) .. ".") .. tostring(UltraGreedVariant.ULTRA_GREEDIER),
|
|
19342
|
+
tostring(EntityType.HUSH) .. ".0",
|
|
19343
|
+
tostring(EntityType.DELIRIUM) .. ".0",
|
|
19344
|
+
(tostring(EntityType.BLOOD_PUPPY) .. ".") .. tostring(BloodPuppyVariant.SMALL),
|
|
19345
|
+
(tostring(EntityType.BLOOD_PUPPY) .. ".") .. tostring(BloodPuppyVariant.LARGE),
|
|
19346
|
+
(tostring(EntityType.SUB_HORF) .. ".") .. tostring(SubHorfVariant.TAINTED_SUB_HORF),
|
|
19347
|
+
(tostring(EntityType.FACELESS) .. ".") .. tostring(FacelessVariant.TAINTED_FACELESS),
|
|
19348
|
+
(tostring(EntityType.MOLE) .. ".") .. tostring(MoleVariant.TAINTED_MOLE),
|
|
19349
|
+
(tostring(EntityType.GUTTED_FATTY) .. ".") .. tostring(GuttyFattyVariant.GUTTED_FATTY),
|
|
19350
|
+
(tostring(EntityType.GAPER_L2) .. ".") .. tostring(Gaper2Variant.GAPER),
|
|
19351
|
+
(tostring(EntityType.GAPER_L2) .. ".") .. tostring(Gaper2Variant.HORF),
|
|
19352
|
+
(tostring(EntityType.GAPER_L2) .. ".") .. tostring(Gaper2Variant.GUSHER),
|
|
19353
|
+
(tostring(EntityType.CHARGER_L2) .. ".") .. tostring(Charger2Variant.CHARGER),
|
|
19354
|
+
(tostring(EntityType.CHARGER_L2) .. ".") .. tostring(Charger2Variant.ELLEECH),
|
|
19355
|
+
tostring(EntityType.SHADY) .. ".0",
|
|
19356
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
|
|
19357
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
|
|
19358
|
+
(tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.TV),
|
|
19359
|
+
(tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.ANGEL_PHASE_2),
|
|
19360
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.BEAST),
|
|
19361
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_FAMINE),
|
|
19362
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_PESTILENCE),
|
|
19363
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_WAR),
|
|
19364
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_DEATH)
|
|
19365
|
+
}
|
|
19366
|
+
)
|
|
19291
19367
|
return ____exports
|
|
19292
19368
|
end,
|
|
19293
19369
|
["src.sets.storyBossesSet"] = function(...)
|
|
@@ -19498,8 +19574,8 @@ return ____exports
|
|
|
19498
19574
|
end,
|
|
19499
19575
|
["src.functions.entities"] = function(...)
|
|
19500
19576
|
local ____lualib = require("lualib_bundle")
|
|
19501
|
-
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
19502
19577
|
local Set = ____lualib.Set
|
|
19578
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
19503
19579
|
local __TS__New = ____lualib.__TS__New
|
|
19504
19580
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
19505
19581
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
@@ -19509,6 +19585,8 @@ local ____cachedClasses = require("src.core.cachedClasses")
|
|
|
19509
19585
|
local game = ____cachedClasses.game
|
|
19510
19586
|
local ____constants = require("src.core.constants")
|
|
19511
19587
|
local VectorZero = ____constants.VectorZero
|
|
19588
|
+
local ____entitiesWithArmorSet = require("src.sets.entitiesWithArmorSet")
|
|
19589
|
+
local ENTITIES_WITH_ARMOR_SET = ____entitiesWithArmorSet.ENTITIES_WITH_ARMOR_SET
|
|
19512
19590
|
local ____storyBossesSet = require("src.sets.storyBossesSet")
|
|
19513
19591
|
local STORY_BOSSES_SET = ____storyBossesSet.STORY_BOSSES_SET
|
|
19514
19592
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
@@ -19684,6 +19762,10 @@ function ____exports.getFilteredNewEntities(self, oldEntities, newEntities)
|
|
|
19684
19762
|
end
|
|
19685
19763
|
)
|
|
19686
19764
|
end
|
|
19765
|
+
function ____exports.hasArmor(self, entity)
|
|
19766
|
+
local typeVariantString = (tostring(entity.Type) .. ".") .. tostring(entity.Variant)
|
|
19767
|
+
return ENTITIES_WITH_ARMOR_SET:has(typeVariantString)
|
|
19768
|
+
end
|
|
19687
19769
|
function ____exports.isEntityMoving(self, entity, threshold)
|
|
19688
19770
|
if threshold == nil then
|
|
19689
19771
|
threshold = 0.01
|
|
@@ -37547,10 +37629,9 @@ function ____exports.getScreenBottomRightPos(self)
|
|
|
37547
37629
|
return Vector(screenWidth, screenHeight)
|
|
37548
37630
|
end
|
|
37549
37631
|
function ____exports.getHUDOffsetVector(self)
|
|
37550
|
-
local defaultVector = copyVector(nil, VectorZero)
|
|
37551
37632
|
local hudOffset = math.floor(Options.HUDOffset * 10)
|
|
37552
37633
|
if hudOffset < 1 or hudOffset > 10 then
|
|
37553
|
-
return
|
|
37634
|
+
return copyVector(nil, VectorZero)
|
|
37554
37635
|
end
|
|
37555
37636
|
local x = hudOffset * 2
|
|
37556
37637
|
local y = hudOffset
|
|
@@ -46113,6 +46194,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
|
|
|
46113
46194
|
local game = ____cachedClasses.game
|
|
46114
46195
|
local sfxManager = ____cachedClasses.sfxManager
|
|
46115
46196
|
local ____constants = require("src.core.constants")
|
|
46197
|
+
local DOGMA_ROOM_GRID_INDEX = ____constants.DOGMA_ROOM_GRID_INDEX
|
|
46116
46198
|
local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
|
|
46117
46199
|
local ____constantsFirstLast = require("src.core.constantsFirstLast")
|
|
46118
46200
|
local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
|
|
@@ -46628,6 +46710,10 @@ function ____exports.disableCurses(self)
|
|
|
46628
46710
|
v.persistent.disableCurses = not v.persistent.disableCurses
|
|
46629
46711
|
printEnabled(nil, not v.persistent.disableCurses, "curses")
|
|
46630
46712
|
end
|
|
46713
|
+
function ____exports.dogma(self)
|
|
46714
|
+
setStage(nil, LevelStage.HOME, StageType.WRATH_OF_THE_LAMB)
|
|
46715
|
+
changeRoom(nil, DOGMA_ROOM_GRID_INDEX)
|
|
46716
|
+
end
|
|
46631
46717
|
function ____exports.down(self, params)
|
|
46632
46718
|
movePlayer(nil, params, Direction.DOWN)
|
|
46633
46719
|
end
|
|
@@ -27,6 +27,7 @@ export declare const COLLECTIBLE_INITIAL_WAIT = 20;
|
|
|
27
27
|
export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
|
|
28
28
|
/** This is also the distance that a player spawns from the door that they enter a room from. */
|
|
29
29
|
export declare const DISTANCE_OF_GRID_TILE = 40;
|
|
30
|
+
export declare const DOGMA_ROOM_GRID_INDEX = 109;
|
|
30
31
|
export declare const DOOR_HITBOX_RADIUS = 11;
|
|
31
32
|
/**
|
|
32
33
|
* When Eggies take fatal damage, they go into NpcState.STATE_SUICIDE and spawn 14 Swarm Spiders
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEb,MAAM,8BAA8B,CAAC;AAMtC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD;;;GAG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C5C,eAAO,MAAM,8BAA8B,QAA4B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
|
|
@@ -30,6 +30,7 @@ ____exports.COLLECTIBLE_INITIAL_WAIT = 20
|
|
|
30
30
|
____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
|
|
31
31
|
--- This is also the distance that a player spawns from the door that they enter a room from.
|
|
32
32
|
____exports.DISTANCE_OF_GRID_TILE = 40
|
|
33
|
+
____exports.DOGMA_ROOM_GRID_INDEX = 109
|
|
33
34
|
____exports.DOOR_HITBOX_RADIUS = 11
|
|
34
35
|
--- When Eggies take fatal damage, they go into NpcState.STATE_SUICIDE and spawn 14 Swarm Spiders
|
|
35
36
|
-- while their StateFrame ticks upwards. The 14th spider appears when the StateFrame is at this
|
|
@@ -125,6 +125,8 @@ export declare function devilRoom(): void;
|
|
|
125
125
|
export declare function dirtyBedroom(): void;
|
|
126
126
|
/** Toggles whether or not curses can appear. */
|
|
127
127
|
export declare function disableCurses(): void;
|
|
128
|
+
/** Warps to the Dogma Boss Room. */
|
|
129
|
+
export declare function dogma(): void;
|
|
128
130
|
/** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
|
|
129
131
|
export declare function down(params: string): void;
|
|
130
132
|
/** Warps to the Dungeon (i.e. the crawl space room) for the floor. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA2IA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wCAAwC;AACxC,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,kEAAkE;AAClE,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,iDAAiD;AACjD,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED;;;;;;GAMG;AACH,wBAAgB,IAA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AG,IAAI,CAsB1C;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;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA4CnD;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;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"}
|
|
@@ -24,6 +24,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
|
|
|
24
24
|
local game = ____cachedClasses.game
|
|
25
25
|
local sfxManager = ____cachedClasses.sfxManager
|
|
26
26
|
local ____constants = require("src.core.constants")
|
|
27
|
+
local DOGMA_ROOM_GRID_INDEX = ____constants.DOGMA_ROOM_GRID_INDEX
|
|
27
28
|
local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
|
|
28
29
|
local ____constantsFirstLast = require("src.core.constantsFirstLast")
|
|
29
30
|
local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
|
|
@@ -619,6 +620,11 @@ function ____exports.disableCurses(self)
|
|
|
619
620
|
v.persistent.disableCurses = not v.persistent.disableCurses
|
|
620
621
|
printEnabled(nil, not v.persistent.disableCurses, "curses")
|
|
621
622
|
end
|
|
623
|
+
--- Warps to the Dogma Boss Room.
|
|
624
|
+
function ____exports.dogma(self)
|
|
625
|
+
setStage(nil, LevelStage.HOME, StageType.WRATH_OF_THE_LAMB)
|
|
626
|
+
changeRoom(nil, DOGMA_ROOM_GRID_INDEX)
|
|
627
|
+
end
|
|
622
628
|
--- Moves the player 0.5 units down. Provide a number to move a custom amount of units.
|
|
623
629
|
function ____exports.down(self, params)
|
|
624
630
|
movePlayer(nil, params, Direction.DOWN)
|
|
@@ -88,6 +88,13 @@ export declare function getEntityIDFromConstituents(entityType: EntityType, vari
|
|
|
88
88
|
* second array but not in the first array.
|
|
89
89
|
*/
|
|
90
90
|
export declare function getFilteredNewEntities<T extends AnyEntity>(oldEntities: T[], newEntities: T[]): T[];
|
|
91
|
+
/**
|
|
92
|
+
* Helper function to see if a particular entity has armor. In this context, armor refers to the
|
|
93
|
+
* damage scaling mechanic. For example, Ultra Greed has armor, but a Gaper does not.
|
|
94
|
+
*
|
|
95
|
+
* For more on armor, see the wiki: https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling
|
|
96
|
+
*/
|
|
97
|
+
export declare function hasArmor(entity: Entity): boolean;
|
|
91
98
|
/**
|
|
92
99
|
* Helper function to measure an entity's velocity to see if it is moving.
|
|
93
100
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/functions/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/functions/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAK1D,OAAO,EAAE,SAAS,EAA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mB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,SAAS,GAAE,IAAI,GAAG,GAAG,GAAG,SAAqB,GAC5C,MAAM,CAsCR;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,GACtC,MAAM,CAUR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
3
2
|
local Set = ____lualib.Set
|
|
3
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
6
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
@@ -10,6 +10,8 @@ local ____cachedClasses = require("src.core.cachedClasses")
|
|
|
10
10
|
local game = ____cachedClasses.game
|
|
11
11
|
local ____constants = require("src.core.constants")
|
|
12
12
|
local VectorZero = ____constants.VectorZero
|
|
13
|
+
local ____entitiesWithArmorSet = require("src.sets.entitiesWithArmorSet")
|
|
14
|
+
local ENTITIES_WITH_ARMOR_SET = ____entitiesWithArmorSet.ENTITIES_WITH_ARMOR_SET
|
|
13
15
|
local ____storyBossesSet = require("src.sets.storyBossesSet")
|
|
14
16
|
local STORY_BOSSES_SET = ____storyBossesSet.STORY_BOSSES_SET
|
|
15
17
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
@@ -253,6 +255,14 @@ function ____exports.getFilteredNewEntities(self, oldEntities, newEntities)
|
|
|
253
255
|
end
|
|
254
256
|
)
|
|
255
257
|
end
|
|
258
|
+
--- Helper function to see if a particular entity has armor. In this context, armor refers to the
|
|
259
|
+
-- damage scaling mechanic. For example, Ultra Greed has armor, but a Gaper does not.
|
|
260
|
+
--
|
|
261
|
+
-- For more on armor, see the wiki: https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling
|
|
262
|
+
function ____exports.hasArmor(self, entity)
|
|
263
|
+
local typeVariantString = (tostring(entity.Type) .. ".") .. tostring(entity.Variant)
|
|
264
|
+
return ENTITIES_WITH_ARMOR_SET:has(typeVariantString)
|
|
265
|
+
end
|
|
256
266
|
--- Helper function to measure an entity's velocity to see if it is moving.
|
|
257
267
|
--
|
|
258
268
|
-- Use this helper function over checking if the velocity length is equal to 0 because entities can
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
/// <reference types="isaac-typescript-definitions" />
|
|
3
3
|
/// <reference types="isaac-typescript-definitions" />
|
|
4
4
|
/**
|
|
5
|
-
* In the options menu, players have the ability to set a HUD offset.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* offset setting so that mods can render UI elements to the screen in the correct position.
|
|
5
|
+
* In the options menu, players have the ability to set a HUD offset. This uses the current HUD
|
|
6
|
+
* offset to generate a vector that should be added to the corresponding position that you want to
|
|
7
|
+
* draw a UI element.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* For example:
|
|
10
|
+
* - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
|
|
11
|
+
* - If the user has a HUD offset of 1.0 configured, this function will return `Vector(20, 12)`.
|
|
13
12
|
*/
|
|
14
13
|
export declare function getHUDOffsetVector(): Vector;
|
|
15
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/functions/ui.ts"],"names":[],"mappings":";;;AAKA
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/functions/ui.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAmB3C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CAgCtC;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAG/C;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAKhD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAa1D"}
|
|
@@ -14,19 +14,17 @@ function ____exports.getScreenBottomRightPos(self)
|
|
|
14
14
|
local screenHeight = Isaac.GetScreenHeight()
|
|
15
15
|
return Vector(screenWidth, screenHeight)
|
|
16
16
|
end
|
|
17
|
-
--- In the options menu, players have the ability to set a HUD offset.
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
-- offset setting so that mods can render UI elements to the screen in the correct position.
|
|
17
|
+
--- In the options menu, players have the ability to set a HUD offset. This uses the current HUD
|
|
18
|
+
-- offset to generate a vector that should be added to the corresponding position that you want to
|
|
19
|
+
-- draw a UI element.
|
|
21
20
|
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
21
|
+
-- For example:
|
|
22
|
+
-- - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
|
|
23
|
+
-- - If the user has a HUD offset of 1.0 configured, this function will return `Vector(20, 12)`.
|
|
25
24
|
function ____exports.getHUDOffsetVector(self)
|
|
26
|
-
local defaultVector = copyVector(nil, VectorZero)
|
|
27
25
|
local hudOffset = math.floor(Options.HUDOffset * 10)
|
|
28
26
|
if hudOffset < 1 or hudOffset > 10 then
|
|
29
|
-
return
|
|
27
|
+
return copyVector(nil, VectorZero)
|
|
30
28
|
end
|
|
31
29
|
local x = hudOffset * 2
|
|
32
30
|
local y = hudOffset
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "Armor" refers to the damage scaling mechanic. The following list corresponds to the entities
|
|
3
|
+
* that have the "shieldStrength" field in the "entities2.xml" file, with some exceptions.
|
|
4
|
+
* (Invulnerable enemies are not included. Furthermore, Ultra Greed, Ultra Greedier, and Delirium
|
|
5
|
+
* all have damage scaling, but do not have a corresponding "shieldStrength" field.)
|
|
6
|
+
*
|
|
7
|
+
* Also see:
|
|
8
|
+
* https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
|
|
9
|
+
*
|
|
10
|
+
* We use strings instead of a type + variant tuple so that we can have O(1) lookups.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ENTITIES_WITH_ARMOR_SET: Set<string>;
|
|
13
|
+
//# sourceMappingURL=entitiesWithArmorSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitiesWithArmorSet.d.ts","sourceRoot":"","sources":["../../../src/sets/entitiesWithArmorSet.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,aA0ClC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Set = ____lualib.Set
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local BeastVariant = ____isaac_2Dtypescript_2Ddefinitions.BeastVariant
|
|
7
|
+
local BloodPuppyVariant = ____isaac_2Dtypescript_2Ddefinitions.BloodPuppyVariant
|
|
8
|
+
local BoomFlyVariant = ____isaac_2Dtypescript_2Ddefinitions.BoomFlyVariant
|
|
9
|
+
local Charger2Variant = ____isaac_2Dtypescript_2Ddefinitions.Charger2Variant
|
|
10
|
+
local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
|
|
11
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
12
|
+
local FacelessVariant = ____isaac_2Dtypescript_2Ddefinitions.FacelessVariant
|
|
13
|
+
local Gaper2Variant = ____isaac_2Dtypescript_2Ddefinitions.Gaper2Variant
|
|
14
|
+
local GuttyFattyVariant = ____isaac_2Dtypescript_2Ddefinitions.GuttyFattyVariant
|
|
15
|
+
local HiveVariant = ____isaac_2Dtypescript_2Ddefinitions.HiveVariant
|
|
16
|
+
local HopperVariant = ____isaac_2Dtypescript_2Ddefinitions.HopperVariant
|
|
17
|
+
local IsaacVariant = ____isaac_2Dtypescript_2Ddefinitions.IsaacVariant
|
|
18
|
+
local MegaSatanVariant = ____isaac_2Dtypescript_2Ddefinitions.MegaSatanVariant
|
|
19
|
+
local MoleVariant = ____isaac_2Dtypescript_2Ddefinitions.MoleVariant
|
|
20
|
+
local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
|
|
21
|
+
local PooterVariant = ____isaac_2Dtypescript_2Ddefinitions.PooterVariant
|
|
22
|
+
local RoundWormVariant = ____isaac_2Dtypescript_2Ddefinitions.RoundWormVariant
|
|
23
|
+
local SubHorfVariant = ____isaac_2Dtypescript_2Ddefinitions.SubHorfVariant
|
|
24
|
+
local SuckerVariant = ____isaac_2Dtypescript_2Ddefinitions.SuckerVariant
|
|
25
|
+
local UltraGreedVariant = ____isaac_2Dtypescript_2Ddefinitions.UltraGreedVariant
|
|
26
|
+
local WallCreepVariant = ____isaac_2Dtypescript_2Ddefinitions.WallCreepVariant
|
|
27
|
+
--- "Armor" refers to the damage scaling mechanic. The following list corresponds to the entities
|
|
28
|
+
-- that have the "shieldStrength" field in the "entities2.xml" file, with some exceptions.
|
|
29
|
+
-- (Invulnerable enemies are not included. Furthermore, Ultra Greed, Ultra Greedier, and Delirium
|
|
30
|
+
-- all have damage scaling, but do not have a corresponding "shieldStrength" field.)
|
|
31
|
+
--
|
|
32
|
+
-- Also see:
|
|
33
|
+
-- https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
|
|
34
|
+
--
|
|
35
|
+
-- We use strings instead of a type + variant tuple so that we can have O(1) lookups.
|
|
36
|
+
____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
37
|
+
Set,
|
|
38
|
+
{
|
|
39
|
+
(tostring(EntityType.POOTER) .. ".") .. tostring(PooterVariant.TAINTED_POOTER),
|
|
40
|
+
(tostring(EntityType.HIVE) .. ".") .. tostring(HiveVariant.TAINTED_MULLIGAN),
|
|
41
|
+
(tostring(EntityType.BOOM_FLY) .. ".") .. tostring(BoomFlyVariant.TAINTED_BOOM_FLY),
|
|
42
|
+
(tostring(EntityType.HOPPER) .. ".") .. tostring(HopperVariant.TAINTED_HOPPER),
|
|
43
|
+
tostring(EntityType.SPITTY),
|
|
44
|
+
(tostring(EntityType.SUCKER) .. ".") .. tostring(SuckerVariant.TAINTED_SUCKER),
|
|
45
|
+
(tostring(EntityType.ISAAC) .. ".") .. tostring(IsaacVariant.BLUE_BABY_HUSH),
|
|
46
|
+
(tostring(EntityType.WALL_CREEP) .. ".") .. tostring(WallCreepVariant.TAINTED_SOY_CREEP),
|
|
47
|
+
(tostring(EntityType.ROUND_WORM) .. ".") .. tostring(RoundWormVariant.TAINTED_ROUND_WORM),
|
|
48
|
+
(tostring(EntityType.ROUND_WORM) .. ".") .. tostring(RoundWormVariant.TAINTED_TUBE_WORM),
|
|
49
|
+
(tostring(EntityType.MEGA_SATAN) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN),
|
|
50
|
+
(tostring(EntityType.MEGA_SATAN) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_RIGHT_HAND),
|
|
51
|
+
(tostring(EntityType.MEGA_SATAN) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_LEFT_HAND),
|
|
52
|
+
(tostring(EntityType.MEGA_SATAN_2) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN),
|
|
53
|
+
(tostring(EntityType.MEGA_SATAN_2) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_RIGHT_HAND),
|
|
54
|
+
(tostring(EntityType.MEGA_SATAN_2) .. ".") .. tostring(MegaSatanVariant.MEGA_SATAN_LEFT_HAND),
|
|
55
|
+
(tostring(EntityType.ULTRA_GREED) .. ".") .. tostring(UltraGreedVariant.ULTRA_GREED),
|
|
56
|
+
(tostring(EntityType.ULTRA_GREED) .. ".") .. tostring(UltraGreedVariant.ULTRA_GREEDIER),
|
|
57
|
+
tostring(EntityType.HUSH) .. ".0",
|
|
58
|
+
tostring(EntityType.DELIRIUM) .. ".0",
|
|
59
|
+
(tostring(EntityType.BLOOD_PUPPY) .. ".") .. tostring(BloodPuppyVariant.SMALL),
|
|
60
|
+
(tostring(EntityType.BLOOD_PUPPY) .. ".") .. tostring(BloodPuppyVariant.LARGE),
|
|
61
|
+
(tostring(EntityType.SUB_HORF) .. ".") .. tostring(SubHorfVariant.TAINTED_SUB_HORF),
|
|
62
|
+
(tostring(EntityType.FACELESS) .. ".") .. tostring(FacelessVariant.TAINTED_FACELESS),
|
|
63
|
+
(tostring(EntityType.MOLE) .. ".") .. tostring(MoleVariant.TAINTED_MOLE),
|
|
64
|
+
(tostring(EntityType.GUTTED_FATTY) .. ".") .. tostring(GuttyFattyVariant.GUTTED_FATTY),
|
|
65
|
+
(tostring(EntityType.GAPER_L2) .. ".") .. tostring(Gaper2Variant.GAPER),
|
|
66
|
+
(tostring(EntityType.GAPER_L2) .. ".") .. tostring(Gaper2Variant.HORF),
|
|
67
|
+
(tostring(EntityType.GAPER_L2) .. ".") .. tostring(Gaper2Variant.GUSHER),
|
|
68
|
+
(tostring(EntityType.CHARGER_L2) .. ".") .. tostring(Charger2Variant.CHARGER),
|
|
69
|
+
(tostring(EntityType.CHARGER_L2) .. ".") .. tostring(Charger2Variant.ELLEECH),
|
|
70
|
+
tostring(EntityType.SHADY) .. ".0",
|
|
71
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
|
|
72
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
|
|
73
|
+
(tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.TV),
|
|
74
|
+
(tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.ANGEL_PHASE_2),
|
|
75
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.BEAST),
|
|
76
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_FAMINE),
|
|
77
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_PESTILENCE),
|
|
78
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_WAR),
|
|
79
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_DEATH)
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
return ____exports
|
package/package.json
CHANGED
package/src/core/constants.ts
CHANGED
|
@@ -44,6 +44,8 @@ export const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
|
|
|
44
44
|
/** This is also the distance that a player spawns from the door that they enter a room from. */
|
|
45
45
|
export const DISTANCE_OF_GRID_TILE = 40;
|
|
46
46
|
|
|
47
|
+
export const DOGMA_ROOM_GRID_INDEX = 109;
|
|
48
|
+
|
|
47
49
|
export const DOOR_HITBOX_RADIUS = 11;
|
|
48
50
|
|
|
49
51
|
/**
|
|
@@ -53,7 +53,10 @@ import {
|
|
|
53
53
|
TrinketType,
|
|
54
54
|
} from "isaac-typescript-definitions";
|
|
55
55
|
import { game, sfxManager } from "../../core/cachedClasses";
|
|
56
|
-
import {
|
|
56
|
+
import {
|
|
57
|
+
DOGMA_ROOM_GRID_INDEX,
|
|
58
|
+
MAX_LEVEL_GRID_INDEX,
|
|
59
|
+
} from "../../core/constants";
|
|
57
60
|
import {
|
|
58
61
|
FIRST_CARD_TYPE,
|
|
59
62
|
FIRST_CHARACTER,
|
|
@@ -583,6 +586,12 @@ export function disableCurses(): void {
|
|
|
583
586
|
printEnabled(!v.persistent.disableCurses, "curses");
|
|
584
587
|
}
|
|
585
588
|
|
|
589
|
+
/** Warps to the Dogma Boss Room. */
|
|
590
|
+
export function dogma(): void {
|
|
591
|
+
setStage(LevelStage.HOME, StageType.WRATH_OF_THE_LAMB);
|
|
592
|
+
changeRoom(DOGMA_ROOM_GRID_INDEX);
|
|
593
|
+
}
|
|
594
|
+
|
|
586
595
|
/** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
|
|
587
596
|
export function down(params: string): void {
|
|
588
597
|
movePlayer(params, Direction.DOWN);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EntityType } from "isaac-typescript-definitions";
|
|
2
2
|
import { game } from "../core/cachedClasses";
|
|
3
3
|
import { VectorZero } from "../core/constants";
|
|
4
|
+
import { ENTITIES_WITH_ARMOR_SET } from "../sets/entitiesWithArmorSet";
|
|
4
5
|
import { STORY_BOSSES_SET } from "../sets/storyBossesSet";
|
|
5
6
|
import { AnyEntity } from "../types/AnyEntity";
|
|
6
7
|
import { getIsaacAPIClassName } from "./isaacAPIClass";
|
|
@@ -251,6 +252,17 @@ export function getFilteredNewEntities<T extends AnyEntity>(
|
|
|
251
252
|
});
|
|
252
253
|
}
|
|
253
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Helper function to see if a particular entity has armor. In this context, armor refers to the
|
|
257
|
+
* damage scaling mechanic. For example, Ultra Greed has armor, but a Gaper does not.
|
|
258
|
+
*
|
|
259
|
+
* For more on armor, see the wiki: https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling
|
|
260
|
+
*/
|
|
261
|
+
export function hasArmor(entity: Entity): boolean {
|
|
262
|
+
const typeVariantString = `${entity.Type}.${entity.Variant}`;
|
|
263
|
+
return ENTITIES_WITH_ARMOR_SET.has(typeVariantString);
|
|
264
|
+
}
|
|
265
|
+
|
|
254
266
|
/**
|
|
255
267
|
* Helper function to measure an entity's velocity to see if it is moving.
|
|
256
268
|
*
|
package/src/functions/ui.ts
CHANGED
|
@@ -4,24 +4,21 @@ import { UI_HEART_WIDTH, VectorZero } from "../core/constants";
|
|
|
4
4
|
import { copyVector } from "./vector";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* In the options menu, players have the ability to set a HUD offset.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* offset setting so that mods can render UI elements to the screen in the correct position.
|
|
7
|
+
* In the options menu, players have the ability to set a HUD offset. This uses the current HUD
|
|
8
|
+
* offset to generate a vector that should be added to the corresponding position that you want to
|
|
9
|
+
* draw a UI element.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* For example:
|
|
12
|
+
* - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
|
|
13
|
+
* - If the user has a HUD offset of 1.0 configured, this function will return `Vector(20, 12)`.
|
|
15
14
|
*/
|
|
16
15
|
export function getHUDOffsetVector(): Vector {
|
|
17
|
-
const defaultVector = copyVector(VectorZero);
|
|
18
|
-
|
|
19
16
|
// Convert e.g. 0.4 to 4.
|
|
20
17
|
const hudOffset = math.floor(Options.HUDOffset * 10);
|
|
21
18
|
|
|
22
19
|
// Expected values are integers between 1 and 10.
|
|
23
20
|
if (hudOffset < 1 || hudOffset > 10) {
|
|
24
|
-
return
|
|
21
|
+
return copyVector(VectorZero);
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
const x = hudOffset * 2;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BeastVariant,
|
|
3
|
+
BloodPuppyVariant,
|
|
4
|
+
BoomFlyVariant,
|
|
5
|
+
Charger2Variant,
|
|
6
|
+
DogmaVariant,
|
|
7
|
+
EntityType,
|
|
8
|
+
FacelessVariant,
|
|
9
|
+
Gaper2Variant,
|
|
10
|
+
GuttyFattyVariant,
|
|
11
|
+
HiveVariant,
|
|
12
|
+
HopperVariant,
|
|
13
|
+
IsaacVariant,
|
|
14
|
+
MegaSatanVariant,
|
|
15
|
+
MoleVariant,
|
|
16
|
+
MotherVariant,
|
|
17
|
+
PooterVariant,
|
|
18
|
+
RoundWormVariant,
|
|
19
|
+
SubHorfVariant,
|
|
20
|
+
SuckerVariant,
|
|
21
|
+
UltraGreedVariant,
|
|
22
|
+
WallCreepVariant,
|
|
23
|
+
} from "isaac-typescript-definitions";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* "Armor" refers to the damage scaling mechanic. The following list corresponds to the entities
|
|
27
|
+
* that have the "shieldStrength" field in the "entities2.xml" file, with some exceptions.
|
|
28
|
+
* (Invulnerable enemies are not included. Furthermore, Ultra Greed, Ultra Greedier, and Delirium
|
|
29
|
+
* all have damage scaling, but do not have a corresponding "shieldStrength" field.)
|
|
30
|
+
*
|
|
31
|
+
* Also see:
|
|
32
|
+
* https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
|
|
33
|
+
*
|
|
34
|
+
* We use strings instead of a type + variant tuple so that we can have O(1) lookups.
|
|
35
|
+
*/
|
|
36
|
+
export const ENTITIES_WITH_ARMOR_SET = new Set([
|
|
37
|
+
`${EntityType.POOTER}.${PooterVariant.TAINTED_POOTER}`, // 14.2
|
|
38
|
+
`${EntityType.HIVE}.${HiveVariant.TAINTED_MULLIGAN}`, // 22.3
|
|
39
|
+
`${EntityType.BOOM_FLY}.${BoomFlyVariant.TAINTED_BOOM_FLY}`, // 25.6
|
|
40
|
+
`${EntityType.HOPPER}.${HopperVariant.TAINTED_HOPPER}`, // 29.3
|
|
41
|
+
`${EntityType.SPITTY}`, // 31.1
|
|
42
|
+
`${EntityType.SUCKER}.${SuckerVariant.TAINTED_SUCKER}`, // 61.7
|
|
43
|
+
`${EntityType.ISAAC}.${IsaacVariant.BLUE_BABY_HUSH}`, // 102.2
|
|
44
|
+
`${EntityType.WALL_CREEP}.${WallCreepVariant.TAINTED_SOY_CREEP}`, // 240.3
|
|
45
|
+
`${EntityType.ROUND_WORM}.${RoundWormVariant.TAINTED_ROUND_WORM}`, // 244.2
|
|
46
|
+
`${EntityType.ROUND_WORM}.${RoundWormVariant.TAINTED_TUBE_WORM}`, // 244.3
|
|
47
|
+
`${EntityType.MEGA_SATAN}.${MegaSatanVariant.MEGA_SATAN}`, // 274.0
|
|
48
|
+
`${EntityType.MEGA_SATAN}.${MegaSatanVariant.MEGA_SATAN_RIGHT_HAND}`, // 274.1
|
|
49
|
+
`${EntityType.MEGA_SATAN}.${MegaSatanVariant.MEGA_SATAN_LEFT_HAND}`, // 274.2
|
|
50
|
+
`${EntityType.MEGA_SATAN_2}.${MegaSatanVariant.MEGA_SATAN}`, // 275.0
|
|
51
|
+
`${EntityType.MEGA_SATAN_2}.${MegaSatanVariant.MEGA_SATAN_RIGHT_HAND}`, // 275.1
|
|
52
|
+
`${EntityType.MEGA_SATAN_2}.${MegaSatanVariant.MEGA_SATAN_LEFT_HAND}`, // 275.2
|
|
53
|
+
`${EntityType.ULTRA_GREED}.${UltraGreedVariant.ULTRA_GREED}`, // 406.0
|
|
54
|
+
`${EntityType.ULTRA_GREED}.${UltraGreedVariant.ULTRA_GREEDIER}`, // 406.1
|
|
55
|
+
`${EntityType.HUSH}.0`, // 407.0
|
|
56
|
+
`${EntityType.DELIRIUM}.0`, // 412.0
|
|
57
|
+
`${EntityType.BLOOD_PUPPY}.${BloodPuppyVariant.SMALL}`, // 802.0
|
|
58
|
+
`${EntityType.BLOOD_PUPPY}.${BloodPuppyVariant.LARGE}`, // 802.1
|
|
59
|
+
`${EntityType.SUB_HORF}.${SubHorfVariant.TAINTED_SUB_HORF}`, // 812.1
|
|
60
|
+
`${EntityType.FACELESS}.${FacelessVariant.TAINTED_FACELESS}`, // 827.1
|
|
61
|
+
`${EntityType.MOLE}.${MoleVariant.TAINTED_MOLE}`, // 829.1
|
|
62
|
+
`${EntityType.GUTTED_FATTY}.${GuttyFattyVariant.GUTTED_FATTY}`, // 831.0
|
|
63
|
+
`${EntityType.GAPER_L2}.${Gaper2Variant.GAPER}`, // 850.0
|
|
64
|
+
`${EntityType.GAPER_L2}.${Gaper2Variant.HORF}`, // 850.1
|
|
65
|
+
`${EntityType.GAPER_L2}.${Gaper2Variant.GUSHER}`, // 850.2
|
|
66
|
+
`${EntityType.CHARGER_L2}.${Charger2Variant.CHARGER}`, // 855.0
|
|
67
|
+
`${EntityType.CHARGER_L2}.${Charger2Variant.ELLEECH}`, // 855.1
|
|
68
|
+
`${EntityType.SHADY}.0`, // 888.0
|
|
69
|
+
`${EntityType.MOTHER}.${MotherVariant.MOTHER_1}`, // 912.0
|
|
70
|
+
`${EntityType.MOTHER}.${MotherVariant.MOTHER_2}`, // 912.10
|
|
71
|
+
`${EntityType.DOGMA}.${DogmaVariant.TV}`, // 950.1
|
|
72
|
+
`${EntityType.DOGMA}.${DogmaVariant.ANGEL_PHASE_2}`, // 950.2
|
|
73
|
+
`${EntityType.BEAST}.${BeastVariant.BEAST}`, // 951.0
|
|
74
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_FAMINE}`, // 951.10
|
|
75
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_PESTILENCE}`, // 951.20
|
|
76
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_WAR}`, // 951.30
|
|
77
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_DEATH}`, // 951.40
|
|
78
|
+
]);
|