isaacscript-common 1.2.96 → 1.2.99
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.
|
@@ -57,7 +57,8 @@ function getCurrentHealthValue(self, player, healthType)
|
|
|
57
57
|
do
|
|
58
58
|
local soulHearts = player:GetSoulHearts()
|
|
59
59
|
local blackHeartsBitmask = player:GetBlackHearts()
|
|
60
|
-
local
|
|
60
|
+
local blackHeartsBits = countSetBits(nil, blackHeartsBitmask)
|
|
61
|
+
local blackHearts = blackHeartsBits * 2
|
|
61
62
|
return soulHearts - blackHearts
|
|
62
63
|
end
|
|
63
64
|
end
|
|
@@ -70,8 +71,10 @@ function getCurrentHealthValue(self, player, healthType)
|
|
|
70
71
|
____cond11 = ____cond11 or ____switch11 == HealthType.BLACK
|
|
71
72
|
if ____cond11 then
|
|
72
73
|
do
|
|
73
|
-
local
|
|
74
|
-
|
|
74
|
+
local blackHeartsBitmask = player:GetBlackHearts()
|
|
75
|
+
local blackHeartsBits = countSetBits(nil, blackHeartsBitmask)
|
|
76
|
+
local blackHearts = blackHeartsBits * 2
|
|
77
|
+
return blackHearts
|
|
75
78
|
end
|
|
76
79
|
end
|
|
77
80
|
____cond11 = ____cond11 or ____switch11 == HealthType.GOLDEN
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
|
|
3
|
-
local Set = ____lualib.Set
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
2
|
+
require("lualib_bundle");
|
|
5
3
|
local ____exports = {}
|
|
6
4
|
local postPEffectUpdate, FLAGS_WHEN_PONY_IS_ACTIVE, v
|
|
7
5
|
local ____errors = require("errors")
|
|
@@ -296,8 +296,9 @@ function ____exports.getAzazelBrimstoneDistance(self, playerOrTearHeight)
|
|
|
296
296
|
return 32 - 2.5 * tearHeight
|
|
297
297
|
end
|
|
298
298
|
function ____exports.getBlackHearts(self, player)
|
|
299
|
-
local
|
|
300
|
-
|
|
299
|
+
local blackHeartsBitmask = player:GetBlackHearts()
|
|
300
|
+
local blackHeartBits = countSetBits(nil, blackHeartsBitmask)
|
|
301
|
+
return blackHeartBits * 2
|
|
301
302
|
end
|
|
302
303
|
function ____exports.getClosestPlayer(self, position)
|
|
303
304
|
local closestPlayer = nil
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -92,7 +92,7 @@ end
|
|
|
92
92
|
function ____exports.inDeathCertificateArea(self)
|
|
93
93
|
local roomStageID = ____exports.getRoomStageID(nil)
|
|
94
94
|
local roomSubType = ____exports.getRoomSubType(nil)
|
|
95
|
-
return roomStageID == 35 and (roomSubType == 33 or roomSubType ==
|
|
95
|
+
return roomStageID == 35 and (roomSubType == 33 or roomSubType == 34)
|
|
96
96
|
end
|
|
97
97
|
function ____exports.changeRoom(self, roomGridIndex)
|
|
98
98
|
local game = Game()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.99",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@zamiell/typescript-to-lua": "1.4.0",
|
|
29
|
-
"isaac-typescript-definitions": "1.0.
|
|
30
|
-
"isaacscript-lint": "1.0.
|
|
31
|
-
"isaacscript-tsconfig": "1.1.8",
|
|
28
|
+
"@zamiell/typescript-to-lua": "^1.4.0",
|
|
29
|
+
"isaac-typescript-definitions": "^1.0.355",
|
|
30
|
+
"isaacscript-lint": "^1.0.84",
|
|
31
|
+
"isaacscript-tsconfig": "^1.1.8",
|
|
32
32
|
"typedoc": "^0.22.12",
|
|
33
33
|
"typescript": "4.5.5"
|
|
34
34
|
}
|