Fish Size and RNG

For anything related to the various mini-games in Legend of Legaia.
User avatar
K73SK
Level 89
Posts: 3953
Joined: Tue Feb 01, 2011 7:00 am
Location: USA
Contact:

Re: Fish Size and RNG

Post by K73SK » Thu Jun 19, 2014 9:24 pm

Just so you can do the math for bitshifting... When you bitshift to the left, you're multiplying by powers of 2. In other words, a shift to the left of 3 would be 2^3. It's the opposite for going to the right (but because I never found myself shifting to the right when making programs, I don't recall the exact way to calculate it).

But the easiest way to know it is to simply shift the binary values to the right or left, depending on which one you're doing. The name in itself explains exactly what's happening. ;)

And cool finding. You have much more time on your hands than I, lol
Donate to legendoflegaia.net if you are one who wants to keep it alive! http://www.legendoflegaia.net/donate.html

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: Fish Size and RNG

Post by meth962 » Fri Jun 20, 2014 9:26 am

I knew what was happening but how to display it in formula. I suppose could have done a * 2^2. In that case shifting right will just be a / 2^2. It's an annoying enough equation where people can't just do the math in their head or be bothered to throw it on a calculator.

Don't really have much time these days. I've been doing this here and there like an hour before bed instead of cleaning or 30 mins before having to meet people for a movie haha.
まさかつあがつ

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: Fish Size and RNG

Post by meth962 » Mon Jul 21, 2014 1:34 pm

Okay I condensed the formula down when I was trying to update my walkthrough. It's a little more friendly, but still requires a calculator :P

points = (size + 2496) * worth / 204,800
まさかつあがつ

Post Reply