123ishaTest/ludiek

Reconsider `amount` for input and output

Open

#84 opened on Aug 19, 2025

 (0 comments) (0 reactions) (0 assignees)TypeScript (4 forks)auto 404
good first issuehelp wanted

Repository metrics

Stars
 (12 stars)
PR merge metrics
 (No merged PRs in 30d)

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

Contributor guide