种子配方查看
noita吧
全部回复
仅看楼主
level 1
lcz20 楼主
!function(){const t=t=>{const e=Math.floor(.17127*t+1323.5903),l=t=>{let e=t;return()=>((e=e%127773*16807-2836*Math.floor(e/127773))<0&&(e+=2147483647),e)},r=["酸","威士忌","血液","真菌血液","蠕虫血液","水泥","岩浆","狂暴基质","费洛蒙","漂浮基质","迅捷基质","隐形魔药","汇聚法力","加速基质","灵丹妙药","传送基质","不稳定变形魔药","不稳定传送基质","蠕虫费洛蒙","除草基质","淤泥","油","毒液","毒性淤泥","沼泽[棕]","尿","水","冰水","沼泽[绿]","混乱变形魔药"],o=["骨头","黄铜","煤","铜","钻石","怪异真菌","黄金","草","火药[棕]","火药[黄]","腐肉","沙","银","粘液","雪","泥土","蜡","蜂蜜"],a=(t,e,l,r)=>{let o=0,a=0;for(;o<l&&a<1e3;){let l=Math.floor(t()/2147483648*e.length);e[l]&&-1==r.indexOf(e[l])?(o+=1,r.push(e[l])):a+=1}},n=e=>{let n=[];a(e,r,3,n),a(e,o,1,n),((t,e)=>{let r=l(Math.floor(e/2)+12534),o=r();for(let e=t.length;e>=0;e--){o=r();let l=Math.floor(o/2147483648*e),a=t[e];t[e]=t[l],t[l]=a}})(n,t);let f={materials:n.slice(0,3),prob:10+Math.floor(e()/2147483648*91)};return e(),f};let f=l(e);for(let t=0;t<5;t++)f();let h=n(f),s=n(f);return{"种子":t,"活性混合物质":h,"炼金溶液":s}};let e=parseInt(prompt("输入种子",""));if(e){let l=t(e);alert(`\n种子:${l.种子}\n活性混合物质:${l.活性混合物质.materials}, 反应率: ${l.活性混合物质.prob}\n炼金溶液:${l.炼金溶液.materials}, 反应率: ${l.炼金溶液.prob}\n`)}else alert("种子不是数字")}();
网上很多都失效没用了
浏览器F12,粘贴到控制台回车即可
2023年06月01日 10点06分 1
level 1
lcz20 楼主
!function(){const i=i=>{const e=Math.floor(.17127*i+1323.5903),l=i=>{let e=i;return()=>((e=e%127773*16807-2836*Math.floor(e/127773))<=0&&(e+=2147483647),e)},a=["酸","威士忌","血液","真菌血液","蠕虫血液","水泥","岩浆","狂暴基质","费洛蒙","漂浮基质","迅捷基质","隐形魔药","汇聚法力","加速基质","灵丹妙药","传送基质","不稳定变形魔药","不稳定传送基质","蠕虫费洛蒙","除草基质","淤泥","油","毒液","毒性淤泥","沼泽[棕]","尿","水","冰水","沼泽[绿]","混乱变形魔药"],t=["骨头","黄铜","煤","铜","钻石","怪异真菌","黄金","草","火药[棕]","火药[黄]","腐肉","沙","银","粘液","雪","泥土","蜡","蜂蜜"],o=(i,e,l,a)=>{for(let t=0,o=0;o<l&&t<500;){let l=Math.floor(i()/2147483648*e.length);e[l]&&-1==a.indexOf(e[l])?(o++,a.push(e[l])):t++}},r=e=>{let r=[];o(e,a,3,r),o(e,t,1,r),((i,e)=>{let a=l(Math.floor(e/2)+12534);a();for(let e=i.length-1;e>=0;e--){let l=Math.floor(a()/2147483648*(e+1)),t=i[e];i[e]=i[l],i[l]=t}})(r,i);let n={materials:r.slice(0,3),prob:10+Math.floor(e()/2147483648*91)};return e(),n};let n=l(e);for(let i=0;i<=5;i++)n();let _=r(n),m=r(n);return{seed:i,lc:_,ap:m}};let e=parseInt(prompt("输入种子"));if(e){let{seed:l,lc:a,ap:t}=i(e);alert(`\n种子: ${l}\n活性混合物质: ${a.materials}\n炼金溶液: ${t.materials}\n`)}else alert("种子必须是数字")}();
2023年06月01日 12点06分 5
level 1
lcz20 楼主
<html><head></head><body><label for="seed">种子</label><input id="seed" type="number"></input><button id="check">查看</button><div id="res"></div><script>const print=console.log,recipes=e=>{const t=Math.floor(.17127*e+1323.5903),l=e=>{let t=e;return()=>((t=t%127773*16807-2836*Math.floor(t/127773))<=0&&(t+=2147483647),t)},n=["酸","威士忌","血液","真菌血液","蠕虫血液","水泥","岩浆","狂暴基质","费洛蒙","漂浮基质","迅捷基质","隐形魔药","汇聚法力","加速基质","灵丹妙药","传送基质","不稳定变形魔药","不稳定传送基质","蠕虫费洛蒙","除草基质","淤泥","油","毒液","毒性淤泥","沼泽[棕]","尿","水","冰水","沼泽[绿]","混乱变形魔药"],r=["骨头","黄铜","煤","铜","钻石","怪异真菌","黄金","草","火药[棕]","火药[黄]","腐肉","沙","银","粘液","雪","泥土","蜡","蜂蜜"],o=(e,t,l,n)=>{for(let r=0,o=0;o<l&&r<500;){let l=Math.floor(e()/2147483648*t.length);t[l]&&-1==n.indexOf(t[l])?(o++,n.push(t[l])):r++}},a=t=>{let a=[];o(t,n,3,a),o(t,r,1,a),print("cad",a),((e,t)=>{let n=l(Math.floor(t/2)+12534);n();for(let t=e.length-1;t>=0;t--){let l=Math.floor(n()/2147483648*(t+1)),r=e[t];e[t]=e[l],e[l]=r}})(a,e);let i={materials:a.slice(0,3),prob:10+Math.floor(t()/2147483648*91)};return t(),i};let i=l(t);for(let e=0;e<=5;e++)i();let s=a(i),c=a(i);return print("lc",s),print("ap",c),{seed:e,lc:s,ap:c}},btn=document.getElementById("check"),inSeed=document.getElementById("seed"),out=document.getElementById("res");btn.onclick=(()=>{let e=parseInt(inSeed.value);if(!e)return void(res.innerText="无效种子");e>2147483647&&(e=Math.floor(e/2)),print("seed",e);let{seed:t,lc:l,ap:n}=recipes(e);res.innerText=`\n种子: ${t}\n活性混合物质: ${l.materials}\n炼金溶液: ${n.materials}\n`});</script></body></html>
2023年06月01日 12点06分 6
web版本: 贴到记事本, 保存为 xx.html,拖放到浏览器
2023年06月01日 12点06分
level 4
没看懂
2023年06月15日 10点06分 7
[呵呵],或者直接用网站 noitool.com, 这个是自己在浏览器控制台用的,我以防断网的时候用
2023年06月15日 11点06分
配方计算出来差一个结果
2023年12月11日 14点12分
@lcz20 配方计算出来差一个结果
2023年12月11日 14点12分
@lcz20 第一个有问题,第二个好像是正常的
2023年12月11日 14点12分
1