Skip to content

Commit 0801d89

Browse files
committed
Leaf Sweep: shed sorted by price, new card picture and description
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cw2rMA4m89wq5xtvEXdXsk
1 parent 5dcaca5 commit 0801d89

5 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎e63334287a3deaa3/es.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e63334287a3deaa3/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ <h3>Lanternhold</h3>
11191119
</article>
11201120
<article class="project gc">
11211121
<a class="shot" href="/e63334287a3deaa3/windrow/" aria-label="Open Leaf Sweep" tabindex="-1">
1122-
<img src="/e63334287a3deaa3/windrow/preview.jpg" alt="Leaf Sweep in play, first person, in a walled brick courtyard under autumn trees: a rake with a wooden handle reaches out over grey paving that has just been cleared, with orange, gold and brown leaves and their litter still lying beyond it, a lawn square with a tree and a bench on the left, a stone fountain on the right and a green gate with a sign reading Orchard Walk, locked, 150. The acorn count and sack meter are top left, the garden name and percent cleared top centre, and the hands, rake and blower slots at the bottom." width="1920" height="1200" loading="lazy">
1122+
<img src="/e63334287a3deaa3/windrow/preview.jpg" alt="Leaf Sweep in play, first person, in a small walled front yard under autumn trees: two gloved hands and a sack half full of leaves reach over a stone path that has just been cleared, with a thick carpet of orange, gold and brown leaves over the lawn on both sides, a brick wall with stone-capped piers, a green garden gate ahead with a bigger leaf-covered garden beyond it, and a slatted wooden compost bin on the right. The acorn count and sack meter are top left and a white ring on the path shows where the hands reach." width="1920" height="1200" loading="lazy">
11231123
<span class="gc-genre"><b style="margin:0 6px 0 -4px;padding:1px 6px;border-radius:999px;background:#d9663a;color:#fff;font-weight:700">New</b>Garden sim</span>
11241124
</a>
11251125
<div class="body">
4.94 KB
Loading

‎e63334287a3deaa3/windrow/js/game.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,8 @@
442442
h += '</div>' + (un ? '' : '<button class="btn sm buy" data-unlock="' + i + '"' + (need || state.acorns < a.cost ? ' disabled' : '') + '>' + T('Open') + ' · ' + a.cost + '</button>') + '</div>';
443443
});
444444
} else {
445-
UP.filter(shedShows).forEach(function (u) {
445+
// cheapest next purchase first, things already at their best last
446+
UP.filter(shedShows).sort(function (x, y) { var cx = state.up[x.id] >= x.costs.length ? 1e9 : x.costs[state.up[x.id]], cy = state.up[y.id] >= y.costs.length ? 1e9 : y.costs[state.up[y.id]]; return cx - cy; }).forEach(function (u) {
446447
var lv = state.up[u.id], max = u.costs.length, lockd = u.needs && !state.up[u.needs];
447448
h += '<div class="item"><div class="tx"><b>' + T(u.name) + (max > 1 ? pips(lv, max) : '') + '</b><small>' + T(u.text) + '</small></div>';
448449
h += lv >= max ? '<small class="done">✓ ' + T(max > 1 ? 'Best' : 'Owned') + '</small>' : '<button class="btn sm buy" data-buy="' + u.id + '"' + (lockd || state.acorns < u.costs[lv] ? ' disabled' : '') + '>' + u.costs[lv] + '</button>';
27.4 KB
Loading

0 commit comments

Comments
 (0)