123ishaTest/ludiek

Reconsider `amount` for input and output

Aberta

#84 aberto em 19 de ago. de 2025

 (0 comentário) (0 reação) (0 responsável)TypeScript (4 forks)auto 404
good first issuehelp wanted

Métricas do repositório

Stars
 (12 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

#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

Guia do colaborador