Skip to content

Conversation

@way-zer
Copy link
Owner

@way-zer way-zer commented Sep 6, 2025

Why?

通过两个子树修改同一个对象,可能破坏CT的可恢复性,例如:

"unit.gamma.weapons.#0.bullet.damage":9999
"unit.gamma.weapons.#1.bullet.damage":19999

因为#0.bullet#1.bullet实际关联的bullet实例是同一个,第二次构建damage时,将记录错误的初始值,导致错误恢复。

Change

现在访问重复对象的子树时,例如#1.bullet.damage,将在resolve("damage")时报错,阻止访问,防止修改子属性。

允许:直接设置bullet本身的行为,例如"#1.bullet.=": {...}

@way-zer way-zer merged commit 66243e5 into master Sep 6, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants