Skip to content

Commit 772460d

Browse files
authored
Merge pull request #31 from epfly6/fix-1
- ItemPool changes - ItemConfig changes
2 parents cb71631 + 17c7a0f commit 772460d

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

src/docs/repentogon_changes/ItemPool.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,20 @@ 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)
115+
end
116+
117+
---Makes the available once again, allowing it to naturally spawned even if previously remove. Also restores all instances of the collectible to it's initialWeight in every item pool.
118+
---@param collectibleType CollectibleType
119+
function ItemPool:ResetCollectible(collectibleType)
104120
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)