Skip to content

removed the deprecated unit ammo rule/system#43

Open
MEIQIUawa wants to merge 1 commit into
way-zer:8.0from
MEIQIUawa:patch-1
Open

removed the deprecated unit ammo rule/system#43
MEIQIUawa wants to merge 1 commit into
way-zer:8.0from
MEIQIUawa:patch-1

Conversation

@MEIQIUawa

Copy link
Copy Markdown

[v8 Build 158] Completely removed the deprecated unit ammo rule/system. Any mods using this system will break.

[v8 Build 158] Completely removed the deprecated unit ammo rule/system. Any mods using this system will break.
registerChild("maxHealth", "最大血量") { it.maxHealth }
registerChild("shield", "护盾值") { it.shield }
registerChild("ammo", "弹药") { if (state.rules.unitAmmo) it.shield else resolveVarChild(it, "maxAmmo")?.unwrap() }
registerChild("maxAmmo", "弹药容量") { it.type.ammoCapacity }

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
registerChild("maxAmmo", "弹药容量") { it.type.ammoCapacity }

原来之前ammo一直是错的。这行也删掉吧

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