mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-25 08:34:16 +08:00
Compare commits
2 Commits
b82da6c9a7
...
aee4fcf164
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aee4fcf164 | ||
|
|
5c0fe56915 |
@@ -68,12 +68,19 @@ class Talent {
|
|||||||
|
|
||||||
exclude(talents, excludeId) {
|
exclude(talents, excludeId) {
|
||||||
const { exclude } = this.get(excludeId);
|
const { exclude } = this.get(excludeId);
|
||||||
if(!exclude) return null;
|
|
||||||
for(const talent of talents) {
|
for(const talent of talents) {
|
||||||
|
if(exclude) {
|
||||||
for(const e of exclude) {
|
for(const e of exclude) {
|
||||||
if(talent == e) return talent;
|
if(talent == e) return talent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const excludeReverse = this.get(talent).exclude;
|
||||||
|
if(excludeReverse) {
|
||||||
|
for (const e of excludeReverse) {
|
||||||
|
if (excludeId == e) return talent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user