tiny-adventure / commits / d2ce078
The route preview shows what its hazards would cost in hp
Co-Authored-By: Claude Opus 5.5
@@ -32,7 +32,7 @@ export function createRoute(scene) {
3232 dots.count = path.length;
3333 dots.instanceMatrix.needsUpdate = true;
3434 const n = route.path.length;
35- const notes = [`${n} ${n === 1 ? 'hex' : 'hexes'}`, route.dusk && 'night falls on the way', route.blocked && 'stops at a fight'].filter(Boolean);
35+ const notes = [`${n} ${n === 1 ? 'hex' : 'hexes'}`, route.hazard && `hazards cost ${route.hazard} hp`, route.dusk && 'night falls on the way', route.blocked && 'stops at a fight'].filter(Boolean);
3636 tag = label(notes.join(', '));
3737 tag.scale.multiplyScalar(0.7);
3838 const end = worldPos(...path.at(-1));
@@ -7,7 +7,6 @@ const TRAITS = {
77 sweep: ['Sweep', 'single hits splash a second foe for half'],
88 pierce: ['Pierce', 'ignores defense and armor'],
99 thorns: ['Thorns', 'melee attackers take 25% back'],
10- taunt: ['Taunt', 'foes must strike this hero'],
1110 armored: ['Armored', 'defense +3, pierce cuts through'],
1211 swarm: ['Swarm', 'more of them, each weaker'],
1312 ...Object.fromEntries(TYPES.map((t) => [t, [cap(t), `physical abilities deal ${t} damage`]])),