isaacscript-common 1.0.453 → 1.0.454
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.
|
@@ -36,7 +36,7 @@ export declare function isGlitchedCollectible(entity: Entity): boolean;
|
|
|
36
36
|
* Returns true if the item type in the item config is equal to `ItemType.ITEM_PASSIVE` or
|
|
37
37
|
* `ItemType.ITEM_FAMILIAR`.
|
|
38
38
|
*/
|
|
39
|
-
export declare function isPassiveCollectible(collectibleType: CollectibleType | int):
|
|
39
|
+
export declare function isPassiveCollectible(collectibleType: CollectibleType | int): boolean;
|
|
40
40
|
export declare function isQuestCollectible(collectibleType: CollectibleType | int): boolean;
|
|
41
41
|
export declare function removeAllCollectibles(): void;
|
|
42
42
|
/**
|
|
@@ -118,7 +118,7 @@ function ____exports.isGlitchedCollectible(self, entity)
|
|
|
118
118
|
end
|
|
119
119
|
function ____exports.isPassiveCollectible(self, collectibleType)
|
|
120
120
|
local itemType = ____exports.getCollectibleItemType(nil, collectibleType)
|
|
121
|
-
return (itemType == ItemType.ITEM_PASSIVE) or ItemType.ITEM_FAMILIAR
|
|
121
|
+
return (itemType == ItemType.ITEM_PASSIVE) or (itemType == ItemType.ITEM_FAMILIAR)
|
|
122
122
|
end
|
|
123
123
|
function ____exports.isQuestCollectible(self, collectibleType)
|
|
124
124
|
return ____exports.collectibleHasTag(nil, collectibleType, 32768)
|