123ishaTest/ludiek

Reconsider `amount` for input and output

Offen

#84 geöffnet am 19.08.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (4 Forks)auto 404
good first issuehelp wanted

Repository-Metriken

Stars
 (12 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

#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

Contributor Guide