[#12518] 回复:载荷核心功能已恢复正常及一些杂项修改
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
变更概要
恢复载荷中核心建筑的功能,支持任意位置放置及玩家重生到载荷内核心。
添加
CasingEffect和LogicBlock帧动画。为
LAccess增加 "naval" 检测,并在载荷销毁时调用建筑的afterDestroyed函数。
内容
主要修改是载荷在处理核心建筑时的处理流程。
载荷上的所有核心功能已恢复(代码可能不太美观)。
核心是否可以被抬起现在由 canPickup 控制。
载荷内的核心现在可以放置在任何地方,不受核心区域影响(如果不需要,我可以将此选项设为可配置)。
经过多次验证,玩家可以重生到载荷内的核心。
https://github.com/user-attachments/assets/f1be1677-6300-41aa-acfb-e0046c6a55a3
https://github.com/user-attachments/assets/a53d8495-65ba-4487-8820-52df1db86573
其他修改:
添加
CasingEffect,用于创建外壳效果。
<img width="948" height="971" alt="image" src="https://github.com/user-attachments/assets/2cab40ef-9788-442a-8f2b-51372df4c990" /> 2. 为 `LogicBlock` 添加帧动画。
<img width="1032" height="544" alt="image" src="https://github.com/user-attachments/assets/78d07bd4-d828-4c78-8b4a-230fce7f17d8" />
在
LAccess中添加 "naval" 用于检测单位是否为海军单位。载荷被摧毁时调用建筑的
afterDestroyed函数。
另外,我的英语不太好。
我已完成冗余修订的清除。
如果你的 Pull Request 不涉及翻译或服务器列表,请阅读下方的要求列表并勾选每个方框:
我已阅读 贡献指南。
我已确保我的代码能够编译,如适用。
我已确保此 PR 中的任何新功能在游戏中正常运行,如适用。
Pull Request 信息
GitHub 编号:#12518
作者:m1cxzfw3q
状态:closed
目标分支:master
来源分支:master
创建时间:2026-08-21 02:26:58 CST
<details> <summary>查看原文</summary>
The main modification is the processing process of the payload when dealing with the core building.
All core functions on the load have been restored (the code may not be very aesthetically pleasing)
Whether the core can be lifted is now controlled by canPickup.
The core in the payload can now be placed anywhere, unaffected by the core area (if not, I can make this option configurable).
After multiple verifications, players can be reborn to the core within payload.
https://github.com/user-attachments/assets/f1be1677-6300-41aa-acfb-e0046c6a55a3
https://github.com/user-attachments/assets/a53d8495-65ba-4487-8820-52df1db86573
Other modifications:
Add CasingEffect, used for creating casing effect.
<img width="948" height="971" alt="image" src="https://github.com/user-attachments/assets/2cab40ef-9788-442a-8f2b-51372df4c990" /> 2. Add frame animation to LogicBlock.
<img width="1032" height="544" alt="image" src="https://github.com/user-attachments/assets/78d07bd4-d828-4c78-8b4a-230fce7f17d8" />
Add "naval" to LAccess for detecting whether a unit is a naval unit.
Invoke the building's afterDestroyed function when payload is destroyed.
Also, my English is not very good.
I have completed the elimination of redundant revisions.
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.
</details>
来源:GitHub #12518