<?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[Changelog 2017-06-26]]></title><description><![CDATA[<p><a href="http://blog.screeps.com/2017/06/changelog-2017-06-26/" rel="nofollow noreferrer">http://blog.screeps.com/2017/06/changelog-2017-06-26/</a></p>]]></description><link>http://screeps.com/forum/topic/71/changelog-2017-06-26</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 08:19:03 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/71.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jun 2017 07:22:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Changelog 2017-06-26 on Invalid Date]]></title><description><![CDATA[<p><a href="http://blog.screeps.com/2017/06/changelog-2017-06-26/" rel="nofollow noreferrer">http://blog.screeps.com/2017/06/changelog-2017-06-26/</a></p>]]></description><link>http://screeps.com/forum/post/358</link><guid isPermaLink="true">http://screeps.com/forum/post/358</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Changelog 2017-06-26 on Invalid Date]]></title><description><![CDATA[<p>To expand step 1)</p>
<ul>
<li>
<span class="pl-smi">(damageToApply and healToApply</span> are the intents with modifiers (boosts, range) already taken into account from the senders but not the reciever.)</li>
<li>damageReduce <span class="pl-k">is calculated accounting for currently healthy boosted armor parts. (including partially-damaged parts)</span>
</li>
<li>object.hits -= damageToApply + <span class="pl-c1">Math</span>.<span class="pl-c1">round</span>(damageReduce);</li>
<li>object.hits += <span class="pl-smi">healToApply</span>;</li>
</ul>
<p>This explanation has to be paraphrasing, read the code if you want a first hand account: <a href="https://github.com/screeps/engine/blob/master/src/processor/intents/creeps/tick.js#L7" rel="nofollow noreferrer">https://github.com/screeps/engine/blob/master/src/processor/intents/creeps/tick.js#L7</a></p>
<p> </p>
<p> </p>]]></description><link>http://screeps.com/forum/post/359</link><guid isPermaLink="true">http://screeps.com/forum/post/359</guid><dc:creator><![CDATA[DomNomNom]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Changelog 2017-06-26 on Invalid Date]]></title><description><![CDATA[<p>A few issues:</p>
<ul>
<li>You can deal on an order of 5 of a resource for 0.001.  This is because utils.roundCredits does not round up due to usage of toFixed.  Deal cost is calculated correctly (except on subscription tokens, see below).</li>
<li>There are several unnecessary utils.roundCredits when calculating the deal cost.  This is because you are already rounding up the value prior to passing it into utils.roundCredits.</li>
<li>Orders on subscription tokens are rounded, not rounded up, because this is the only place the dealCost was NOT rounded up prior to sending it into utils.roundCredits.</li>
</ul>
<p>I'd PR these, but I do not know what your intentions are for these (and the last time I tried to post something about a bug to the repo, I got yelled at <img
      src="http://screeps.com/forum/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=a1k070tfs06"
      class="not-responsive emoji emoji-android emoji--stuck_out_tongue"
      title=":P"
      alt="😛"
    /> ) so I'll let you handle them.</p>]]></description><link>http://screeps.com/forum/post/360</link><guid isPermaLink="true">http://screeps.com/forum/post/360</guid><dc:creator><![CDATA[roncli]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>