<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AWintertodt_damage_calculator</id>
	<title>Module:Wintertodt damage calculator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AWintertodt_damage_calculator"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Wintertodt_damage_calculator&amp;action=history"/>
	<updated>2026-05-05T17:37:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:Wintertodt_damage_calculator&amp;diff=35227&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;local p = {}  local default = require(&#039;Module:Paramtest&#039;).default_to  function truncate(num) 	local whole, decimal = math.modf(num + 0.000001) 	return whole end  function createRow(attackName, damageAmount) 	return mw.html.create(&#039;tr&#039;) 		:tag(&#039;td&#039;):wikitext(attackName .. &#039; attack&#039;):done() 		:tag(&#039;td&#039;):wikitext(damageAmount):done() end  function createHeader() 	local ret = mw.html.create(&#039;table&#039;):addClass(&#039;wikitable align-center-2&#039;):done() 	ret:tag(&#039;tr&#039;):tag(&#039;th&#039;):wikitex...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Wintertodt_damage_calculator&amp;diff=35227&amp;oldid=prev"/>
		<updated>2024-10-16T23:13:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  local default = require(&amp;#039;Module:Paramtest&amp;#039;).default_to  function truncate(num) 	local whole, decimal = math.modf(num + 0.000001) 	return whole end  function createRow(attackName, damageAmount) 	return mw.html.create(&amp;#039;tr&amp;#039;) 		:tag(&amp;#039;td&amp;#039;):wikitext(attackName .. &amp;#039; attack&amp;#039;):done() 		:tag(&amp;#039;td&amp;#039;):wikitext(damageAmount):done() end  function createHeader() 	local ret = mw.html.create(&amp;#039;table&amp;#039;):addClass(&amp;#039;wikitable align-center-2&amp;#039;):done() 	ret:tag(&amp;#039;tr&amp;#039;):tag(&amp;#039;th&amp;#039;):wikitex...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local default = require(&amp;#039;Module:Paramtest&amp;#039;).default_to&lt;br /&gt;
&lt;br /&gt;
function truncate(num)&lt;br /&gt;
	local whole, decimal = math.modf(num + 0.000001)&lt;br /&gt;
	return whole&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function createRow(attackName, damageAmount)&lt;br /&gt;
	return mw.html.create(&amp;#039;tr&amp;#039;)&lt;br /&gt;
		:tag(&amp;#039;td&amp;#039;):wikitext(attackName .. &amp;#039; attack&amp;#039;):done()&lt;br /&gt;
		:tag(&amp;#039;td&amp;#039;):wikitext(damageAmount):done()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function createHeader()&lt;br /&gt;
	local ret = mw.html.create(&amp;#039;table&amp;#039;):addClass(&amp;#039;wikitable align-center-2&amp;#039;):done()&lt;br /&gt;
	ret:tag(&amp;#039;tr&amp;#039;):tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Attack&amp;#039;):done()&lt;br /&gt;
			:tag(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Damage&amp;#039;):done()&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local firemaking = tonumber(default(args.firemakingLevel, 50))&lt;br /&gt;
	local hitpoints = tonumber(default(args.hitpointsLevel, 10))&lt;br /&gt;
	local warmItems = tonumber(default(args.warmItems, 0))&lt;br /&gt;
	local litBraziers = tonumber(default(args.litBraziers, 0))&lt;br /&gt;
&lt;br /&gt;
	local standardDamage = math.max(truncate(((16 - warmItems - (2 * litBraziers)) * (hitpoints + 1)) / firemaking), 1)&lt;br /&gt;
	local brazierDamage =  math.max(2 * truncate(((10 - warmItems) * (hitpoints + 1)) / firemaking), 2)&lt;br /&gt;
	local snowfallDamage = math.max(3 * truncate(((10 - warmItems) * (hitpoints + 1)) / firemaking), 1)&lt;br /&gt;
&lt;br /&gt;
	local ret = createHeader()&lt;br /&gt;
	ret:node(createRow(&amp;#039;Standard Periodic&amp;#039;, standardDamage))&lt;br /&gt;
	ret:node(createRow(&amp;#039;Brazier Explosion&amp;#039;, brazierDamage))&lt;br /&gt;
	ret:node(createRow(&amp;#039;Snowfall Area&amp;#039;, snowfallDamage))&lt;br /&gt;
	&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	--mw.logObject(args)&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>