
修改Dark Forest插件
这几天在玩Dark Forest的游戏,由于这一轮寻找神器也有积分,所以用这个寻找神器的插件比较多: https://github.com/darkforest-eth/plugins/blob/master/content/artifacts/hunt-artifacts/plugin.js
但是这个插件有一个小问题,那就是无论什么等级的星球都会去寻找,甚至0或者1级的星球
0级或者1级的星球上找到的神器,运气好找到普通神器,运气不好什么都没有还浪费了gas。再加上就算找到普通神器,积分也就增加5000分,实在不值得浪费精力去0级或1级的星球上
所以对这个插件进行了修改,添加了过滤星球等级的功能
这样就可以过滤掉那些低等级的星球
如果你对这个增强版的插件有兴趣,可以在这里找到:https://github.com/darkforest-eth/plugins/blob/1fd0084058a71547dd6ee7c86077675657d200f1/content/artifacts/hunt-artifacts/plugin.js
- Thanks for your appreciation. / 感谢您的赞赏
List of appreciation
Because of your support, I realize the value of writing articles. / 由于您的支持,我才能够实现写作的价值。
This piece of writing is an original article, utilizing theCC BY-NC-SA 4.0Agreement. For complete reproduction, please acknowledge the source as Courtesy ofERICET
Comment ()