mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
Merge pull request #4201 from stalefishies/has-augmentation-fix
MISC: Fix bug in person.hasAugmentation
This commit is contained in:
commit
87ad634859
@ -199,5 +199,11 @@ export function updateSkillLevels(this: Person): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function hasAugmentation(this: Person, augName: string, ignoreQueued = false) {
|
export function hasAugmentation(this: Person, augName: string, ignoreQueued = false) {
|
||||||
return this.augmentations.some((a) => a.name === augName && (ignoreQueued || !this.queuedAugmentations.includes(a)));
|
if (this.augmentations.some((a) => a.name === augName)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!ignoreQueued && this.queuedAugmentations.some((a) => a.name === augName)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user