Damage modifications
#5
Nice write up Jarulf. I have a few points that may need some minor clarifications, but first could youpoint me to the memory address that this starts at or the ordinal that it uses? I am not really any good at looking straight at the code like this but figure this may be a place to start along with the old write you did on this for v1.08.

Quote:4. If target has "half freeze duration", set chill and freeze duration to half the value
Is this checking a boolean value or a test if condition is greater than zero (true)? There have been a couple of complaints pointing that wearing two such items is canceling the effect form working. If the game is adding two boolean values of 1 then you would get 1+1=0 or false condition for wearing two items with these effects. I suspect that it really just that the testers were not too good at getting accurate measurements.

Quote:For a player target, apply the difficulty penalty (-40/-100 in night/hell). The penalty is half that in classic and in expansion after the completion of the appropriate quest. The penalty is applied to all resistances (including poison duration reduction) except physical and magic resistance.
I take this is only applied to the players. Is this being applied to the hirelings too? more in the next section...

Quote:Cap the resistance at -100% or at the upper cap. The upper cap base is 75% (except for phsyical were it is 50%). This upper cap base can be increased to 95% through +max resistance items for all resistances except physical and poison length duration (this includes when cold resistance is applied to chill and freeze duration where the +max cold resistance would be applied).
Is this cap of 75% applied only the players? How about the hirelings?

In the beta test version it was possible to get the hirelings to the point that they were in some cases immune to certain effects. Apparently this had to do with either a high level hireling being used in a lower difficulty where the peanlty was not enough to knock their calculated resistance below zero. Or it may have been that they had enough resistance gear on to boost their total to over 100%. I did not test this directly for hirelings, but I did check on a similar case with some of the monsters and minions (valkyrie and skeletons) that they could in fact gain an unlisted immunity to an element type by having certain +resistance% gear equiped with natural level of resistance. I have not checked to see if there were any changes to this in the final version yet.

Towards the end of the code section, did the damage sanity checks for doing negative amounts get moved from just the total to being done seperately for each type before totalling? It appears that has been changed in the final version from the way it was in the betas.
Reply


Messages In This Thread
Damage modifications - by Jarulf - 11-08-2003, 09:20 PM
Damage modifications - by Guest - 11-08-2003, 10:17 PM
Damage modifications - by Jarulf - 11-08-2003, 10:22 PM
Damage modifications - by AssA - 11-08-2003, 11:08 PM
Damage modifications - by Ruvanal - 11-08-2003, 11:44 PM
Damage modifications - by Guest - 11-08-2003, 11:52 PM
Damage modifications - by Jarulf - 11-09-2003, 07:51 AM
Damage modifications - by Jarulf - 11-09-2003, 08:05 AM
Damage modifications - by Jarulf - 11-09-2003, 08:06 AM
Damage modifications - by Ruvanal - 11-09-2003, 08:07 AM
Damage modifications - by GentlemanLoser - 11-09-2003, 10:36 AM
Damage modifications - by Jarulf - 11-09-2003, 12:24 PM
Damage modifications - by Guest - 11-09-2003, 06:44 PM
Damage modifications - by GentlemanLoser - 11-09-2003, 07:02 PM
Damage modifications - by Jarulf - 11-09-2003, 09:53 PM
Damage modifications - by Jarulf - 11-09-2003, 09:55 PM
Damage modifications - by Jarulf - 11-09-2003, 10:07 PM
Damage modifications - by GentlemanLoser - 11-09-2003, 11:28 PM
Damage modifications - by Tommi - 11-28-2003, 03:44 PM
Damage modifications - by Brista - 11-28-2003, 04:06 PM
Damage modifications - by adeyke - 11-28-2003, 04:09 PM
Damage modifications - by Guest - 11-28-2003, 05:52 PM
Damage modifications - by wsbchicago - 11-30-2003, 09:08 PM
Damage modifications - by librarian - 12-01-2003, 11:53 AM
Damage modifications - by Caaroid - 12-01-2003, 12:06 PM
Damage modifications - by Crystalion - 12-02-2003, 12:52 AM
Damage modifications - by librarian - 12-02-2003, 12:48 PM
Damage modifications - by Tommi - 12-04-2003, 12:19 PM
Damage modifications - by Guest - 12-04-2003, 01:47 PM
Damage modifications - by godfeast - 12-04-2003, 03:52 PM
Damage modifications - by Tommi - 12-05-2003, 10:19 AM
Damage modifications - by WarBlade - 12-08-2003, 08:42 AM
Damage modifications - by Ferengi - 12-08-2003, 09:58 AM
Damage modifications - by Ruvanal - 12-08-2003, 10:16 AM
Damage modifications - by greatdane - 12-08-2003, 01:16 PM
Damage modifications - by Crystalion - 12-08-2003, 10:28 PM
Damage modifications - by Ferengi - 12-08-2003, 10:50 PM
Damage modifications - by Ferengi - 12-08-2003, 11:18 PM
Damage modifications - by Guest - 12-08-2003, 11:29 PM
Damage modifications - by Crystalion - 12-09-2003, 02:07 AM
Damage modifications - by whyBish - 12-09-2003, 05:27 AM
Damage modifications - by Tommi - 12-09-2003, 08:51 AM
Damage modifications - by Crystalion - 12-09-2003, 09:40 AM
Damage modifications - by Guest - 12-09-2003, 04:34 PM
Damage modifications - by Jarulf - 12-09-2003, 06:53 PM
Damage modifications - by Nadreck - 12-09-2003, 11:15 PM
Damage modifications - by Crystalion - 12-10-2003, 03:01 AM
Damage modifications - by lemekim - 12-10-2003, 04:41 AM
Damage modifications - by Guest - 12-10-2003, 07:18 PM
Damage modifications - by Crystalion - 12-10-2003, 07:40 PM
Damage modifications - by Crystalion - 12-10-2003, 08:06 PM
Damage modifications - by Guest - 12-10-2003, 08:19 PM
Damage modifications - by AtomicKitKat - 12-10-2003, 10:15 PM
Damage modifications - by Jarulf - 12-10-2003, 10:17 PM
Damage modifications - by Crystalion - 12-11-2003, 12:43 AM
Damage modifications - by Jarulf - 12-11-2003, 08:24 AM
Damage modifications - by greatdane - 12-12-2003, 05:44 AM
Damage modifications - by Squalish - 12-24-2003, 07:44 PM
Damage modifications - by Crystalion - 12-25-2003, 04:44 AM
Damage modifications - by librarian - 12-25-2003, 01:31 PM
Damage modifications - by Crystalion - 12-27-2003, 01:30 AM
Damage modifications - by Tommi - 12-27-2003, 08:25 AM
Damage modifications - by librarian - 12-27-2003, 09:18 AM
Damage modifications - by Crystalion - 01-17-2004, 08:16 AM
Damage modifications - by librarian - 01-19-2004, 11:19 PM
Damage modifications - by Crystalion - 01-26-2004, 01:08 PM
Damage modifications - by Tharn - 03-02-2004, 09:27 AM
Damage modifications - by Baajikiil - 03-02-2004, 07:49 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)