Skip to content

Commit

Permalink
fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Oct 26, 2024
1 parent eea422b commit 729ac08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _test/all.meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildNum":"cdda-experimental-2024-10-11-2346","sha":"52f61be10adac5acec6ad08dd0ba4cdc9f04025a1ca02dc453321fbdaabea527"}
{"buildNum":"cdda-experimental-2024-10-25-0415","sha":"5ff456238aa00ae8552bcf29190e30ff2341bad0bd5f7c4fc2b71d120762601f"}
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ export type OvermapTerrain = {
name: Translation;

sym?: string; // defaults to \u00a0
color: string;
color?: string;
// ...
};

Expand Down
2 changes: 1 addition & 1 deletion src/types/item/OvermapAppearance.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function omtAppearance(
const omt = data.byIdMaybe("overmap_terrain", omt_id);
return omt
? {
color: omt.color,
color: omt.color ?? "black",
sym: rotateSymbol(omt.sym ?? "\u00a0" /* LINE_XOXO_C */, dir),
name: singular(omt.name),
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/item/spawnLocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export function overmapAppearance(
function omtAppearanceString(omt_id: string): string {
const omt = data.byId("overmap_terrain", omt_id);
return omt
? `${omt.sym}\u0001${omt.color}\u0001${omt.name}`
? `${omt.sym}\u0001${omt.color ?? "black"}\u0001${omt.name}`
: `appearance_unk`;
}
}
Expand Down

0 comments on commit 729ac08

Please sign in to comment.