Files
devplacepy/devplacepy/templates/_game_infra.html
T
retoorandClaude Sonnet 5 34f76aad65 Code Farm economy rebalance: market saturation, infrastructure/defense/cosmetics, mastery track, secondary leaderboards, admin eras, underdog bonus and weekly contracts
Every purchase/upgrade path (new and pre-existing) is now race-safe against concurrent requests via atomic conditional SQL updates.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-22 23:55:46 +02:00

18 lines
809 B
HTML

{% for infra in farm.infrastructure %}
<div class="perk-card">
<span class="perk-icon" aria-hidden="true">{{ infra.icon }}</span>
<strong class="perk-name">{{ infra.name }}</strong>
<span class="perk-effect">{{ infra.description }}</span>
{% if infra.owned %}
<span class="perk-maxed">Owned</span>
{% elif farm.prestige < infra.min_prestige %}
<span class="perk-maxed">Requires prestige {{ infra.min_prestige }}</span>
{% else %}
<form method="post" action="/game/infrastructure/buy" data-game-action="infrastructure">
<input type="hidden" name="key" value="{{ infra.key }}">
<button type="submit" class="btn btn-sm" data-confirm="Buy {{ infra.name }} for {{ infra.cost }}c?">Buy ({{ infra.cost }}c)</button>
</form>
{% endif %}
</div>
{% endfor %}