PatchOperationAttributeAdd - solaris0115/RimWorldModGuide GitHub Wiki

PatchOperationAttributeAdd

대상노드에 애트리뷰트를 추가합니다.

<ThingDef>
	<defName>ExampleDef</defName>
	<label>Example</label>
</ThingDef>

<Operation Class="PatchOperationAttributeSet">
	<xpath>*/ThingDef[defName="ExampleDef"]</xpath>
	<attribute>Name</attribute>
	<value>BaseWeapon</value>
</Operation> 

결과

<ThingDef Name="BaseWeapon">
	<defName>ExampleDef</defName>
	<label>Example</label>
</ThingDef>
⚠️ **GitHub.com Fallback** ⚠️