Gold drop dialog silently clamps an amount past its cap

未关闭 适合新手
#4,901 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
frontend, game-dev

调研方向

找到 #4886 附近新增的将金币丢在地上的对话框和撤回草稿的行为;issue 未指定文件或测试。阅读草稿金额的处理方式,然后为高于携带余额的金额添加 pinning 测试。完成标准是丢金币草稿将金额限制在余额允许的范围内,并且测试确认了这一点。

由索引模型根据 Issue 内容生成。

描述

Follow-up noted during the review of #4886.

The ground-drop gold dialog has the same silent-clamp shape the withdraw
draft had before that fix: typing an amount past what the carried balance
actually allows silently proceeds with a clamped value instead of capping
the draft the way the withdraw row now does.

Scope notes:

  • The server already clamps a ground gold drop, so no bad amount can
    reach the wire; the defect is display-side only.
  • It predates the gold-cap work; it was left out of #4886 on purpose so
    that fix stayed narrow.

Wanted: the drop draft gets the same treatment as the withdraw draft
(cap to the room the balance leaves, honestly) — a small client-only
change with a pinning test.

主要语言
Go
星标
97
派生
61
平均合并
3 小时 59 分钟
30 天内合并 PR
966

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opensro-dev/opensro 的其他 Issue

查看 opensro-dev/opensro 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。