Repository navigation
fix: 修复异画卡拼装界面的空引用 - #335
Merged
Merged
Conversation
Owner
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 Overview
修复开启异画优先后,打出拼装牌时界面因空引用而无法继续操作的问题。部分异画卡的模型有稀有度宝石,但没有普通卡边框;拼装界面只检查宝石是否存在,随后访问边框的 Renderer,触发
AssembleUIManager.OnShowChoices的NullReferenceException。新增
PatchAssemble,仅对OnShowChoices和ToggleAssembleUIDisplay中宝石、边框的隐藏操作补齐对象及 Renderer 判空,保留异画效果和原有拼装流程。原地替换对应 IL 指令,保留跳转标签和异常块;旧版游戏不存在目标类型或方法时跳过补丁。Fixes #334
检查 Check
功能 Function
风险 Risk
补丁依赖当前游戏的指定 IL 访问模式。后续游戏版本若调整该模式,需要重新核对匹配。