123ishaTest/ludiek

Reconsider `amount` for input and output

开放

#84 创建于 2025年8月19日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (4 个派生)auto 404
good first issuehelp wanted

仓库指标

星标
 (12 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

#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

贡献者指南