<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://stardew.fastobject.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ACalcgrangepoints</id>
	<title>Module:Calcgrangepoints - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stardew.fastobject.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ACalcgrangepoints"/>
	<link rel="alternate" type="text/html" href="https://stardew.fastobject.net/index.php?title=Module:Calcgrangepoints&amp;action=history"/>
	<updated>2026-10-29T03:27:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://stardew.fastobject.net/index.php?title=Module:Calcgrangepoints&amp;diff=128151&amp;oldid=prev</id>
		<title>imported&gt;Margotbean: Created page with &quot;local p = {}  function p.cgp(frame) 	--Template must call Calcsellprice and send result here 	local price = tonumber(frame.args.p) 	--quality must be 0, 1, 2, or 4 	local qual...&quot;</title>
		<link rel="alternate" type="text/html" href="https://stardew.fastobject.net/index.php?title=Module:Calcgrangepoints&amp;diff=128151&amp;oldid=prev"/>
		<updated>2023-03-18T19:35:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.cgp(frame) 	--Template must call Calcsellprice and send result here 	local price = tonumber(frame.args.p) 	--quality must be 0, 1, 2, or 4 	local qual...&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;
function p.cgp(frame)&lt;br /&gt;
	--Template must call Calcsellprice and send result here&lt;br /&gt;
	local price = tonumber(frame.args.p)&lt;br /&gt;
	--quality must be 0, 1, 2, or 4&lt;br /&gt;
	local quality = tonumber(frame.args.q)&lt;br /&gt;
	local totalpoints = 0&lt;br /&gt;
&lt;br /&gt;
	totalpoints = quality + 1&lt;br /&gt;
			&lt;br /&gt;
	if (price &amp;gt;= 20) then totalpoints = totalpoints + 1 end&lt;br /&gt;
	if (price &amp;gt;= 90) then totalpoints = totalpoints + 1 end&lt;br /&gt;
	if (price &amp;gt;= 200) then totalpoints = totalpoints + 1 end&lt;br /&gt;
	if (price &amp;gt;= 300 and quality &amp;lt; 2) then&lt;br /&gt;
		totalpoints = totalpoints + 1 end&lt;br /&gt;
	if (price &amp;gt;= 400 and quality &amp;lt; 1) then&lt;br /&gt;
		totalpoints = totalpoints + 1 end	&lt;br /&gt;
	&lt;br /&gt;
	return totalpoints&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Margotbean</name></author>
	</entry>
</feed>