Commit bb027873 authored by Mario's avatar Mario

Add a limit to prevent ultra rare buffs

parent 0e3eea33
......@@ -202,7 +202,7 @@ void buff_NewType(entity ent, float cb)
for(e = Buff_Type_first; e; e = e.enemy)
if(buff_Available(e.items))
{
RandomSelection_Add(world, e.items, string_null, 1, 1 / e.count); // if it's already been chosen, give it a lower priority
RandomSelection_Add(world, e.items, string_null, 1, max(0.2, 1 / e.count)); // if it's already been chosen, give it a lower priority
e.count += 1;
}
ent.buffs = RandomSelection_chosen_float;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment