If I didn't have treasure hunter, what would have been in there?!?!?!!!!No chest to open?
Just go play another game.Ahhh this takes me back....
It's ded, gaem over! NADAL, DEVS DING NONG
Treasure Hunter makes you find less loot from trunks, this IS PROVEN. It's been like this since February of last year, and there's no reason to believe it's ever going to be changed.There have been 1 or 2 attempts to fix it I think.
If I didn't have treasure hunter, what would have been in there?!?!?!!!!1 cap
There have been 1 or 2 attempts to fix it I think.Yeah and everytime someone has a bad luck, I check again to find that there is nothing wrong in the code and waste my goddamn time... you know what? here you have that uber bugged code, if you will tell me what is wrong with it you will get a cookie...
if(cr.Perk[PE_TREASURE_HUNTER]>0)
{
array<Item@> items;
for(uint i=0,j=chest.GetItems(0,items);i<j;i++)
{
if(items[i].IsStackable()) items[i].SetCount((items[i].GetCount()*23)/20);
else if(Random(1,100)<=15) chest.AddItem(items[i].GetProtoId(),1,0);
}
}
Random(1,100):)
And if treasure hunter doesn't work
Sorry, this is Latin to me. Could you translate it?Code: [Select]if(cr.Perk[PE_TREASURE_HUNTER]>0)
{
array<Item@> items;
for(uint i=0,j=chest.GetItems(0,items);i<j;i++)
{
if(items[i].IsStackable()) items[i].SetCount((items[i].GetCount()*23)/20);
else if(Random(1,100)<=15) chest.AddItem(items[i].GetProtoId(),1,0);
}
}
if(items[i].IsStackable()) items[i].SetCount((items[i].GetCount()*23)/20);
you multiply by 23 and divide by 20, so when you do that with 1$, you still get 1$ :Dif(cr.Perk[PE_TREASURE_HUNTER]>0)
{
array<Item@> items;
for(uint i=0,j=chest.GetItems(0,items);i<j;i++)
{
if(items[i].IsStackable()) items[i].SetCount((items[i].GetCount()*2);
else if(Random(100,300)<=15) chest.AddItem(items[i].GetProtoId(),1,0);
}
}
on the other hand, in c++ 7/9*9 is 0 so :PYep, and that's why we multiply before division.