Redwall: Warlords

  • December 13, 2017, 01:37:14 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

RWL Home Page
Don't forget to check out the RWL Facebook page! Stay updated with current RWL news and events.

Author Topic: Goldmine Bug  (Read 73 times)

0 Members and 1 Guest are viewing this topic.

Briar

  • Otterpop Empress
  • Permanent Resident
  • *******
  • Posts: 1,192
  • I'm a archaeoholic
    • View Profile
    • Email
Goldmine Bug
« on: November 14, 2017, 03:51:08 PM »

172/172 ratio, ran gold mine 25 times 3 times in a row.  Got three different amounts (12m, 10m, 9m)

Didn't lose any leaders (obviously). Shouldn't it be the same amount all three times?
Logged
At the risk of ruining Briar's career by disparaging her find of the famous Sackaleaderer horse...

Quote from: Ungatt Trunn II
Yes. I wear high heels Krowdon. Any tips on how I should do my hair?

windhound

  • Fish Are Loyal
  • Administrator
  • Permanent Resident
  • ******
  • Posts: 4,943
  • omnomnom
    • MSN Messenger - windhound96@yahoo.com
    • AOL Instant Messenger - windhound96
    • Yahoo Instant Messenger - windhound96
    • View Profile
Re: Goldmine Bug
« Reply #1 on: November 14, 2017, 05:45:59 PM »

Goldmine is loot x1.8 (yes, it says double, don't ask me why it's 1.8)
The snip of code that calcs how much money you get is just:
$money = cashandfood() * 1.8;

The cashandfood function is:
$users[wizards] * $users[health] / 100 * 32 * (1 + $users[labs] / $users[land]) * (1 + $users[labs] / $users[land]) * $urace[magic] / (calcSizeBonus($users[networth]) * calcSizeBonus($users[networth]));

So:
leaders * health / 100 * 32 * (1 + huts / land)^2 * race-magic-bonus / networth-based-bonus^2

the networth-based-bonus is calculated:
function calcSizeBonus($networth) {
    if ($networth <= 100000)
        $size = 0.524;
    elseif ($networth <= 500000)
        $size = 0.887;
    elseif ($networth <= 1000000)
        $size = 1.145;
    elseif ($networth <= 10000000)
        $size = 1.294;
    elseif ($networth <= 100000000)
        $size = 1.454;
    else
        $size = 1.674;
    return $size;
}

tl:dr:  it's entirely possible to get different amounts each turn, esp if you started with low health or crossed a networth  mark 

If you still feel something is amiss post a few screenshots next time it happens
Cheers
Logged
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

Briar

  • Otterpop Empress
  • Permanent Resident
  • *******
  • Posts: 1,192
  • I'm a archaeoholic
    • View Profile
    • Email
Re: Goldmine Bug
« Reply #2 on: November 15, 2017, 09:34:24 AM »

Must have crossed a NW mark.  I'll take a look next spell run.  Thanks.
Logged
At the risk of ruining Briar's career by disparaging her find of the famous Sackaleaderer horse...

Quote from: Ungatt Trunn II
Yes. I wear high heels Krowdon. Any tips on how I should do my hair?
 


* Shoutbox

Refresh History
  • Anghan Silverfur: Haven't been here in a while . . . I doubt anybody remembers me, but I played for a good amount of time. I'm back, tho! :)
    November 13, 2017, 08:10:39 AM
  • Briar: This is why I suggested a no market round, shadow.
    November 13, 2017, 10:13:23 AM
  • Disl: Yup food is seriously over powered here.   in other codes there was a nerf where food networth diminished the more food you had, making it unviable as a finishing netting strategy.  public goods that never time out also circumvents the 100mil networth, 24.5% mission penalty when producing.
    November 13, 2017, 10:27:00 AM
  • Gen. Volkov: I agree with Briar, we should try a no market round.
    November 13, 2017, 04:33:33 PM
  • Shadow: not sure it's coded already.  if not I cam try over Christmas
    November 13, 2017, 05:44:00 PM
  • Anghan Silverfur: Quick question, nobody has to answer: didn't there use to be four or five clans in Reg mode?
    November 14, 2017, 10:11:39 AM
  • Briar: Back in the day, yes
    November 14, 2017, 03:52:27 PM
  • windhound: Used to be more than that..
    November 14, 2017, 05:23:00 PM
  • Death: so did your mom
    November 14, 2017, 11:55:07 PM
  • Anghan Silverfur: What happened?
    November 15, 2017, 08:45:50 AM
  • windhound: Hi Death!
    November 15, 2017, 09:27:23 AM
  • windhound: We're a small text-based game in an era of mobile apps.  When the game was launched there wasn't nearly as many online multiplayer games
    November 15, 2017, 09:29:34 AM
  • Anghan Silverfur: Ah.
    November 15, 2017, 12:58:35 PM
  • Briar: Has anyone played Redwall: A Warrior Reborn yet?
    November 15, 2017, 01:26:07 PM
  • Anghan Silverfur: +Briar  I'm planning on it.
    November 15, 2017, 02:56:55 PM
  • Briar: You should post your assessment on here
    November 16, 2017, 09:33:51 AM
  • Holby: Hey guys
    November 16, 2017, 06:42:59 PM
  • windhound: Hi Holbs!
    November 16, 2017, 08:12:34 PM
  • Briar: Round's up at the end of the month, right?
    December 12, 2017, 01:14:13 PM
  • Shadow: sure is
    December 12, 2017, 04:30:51 PM