isaacscript-common 1.0.466 → 1.0.467
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.
|
@@ -34,6 +34,11 @@ export declare function isGlitchedCollectible(entity: Entity): boolean;
|
|
|
34
34
|
export declare function isPassiveCollectible(collectibleType: CollectibleType | int): boolean;
|
|
35
35
|
export declare function isQuestCollectible(collectibleType: CollectibleType | int): boolean;
|
|
36
36
|
export declare function removeAllCollectibles(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Helper function to remove all pickup delay on a collectible. By default, collectibles have a 20
|
|
39
|
+
* frame delay before they can be picked up by a player.
|
|
40
|
+
*/
|
|
41
|
+
export declare function removeCollectiblePickupDelay(collectible: EntityPickup): void;
|
|
37
42
|
/**
|
|
38
43
|
* Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
|
|
39
44
|
* should remove an item.
|
|
@@ -115,6 +115,14 @@ end
|
|
|
115
115
|
function ____exports.removeAllCollectibles(self)
|
|
116
116
|
removeAllMatchingEntities(nil, EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE)
|
|
117
117
|
end
|
|
118
|
+
function ____exports.removeCollectiblePickupDelay(self, collectible)
|
|
119
|
+
if collectible.Variant ~= PickupVariant.PICKUP_COLLECTIBLE then
|
|
120
|
+
error(
|
|
121
|
+
"You cannot remove pickup delay for pickups of variant: " .. tostring(collectible.Variant)
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
collectible.Wait = 0
|
|
125
|
+
end
|
|
118
126
|
function ____exports.removeCollectibleFromItemTracker(self, collectibleType)
|
|
119
127
|
local collectibleName = ____exports.getCollectibleName(nil, collectibleType)
|
|
120
128
|
Isaac.DebugString(
|