isaacscript-common 1.0.479 → 1.0.480
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.
|
@@ -31,7 +31,8 @@ export declare function getAzazelBrimstoneDistance(playerOrTearHeight: EntityPla
|
|
|
31
31
|
export declare function getClosestPlayer(position: Vector): EntityPlayer;
|
|
32
32
|
/**
|
|
33
33
|
* Most characters have a 56 frame death animation (i.e. the "Death" animation).
|
|
34
|
-
* The Lost and Tainted Lost
|
|
34
|
+
* The Lost and Tainted Lost have a 38 frame death animation (i.e. the "LostDeath" animation).
|
|
35
|
+
* Tainted Forgotten have a 20 frame death animation (i.e. the "ForgottenDeath" animation).
|
|
35
36
|
*/
|
|
36
37
|
export declare function getDeathAnimationName(player: EntityPlayer): string;
|
|
37
38
|
/**
|
|
@@ -23,18 +23,18 @@ function ____exports.getPlayers(self, performExclusions)
|
|
|
23
23
|
do
|
|
24
24
|
local player = Isaac.GetPlayer(i)
|
|
25
25
|
if player == nil then
|
|
26
|
-
goto
|
|
26
|
+
goto __continue55
|
|
27
27
|
end
|
|
28
28
|
if ____exports.isChildPlayer(nil, player) then
|
|
29
|
-
goto
|
|
29
|
+
goto __continue55
|
|
30
30
|
end
|
|
31
31
|
local character = player:GetPlayerType()
|
|
32
32
|
if performExclusions and EXCLUDED_CHARACTERS:has(character) then
|
|
33
|
-
goto
|
|
33
|
+
goto __continue55
|
|
34
34
|
end
|
|
35
35
|
__TS__ArrayPush(players, player)
|
|
36
36
|
end
|
|
37
|
-
::
|
|
37
|
+
::__continue55::
|
|
38
38
|
i = i + 1
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -135,8 +135,13 @@ function ____exports.getClosestPlayer(self, position)
|
|
|
135
135
|
end
|
|
136
136
|
function ____exports.getDeathAnimationName(self, player)
|
|
137
137
|
local character = player:GetPlayerType()
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
if (((character == PlayerType.PLAYER_THELOST) or (character == PlayerType.PLAYER_THELOST_B)) or (character == PlayerType.PLAYER_THESOUL)) or (character == PlayerType.PLAYER_THESOUL_B) then
|
|
139
|
+
return "LostDeath"
|
|
140
|
+
end
|
|
141
|
+
if character == PlayerType.PLAYER_THEFORGOTTEN_B then
|
|
142
|
+
return "ForgottenDeath"
|
|
143
|
+
end
|
|
144
|
+
return "Death"
|
|
140
145
|
end
|
|
141
146
|
function ____exports.getLastHeart(self, player)
|
|
142
147
|
local hearts = player:GetHearts()
|
|
@@ -272,14 +277,14 @@ function ____exports.getPlayerIndexVanilla(self, playerToFind)
|
|
|
272
277
|
do
|
|
273
278
|
local player = Isaac.GetPlayer(i)
|
|
274
279
|
if player == nil then
|
|
275
|
-
goto
|
|
280
|
+
goto __continue64
|
|
276
281
|
end
|
|
277
282
|
local playerHash = GetPtrHash(player)
|
|
278
283
|
if playerHash == playerToFindHash then
|
|
279
284
|
return i
|
|
280
285
|
end
|
|
281
286
|
end
|
|
282
|
-
::
|
|
287
|
+
::__continue64::
|
|
283
288
|
i = i + 1
|
|
284
289
|
end
|
|
285
290
|
end
|