mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
remove already installed att from random pool
This commit is contained in:
parent
aa45ac7acc
commit
7f284d9175
@ -154,6 +154,8 @@ function SWEP:RollRandomAtts(tree, nofuther)
|
||||
if math.Rand(0, 100) > attchance then continue end
|
||||
local atts = ARC9.GetAttsForCats(slottbl.Category or "")
|
||||
|
||||
if slottbl.Installed then table.RemoveByValue(atts, slottbl.Installed) end -- remove already installed att from pool
|
||||
|
||||
-- if math.Rand(0, 100) > 100 / (table.Count(atts) + 1) then slottbl.Installed = nil continue end
|
||||
|
||||
-- local att = table.Random(atts)
|
||||
|
Loading…
Reference in New Issue
Block a user