<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Negative damage on some hits]]></title><description><![CDATA[<p dir="auto">&lt;quote&gt;&gt; Continued with a different bug - When shooting arrows, I hit him with 3. Out of them, 2 did the normal damage, however, 1 did NEGATIVE damage, and actually healed him. So, just a thought on why that happened?&lt;/quote&gt;</p>
<p dir="auto">OK this happens VERY rarely, but for some reason in the calculation for damage, every once in a long while you actually hit for negative damage. Very weird. I put some tracking in the logfiles that looks like this:</p>
<p dir="auto">damage right before hurting: negative dam, ch a black kitten, damage -12, dt 217, dam_type 20, victim Thorin</p>
<p dir="auto">I ran th rough the code about a million times and can't see what is causing it. We could put in a hack to set the damage to positive, but I would rather resolve the problem. Areo, can you have a look at this section of the code and see if you can spot anything that I didn't?</p>
]]></description><link>https://forum.v2.sentiencemud.net/topic/366/negative-damage-on-some-hits</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 22:48:20 GMT</lastBuildDate><atom:link href="https://forum.v2.sentiencemud.net/topic/366.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Apr 2006 19:30:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Negative damage on some hits on Sat, 29 Apr 2006 23:23:07 GMT]]></title><description><![CDATA[<p dir="auto">While on the topic of DAMAGE… you might want to check into the problem with having negative DAMROLL. The code (according to what I've seen on stat mob) performs a log() on the damroll and massages it to get the effective damroll. Well, if you have negative damrolls, that causes log() to go undefined, reading as infinite. I assume the code puts a cap on this as I've only seen reports of the damage being ~5k damage per HIT.</p>
]]></description><link>https://forum.v2.sentiencemud.net/post/3600</link><guid isPermaLink="true">https://forum.v2.sentiencemud.net/post/3600</guid><dc:creator><![CDATA[Nibelung]]></dc:creator><pubDate>Sat, 29 Apr 2006 23:23:07 GMT</pubDate></item></channel></rss>