|
|
发表于 2023-4-18 14:55:00
|
显示全部楼层
本帖最后由 ruanhuhu 于 2023-4-18 15:09 编辑
yr的矿厂并不是靠Unsellable让ai的建筑不卖的 而是ResourceGatherer和UndeploysInto
ares的说明书里也有类似的字段
决定一个建筑是否可以为AI提供拓展
[BuildingType]>AIBaseNormal= (boolean)
决定AI能否用此建筑进行拓展,当建筑既有UndeploysInto=又有ResourceGatherer=yes时为否,或者当一个建筑被判定为载具的时候也为否(即1x1的可以反部署的建筑)。
还有可部署为建筑的坦克在出售状态下 是直接收起而不是变卖 基地车除外 (加钱?但是不失去单位 可以重新部署 再出售) 这个才是yr矿厂加上Unsellable的原因
我试了一下 不知道哪里修复了 可能是phobos 现在出售可以直接消失了 我也记不清楚返不返钱了
以下是关于ai出售建筑物的说明 复制自modenc
Whether the AI will actually sell this building or not depends on a number of factors. First, the AI's IQ level must be at or above the SellBack threshold. Second, the BuildingType must not have Unsellable=yes. If these conditions are met, then the AI will sell the building if building's health falls below ConditionRed or the AI power levels fall below PowerEmergency and this building is consuming power. However, if the AI's IQ also meets RepairSell and the building's health falls below ConditionRed, then the AI will attempt to repair the building. If the building cannot be repaired for any reason (the AI has less than CreditReserve amount of credits or the BuildingType has (Repairable=no), then the AI will sell it. |
|