收起左侧

[求助] 向大佬们求助,芒果园的地基删除后会一直留在地图中,...

[复制链接]
啊嘟发表于 2021-8-14 13:04:39
我最近小改了一下手中的加装了天明mod的帝国3三合一,然后遇到了点难题。芒果园人力车选出芒果园的地基后,点击删除,芒果园地基已经无法选中,但是会一直存留在地图上,也无法在那里进行修建。我对芒果园进行的改动如下,大佬们有空的话能否帮我看一下,怎样修改代码才能让地基被删除后能够消失?
<Unit id ='1351' name ='ypGroveBuilding'>
<DBID>2001</DBID>
<DisplayNameID>68443</DisplayNameID>
<ObstructionRadiusX>3.0000</ObstructionRadiusX>
<ObstructionRadiusZ>3.0000</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MovementType>land</MovementType>
<AnimFile>buildings\asian_civs\grove\grove.xml</AnimFile>
<ImpactType>Wood</ImpactType>
<PlacementFile>buildingsmall.xml</PlacementFile>
<Icon>buildings\asian_civs\grove\grove_icon_64</Icon>
<PortraitIcon>buildings\asian_civs\grove\grove_icon_portrait</PortraitIcon>
<RolloverTextID>68442</RolloverTextID>
<ShortRolloverTextID>68441</ShortRolloverTextID>
<LOS>12.0000</LOS>
<BuildPoints>5.0000</BuildPoints>
<BuildLimit>2</BuildLimit>
<InitialResource resourcetype ='Wood'>5000.0000</InitialResource>
<ResourceSubType>Wood</ResourceSubType>
<BuildingWorkRate>1.0000</BuildingWorkRate>
<MinimapColor red ='0.1900' blue ='0.1800' green ='0.2500'></MinimapColor>
<UnitType>LogicalTypeValidSabotage</UnitType>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeBuildingsNotWalls</UnitType>
<UnitType>LogicalTypeVillagersAttack</UnitType>
<UnitType>LogicalTypeShipsAndBuildings</UnitType>
<UnitType>LogicalTypeVillagersRespondToAttack</UnitType>
<UnitType>CountsTowardEconomicScore</UnitType>
<UnitType>AbstractFruit</UnitType>
<UnitType>Building</UnitType>
<UnitType>Resource</UnitType>
<UnitType>ColonyBuilding</UnitType>
<UnitType>BuildingClass</UnitType>
<UnitType>Wood</UnitType>
<UnitType>Tree</UnitType>
<UnitType>Nature</UnitType>
<Flag>StartsAtFullEfficiency</Flag>
<Flag>Immoveable</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>ObscuresUnits</Flag>
<Flag>NoIdleActions</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>PaintTextureWhenPlacing</Flag>
<Flag>FlattenGround</Flag>
<Flag>UnlimitedSupply</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>NeverCountDeathAsLoss</Flag>
<Flag>Tracked</Flag>
<Command page ='10' column ='0'>Delete</Command>
</Unit>

辛苦各位大佬了orz,萌新跪谢!
啊嘟发表于 2021-8-14 13:07:01
删除地基以后地基一直保留,是因为地基也有自己的单位编号吗?
こはね发表于 2021-8-15 01:41:59
目测是
<Flag>NeverCountDeathAsLoss</Flag>
こはね发表于 2021-8-15 16:41:50
经过实测,将<Flag>NeverCountDeathAsLoss</Flag>删掉后,樱桃园与芒果园删掉就会消失,不会再留在地图上

啊嘟发表于 2021-8-16 10:01:21
青天小羽 发表于 2021-8-15 16:41
经过实测,将NeverCountDeathAsLoss删掉后,樱桃园与芒果园删掉就会消失,不会再留在地图上

...

谢谢小羽大佬!!!非常感谢
跳转到