Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

争议卡牌实现重构 #238

Open
feisuzhu opened this issue May 8, 2020 · 0 comments
Open

争议卡牌实现重构 #238

feisuzhu opened this issue May 8, 2020 · 0 comments

Comments

@feisuzhu
Copy link
Owner

feisuzhu commented May 8, 2020

现在的卡牌「争议」状态的实现是「卡牌记着牌堆,牌堆不记着卡牌」。这种实现会对计算卡牌数量的逻辑产生影响,尤其是在类似于 action_shootdown 这样的不会影响游戏进程的逻辑中,在客户端判定是和逻辑真正跑起来时结果会不一样。

考虑实现成由卡牌记录「争议」状态,禁止 naive 的方式遍历 CardList,提供专门的遍历函数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant