Skip to content

Commit d24e753

Browse files
committed
couple of things
- ItemConfig.CanRerollCollectible is static func - Documented ItemPool:PickCollectible
1 parent cb71631 commit d24e753

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/docs/repentogon_changes/ItemPool.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,15 @@ end
101101
---Retrieves the total number of itempools in the game, including custom itempools.
102102
---@return integer
103103
function ItemPool:GetNumItemPools()
104+
end
105+
106+
---Returns the raw result of GetCollectible(), without any of the filtering applied by the original function. If the pool has completely ran out of repicks then this function will return nil.
107+
---
108+
---If RNG is not set, its initialized with `RNG(Random(), 4)`
109+
---@param poolType ItemPoolType
110+
---@param decrease? boolean @default: `false`
111+
---@param rng? RNG
112+
---@param collectibleFlags? GetCollectibleFlag @default: `0`
113+
---@return { itemID: CollectibleType, initialWeight: number, weight: number, decreaseBy: number, removeOn: number, isUnlocked: boolean } | nil
114+
function ItemPool:PickCollectible(poolType, decrease, rng, collectibleFlags)
104115
end

src/docs/repentogon_changes/itemconfig/ItemConfig.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---Returns true if the collectible can be rerolled.
22
---@param collectible CollectibleType
33
---@return boolean
4-
function ItemConfig_Class:CanRerollCollectible(collectible)
4+
function ItemConfig_Class.CanRerollCollectible(collectible)
55
end
66

77
---Returns a table of ItemConfigItem objects with the provided tag.

0 commit comments

Comments
 (0)