View unanswered posts | View active topics It is currently Sat May 10, 2025 6:23 pm



Reply to topic  [ 7 posts ] 
 Formula for the affect of defense on your ship? 
Author Message
User avatar

Joined: Wed Mar 14, 2012 7:08 pm
Posts: 39
Reply with quote
I was wondering if there is a formula for how defense changes how much you are damaged when attacked or attacking. I hope you understand what I am saying. I know the damage cap on a ship is decks divided by two, but by how much does defense decrease it?

_________________
Rank 150-200 Konqul Excavator
Image Image


Fri May 04, 2012 8:50 pm
Profile
User avatar

Joined: Thu Nov 25, 2010 6:49 pm
Posts: 8964
Reply with quote
Wiki Equations wrote:
Combat Formula Approximation
Damage per shot = tanh( attack*(random(0.6 to 1.666)) / (defense * 5) ) * damagecap
damagecap = 2.5 * npcrank ; for players, damagecap = 0.5 * decks in most cases.
The tanh() function is almost linear up to 0.40, therefore if your attack ~= npcdefense , you will do about 0.20 * 2.5 = 0.50 * npcrank (your rank in the case of matched npcs). If your attack > 2 * npcdefense , you will do about npcrank in damage.
To hit around the damagecap on npcs, you need around 10 * npcdefense (~96.4% of cap).
The "attack randomization" is not linear, but a large data sample indicates the lower multiplier is 0.6 and the upper is the inverse, 1/0.6 = 1.666, and most of that range is linear. The shape of the randomization appears to be a truncated arctanh() function. The average effective attack multiplier is about 1.10.



That's the long math-speak version. Short version is you (or they) need 5 points of additional attack to balance out 1 additional point of defense for most of the damage range. Due to the nature of the tanh function, the closer you get to hitting for damage cap, the higher the attack vs defense ratio needs to be.

_________________
Ranks 400+ Join us in exploring..
ImageImage

[20:40] Wredz: just hacked a massive extremely rich minting planet from someone.. thats the best planet i ever hacked
[20:43] DarthFlagitious: is it spearmint or peppermint?


Fri May 04, 2012 9:09 pm
Profile WWW
User avatar

Joined: Wed Mar 14, 2012 7:08 pm
Posts: 39
Reply with quote
Ok thanks

_________________
Rank 150-200 Konqul Excavator
Image Image


Fri May 04, 2012 11:39 pm
Profile

Joined: Sat Jul 03, 2010 1:18 pm
Posts: 604
Reply with quote
Thanks darth

this is the best explanation of how this works that i have seen

_________________
Image
Once Fabulon, now known as Thebloodynine
Most exasperated leader at Project Anarchy. Don't talk to me till the caffeine hit is in
Have given up caffeine- probably best just not to talk to me


Sat May 05, 2012 4:46 am
Profile
User avatar

Joined: Thu Nov 25, 2010 6:49 pm
Posts: 8964
Reply with quote
Deleted because sometimes I am an over-thinking moron.... :?

_________________
Ranks 400+ Join us in exploring..
ImageImage

[20:40] Wredz: just hacked a massive extremely rich minting planet from someone.. thats the best planet i ever hacked
[20:43] DarthFlagitious: is it spearmint or peppermint?


Last edited by Darth Flagitious on Sat May 05, 2012 12:59 pm, edited 1 time in total.



Sat May 05, 2012 4:56 am
Profile WWW
User avatar

Joined: Mon Sep 05, 2011 9:16 am
Posts: 2737
Reply with quote
Darth Flagitious wrote:
I'd also like to point out that it SEEMS that the damage equation for base combat is a derivative of that with a factor of 10x somewhere. Recently TU battled a base that had roughly the same att/def as my ship and it was consistently doing about 10x the damage to me that I was doing to it.

I'm thinking that it may be { DPS = tanh( attack * (random(0.6 to 1.666)) / (defense * 5) ) * ( damagecap / 10 ) } when attacking a base.


what is your ship size? ~5200? if so then your damage cap is ~2600
Level 5 base damage cap is 260 that's the factor of 10

_________________
Image
Image


Sat May 05, 2012 6:22 am
Profile

Joined: Fri Sep 16, 2011 12:04 am
Posts: 1998
Reply with quote
Darth Flagitious wrote:
That's the long math-speak version. Short version is you (or they) need 5 points of additional attack to balance out 1 additional point of defense for most of the damage range. Due to the nature of the tanh function, the closer you get to hitting for damage cap, the higher the attack vs defense ratio needs to be.


That's a misunderstanding of the formula XD
For example, 1000 atk vs 400 def, it takes exactly 2.5 atk to balance out 1 pt of defense increase

The real short version is: Unless the ratio between atk and def is very big, a 1% increase in def will pretty much translate to 1% to 1.2% decrease in damage recieved.
It takes 3 times as much attack as the defense(from 2 different ship ofc) to make further attack go into notable "diminishing return".
And this formula is true forever and ever toward the other end(that is to say, long as attack is less than 3 times def, 1% increase in def means 1%-1.2% decrease in dmg, in fact the bigger the def is compartively speaking, the closer it becomes 1% exactly)

_________________
当所有传奇写下第一个篇章 原来所谓英雄也和我们一样
私は一発の銃弾、銃弾は人の心を持たない。故に、何も考えない。ただ、目的に向かって飛ぶだけ


Sat May 05, 2012 6:51 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.