[#12538] Add integer configs to unit build control
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
自动翻译暂时不可用,以下内容为原始内容。
变更概要
未生成摘要。
内容
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Problem: Currently ucontrol build instruction does not support Integer config even if some of the blocks already have Integer configuration handlers.
Changes: Default ucontrol build config value set to "null" instead of "0". Numeric p5 values are read using p5.numi() and forwarded as Integer configs.
Compatibility: Old 4-operand ucontrol build instruction is compatible, Old 5-operand with numeric config may observe different behavior on blocks with Integer configuration handlers.
Testing: Tested with Phase Conveyor, Power Node, Mass Driver, Unit Factory and Illuminator. Also verified existing Content and Building configs still work.
Pull Request 信息
GitHub 编号:#12538
作者:BensonLing0925
状态:closed
目标分支:master
来源分支:feature/integer-build-config
创建时间:2026-08-27 14:33:36 CST
<details> <summary>查看原文</summary>
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Problem: Currently ucontrol build instruction does not support Integer config even if some of the blocks already have Integer configuration handlers.
Changes: Default ucontrol build config value set to "null" instead of "0". Numeric p5 values are read using p5.numi() and forwarded as Integer configs.
Compatibility: Old 4-operand ucontrol build instruction is compatible, Old 5-operand with numeric config may observe different behavior on blocks with Integer configuration handlers.
Testing: Tested with Phase Conveyor, Power Node, Mass Driver, Unit Factory and Illuminator. Also verified existing Content and Building configs still work.
</details>
来源:GitHub #12538