3.给床加聚灵功能
在修真界里,能打造出不同材料的床,为什么就不能让床有聚灵功能?也可以让墙有聚灵功能嘛,修真界无所不能!
文件地址:\Settings\ThingDef\Item\Building_Furniture.xml,只需要在床的代码中添加红字部分,也可以给别的家具、墙、地板等添加聚灵功能
<ThingDef Type="Building" Name="Bed" Parent="FurnitureBase">
<TexPath>res\Sprs\building\building_1Rbed</TexPath>
<TexScale>1</TexScale>
<ThingName>床</ThingName>
<Desc>一张可以供单人使用的床,可以让你睡个好觉。</Desc>
<Tags>
<Tag Name="Sleep" Level="1"/>
<Tag Name="Practice" Level="1"/>
</Tags>
<ShadowSize>
<x>1</x>
<y>0.3</y>
</ShadowSize>
<ColliderKind>ThrowOver</ColliderKind>
<Collider>
<!--(0Empty 1Base) 2EmptyCenter 4EmptyWorkspace-->
<Data>
[7],
[1],
</Data>
<Offset>
<y>-0.25</y>
<x>0</x>
</Offset>
<WorkOffset>
<li Index="0" X="0" Y="0" Z="-0.5" Ang="180"/>
</WorkOffset>
</Collider>
<Building>
<RoomKind>BedRoom</RoomKind>
<IsBed>1</IsBed>
<OwnerCount>1</OwnerCount>
<HelperClass>BuildingHelperBed</HelperClass>
<TerrainAffordanceNeeded>Ground</TerrainAffordanceNeeded>
<BePackage>1</BePackage>
<RestEffectiveness>1</RestEffectiveness>
<RoomKind>BedRoom</RoomKind>
<PracticeEffectiveness>0.2</PracticeEffectiveness>
<BeMade>
<WorkToMake>25</WorkToMake>
<Quality>0</Quality>
<StuffCategories>
<Stuff name = "MetalBlock"/>
<Stuff name = "WoodBlock"/>
<Stuff name = "RockBlock"/>
</StuffCategories>
<CostStuffCount>8</CostStuffCount>
</BeMade>
<SnowRenderData>
<x>2.8</x>
<y>3.7</y>
<z>1</z>
</SnowRenderData>
</Building>
<Ling>
<AddionLing>75</AddionLing><!-- 这个是银杏树的标准聚灵配置,这里的数值除以10是游戏中的聚灵值7.5 -->
<AddionRadius>5</AddionRadius><!-- 半径,改这个和上面那个就行了,下面的参数没搞懂,有知道的朋友望不吝赐教,谢谢 -->
<AddionFailing>0.9</AddionFailing>
<AddionFailRadius>2</AddionFailRadius>
<Attenuation>0.05</Attenuation>
<Absorption>0.4</Absorption>
<Accommodate>40</Accommodate>
</Ling>
</ThingDef>
以上就是了不起的修仙模拟器法宝属性修改方法介绍,玩家可以根据自己的情况进行修改。
19游戏网整理报道