fodev.net
15.08.2009 - 23.06.2013
"Wasteland is harsh"
Home Forum Help Login Register
  • April 29, 2024, 06:41:04 am
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Play WikiBoy BugTracker Developer's blog
Pages: [1] 2

Author Topic: Treasure Hunter is bogus (Proof!)  (Read 2772 times)

Gimper

  • You gotta be kidding me... shoo shoo mighty hacker
  • Offline
Treasure Hunter is bogus (Proof!)
« on: May 24, 2013, 05:58:45 am »

I have proof treasure hunter is fake.
If I didn't have treasure hunter, what would have been in there?!?!?!!!!

S.T.A.L.K.E.R

  • Some random guy
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #1 on: May 24, 2013, 06:00:49 am »

Just go play another game.

It's dead, game over! NADA, DEVS DOING NOTHING
Logged
Back In-Game :D

the underground

  • very grumpy bear
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #2 on: May 24, 2013, 07:29:18 am »

If I didn't have treasure hunter, what would have been in there?!?!?!!!!
No chest to open?
Logged
nobody wants him so he just stares at the world
planning the vengeance that he will soon unfurl

Kill A VC For Democracy!!!!

Mike Crosser

  • Gambling: 60%
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #3 on: May 24, 2013, 10:13:52 am »

Just go play another game.

It's ded, gaem over! NADAL, DEVS DING NONG
Ahhh this takes me back....
Re: Treasure Hunter is bogus (Proof!)
« Reply #4 on: May 24, 2013, 11:53:39 am »

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.
« Last Edit: May 24, 2013, 11:58:22 am by Cheesey Dean »
Logged
Knowledge is the key to the mind which is a mysterious doorway through a long dark hallway

Mike Crosser

  • Gambling: 60%
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #5 on: May 24, 2013, 12:05:54 pm »

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.

Mayck

  • Rotator
  • ...shhhh...
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #6 on: May 24, 2013, 04:03:06 pm »

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...
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);
}
}
Logged
Re: Treasure Hunter is bogus (Proof!)
« Reply #7 on: May 24, 2013, 06:11:35 pm »

Quote
Random(1,100)
:)
Logged

Gimper

  • You gotta be kidding me... shoo shoo mighty hacker
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #8 on: May 24, 2013, 06:51:04 pm »

Another one.

And if treasure hunter doesn't work, then why even have it in the game? Maybe remove it, and make a USEFUL perk.

JovankaB

  • Guest
Re: Treasure Hunter is bogus (Proof!)
« Reply #9 on: May 24, 2013, 07:08:24 pm »

And if treasure hunter doesn't work

But it works. Just because you find one cap once in a while it doesn't mean it's not working.
Logged

Marko

  • Treeman say map unsafe.
    • Updating the 2238 wiki
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #10 on: May 24, 2013, 07:15:57 pm »

TH works fine. Without it, you find fewer caps in those footlockers*. With TH, the bottom limit of the caps range is still 1, but the upper limit is much higher than without it.

*Unless the number of caps you find is 1, in which case you don't find any less. ;)
Logged
Be patient with me. I'm from the USA so my English isn't very good.

the underground

  • very grumpy bear
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #11 on: May 24, 2013, 10:10:02 pm »

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);
}
}
Sorry, this is Latin to me. Could you translate it?
Logged
nobody wants him so he just stares at the world
planning the vengeance that he will soon unfurl

Kill A VC For Democracy!!!!
Re: Treasure Hunter is bogus (Proof!)
« Reply #12 on: May 24, 2013, 10:49:49 pm »

Code: [Select]
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$ :D

on the other hand, in c++ 7/9*9 is 0 so :P
Logged
Re: Treasure Hunter is bogus (Proof!)
« Reply #13 on: May 26, 2013, 11:39:18 am »

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()*2);
else if(Random(100,300)<=15) chest.AddItem(items[i].GetProtoId(),1,0);
}
}

repaired it

Mayck

  • Rotator
  • ...shhhh...
  • Offline
Re: Treasure Hunter is bogus (Proof!)
« Reply #14 on: May 26, 2013, 11:43:55 am »

on the other hand, in c++ 7/9*9 is 0 so :P
Yep, and that's why we multiply before division.
Logged
Pages: [1] 2
 

Page created in 0.068 seconds with 21 queries.