diff --git a/app/account/companions/content.tsx b/app/account/companions/content.tsx
index f2d1e8c2..b2ea74cd 100644
--- a/app/account/companions/content.tsx
+++ b/app/account/companions/content.tsx
@@ -39,6 +39,7 @@ const CompanionBox = ({ companion, editable = false, setOwned }: { companion: Co
onChange={handleChecked}
/>
+ {companion.name}
{companion.getBonus()}
@@ -56,7 +57,7 @@ function CompanionDisplay() {
const setOwned = (companion: Companion, owned: boolean) => {
companion.owned = owned;
}
-
+
const editCompanions = () => {
setAllowEditing(true);
}
@@ -96,7 +97,11 @@ function CompanionDisplay() {
{
- companions.map((companion, index) => )
+ companions
+ .filter((companion) => companion.data.desc !== 'Not officially in the game and may never be')
+ .map((companion, index) =>
+
+ )
}
diff --git a/data/domain/companions.tsx b/data/domain/companions.tsx
index 4c3ad643..940e083e 100644
--- a/data/domain/companions.tsx
+++ b/data/domain/companions.tsx
@@ -12,7 +12,7 @@ import { Player } from "./player";
export class Companion {
owned: boolean = false;
real: boolean = false;
- constructor(public id: number, public data: CompanionModel, public imageData: ImageData) { }
+ constructor(public id: number, public name: string, public data: CompanionModel, public imageData: ImageData) { }
getBonus = () => {
return this.data.desc.replace(/{/g, "+");
@@ -23,7 +23,7 @@ export class Companion {
const enemy = EnemyInfo.find(enemy => enemy.id == c.data.id);
const imageData = { location: enemy?.id.toLowerCase() ?? "Unknown", width: 67, height: 67 }
- return new Companion(c.index, c.data, imageData);
+ return new Companion(c.index, enemy?.details.Name ?? "Unknown", c.data, imageData);
});
}
}