isaacscript-common 12.3.8 → 12.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 +8 -7
- package/dist/isaacscript-common.lua +42 -3
- 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/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 +8 -0
- package/dist/src/sets/entitiesWithArmorSet.d.ts.map +1 -0
- package/dist/src/sets/entitiesWithArmorSet.lua +36 -0
- package/package.json +1 -1
- package/src/core/constants.ts +2 -0
- package/src/features/extraConsoleCommands/listCommands.ts +10 -1
- package/src/functions/ui.ts +7 -10
- package/src/sets/entitiesWithArmorSet.ts +58 -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 10
|
|
3427
3428
|
*/
|
|
3428
3429
|
export declare function getHUDOffsetVector(): Vector;
|
|
3429
3430
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 12.
|
|
3
|
+
isaacscript-common 12.4.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"
|
|
@@ -37547,10 +37548,9 @@ function ____exports.getScreenBottomRightPos(self)
|
|
|
37547
37548
|
return Vector(screenWidth, screenHeight)
|
|
37548
37549
|
end
|
|
37549
37550
|
function ____exports.getHUDOffsetVector(self)
|
|
37550
|
-
local defaultVector = copyVector(nil, VectorZero)
|
|
37551
37551
|
local hudOffset = math.floor(Options.HUDOffset * 10)
|
|
37552
37552
|
if hudOffset < 1 or hudOffset > 10 then
|
|
37553
|
-
return
|
|
37553
|
+
return copyVector(nil, VectorZero)
|
|
37554
37554
|
end
|
|
37555
37555
|
local x = hudOffset * 2
|
|
37556
37556
|
local y = hudOffset
|
|
@@ -46113,6 +46113,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
|
|
|
46113
46113
|
local game = ____cachedClasses.game
|
|
46114
46114
|
local sfxManager = ____cachedClasses.sfxManager
|
|
46115
46115
|
local ____constants = require("src.core.constants")
|
|
46116
|
+
local DOGMA_ROOM_GRID_INDEX = ____constants.DOGMA_ROOM_GRID_INDEX
|
|
46116
46117
|
local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
|
|
46117
46118
|
local ____constantsFirstLast = require("src.core.constantsFirstLast")
|
|
46118
46119
|
local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
|
|
@@ -46628,6 +46629,10 @@ function ____exports.disableCurses(self)
|
|
|
46628
46629
|
v.persistent.disableCurses = not v.persistent.disableCurses
|
|
46629
46630
|
printEnabled(nil, not v.persistent.disableCurses, "curses")
|
|
46630
46631
|
end
|
|
46632
|
+
function ____exports.dogma(self)
|
|
46633
|
+
setStage(nil, LevelStage.HOME, StageType.WRATH_OF_THE_LAMB)
|
|
46634
|
+
changeRoom(nil, DOGMA_ROOM_GRID_INDEX)
|
|
46635
|
+
end
|
|
46631
46636
|
function ____exports.down(self, params)
|
|
46632
46637
|
movePlayer(nil, params, Direction.DOWN)
|
|
46633
46638
|
end
|
|
@@ -52202,6 +52207,40 @@ do
|
|
|
52202
52207
|
end
|
|
52203
52208
|
end
|
|
52204
52209
|
end
|
|
52210
|
+
return ____exports
|
|
52211
|
+
end,
|
|
52212
|
+
["src.sets.entitiesWithArmorSet"] = function(...)
|
|
52213
|
+
local ____lualib = require("lualib_bundle")
|
|
52214
|
+
local Set = ____lualib.Set
|
|
52215
|
+
local __TS__New = ____lualib.__TS__New
|
|
52216
|
+
local ____exports = {}
|
|
52217
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
52218
|
+
local BeastVariant = ____isaac_2Dtypescript_2Ddefinitions.BeastVariant
|
|
52219
|
+
local BoomFlyVariant = ____isaac_2Dtypescript_2Ddefinitions.BoomFlyVariant
|
|
52220
|
+
local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
|
|
52221
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
52222
|
+
local HiveVariant = ____isaac_2Dtypescript_2Ddefinitions.HiveVariant
|
|
52223
|
+
local HopperVariant = ____isaac_2Dtypescript_2Ddefinitions.HopperVariant
|
|
52224
|
+
local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
|
|
52225
|
+
local PooterVariant = ____isaac_2Dtypescript_2Ddefinitions.PooterVariant
|
|
52226
|
+
____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
52227
|
+
Set,
|
|
52228
|
+
{
|
|
52229
|
+
(tostring(EntityType.POOTER) .. ".") .. tostring(PooterVariant.TAINTED_POOTER),
|
|
52230
|
+
(tostring(EntityType.HIVE) .. ".") .. tostring(HiveVariant.TAINTED_MULLIGAN),
|
|
52231
|
+
(tostring(EntityType.BOOM_FLY) .. ".") .. tostring(BoomFlyVariant.TAINTED_BOOM_FLY),
|
|
52232
|
+
(tostring(EntityType.HOPPER) .. ".") .. tostring(HopperVariant.TAINTED_HOPPER),
|
|
52233
|
+
tostring(EntityType.SPITTY),
|
|
52234
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
|
|
52235
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
|
|
52236
|
+
(tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.DOGMA_PHASE_1),
|
|
52237
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.BEAST),
|
|
52238
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_FAMINE),
|
|
52239
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_PESTILENCE),
|
|
52240
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_WAR),
|
|
52241
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_DEATH)
|
|
52242
|
+
}
|
|
52243
|
+
)
|
|
52205
52244
|
return ____exports
|
|
52206
52245
|
end,
|
|
52207
52246
|
}
|
|
@@ -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,C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QAAyB,CAAC;AAExD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAQ,CAAC;AAEtE,4CAA4C;AAC5C,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;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AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BvD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAyBjD;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,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)
|
|
@@ -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 10
|
|
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 10
|
|
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,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Corresponds to:
|
|
3
|
+
* https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
|
|
4
|
+
*
|
|
5
|
+
* We use the entity ID instead of type + variant tuple so that we can have O(1) lookups.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ENTITIES_WITH_ARMOR_SET: Set<string>;
|
|
8
|
+
//# sourceMappingURL=entitiesWithArmorSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitiesWithArmorSet.d.ts","sourceRoot":"","sources":["../../../src/sets/entitiesWithArmorSet.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,aAwClC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 BoomFlyVariant = ____isaac_2Dtypescript_2Ddefinitions.BoomFlyVariant
|
|
8
|
+
local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
|
|
9
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
10
|
+
local HiveVariant = ____isaac_2Dtypescript_2Ddefinitions.HiveVariant
|
|
11
|
+
local HopperVariant = ____isaac_2Dtypescript_2Ddefinitions.HopperVariant
|
|
12
|
+
local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
|
|
13
|
+
local PooterVariant = ____isaac_2Dtypescript_2Ddefinitions.PooterVariant
|
|
14
|
+
--- Corresponds to:
|
|
15
|
+
-- https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
|
|
16
|
+
--
|
|
17
|
+
-- We use the entity ID instead of type + variant tuple so that we can have O(1) lookups.
|
|
18
|
+
____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
19
|
+
Set,
|
|
20
|
+
{
|
|
21
|
+
(tostring(EntityType.POOTER) .. ".") .. tostring(PooterVariant.TAINTED_POOTER),
|
|
22
|
+
(tostring(EntityType.HIVE) .. ".") .. tostring(HiveVariant.TAINTED_MULLIGAN),
|
|
23
|
+
(tostring(EntityType.BOOM_FLY) .. ".") .. tostring(BoomFlyVariant.TAINTED_BOOM_FLY),
|
|
24
|
+
(tostring(EntityType.HOPPER) .. ".") .. tostring(HopperVariant.TAINTED_HOPPER),
|
|
25
|
+
tostring(EntityType.SPITTY),
|
|
26
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
|
|
27
|
+
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
|
|
28
|
+
(tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.DOGMA_PHASE_1),
|
|
29
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.BEAST),
|
|
30
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_FAMINE),
|
|
31
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_PESTILENCE),
|
|
32
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_WAR),
|
|
33
|
+
(tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_DEATH)
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
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);
|
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 10
|
|
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,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BeastVariant,
|
|
3
|
+
BoomFlyVariant,
|
|
4
|
+
DogmaVariant,
|
|
5
|
+
EntityType,
|
|
6
|
+
HiveVariant,
|
|
7
|
+
HopperVariant,
|
|
8
|
+
MotherVariant,
|
|
9
|
+
PooterVariant,
|
|
10
|
+
} from "isaac-typescript-definitions";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Corresponds to:
|
|
14
|
+
* https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
|
|
15
|
+
*
|
|
16
|
+
* We use the entity ID instead of type + variant tuple so that we can have O(1) lookups.
|
|
17
|
+
*/
|
|
18
|
+
export const ENTITIES_WITH_ARMOR_SET = new Set([
|
|
19
|
+
`${EntityType.POOTER}.${PooterVariant.TAINTED_POOTER}`, // 14.2
|
|
20
|
+
`${EntityType.HIVE}.${HiveVariant.TAINTED_MULLIGAN}`, // 22.3
|
|
21
|
+
`${EntityType.BOOM_FLY}.${BoomFlyVariant.TAINTED_BOOM_FLY}`, // 22.6
|
|
22
|
+
`${EntityType.HOPPER}.${HopperVariant.TAINTED_HOPPER}`, // 29.3
|
|
23
|
+
`${EntityType.SPITTY}`, // 31.1
|
|
24
|
+
// 61.7
|
|
25
|
+
// 102.2
|
|
26
|
+
// 240.3
|
|
27
|
+
// 244.2
|
|
28
|
+
// 244.3
|
|
29
|
+
// 274.0
|
|
30
|
+
// 274.1
|
|
31
|
+
// 274.2
|
|
32
|
+
// 275.0
|
|
33
|
+
// 275.1
|
|
34
|
+
// 275.2
|
|
35
|
+
// 406.0
|
|
36
|
+
// 407.0
|
|
37
|
+
// 412.0
|
|
38
|
+
// 802.0
|
|
39
|
+
// 802.1
|
|
40
|
+
// 812.1
|
|
41
|
+
// 827.1
|
|
42
|
+
// 829.1
|
|
43
|
+
// 831.0
|
|
44
|
+
// 850.0
|
|
45
|
+
// 850.1
|
|
46
|
+
// 850.2
|
|
47
|
+
// 855.0
|
|
48
|
+
// 855.1
|
|
49
|
+
// 888.0
|
|
50
|
+
`${EntityType.MOTHER}.${MotherVariant.MOTHER_1}`, // 912.0
|
|
51
|
+
`${EntityType.MOTHER}.${MotherVariant.MOTHER_2}`, // 912.10
|
|
52
|
+
`${EntityType.DOGMA}.${DogmaVariant.DOGMA_PHASE_1}`, // 950.0
|
|
53
|
+
`${EntityType.BEAST}.${BeastVariant.BEAST}`, // 951.0
|
|
54
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_FAMINE}`, // 951.10
|
|
55
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_PESTILENCE}`, // 951.20
|
|
56
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_WAR}`, // 951.30
|
|
57
|
+
`${EntityType.BEAST}.${BeastVariant.ULTRA_DEATH}`, // 951.40
|
|
58
|
+
]);
|