<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mcbbs.wiki/index.php?action=history&amp;feed=atom&amp;title=%E5%BE%AE%E4%BB%B6%3ASaltMCBBSTools</id>
	<title>微件:SaltMCBBSTools - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mcbbs.wiki/index.php?action=history&amp;feed=atom&amp;title=%E5%BE%AE%E4%BB%B6%3ASaltMCBBSTools"/>
	<link rel="alternate" type="text/html" href="https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;action=history"/>
	<updated>2026-05-11T12:25:00Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.40.3</generator>
	<entry>
		<id>https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=35514&amp;oldid=prev</id>
		<title>Sheep-realms：​文本替换 - 替换“mcbbs-wiki.cn”为“mcbbs.wiki”</title>
		<link rel="alternate" type="text/html" href="https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=35514&amp;oldid=prev"/>
		<updated>2022-07-21T06:21:01Z</updated>

		<summary type="html">&lt;p&gt;文本替换 - 替换“mcbbs-wiki.cn”为“mcbbs.wiki”&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2022年7月21日 (四) 14:21的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l296&quot;&gt;第296行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第296行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     let MCBBSTOOLSTYLE = `&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     let MCBBSTOOLSTYLE = `&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.salt-acquire-wealth-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-acquire-wealth-simulator::after{content:&quot;致富卡模拟器&quot;;font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-acquire-wealth-simulator::before{content:&quot;@author Salt @license CC BY-NC-SA&quot;;font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-acquire-wealth-simulator,.salt-acquire-wealth-simulator&amp;gt;*{box-sizing:border-box;transition:0.3s ease}.salt-acquire-wealth-simulator .resul{width:60%;height:25rem;padding:.375rem;margin:0 0 0 0;float:right;overflow-y:scroll;outline:1px solid #ccc}.salt-acquire-wealth-simulator .resul li{height:1.25rem;margin-left:2.25rem;margin-bottom:0;list-style:decimal;border-bottom:1px solid #ccc;transition:0.25s ease;white-space:pre}.salt-acquire-wealth-simulator .resul li:last-child{border-bottom:none}.salt-acquire-wealth-simulator .resul li:hover{background-color:#fff9}.salt-acquire-wealth-simulator .input{width:calc(40% - 1rem);margin:0 1rem 0 0;float:left}.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-acquire-wealth-simulator .sim:hover,.salt-acquire-wealth-simulator .cls:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-acquire-wealth-simulator .sim:active,.salt-acquire-wealth-simulator .cls:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-acquire-wealth-simulator .resshow{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;outline:1px solid #ccc;white-space:pre-line;float:left}.salt-miner-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-miner-simulator::after{content:&quot;挖矿模拟器&quot;;font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-miner-simulator::before{content:&quot;@author Salt @license CC BY-NC-SA&quot;;font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-miner-simulator,.salt-miner-simulator&amp;gt;*{box-sizing:border-box;transition:0.3s ease}.salt-miner-simulator .resul{width:100%;height:240px;max-height:300px;padding:.375rem;margin:0 0 0 0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;overflow-y:scroll;outline:1px solid #ccc;text-align:center;align-items:center}.salt-miner-simulator .resul li{width:100%;margin:auto;list-style:none;transition:0.25s ease;white-space:pre}.salt-miner-simulator .resul li:hover{background-color:var(--bgcolor, #fff9)}.salt-miner-simulator .resul li.common{--bgcolor:#fff9}.salt-miner-simulator .resul li.rare{--bgcolor:rgba(128,191,255,0.4);filter:drop-shadow(0px 0px 4px #80bfff)}.salt-miner-simulator .resul li.epic{--bgcolor:#df80ff66;filter:drop-shadow(0px 0px 6px #df80ff)}.salt-miner-simulator .resul li.legend{--bgcolor:#ffdf8066;filter:drop-shadow(0px 0px 8px #ffdf80)}.salt-miner-simulator .resul li img,.salt-miner-simulator .resul li span{width:74px;margin:0 auto;display:block;text-align:center}.salt-miner-simulator .resul li span{width:96px}.salt-miner-simulator .sim{width:calc(50% - 1rem);padding:.5rem;margin:1rem .5rem 0 .5rem;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-miner-simulator .sim:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-miner-simulator .sim:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-miner-simulator .sim:nth-of-type(1)::before{background-image:url(https://patchwiki.biligame.com/images/mc/6/63/58aatekitx9pn6kx9ji0few8cxgx06r.png)}.salt-miner-simulator .sim:nth-of-type(2)::before{background-image:url(https://mcbbs&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-&lt;/del&gt;wiki&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.cn&lt;/del&gt;/images/e/e7/Diamond_Pickaxe_JE3_BE3.png)}.salt-miner-simulator .sim::before{content:&quot;&quot;;background-size:cover;display:inline-block;height:1.2em;width:1.2em;line-height:1.2em;vertical-align:sub}@media screen and (max-width: 960px){.salt-acquire-wealth-simulator{width:100%}.salt-acquire-wealth-simulator .resul,.salt-acquire-wealth-simulator .input,.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls,.salt-acquire-wealth-simulator .resshow{width:100%;white-space:pre}.salt-acquire-wealth-simulator .input{margin-top:.5rem}.salt-acquire-wealth-simulator .resul{height:13.75rem}.salt-miner-simulator{width:100%}.salt-miner-simulator .resul li{padding:0}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.salt-acquire-wealth-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-acquire-wealth-simulator::after{content:&quot;致富卡模拟器&quot;;font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-acquire-wealth-simulator::before{content:&quot;@author Salt @license CC BY-NC-SA&quot;;font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-acquire-wealth-simulator,.salt-acquire-wealth-simulator&amp;gt;*{box-sizing:border-box;transition:0.3s ease}.salt-acquire-wealth-simulator .resul{width:60%;height:25rem;padding:.375rem;margin:0 0 0 0;float:right;overflow-y:scroll;outline:1px solid #ccc}.salt-acquire-wealth-simulator .resul li{height:1.25rem;margin-left:2.25rem;margin-bottom:0;list-style:decimal;border-bottom:1px solid #ccc;transition:0.25s ease;white-space:pre}.salt-acquire-wealth-simulator .resul li:last-child{border-bottom:none}.salt-acquire-wealth-simulator .resul li:hover{background-color:#fff9}.salt-acquire-wealth-simulator .input{width:calc(40% - 1rem);margin:0 1rem 0 0;float:left}.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-acquire-wealth-simulator .sim:hover,.salt-acquire-wealth-simulator .cls:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-acquire-wealth-simulator .sim:active,.salt-acquire-wealth-simulator .cls:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-acquire-wealth-simulator .resshow{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;outline:1px solid #ccc;white-space:pre-line;float:left}.salt-miner-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-miner-simulator::after{content:&quot;挖矿模拟器&quot;;font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-miner-simulator::before{content:&quot;@author Salt @license CC BY-NC-SA&quot;;font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-miner-simulator,.salt-miner-simulator&amp;gt;*{box-sizing:border-box;transition:0.3s ease}.salt-miner-simulator .resul{width:100%;height:240px;max-height:300px;padding:.375rem;margin:0 0 0 0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;overflow-y:scroll;outline:1px solid #ccc;text-align:center;align-items:center}.salt-miner-simulator .resul li{width:100%;margin:auto;list-style:none;transition:0.25s ease;white-space:pre}.salt-miner-simulator .resul li:hover{background-color:var(--bgcolor, #fff9)}.salt-miner-simulator .resul li.common{--bgcolor:#fff9}.salt-miner-simulator .resul li.rare{--bgcolor:rgba(128,191,255,0.4);filter:drop-shadow(0px 0px 4px #80bfff)}.salt-miner-simulator .resul li.epic{--bgcolor:#df80ff66;filter:drop-shadow(0px 0px 6px #df80ff)}.salt-miner-simulator .resul li.legend{--bgcolor:#ffdf8066;filter:drop-shadow(0px 0px 8px #ffdf80)}.salt-miner-simulator .resul li img,.salt-miner-simulator .resul li span{width:74px;margin:0 auto;display:block;text-align:center}.salt-miner-simulator .resul li span{width:96px}.salt-miner-simulator .sim{width:calc(50% - 1rem);padding:.5rem;margin:1rem .5rem 0 .5rem;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-miner-simulator .sim:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-miner-simulator .sim:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-miner-simulator .sim:nth-of-type(1)::before{background-image:url(https://patchwiki.biligame.com/images/mc/6/63/58aatekitx9pn6kx9ji0few8cxgx06r.png)}.salt-miner-simulator .sim:nth-of-type(2)::before{background-image:url(https://mcbbs&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;wiki/images/e/e7/Diamond_Pickaxe_JE3_BE3.png)}.salt-miner-simulator .sim::before{content:&quot;&quot;;background-size:cover;display:inline-block;height:1.2em;width:1.2em;line-height:1.2em;vertical-align:sub}@media screen and (max-width: 960px){.salt-acquire-wealth-simulator{width:100%}.salt-acquire-wealth-simulator .resul,.salt-acquire-wealth-simulator .input,.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls,.salt-acquire-wealth-simulator .resshow{width:100%;white-space:pre}.salt-acquire-wealth-simulator .input{margin-top:.5rem}.salt-acquire-wealth-simulator .resul{height:13.75rem}.salt-miner-simulator{width:100%}.salt-miner-simulator .resul li{padding:0}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;`;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;`;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     let ore = {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     let ore = {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mcbbs_wiki:diff::1.12:old-28596:rev-35514 --&gt;
&lt;/table&gt;</summary>
		<author><name>Sheep-realms</name></author>
	</entry>
	<entry>
		<id>https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=28596&amp;oldid=prev</id>
		<title>Salt lovely：​图片链接修复</title>
		<link rel="alternate" type="text/html" href="https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=28596&amp;oldid=prev"/>
		<updated>2021-03-27T15:02:55Z</updated>

		<summary type="html">&lt;p&gt;图片链接修复&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2021年3月27日 (六) 23:02的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l130&quot;&gt;第130行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第130行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             for (let i = 0; i &amp;lt; res.length; i++) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             for (let i = 0; i &amp;lt; res.length; i++) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 let x = res[i].split(&amp;#039;|&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 let x = res[i].split(&amp;#039;|&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 let src = &#039;https://attachment.mcbbs.net/common/&#039; + x[0], alt = x[1];&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 let src = &#039;https://attachment.mcbbs.net&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/data/myattachment&lt;/ins&gt;/common/&#039; + x[0], alt = x[1];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 let li = document.createElement(&amp;#039;li&amp;#039;), img = document.createElement(&amp;#039;img&amp;#039;), span = document.createElement(&amp;#039;span&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 let li = document.createElement(&amp;#039;li&amp;#039;), img = document.createElement(&amp;#039;img&amp;#039;), span = document.createElement(&amp;#039;span&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 img.src = src;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 img.src = src;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mcbbs_wiki:diff::1.12:old-25116:rev-28596 --&gt;
&lt;/table&gt;</summary>
		<author><name>Salt lovely</name></author>
	</entry>
	<entry>
		<id>https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=25116&amp;oldid=prev</id>
		<title>Salt lovely：​添加了保底机制</title>
		<link rel="alternate" type="text/html" href="https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=25116&amp;oldid=prev"/>
		<updated>2020-12-26T07:27:08Z</updated>

		<summary type="html">&lt;p&gt;添加了保底机制&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年12月26日 (六) 15:27的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l108&quot;&gt;第108行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第108行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         s10btn.addEventListener(&amp;#039;click&amp;#039;, () =&amp;gt; {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         s10btn.addEventListener(&amp;#039;click&amp;#039;, () =&amp;gt; {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             res = [];&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             res = [];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             for (let i = 0; i &amp;lt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10&lt;/del&gt;; i++) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             for (let i = 0; i &amp;lt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;9&lt;/ins&gt;; i++) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 res.push(ore.reward[randReward(ore.chance) || 0]);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 res.push(ore.reward[randReward(ore.chance) || 0]);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            if (checkOre()) { // 保底机制&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                res.push(ore.reward[randReward(ore.chance) || 0])&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            } else {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                res.push(ore.reward[randReward(ore.chance.slice(13)) + 13 || 13])&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             showOre();&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             showOre();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         });&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         });&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        function checkOre() {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            for (let r of res) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                if (r.indexOf(&#039;|epic&#039;) &gt; 0 || r.indexOf(&#039;|legend&#039;) &gt; 0) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    return true&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            return false&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         function showOre() {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         function showOre() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             resul.innerHTML = &amp;#039;&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             resul.innerHTML = &amp;#039;&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mcbbs_wiki:diff::1.12:old-24865:rev-25116 --&gt;
&lt;/table&gt;</summary>
		<author><name>Salt lovely</name></author>
	</entry>
	<entry>
		<id>https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=24865&amp;oldid=prev</id>
		<title>Salt lovely：​.</title>
		<link rel="alternate" type="text/html" href="https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=24865&amp;oldid=prev"/>
		<updated>2020-12-17T08:45:02Z</updated>

		<summary type="html">&lt;p&gt;.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年12月17日 (四) 16:45的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l179&quot;&gt;第179行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第179行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     function randInt(max = 750, min = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/del&gt;) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     function randInt(max = 750, min = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1&lt;/ins&gt;) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         if (min &amp;gt; max) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         if (min &amp;gt; max) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             let temp = max;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             let temp = max;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l204&quot;&gt;第204行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第204行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     class wsr {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     class wsr {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         constructor(el, winStandard = 500, bottom = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/del&gt;, top = 750) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         constructor(el, winStandard = 500, bottom = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1&lt;/ins&gt;, top = 750) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             this.res = []; // 存放结果&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             this.res = []; // 存放结果&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             this.totalRes = 0;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             this.totalRes = 0;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Salt lovely</name></author>
	</entry>
	<entry>
		<id>https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=23838&amp;oldid=prev</id>
		<title>Salt lovely：​类名为salt-acquire-wealth-simulator和salt-miner-simulator，目前没有决定用法，你们可以先拿去MCBBS水帖。</title>
		<link rel="alternate" type="text/html" href="https://mcbbs.wiki/index.php?title=%E5%BE%AE%E4%BB%B6:SaltMCBBSTools&amp;diff=23838&amp;oldid=prev"/>
		<updated>2020-11-21T12:18:43Z</updated>

		<summary type="html">&lt;p&gt;类名为salt-acquire-wealth-simulator和salt-miner-simulator，目前没有决定用法，你们可以先拿去MCBBS水帖。&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;最近写的两个小工具，类名为salt-acquire-wealth-simulator和salt-miner-simulator，目前没有决定用法，你们可以先拿去MCBBS水帖。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;salt-acquire-wealth-simulator&amp;quot;&amp;gt;致富卡模拟器&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;salt-miner-simulator&amp;quot;&amp;gt;挖矿模拟器&amp;lt;/div&amp;gt;{{#Widget:SaltMCBBSTools}}&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;script&amp;gt;&lt;br /&gt;
&amp;#039;use strict&amp;#039;;&lt;br /&gt;
// @author Salt&lt;br /&gt;
// @license CC BY-NC-SA&lt;br /&gt;
(function () {&lt;br /&gt;
    let prefix = &amp;#039;[MCBBS小工具]&amp;#039;;&lt;br /&gt;
    function main() {&lt;br /&gt;
        wealthSim();&lt;br /&gt;
        mineSim();&lt;br /&gt;
        addStyle(MCBBSTOOLSTYLE, &amp;#039;MCBBSTOOL&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;
    function wealthSim() {&lt;br /&gt;
        let elems = document.querySelectorAll(&amp;#039;.salt-acquire-wealth-simulator:not([done])&amp;#039;);&lt;br /&gt;
        log(&amp;#039;开始安装致富卡模拟器&amp;#039;);&lt;br /&gt;
        if (elems.length &amp;lt; 1) {&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
        for (let i = 0; i &amp;lt; elems.length; i++) {&lt;br /&gt;
            wealthSimulator(elems[i]);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    function wealthSimulator(el) {&lt;br /&gt;
        let simbtn = document.createElement(&amp;#039;div&amp;#039;);&lt;br /&gt;
        simbtn.textContent = &amp;#039;模拟致富&amp;#039;;&lt;br /&gt;
        simbtn.classList.add(&amp;#039;sim&amp;#039;);&lt;br /&gt;
        let clsbtn = document.createElement(&amp;#039;div&amp;#039;);&lt;br /&gt;
        clsbtn.textContent = &amp;#039;清空&amp;#039;;&lt;br /&gt;
        clsbtn.classList.add(&amp;#039;cls&amp;#039;);&lt;br /&gt;
        let resshow = document.createElement(&amp;#039;div&amp;#039;);&lt;br /&gt;
        resshow.textContent = &amp;#039;统计数据:&amp;#039;;&lt;br /&gt;
        resshow.classList.add(&amp;#039;resshow&amp;#039;);&lt;br /&gt;
        let simipt = document.createElement(&amp;#039;input&amp;#039;);&lt;br /&gt;
        simipt.placeholder = &amp;#039;请输入模拟次数，最低为1&amp;#039;;&lt;br /&gt;
        simipt.classList.add(&amp;#039;input&amp;#039;);&lt;br /&gt;
        let resul = document.createElement(&amp;#039;ul&amp;#039;);&lt;br /&gt;
        resul.classList.add(&amp;#039;resul&amp;#039;);&lt;br /&gt;
        let simres = new wsr(resul), count = 1;&lt;br /&gt;
        simipt.addEventListener(&amp;#039;change&amp;#039;, () =&amp;gt; {&lt;br /&gt;
            let s = simipt.value;&lt;br /&gt;
            if (s.length &amp;lt; 1) {&lt;br /&gt;
                count = 1;&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
            count = parseInt(s);&lt;br /&gt;
            if (isNaN(count) || count &amp;lt; 1) {&lt;br /&gt;
                count = 1;&lt;br /&gt;
            }&lt;br /&gt;
        });&lt;br /&gt;
        simbtn.addEventListener(&amp;#039;click&amp;#039;, () =&amp;gt; {&lt;br /&gt;
            simres.sim(count);&lt;br /&gt;
            resshow.textContent = `统计数据:&lt;br /&gt;
致富卡: ${simres.res.length}张&lt;br /&gt;
花费金粒: ${simres.res.length * 500}粒&lt;br /&gt;
获得金粒: ${simres.totalRes}粒&lt;br /&gt;
总计盈亏: ${simres.totalWin}粒&lt;br /&gt;
获利比率: ${Math.round(simres.totalWinChance * 10000) / 100}%&lt;br /&gt;
平局比率: ${Math.round(simres.totalDrawChance * 10000) / 100}%&lt;br /&gt;
损失比率: ${Math.round(simres.totalLoseChance * 10000) / 100}%&lt;br /&gt;
`;&lt;br /&gt;
        });&lt;br /&gt;
        clsbtn.addEventListener(&amp;#039;click&amp;#039;, () =&amp;gt; {&lt;br /&gt;
            simres.clear();&lt;br /&gt;
            resshow.textContent = &amp;#039;统计数据:&amp;#039;;&lt;br /&gt;
        });&lt;br /&gt;
        el.innerHTML = &amp;#039;&amp;#039;;&lt;br /&gt;
        el.appendChild(resul);&lt;br /&gt;
        el.appendChild(simipt);&lt;br /&gt;
        el.appendChild(simbtn);&lt;br /&gt;
        el.appendChild(clsbtn);&lt;br /&gt;
        el.appendChild(resshow);&lt;br /&gt;
        el.setAttribute(&amp;#039;done&amp;#039;, &amp;#039;&amp;#039;);&lt;br /&gt;
        log(&amp;#039;安装致富卡模拟器...&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
    function mineSim() {&lt;br /&gt;
        let elems = document.querySelectorAll(&amp;#039;.salt-miner-simulator:not([done])&amp;#039;);&lt;br /&gt;
        log(&amp;#039;开始安装挖矿模拟器&amp;#039;);&lt;br /&gt;
        if (elems.length &amp;lt; 1) {&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
        for (let i = 0; i &amp;lt; elems.length; i++) {&lt;br /&gt;
            mineSimulator(elems[i]);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    function mineSimulator(el) {&lt;br /&gt;
        let simbtn = document.createElement(&amp;#039;div&amp;#039;);&lt;br /&gt;
        simbtn.textContent = &amp;#039;挖矿一次&amp;#039;;&lt;br /&gt;
        simbtn.classList.add(&amp;#039;sim&amp;#039;);&lt;br /&gt;
        let s10btn = document.createElement(&amp;#039;div&amp;#039;);&lt;br /&gt;
        s10btn.textContent = &amp;#039;挖矿十次&amp;#039;;&lt;br /&gt;
        s10btn.classList.add(&amp;#039;sim&amp;#039;);&lt;br /&gt;
        let resul = document.createElement(&amp;#039;ul&amp;#039;);&lt;br /&gt;
        resul.classList.add(&amp;#039;resul&amp;#039;);&lt;br /&gt;
        let res = [];&lt;br /&gt;
        //         simipt.addEventListener(&amp;#039;change&amp;#039;, () =&amp;gt; {&lt;br /&gt;
        //             let s = simipt.value&lt;br /&gt;
        //             if (s.length &amp;lt; 1) { count = 1; return }&lt;br /&gt;
        //             count = parseInt(s)&lt;br /&gt;
        //             if (isNaN(count) || count &amp;lt; 1) { count = 1 }&lt;br /&gt;
        //         })&lt;br /&gt;
        simbtn.addEventListener(&amp;#039;click&amp;#039;, () =&amp;gt; {&lt;br /&gt;
            res = [ore.reward[randReward(ore.chance) || 0]];&lt;br /&gt;
            showOre();&lt;br /&gt;
        });&lt;br /&gt;
        s10btn.addEventListener(&amp;#039;click&amp;#039;, () =&amp;gt; {&lt;br /&gt;
            res = [];&lt;br /&gt;
            for (let i = 0; i &amp;lt; 10; i++) {&lt;br /&gt;
                res.push(ore.reward[randReward(ore.chance) || 0]);&lt;br /&gt;
            }&lt;br /&gt;
            showOre();&lt;br /&gt;
        });&lt;br /&gt;
        function showOre() {&lt;br /&gt;
            resul.innerHTML = &amp;#039;&amp;#039;;&lt;br /&gt;
            for (let i = 0; i &amp;lt; res.length; i++) {&lt;br /&gt;
                let x = res[i].split(&amp;#039;|&amp;#039;);&lt;br /&gt;
                let src = &amp;#039;https://attachment.mcbbs.net/common/&amp;#039; + x[0], alt = x[1];&lt;br /&gt;
                let li = document.createElement(&amp;#039;li&amp;#039;), img = document.createElement(&amp;#039;img&amp;#039;), span = document.createElement(&amp;#039;span&amp;#039;);&lt;br /&gt;
                img.src = src;&lt;br /&gt;
                img.alt = alt;&lt;br /&gt;
                li.appendChild(img);&lt;br /&gt;
                span.textContent = alt;&lt;br /&gt;
                li.appendChild(span);&lt;br /&gt;
                li.classList.add(x[2]);&lt;br /&gt;
                resul.appendChild(li);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        el.innerHTML = &amp;#039;&amp;#039;;&lt;br /&gt;
        el.appendChild(resul);&lt;br /&gt;
        el.appendChild(simbtn);&lt;br /&gt;
        el.appendChild(s10btn); //; el.appendChild(clsbtn); el.appendChild(resshow)&lt;br /&gt;
        el.setAttribute(&amp;#039;done&amp;#039;, &amp;#039;&amp;#039;);&lt;br /&gt;
        log(&amp;#039;安装挖矿模拟器...&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;
    // assert: 断言&lt;br /&gt;
    // condition: 判断状况; msg?: 报错语句&lt;br /&gt;
    function assert(condition, msg = &amp;#039;发生错误&amp;#039;) {&lt;br /&gt;
        if (!condition) {&lt;br /&gt;
            throw new Error(prefix + &amp;#039;: &amp;#039; + msg);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    function addScript(src, asynchronous = false) {&lt;br /&gt;
        let scr = document.createElement(&amp;#039;script&amp;#039;);&lt;br /&gt;
        scr.src = src;&lt;br /&gt;
        scr.async = asynchronous;&lt;br /&gt;
        document.head.appendChild(scr);&lt;br /&gt;
    }&lt;br /&gt;
    function addStyle(styleCode = &amp;#039;&amp;#039;, styleID = &amp;#039;&amp;#039;) {&lt;br /&gt;
        let s = document.createElement(&amp;#039;style&amp;#039;);&lt;br /&gt;
        if (styleID.length &amp;gt; 0) {&lt;br /&gt;
            if (document.querySelector(`style[${styleID}]`)) {&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
            else {&lt;br /&gt;
                s.setAttribute(styleID, &amp;#039;&amp;#039;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        s.textContent = styleCode;&lt;br /&gt;
        document.head.appendChild(s);&lt;br /&gt;
    }&lt;br /&gt;
    function log(msg) {&lt;br /&gt;
        let t = typeof msg;&lt;br /&gt;
        let p = prefix + &amp;#039;: &amp;#039;;&lt;br /&gt;
        if (t == &amp;#039;boolean&amp;#039; || t == &amp;#039;number&amp;#039; || t == &amp;#039;string&amp;#039;) {&lt;br /&gt;
            console.log(p + msg);&lt;br /&gt;
        }&lt;br /&gt;
        else if (t == &amp;#039;undefined&amp;#039;) {&lt;br /&gt;
            console.log(p + &amp;#039;undefined&amp;#039;);&lt;br /&gt;
        }&lt;br /&gt;
        else if (msg instanceof Array) {&lt;br /&gt;
            console.log(p + &amp;#039;[&amp;#039; + msg.join(&amp;#039;, &amp;#039;) + &amp;#039;]&amp;#039;);&lt;br /&gt;
        }&lt;br /&gt;
        else {&lt;br /&gt;
            console.log(p);&lt;br /&gt;
            console.log(msg);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    function randInt(max = 750, min = 0) {&lt;br /&gt;
        if (min &amp;gt; max) {&lt;br /&gt;
            let temp = max;&lt;br /&gt;
            max = min;&lt;br /&gt;
            min = temp;&lt;br /&gt;
        }&lt;br /&gt;
        return Math.floor(Math.random() * (max - min + 1) + min);&lt;br /&gt;
    }&lt;br /&gt;
    function randReward(arr) {&lt;br /&gt;
        var leng = 1;&lt;br /&gt;
        for (var i = 0; i &amp;lt; arr.length; i++) {&lt;br /&gt;
            leng += arr[i]; //获取总数&lt;br /&gt;
        }&lt;br /&gt;
        for (var i = 0; i &amp;lt; arr.length; i++) {&lt;br /&gt;
            var random = Math.floor(Math.random() * leng); //获取 0-总数 之间的一个随随机整数&lt;br /&gt;
            if (random &amp;lt; arr[i]) {&lt;br /&gt;
                return i; //如果在当前的概率范围内,得到的就是当前概率&lt;br /&gt;
            }&lt;br /&gt;
            else {&lt;br /&gt;
                leng -= arr[i]; //否则减去当前的概率范围,进入下一轮循环&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;
    class wsr {&lt;br /&gt;
        constructor(el, winStandard = 500, bottom = 0, top = 750) {&lt;br /&gt;
            this.res = []; // 存放结果&lt;br /&gt;
            this.totalRes = 0;&lt;br /&gt;
            this.totalWin = 0;&lt;br /&gt;
            this.totalWinChance = 0;&lt;br /&gt;
            this.totalDrawChance = 0;&lt;br /&gt;
            this.totalLoseChance = 0;&lt;br /&gt;
            this.bindEl = el;&lt;br /&gt;
            this.winStandard = winStandard;&lt;br /&gt;
            this.range = [bottom, top];&lt;br /&gt;
            this.safeRange = Math.floor(Number.MAX_SAFE_INTEGER / Math.max((bottom + top / 2), winStandard)) - 1;&lt;br /&gt;
        }&lt;br /&gt;
        cls() {&lt;br /&gt;
            this.clear();&lt;br /&gt;
        }&lt;br /&gt;
        clear() {&lt;br /&gt;
            this.res = [];&lt;br /&gt;
            this.totalRes = 0;&lt;br /&gt;
            this.totalWin = 0;&lt;br /&gt;
            this.totalWinChance = 0;&lt;br /&gt;
            this.totalDrawChance = 0;&lt;br /&gt;
            this.totalLoseChance = 0;&lt;br /&gt;
            this.resultShow();&lt;br /&gt;
        }&lt;br /&gt;
        resultCalc() {&lt;br /&gt;
            if (this.res.length == 0) {&lt;br /&gt;
                this.cls();&lt;br /&gt;
            }&lt;br /&gt;
            let r = 0, w = 0, wc = 0, dc = 0, len = this.res.length;&lt;br /&gt;
            for (let i = 0; i &amp;lt; len; i++) {&lt;br /&gt;
                let x = this.res[i];&lt;br /&gt;
                r += x.res;&lt;br /&gt;
                w += x.win;&lt;br /&gt;
                if (x.win &amp;gt; 0) { // 获利次数&lt;br /&gt;
                    wc += 1;&lt;br /&gt;
                }&lt;br /&gt;
                else if (x.win == 0) { // 平局次数&lt;br /&gt;
                    dc += 1;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            this.totalRes = r;&lt;br /&gt;
            this.totalWin = w;&lt;br /&gt;
            this.totalWinChance = wc / len;&lt;br /&gt;
            this.totalDrawChance = dc / len;&lt;br /&gt;
            this.totalLoseChance = 1 - wc / len - dc / len;&lt;br /&gt;
        }&lt;br /&gt;
        resultShow() {&lt;br /&gt;
            if (this.res.length == 0) {&lt;br /&gt;
                this.bindEl.innerHTML = &amp;#039;&amp;#039;;&lt;br /&gt;
            }&lt;br /&gt;
            let len = this.res.length, childlen = this.bindEl.children.length, html;&lt;br /&gt;
            for (let i = childlen; i &amp;lt; len; i++) {&lt;br /&gt;
                let x = this.res[i];&lt;br /&gt;
                html = document.createElement(&amp;#039;li&amp;#039;);&lt;br /&gt;
                html.textContent = `模拟结果: ${x.res}; 盈亏: ${x.win}`;&lt;br /&gt;
                this.bindEl.appendChild(html);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        sim(times = 1) {&lt;br /&gt;
            if (times &amp;lt; 1) {&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
            if (times &amp;gt; 65536) {&lt;br /&gt;
                times = 65536;&lt;br /&gt;
            }&lt;br /&gt;
            let temp;&lt;br /&gt;
            for (let i = 0; i &amp;lt; times; i++) {&lt;br /&gt;
                temp = randInt(this.range[1], this.range[0]);&lt;br /&gt;
                this.res.push({ res: temp, win: temp - this.winStandard });&lt;br /&gt;
                if (this.res.length &amp;gt;= this.safeRange) {&lt;br /&gt;
                    break;&lt;br /&gt;
                } // 安全区间控制&lt;br /&gt;
            }&lt;br /&gt;
            this.resultCalc();&lt;br /&gt;
            this.resultShow();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;
    let MCBBSTOOLSTYLE = `&lt;br /&gt;
.salt-acquire-wealth-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-acquire-wealth-simulator::after{content:&amp;quot;致富卡模拟器&amp;quot;;font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-acquire-wealth-simulator::before{content:&amp;quot;@author Salt @license CC BY-NC-SA&amp;quot;;font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-acquire-wealth-simulator,.salt-acquire-wealth-simulator&amp;gt;*{box-sizing:border-box;transition:0.3s ease}.salt-acquire-wealth-simulator .resul{width:60%;height:25rem;padding:.375rem;margin:0 0 0 0;float:right;overflow-y:scroll;outline:1px solid #ccc}.salt-acquire-wealth-simulator .resul li{height:1.25rem;margin-left:2.25rem;margin-bottom:0;list-style:decimal;border-bottom:1px solid #ccc;transition:0.25s ease;white-space:pre}.salt-acquire-wealth-simulator .resul li:last-child{border-bottom:none}.salt-acquire-wealth-simulator .resul li:hover{background-color:#fff9}.salt-acquire-wealth-simulator .input{width:calc(40% - 1rem);margin:0 1rem 0 0;float:left}.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-acquire-wealth-simulator .sim:hover,.salt-acquire-wealth-simulator .cls:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-acquire-wealth-simulator .sim:active,.salt-acquire-wealth-simulator .cls:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-acquire-wealth-simulator .resshow{width:calc(40% - 1rem);padding:.5rem;margin:1rem 1rem 0 0;border-radius:.2rem;outline:1px solid #ccc;white-space:pre-line;float:left}.salt-miner-simulator{width:calc(50% + 5rem);padding:1rem;margin:1.25rem auto;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;overflow:auto;position:relative}.salt-miner-simulator::after{content:&amp;quot;挖矿模拟器&amp;quot;;font-size:2rem;color:rgba(128,128,128,0.25);position:absolute;bottom:0;right:1rem;pointer-events:none}.salt-miner-simulator::before{content:&amp;quot;@author Salt @license CC BY-NC-SA&amp;quot;;font-size:0.2rem;color:rgba(128,128,128,0.15);position:absolute;top:0;left:1rem;pointer-events:none}.salt-miner-simulator,.salt-miner-simulator&amp;gt;*{box-sizing:border-box;transition:0.3s ease}.salt-miner-simulator .resul{width:100%;height:240px;max-height:300px;padding:.375rem;margin:0 0 0 0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr;overflow-y:scroll;outline:1px solid #ccc;text-align:center;align-items:center}.salt-miner-simulator .resul li{width:100%;margin:auto;list-style:none;transition:0.25s ease;white-space:pre}.salt-miner-simulator .resul li:hover{background-color:var(--bgcolor, #fff9)}.salt-miner-simulator .resul li.common{--bgcolor:#fff9}.salt-miner-simulator .resul li.rare{--bgcolor:rgba(128,191,255,0.4);filter:drop-shadow(0px 0px 4px #80bfff)}.salt-miner-simulator .resul li.epic{--bgcolor:#df80ff66;filter:drop-shadow(0px 0px 6px #df80ff)}.salt-miner-simulator .resul li.legend{--bgcolor:#ffdf8066;filter:drop-shadow(0px 0px 8px #ffdf80)}.salt-miner-simulator .resul li img,.salt-miner-simulator .resul li span{width:74px;margin:0 auto;display:block;text-align:center}.salt-miner-simulator .resul li span{width:96px}.salt-miner-simulator .sim{width:calc(50% - 1rem);padding:.5rem;margin:1rem .5rem 0 .5rem;border-radius:.2rem;background:#fbf2dc;box-shadow:6px 6px 12px #e2dac6,-6px -6px 12px #fffff2;text-align:center;float:left;transition:0.15s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.salt-miner-simulator .sim:hover{box-shadow:4px 4px 8px #e2dac6,-4px -4px 8px #fffff2,inset 4px 4px 8px #fffff2,inset -4px -4px 8px #e2dac6}.salt-miner-simulator .sim:active{box-shadow:0 0 0 transparent,0 0 0 transparent,inset 6px 6px 12px #e2dac6,inset -6px -6px 12px #fffff2}.salt-miner-simulator .sim:nth-of-type(1)::before{background-image:url(https://patchwiki.biligame.com/images/mc/6/63/58aatekitx9pn6kx9ji0few8cxgx06r.png)}.salt-miner-simulator .sim:nth-of-type(2)::before{background-image:url(https://mcbbs-wiki.cn/images/e/e7/Diamond_Pickaxe_JE3_BE3.png)}.salt-miner-simulator .sim::before{content:&amp;quot;&amp;quot;;background-size:cover;display:inline-block;height:1.2em;width:1.2em;line-height:1.2em;vertical-align:sub}@media screen and (max-width: 960px){.salt-acquire-wealth-simulator{width:100%}.salt-acquire-wealth-simulator .resul,.salt-acquire-wealth-simulator .input,.salt-acquire-wealth-simulator .sim,.salt-acquire-wealth-simulator .cls,.salt-acquire-wealth-simulator .resshow{width:100%;white-space:pre}.salt-acquire-wealth-simulator .input{margin-top:.5rem}.salt-acquire-wealth-simulator .resul{height:13.75rem}.salt-miner-simulator{width:100%}.salt-miner-simulator .resul li{padding:0}}&lt;br /&gt;
`;&lt;br /&gt;
    let ore = {&lt;br /&gt;
        chance: [&lt;br /&gt;
            100, 100, 100, 100, 100,&lt;br /&gt;
            55, 55, 55, 55, 55, 55, 55, 55,&lt;br /&gt;
            10, 10, 10, 10, 10,&lt;br /&gt;
            3, 1, 3, 1, 2,&lt;br /&gt;
        ],&lt;br /&gt;
        reward: [&lt;br /&gt;
            &amp;#039;e9/common_844_oqkCn6N1.gif|金粒*50|common&amp;#039;, &amp;#039;7b/common_993_KRfVHSoZ.gif|钻石*1|common&amp;#039;, &amp;#039;19/common_668_k157Q6Mz.gif|钻石*2|common&amp;#039;,&lt;br /&gt;
            &amp;#039;a8/common_570_z0VtOyfy.gif|挖掘卡*3|common&amp;#039;, &amp;#039;0f/common_646_BgtOeYG5.gif|召集卡*2|common&amp;#039;,&lt;br /&gt;
            &amp;#039;37/common_152_UW5I364l.gif|金粒*100|rare&amp;#039;, &amp;#039;20/common_277_yPMMpS5Q.gif|钻石*4|rare&amp;#039;, &amp;#039;17/common_564_qj66q6lL.gif|服务器提升卡*2|rare&amp;#039;,&lt;br /&gt;
            &amp;#039;f7/common_266_vnIWiNQZ.gif|提升卡*4|rare&amp;#039;, &amp;#039;b6/common_902_CROjtYxg.gif|变色卡*1|rare&amp;#039;, &amp;#039;f7/common_173_uGGMtJ9g.gif|挖掘卡*5|rare&amp;#039;,&lt;br /&gt;
            &amp;#039;84/common_199_Uj0JJqJG.gif|改名卡*1|rare&amp;#039;, &amp;#039;1f/common_880_XMeN56n5.gif|匿名卡*2|rare&amp;#039;,&lt;br /&gt;
            &amp;#039;fb/common_68_ugh1RmB9.gif|金粒*500|epic&amp;#039;, &amp;#039;39/common_27_o98F2LiA.gif|钻石*8|epic&amp;#039;, &amp;#039;7f/common_724_U57122AA.gif|-20%优惠券|epic&amp;#039;,&lt;br /&gt;
            &amp;#039;26/common_298_wDRoz0ZH.gif|提升卡*8|epic&amp;#039;, &amp;#039;ca/common_679_uH68111v.gif|服务器提升卡*4|epic&amp;#039;,&lt;br /&gt;
            &amp;#039;67/common_824_z32g532o.gif|金粒*999|legend&amp;#039;, &amp;#039;e8/common_466_g6864s5s.gif|绿宝石*1|legend&amp;#039;, &amp;#039;05/common_744_mG2NgTgj.gif|钻石*20|legend&amp;#039;,&lt;br /&gt;
            &amp;#039;3d/common_843_A8z942OC.gif|-40%优惠券|legend&amp;#039;, &amp;#039;be/common_662_mkmCA9JM.gif|猪灵勋章|legend&amp;#039;,&lt;br /&gt;
        ]&lt;br /&gt;
    };&lt;br /&gt;
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;
    main();&lt;br /&gt;
})();&lt;br /&gt;
&amp;lt;/script&amp;gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Salt lovely</name></author>
	</entry>
</feed>