.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   E9n9 Bless (http://forum.shrapnelgames.com/showthread.php?t=41149)

Gregstrom November 6th, 2008 04:43 PM

Re: E9n9 Bless
 
And in This Thread, we get:

Quote:

Originally Posted by PhilD (Post 486793)
Back in Dom2, there was a "diminishing returns" protection formula, where protection values didn't exactly add up together. Putting, say, a 10 prot. armor on a creature with a 10 natural prot. didn't result in 20 prot, but something lower.

IIRC (but it's highly likely that I don't remember it 100% correctly), the formula was something like

FinalProt = 40 - (40-ProtA)*(40-ProtB)/40

That is, count a protection of 40 as "maximum", and, say, protection of 10 as "25% protection"; then protection values don't add, rather the "unprotected" percentages are multiplied.

Thus, a natural protection of 10 lets 75% go through, and an armor protection of 20 lets 50% go through - so adding the two together would let 37.5% go through, resulting in a protection of 62.5% of 40, that is, 25.

Now, I don't know how bonuses to protections would be taken into account with this formula, or even if it was completely correct, or if it could explain what you observed in Dom3...


Gregstrom November 6th, 2008 05:01 PM

Re: E9n9 Bless
 
I think PhilD's formula could come out as:
40 -( 40 * ( ( ((40-Natural Prot) /40)) * ( (40-Armour Prot)/40) ))

For 5 base and 10 armour (as per chrispedersen's example), that's

40 - ( 40 * ( (35/40) * (30/40) ) ) = 13.75

After making an Excel spreadsheet do the calculating:

5 base and 14 armour is 17.25

7 base and 14 armour is 18.55

20 base and 0 armour is 20

0 base and 20 armour is also 20


This seems pretty close to values in the game.

vfb November 6th, 2008 05:37 PM

Re: E9n9 Bless
 
Thanks!

The formula can also be expressed as:

Protection = natural + armor - (natural * armor/40)

Gregstrom November 6th, 2008 05:45 PM

Re: E9n9 Bless
 
Woohoo! Just when they're needed, someone who can simplify an equation turns up!

MaxWilson November 7th, 2008 05:49 PM

Re: E9n9 Bless
 
Quote:

Originally Posted by vfb (Post 650787)
Thanks!

The formula can also be expressed as:

Protection = natural + armor - (natural * armor/40)

Yes. That's where the original formula that Chris cited ("Prot = BaseProt + ArmorProt * (1 - BaseProt/40).") comes from.

If you want a way to visualize this, imagine that Base Prot and Armor Prot are two dimensions of a protection "square" with sidelength 40, and the total Prot is the proportion of total area covered (times 40). So if you have Base Prot 20 and Armor Prot 20, you wind up with

Code:

  Base Prot ->                          40
A ****************************************
r ****************************************
m ****************************************
o ****************************************
r ****************************************
  ****************************************
P ****************************************
r ****************************************
o ****************************************
t ****************************************
  ********************--------------------
| ********************--------------------
V ********************--------------------
  ********************--------------------
  ********************--------------------
  ********************--------------------
  ********************--------------------
  ********************--------------------
4 ********************--------------------
0 ********************--------------------

Thus, you get 3/4 of 40 prot, which is Prot 30. If one dimension is half full, you only get half the benefit from the other dimension because half of it is already covered.

Thus, armor should be a low priority for an E10 Cyclops because it's very hard to raise total Prot significantly. And E9 does not combine as well with Berserk as you might hope, because they act on different forms of Prot.

-Max


All times are GMT -4. The time now is 04:35 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.