dragnilar / ModDragnilarEdit

Personal Mod For Witcher 3
1 stars 1 forks source link

Add Damage Cap Of 999,999 #6

Closed dragnilar closed 4 years ago

dragnilar commented 4 years ago

Since Geralt's damage can go a lot higher with this mod, a damage cap needs to be added.

Some background on this:

The game uses floating point numbers which go into scientific notation when they exceed roughly 1,000,000 for all of the combat logs and numbers that appear when an enemy is hit. This not only looks strange, but it reeks of a bug in the internal implementation of how the game processes the floats sent into it by the scripts.

While I suspect it may be possible to come up with a hack/work-around to get the numbers to display correctly, I don't think it's going to solve the ultimate problem where we'll keep having to increase monster damage, life, resistances, etc to keep up with Geralt's damage output. I'd rather just cap it at 999,999 and be done with it, so that way we have a limit to work with as far as what feels like too long of a fight or too short of a fight at level 100 in end game DM NGP.

dragnilar commented 4 years ago

After testing this over the past few days, this appears to be done. There still may be instances where damage numbers may go over the cap (I.E. Executions on knocked down enemies / Finishers) but standard combat shouldn't have this occur if Geralt (or a monster) happens to hit for over 1,000,000 damage.