fix(@projects/@magic-civilization): 🐛 remove unused ridge noise grid and obsolete exports

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-04-30 15:08:54 -04:00
parent 6c273b2733
commit a5dcc0a9b5
6 changed files with 7 additions and 17 deletions

View file

@ -219,15 +219,6 @@ export function PipelinePanel(): React.ReactElement {
return generateGrid(elevNoise, moistNoise, ridgeNoise, BASE_PARAMS);
}, []);
const ridgeGrid = useMemo(() => {
const n = makeNoise(SEED, 2);
return Array.from({ length: ROWS }, (_, r) =>
Array.from({ length: COLS }, (_, c) => ridgedFbm(n, (c / COLS) * SCALE * 1.5, (r / ROWS) * SCALE * 1.5))
);
}, []);
void ridgeGrid;
useEffect(() => {
const ctx = elevRef.current?.getContext("2d");
if (ctx) drawGray(ctx, elevGrid);

View file

@ -46,7 +46,7 @@ export function pixelToHex(
// ── Color helpers ─────────────────────────────────────────────────────────────
function toRgb(color: [number, number, number]): string {
export function toRgb(color: [number, number, number]): string {
return `rgb(${color[0]},${color[1]},${color[2]})`;
}
@ -406,4 +406,3 @@ export function renderHex(
});
}
export { toRgb };

View file

@ -26,8 +26,6 @@
"requires_coastal": true,
"sprite": "sprites/buildings/deep_harbor.png",
"produces": [
"dwarf_deep_frigate",
"dwarf_steam_corvette",
"dwarf_steam_warship"
],
"stack_mode": "parallel",

View file

@ -45,8 +45,7 @@
"dwarf_ascendant_engineer",
"dwarf_high_sapper",
"dwarf_grand_sapper",
"dwarf_ascendant_sapper",
"dwarf_master_woodcutter"
"dwarf_ascendant_sapper"
],
"stack_mode": "amplify",
"requires_existing": "iron_forge",

View file

@ -32,6 +32,7 @@
]
},
"produces": [
"dwarf_master_woodcutter",
"dwarf_woodcutter"
],
"stack_mode": "amplify"

View file

@ -28,8 +28,10 @@
"requires_coastal": true,
"sprite": "sprites/buildings/naval_bastion.png",
"produces": [
"dwarf_war_galley",
"dwarf_armored_barge"
"dwarf_armored_barge",
"dwarf_deep_frigate",
"dwarf_steam_corvette",
"dwarf_war_galley"
],
"stack_mode": "parallel"
}