Redwall: Warlords

  • July 20, 2018, 01:29:42 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

RWL Home Page
Are your Leaders dancing in the rain? Try out the Ferret race on Turbo!

Author Topic: Goldmine Bug  (Read 246 times)

0 Members and 1 Guest are viewing this topic.

Briar

  • Otterpop Empress
  • Permanent Resident
  • *******
  • Posts: 1,206
  • 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: 5,019
  • 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,206
  • 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
  • Shadow: I'm not overly surprised. In terms of an active game I think we died with the rest of them, there's just more of a sense of community here so people stick around anyway.
    July 13, 2018, 09:24:32 AM
  • The Lady Shael: It's funny how we have our foot in two communities (Redwall and Prom) and now it's one of the few active sites left in both communities.
    July 13, 2018, 01:34:46 PM
  • The Lady Shael: RWL ftw
    July 13, 2018, 01:34:49 PM
  • Gen. Volkov: RWL Forever!
    July 13, 2018, 02:44:48 PM
  • Death: Apparently so. I have to play games with like, graphics now. It feels dirty.
    July 13, 2018, 08:56:25 PM
  • Krowdon: No graphics just virtual rats
    July 14, 2018, 01:46:57 PM
  • Shadow: virtual rats are the only good kind of rats
    July 16, 2018, 11:18:28 AM
  • Krowdon: You should send me 30 billion of them k thx
    July 16, 2018, 11:38:24 AM
  • The Lady Shael: And waesels
    July 16, 2018, 11:55:17 AM
  • austfit: and staotes
    July 16, 2018, 01:13:59 PM
  • Krowdon: And Skiffs
    July 16, 2018, 10:45:07 PM
  • Krowdon: This is a good thread send me all these things
    July 16, 2018, 10:45:14 PM
  • Shadow: baots
    July 17, 2018, 05:28:25 AM
  • austfit: and  wokres and laedrs
    July 17, 2018, 09:13:36 AM
  • The Lady Shael: moer waesels
    July 17, 2018, 12:23:47 PM
  • austfit: i give ten wasels
    July 19, 2018, 10:06:56 AM
  • austfit: no moar
    July 19, 2018, 10:07:00 AM
  • Shadow: vowels
    Today at 10:54:25 AM
  • Krowdon: Yeah! No more vowels
    Today at 11:25:26 AM
  • Krowdon: jst cnsnnts
    Today at 11:25:49 AM