isaacscript-common 1.0.582 → 1.0.583
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.
|
@@ -27,6 +27,8 @@ function ____exports.getPlayerHealth(self, player)
|
|
|
27
27
|
local rottenHearts = player:GetRottenHearts()
|
|
28
28
|
local brokenHearts = player:GetBrokenHearts()
|
|
29
29
|
local subPlayer = player:GetSubPlayer()
|
|
30
|
+
local soulCharges = player:GetEffectiveSoulCharge()
|
|
31
|
+
local bloodCharges = player:GetEffectiveBloodCharge()
|
|
30
32
|
if character == PlayerType.PLAYER_THEFORGOTTEN and subPlayer ~= nil then
|
|
31
33
|
maxHearts = boneHearts * 2
|
|
32
34
|
boneHearts = 0
|
|
@@ -71,7 +73,9 @@ function ____exports.getPlayerHealth(self, player)
|
|
|
71
73
|
boneHearts = boneHearts,
|
|
72
74
|
goldenHearts = goldenHearts,
|
|
73
75
|
rottenHearts = rottenHearts,
|
|
74
|
-
brokenHearts = brokenHearts
|
|
76
|
+
brokenHearts = brokenHearts,
|
|
77
|
+
soulCharges = soulCharges,
|
|
78
|
+
bloodCharges = bloodCharges
|
|
75
79
|
}
|
|
76
80
|
end
|
|
77
81
|
function ____exports.setPlayerHealth(self, player, playerHealth)
|
|
@@ -110,5 +114,10 @@ function ____exports.setPlayerHealth(self, player, playerHealth)
|
|
|
110
114
|
player:AddHearts(playerHealth.hearts)
|
|
111
115
|
player:AddGoldenHearts(playerHealth.goldenHearts)
|
|
112
116
|
player:AddBrokenHearts(playerHealth.brokenHearts)
|
|
117
|
+
if character == PlayerType.PLAYER_BETHANY then
|
|
118
|
+
player:SetSoulCharge(playerHealth.soulCharges)
|
|
119
|
+
elseif character == PlayerType.PLAYER_BETHANY_B then
|
|
120
|
+
player:SetBloodCharge(playerHealth.bloodCharges)
|
|
121
|
+
end
|
|
113
122
|
end
|
|
114
123
|
return ____exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.583",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^1.0.
|
|
28
|
+
"isaac-typescript-definitions": "^1.0.327",
|
|
29
29
|
"isaacscript-lint": "^1.0.77",
|
|
30
30
|
"typedoc": "^0.22.10",
|
|
31
31
|
"typescript": "^4.5.4",
|