123ishaTest/ludiek

Reconsider `amount` for input and output

Ouverte

#84 ouverte le 19 août 2025

 (0 commentaire) (0 réaction) (0 personne assignée)TypeScript (4 forks)auto 404
good first issuehelp wanted

Métriques du dépôt

Stars
 (12 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur