- 
                Notifications
    You must be signed in to change notification settings 
- Fork 751
添加查看/设置游戏外公共区域功能;bugfix #3036
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
添加查看/设置游戏外公共区域功能;bugfix #3036
Conversation
        
          
                noname/library/index.js
              
                Outdated
          
        
      | * 处理区域中移出的卡牌,目前仅作为刷新区域的简单使用 | ||
| * @param {Card[]} cards 区域中需要移出的卡牌 | ||
| */ | ||
| removeHandeler(cards) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里removeHandler能不能也变成content呢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对,我也感觉是不是也做成事件好一点,一半是一半不是有点小怪()
| 与其对牌移动事件狠狠加屎山 | 
| 如果重构的话,不仅仁区的溢出,装备区等区域的溢出和阻断或许也可以采取同样的类似方式来管理 | 
| approve目前的修改只代表代码可以正常跑,但特定区域进出卡牌建议统一为事件,方便进行事件管理(移动事件重构也可以用这个思路) | 
调整手杀曹髦【清正】、手杀陆郁生【润微】、孙韶【筑墼】、标郑玄【整经】、刘渊【兼习】、十周年赵襄【扶汉】
添加查看/设置游戏外公共区域功能;bugfix
添加查看/设置游戏外公共区域功能;bugfix
Merge pull request libnoname#3036 from xizifu/PR-Branch 添加查看/设置游戏外公共区域功能;bugfix 武将称号拆分到各武将包文件 将player.getStat().card[name]相关的技能进行数值判断再执行减值操作 removeHandeler事件化;lib.element.content.guanxing改为async content Merge pull request libnoname#3036 from xizifu/PR-Branch 添加查看/设置游戏外公共区域功能;bugfix Merge branch 'libnoname:PR-Branch' into PR-Branch
添加查看/设置游戏外公共区域功能;bugfix

PR受影响的平台
诱因和背景
1.目前本体仅支持仁库这种游戏外的公共区域,#Player.lose、#Player.gain、#Player.addToExpansion、Game.cardsGoToSpecial等均仅限制toRenku/fromRenku。考虑到存在其他可能的的公共区域,比如额外牌堆、欢杀谋黄月英的牛马区,现在支持类似仁库的处理方式的游戏外的公共区域的添加,可以通过在lib.arenaReady中/技能中对lib.commonArea进行操作设置新区域,并添加支持关闭的显示公共区域的设置
2.lib.element.dilaog支持使用handle方法直接操作对话框,详见赵襄【扶汉】、刘渊【兼习】等技能;
3.bug反馈 #3046
PR描述
1.将仁库设置到lib.commonArea中进行统一管理;
2.修改本体与操作仁库相关的技能;
3.修改lib.element.player.lose、lib.element.player.gain、lib.element.player.addToExpansion、Game.cardsGoToSpecial、lib.element.content.lose、lib.element.content.addToExpansion、lib.element.content.cardsGoToSpecial、lib.element.content.cardsGoToPile、lib.element.player.content.useCard、lib.element.player.content.equip支持类似仁库的游戏外公共区域的添加/移出/刷新操作;
4.添加lib.config.show_commonCardpile(显示游戏外公共区域(仁库等)按钮),开启后可与查看牌堆一样查看各个游戏外的公共区域的牌;
5.lib.element.dilaog支持使用handle方法直接操作对话框,并调整手杀曹髦【清正】、手杀陆郁生【润微】、孙韶【筑墼】、标郑玄【整经】、刘渊【兼习】、十周年赵襄【扶汉】等技能,用法也请参考以上技能;
6.修复 #3046 反馈的bug;
7.lib.element.content.guanxing改为async content;
8.将player.getStat().card[name]相关的技能进行数值判断再执行减值操作;
9.武将称号拆分到各武将包文件中;
PR测试
已使用张机进行联机/单机测试
ib.element.dilaog支持使用handle方法已使用调整武将技能进行联机/单机/托管测试
扩展适配
修改了上述提到的方法/技能的扩展需要跟进
检查清单
master分支WIP直到本PR内容全部提交character/rank.js中添加对应的武将强度评级,并对双人武将/复姓武将添加name:xxx的参数lib.translate中加入语音文件的文字台词PR描述中写入详细文档扩展适配中写入详细文档诱因和背景中明确链接到该issue.editorconfig、eslint.config.mjs和prettier.config.mjs所规定的代码样式,并且已经通过prettier格式化过代码