mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-27 18:01:23 +00:00
fix原神日历角色天赋显示
This commit is contained in:
parent
3cf75563a1
commit
4353e615c3
@ -50,7 +50,7 @@ class Material extends Base {
|
||||
return false
|
||||
}
|
||||
|
||||
static forEach (type = 'all', fn, filter = false) {
|
||||
static forEach (type = 'all', fn, filter = false, game = 'gs') {
|
||||
if (!lodash.isFunction(filter)) {
|
||||
filter = () => true
|
||||
}
|
||||
@ -58,7 +58,7 @@ class Material extends Base {
|
||||
if (type !== 'all' && type !== ds.type) {
|
||||
return true
|
||||
}
|
||||
let obj = new Material(name)
|
||||
let obj = Material.get(name, game)
|
||||
if (filter(obj)) {
|
||||
return fn(obj) !== false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user