Redwall: Warlords

  • March 07, 2021, 05:02:30 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

RWL Home Page
If you find a bug in the game, contact The Lady Shael, or post a topic in the Bugs forum.

Author Topic: Land Grab Calculation  (Read 133 times)

0 Members and 1 Guest are viewing this topic.

Ryu

  • RWL Member
  • **
  • Posts: 15
  • HADOUKEN!!!
    • View Profile
Land Grab Calculation
« on: January 18, 2021, 03:46:54 AM »

On my last run I got a 1 acre land grab. Twice, on two different empires. I was using Drive on both empires with 10,000+ land. QMT code had attacks being 0-7%  rng with minimum of 1 acre being taken if successful. So 1/700 possibility of 1 acre.

Was wondering what the formula is for Redwall.
Logged

windhound

  • Fish Are Loyal
  • Administrator
  • Permanent Resident
  • ******
  • Posts: 5,129
  • omnomnom
    • MSN Messenger - windhound96@yahoo.com
    • AOL Instant Messenger - windhound96
    • Yahoo Instant Messenger - windhound96
    • View Profile
Re: Land Grab Calculation
« Reply #1 on: January 18, 2021, 04:08:16 PM »

Hm. 
So Drive gives a 1.1x modifier

The land loss calc is:
$loss = mt_rand(1, ceil(($enemy[$building_type] * 0.07 + 2) * $modifier));   

So if the enemy had 10,000 acres all in huts an attack has a chance to take between 1 and 772 acres.  The Drive modifier is applied to the max possible, not the amount taken (...I'd make an argument for it being applied after the calc, but I didn't write it). 
Basically the same as QMT, RNJesus was not on your side.   
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

Ryu

  • RWL Member
  • **
  • Posts: 15
  • HADOUKEN!!!
    • View Profile
Re: Land Grab Calculation
« Reply #2 on: January 18, 2021, 05:47:49 PM »

Drive on a 10k empire would have a possibility of being 1-772 acre grab. It simply increases the range of RNG. I understand now.  Much obliged Windy.
Logged
 


* Shoutbox

Refresh History
  • JesterAverageJoe: You like it!
    August 31, 2020, 05:07:29 PM
  • Disl: lol
    September 01, 2020, 06:14:33 AM
  • windhound: Reset!
    September 01, 2020, 09:33:51 AM
  • JesterAverageJoe: Much obliged, noble sir :D
    September 01, 2020, 09:40:46 AM
  • JesterAverageJoe: ~10 active players?
    September 28, 2020, 11:30:55 AM
  • JesterAverageJoe: If only we could start next set w/ such popular enthusiasm :D
    September 28, 2020, 11:31:59 AM
  • JesterAverageJoe: Will the most honorable admin do the... um.. honors?
    October 01, 2020, 05:30:01 PM
  • windhound: It is done
    October 02, 2020, 07:18:08 AM
  • JesterAverageJoe: yo dawg, I heard you like shouts, so I posted a shout in your shout box... as prompts can be an accessible means for me to participate in the community :D
    November 30, 2020, 05:22:13 PM
  • windhound: I do like shouts
    December 09, 2020, 08:58:54 AM
  • windhound: Happy New Year!
    December 31, 2020, 10:29:19 PM
  • Ryu: Happy New Year!
    December 31, 2020, 11:40:39 PM
  • JesterAverageJoe: Happy New Year :D
    January 01, 2021, 04:44:23 AM
  • JesterAverageJoe: this is your courtesy reset alarm, Feel free to follow up with your correspondence as convenience permits!
    January 31, 2021, 05:52:15 PM
  • windhound: Knew I was forgetting something
    February 01, 2021, 09:08:40 PM
  • The Obliterator: Hi everyone how are things going?
    February 04, 2021, 10:56:55 PM
  • windhound: Hey Oblit!
    February 05, 2021, 04:07:36 PM
  • The Obliterator: Hey Windy long time no see
    February 05, 2021, 04:55:57 PM
  • JesterAverageJoe: Quick! Reset while I'm ahead ;P
    February 28, 2021, 05:39:07 PM
  • windhound: I mean, you're still ahead of the landfarm
    February 28, 2021, 07:04:21 PM