123ishaTest/ludiek

Reconsider `amount` for input and output

Aperta

#84 aperta il 19 ago 2025

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (4 fork)auto 404
good first issuehelp wanted

Metriche repository

Star
 (12 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

#83 introduced input and output. While very useful, the amount property can sometimes be awkward as it doesn't make sense for all resources (e.g. AchievementOutput)

Consider refactoring it to also implement a getAmount() which defaults to input.amount if it's available and if not errors. Basically ensure that one is implemented. Can also already be done at engine construction

Guida contributor