Comments (6)
这上面显示的是所有仓库里的没禁用的圣遗物在一起算的情况下的大概时间。
事实上,算的时候可以选定只算20级圣遗物,一般正常人20级圣遗物100个左右,还是比较快的。
但是算法是枚举,圣遗物一多必然会按n^5的复杂度增加计算时间
from genshin_artifact.
懂你意思了,哈哈哈。
那你这个计算考虑套装吗?
代码是哪几个文件,我想学习参观一下。
from genshin_artifact.
比较明确的套装buff是会考虑的,例如魔女2件套15%火伤;
比较复杂且不明确(动态)的效果在大多数目标函数里不会考虑,例如魔女4件套效果,
但是某些目标函数会考虑,例如迪卢克的目标函数会考虑魔女4的叠加效果(通过近似地整合那些buff),因为很多角色适合的配装就那么几套,输出方式也比较单一,所以具体目标函数可能会考虑一些常见配装的动态buff。
目标函数的代码在src/assets/target_functions
计算的代码在src/algorithms/attribute_target/compute_artifacts.js
顺带一提,代码写的比较烂,也没什么注释,还望见谅
from genshin_artifact.
JS里面 (!0) 为true。
改完瞬间变成一秒结束计算
from genshin_artifact.
genshin_artifact-main\src\algorithms\attribute_target\create_filter_function.js
let helper = artifact => {
if (!artifact.level && artifact.level !== 0) {
return true;
}
return artifact.level >= config.min && artifact.level <= config.max;
}
老哥 你能自己改一下还是我PR给你?
from genshin_artifact.
我自己改一下吧,感谢大佬找帮我找了bug
from genshin_artifact.
Related Issues (20)
- 圣遗物潜力里面可以根据角色推荐来调词条吗
- 如何打包为不需要额外安装环境的包? HOT 2
- 建议添加常见怪物的抗性选项或者能保存抗性设定 HOT 1
- 希望八重神子计算可以加入超激化占比配置 HOT 1
- 识别圣遗物出错
- 2元素+2攻击/2精通的限定套装设置 HOT 1
- 在计算非攻击力倍率的技能时,结果出错 HOT 1
- 希望添加皇女天赋1和天赋2以及命座6的伤害计算
- 为什么角色列表里面的主角只有风主?希望把所有属性的主角都加进来 HOT 1
- 多人优化不出结果,曾经等过一个小时都没占卜出
- 希望Playground可以加载计算预设和圣遗物套装
- 计算器 计算发生错误 HOT 1
- 识别圣遗物出错 HOT 2
- 扫描完成后没有自动导入到占卜铺中 HOT 7
- 添加班尼特 申鹤 的攻击/基础伤害加成
- 建议支持云原神 HOT 1
- 波乱月白经津武器特效 波穗 有误
- 添加提纳里1命重击15%的暴击加成,目前命座选择1命没有任何改动,增益效果中也只有提纳里的四命效果而没有一命的 HOT 1
- 希望重新实装《全角色全玩法圣遗物胚子评分+角色定位一览》的胚子评分
- 多莉的Q技能奶量计算似乎有问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genshin_artifact.