Jump to content
DarkMatters Celebrates
19 Years of Wyntertyde in Ancaria

From the Sacred 2 Christmas Island Soundtrack
Click to Open Player!

chattius

How is Sacred 2 Weapon Damage Calculated

Recommended Posts

The maximum unarmed damage that can be achieved trough creature bonuses (flat damage) appears to be 4294967. At 4294968 the damage becomes 0, and at 4294969 the damage becomes 1.

But I don't know yet if this limit is only for the flat damage, the total damage (including the attribute bonus, percentage bonuses, etc.) or the final damage that is dealt to a creature (after armor, mitigation, etc.).

I know that life leech % suffers from a similar limit. Probably the very same one.

 

  • Like! 1
Link to comment

The 2147483648 hitpoints appear to be fully functional. The heartbeat sound plays constantly, which is annoying, but the low health ping seems to trigger at the correct spot. I couldn't increase the damage of the wolf above 4294967 (as described in my previous post). Crits overflow too, becoming 858993. But, to speed things up, I gathered several wolves to attack me at the same time. All the way to 0...

Edit:

2147483648 hitpoints are achieved at LifeStep = 21474730 and LifeBase = ~1195 (and character level 200).

At LifeBase = 1279, the hitpoints, according to the tooltip, are 42. But it takes quite a long time (probably the same as above) for the group of wolves to take me down. So I believe my hitpoints are still over 2 billion. The 42 hitpoints never decrease, except from the last bite.

At LifeBase = 1280, the hitpoints, according to the tooltip, are still 42, but this time I die immediately to the wolf. I think this is the point that the hitpoints start working normally again. Edit: Not quite. I lowered the damage of the wolf to 1, but he still one-shots me.

Edit: I increased LifeBase to 1286. Now the tooltip shows 45 hitpoints. The first hit of the wolf (for 1 damage) brings me down to 2 hitpoints. The next hit - to 1 hitpoint. And the third one kills me.

Edited by Maneus
  • Like! 1
Link to comment

LifeStep = 429396
LifeBase = 48
BaseHitpoints according to my formula: 42949674
TotalHitpoints according to my formula: 42949674
Hitpoints according to the tooltip: 42949672 (2 less because of precision loss)
The heartbeat sound does not trigger when the game starts.

LifeStep = 429396
LifeBase = 49
BaseHitpoints according to my formula: 42949674.5
TotalHitpoints according to my formula: 42949675
Hitpoints according to the tooltip: 42949676 (1 more because of precision loss)
The heartbeat sound triggers when the game starts.

In the second example, after taking 1000 damage, the hitpoints become 42948672. That's 1004 less.

Also, I noticed that after a certain point (earlier than the above), receiving 1 damage has no effect on the current hitpoints.

So far it's a big mistery. I'll think about how to approach this. I don't really want to test overflows, but finding a "safe" hitpoint value seems important.

  • Like! 1
Link to comment
2 hours ago, Maneus said:

I don't really want to test overflows, but finding a "safe" hitpoint value seems important.

I wouldn't consider anything beyond the tooltip overflow "safe". After all you wouldn't be able to notice if some of your life was missing... :connie_xmas-moose:

Link to comment

Regarding energy shields

The parameters balanceShieldRegDelayCombatFactor and balanceShieldRegDelayDangerFactor appear to be unused.

The shield does not regenerate (naturally) at all while in combat.

When it comes to the regular hitpoints, the tooltip (from the inventory screen) automatically switches between the out-of-combat and in-combat regeneration rates. But this doesn't happen for the energy shield regeneration rate - it is always the out-of-combat regeneration rate that is shown.

For example: The hitpoint regeneration rate changes from 485.1 to 9.7, but the energy shield regeneration rate is 600.7 in both cases.

On 10/29/2024 at 10:42 PM, Maneus said:

Finally, the parameter LifeRegenerationDelayTime determines how long the in-combat mode lasts. In the base game it is set to 500, so that means 5 seconds.

The above statement is true for the energy shield as well.

And I can now confirm that the Shield Regeneration +X% bonus from Warding Energy Mastery does not work at all (or it does something else entirely).

The tooltip (for the hitpoints) still updates every 1 second. The energy shield bar behaves in the same way as the health bar. The flat energy shield regeneration (what the Temple Guardian can get from the combat art modification) behaves just like the regular in-combat regeneration. It always regenerates some amount between hits. No surprises here.

 

Edited by Maneus
Link to comment

I've been doing some tests to figure out how damage works for minions (initially here).

It turns out that the parameter DamageFactorDiff is applied only when damage is dealt to the player's character, not between the creatures.

The parameter LifeFactorDiff is applied to the minions as normal.

The parameter Enemy_weapondamage is applied to the minions as well.

The skills Tactics Lore and Sword Lore don't appear to do anything for creatures. At least, Sword Lore doesn't increase the Attack Value and Tactics Lore doesn't increase the damage. Instead, the creatures make use of a single Enemy Lore skill which gives Attack Value, Damage +% and possibly other things. But having skills like Sword Lore can still be useful when it comes to item modifiers that are based on them.

 

Edited by Maneus
  • Like! 1
Link to comment

An interesting occurence with energy shields:

I gave the wolf 10000 flat damage. He has nothing else. All relevant parameters are set to 1000. So he does exactly 10000 damage.

My character has 12015 hitpoints and 12015 energy shield hitpoints. The energy shield, by default, absorbs 50% of the damage.

After taking the 10000 damage, my hitpoints become 7015 (as expected), but my energy shield hitpoints become 11309.

If I lower the damage to 1000, then everything works as expected. Will be investigating.

  • Like! 1
Link to comment

The damage proportions in the opponent's health bar are misleading. In this case, the creature has Conversion damage to Ice 85.7%. The total damage is 346 and 297 of that is Ice.

302977097_conversionbar.png.fe61f56f2b155cc45fe38fc25cc0d067.png

With Conversion damage to Ice 0% (ValueOfBonus = 1), the opponent does 346 total damage and 1 of that is Ice. But the health bar shows the same proportions.

Edited by Maneus
  • Like! 1
Link to comment
On 11/26/2024 at 7:05 PM, Maneus said:

I'm gonna need some help from a friend :cow:

He is... gone! This is unprecedented! We lost our pumpkinheaded dancing cow for good! :sigh: I think he finally ran out of T-energy in the end, and mutated back to whatever he had been before. Maybe he'll find another energy leak in the system again and return. Until then, keep your science going sir, although I can't add anything of value to them, I really like reading about all these experiments  you do!

 

Edited by Sethi22
  • Appreciation 1
Link to comment

Thank you, gogo.

And I'm always happy to know that people are reading and enjoying this thread. So thank you too, Sethi.

Now, let me try to summon our dearest pumpkin cow again :cow:

  • Like! 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
  • Create New...