feat: cap auto-buy count on non-max-tier adventurers #151

Closed
opened 2026-03-25 15:12:20 -07:00 by hikari · 1 comment
Owner

Description

Auto-buy should stop purchasing lower-tier adventurers once they reach a configured cap (e.g. 100), so that gold is not wasted on weaker units when stronger ones become available.

Proposed Behaviour

  • Each adventurer tier except the current highest-unlocked tier has a maximum auto-buy count (e.g. 100)
  • Once a non-max-tier adventurer reaches that cap, auto-buy skips it and continues to the next affordable tier
  • The highest-unlocked adventurer tier retains no cap (auto-buy continues purchasing it freely)
  • When a new tier is unlocked, the previously uncapped tier becomes capped and the new tier becomes the uncapped one

Example

  • Player has unlocked up to Knight (tier 7)
  • Auto-buy will purchase Peasant, Militia, Apprentice, Scout, Acolyte, Ranger up to 100 each
  • Auto-buy will purchase Knight freely (no cap) as it is the current highest tier

Notes

The cap value (100) is a suggested default — consider whether this should be configurable per player or fixed in the game data. Also consider whether the cap should apply immediately or only once the next tier is unlocked.

This issue was created with help from Hikari~ 🌸

## Description Auto-buy should stop purchasing lower-tier adventurers once they reach a configured cap (e.g. 100), so that gold is not wasted on weaker units when stronger ones become available. ## Proposed Behaviour - Each adventurer tier except the current highest-unlocked tier has a maximum auto-buy count (e.g. 100) - Once a non-max-tier adventurer reaches that cap, auto-buy skips it and continues to the next affordable tier - The highest-unlocked adventurer tier retains no cap (auto-buy continues purchasing it freely) - When a new tier is unlocked, the previously uncapped tier becomes capped and the new tier becomes the uncapped one ## Example - Player has unlocked up to Knight (tier 7) - Auto-buy will purchase Peasant, Militia, Apprentice, Scout, Acolyte, Ranger up to 100 each - Auto-buy will purchase Knight freely (no cap) as it is the current highest tier ## Notes The cap value (100) is a suggested default — consider whether this should be configurable per player or fixed in the game data. Also consider whether the cap should apply immediately or only once the next tier is unlocked. ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Already implemented — autoBuyCap = 100 with max-tier check in gameContext.tsx. This issue was closed with help from Hikari~ 🌸

Already implemented — autoBuyCap = 100 with max-tier check in gameContext.tsx. ✨ This issue was closed with help from Hikari~ 🌸
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/elysium#151