isaacscript-common 1.2.24 → 1.2.25
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.
|
@@ -16,3 +16,4 @@ export declare function getFlyingCollectibles(pruneConditionalItems: boolean): S
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function getFlyingTrinkets(): Set<CollectibleType | int>;
|
|
18
18
|
export declare function hasFlyingTemporaryEffect(player: EntityPlayer): boolean;
|
|
19
|
+
export declare function isFlyingCharacter(player: EntityPlayer): boolean;
|
|
@@ -9,6 +9,14 @@ local getCollectiblesForCacheFlag = ____collectibleCacheFlag.getCollectiblesForC
|
|
|
9
9
|
local ____set = require("functions.set")
|
|
10
10
|
local copySet = ____set.copySet
|
|
11
11
|
local deleteSetsFromSet = ____set.deleteSetsFromSet
|
|
12
|
+
local FLYING_CHARACTERS = __TS__New(Set, {
|
|
13
|
+
PlayerType.PLAYER_AZAZEL,
|
|
14
|
+
PlayerType.PLAYER_THELOST,
|
|
15
|
+
PlayerType.PLAYER_THESOUL,
|
|
16
|
+
PlayerType.PLAYER_THELOST_B,
|
|
17
|
+
PlayerType.PLAYER_JACOB2_B,
|
|
18
|
+
PlayerType.PLAYER_THESOUL_B
|
|
19
|
+
})
|
|
12
20
|
local FLYING_TRINKETS = __TS__New(Set, {TrinketType.TRINKET_BAT_WING, TrinketType.TRINKET_AZAZELS_STUMP})
|
|
13
21
|
function ____exports.getFlyingCollectibles(self, pruneConditionalItems)
|
|
14
22
|
local collectiblesWithFlyingCacheFlag = getCollectiblesForCacheFlag(nil, CacheFlag.CACHE_FLYING)
|
|
@@ -41,4 +49,8 @@ function ____exports.hasFlyingTemporaryEffect(self, player)
|
|
|
41
49
|
end
|
|
42
50
|
return false
|
|
43
51
|
end
|
|
52
|
+
function ____exports.isFlyingCharacter(self, player)
|
|
53
|
+
local character = player:GetPlayerType()
|
|
54
|
+
return FLYING_CHARACTERS:has(character)
|
|
55
|
+
end
|
|
44
56
|
return ____exports
|