PatchOperationFindMod - solaris0115/RimWorldModGuide GitHub Wiki

PatchOperationFindMod

ํŠน์ • ๋ชจ๋“œ์˜ ์กด์žฌ ์œ ๋ฌด๋ฅผ ํ™•์ธํ•˜์—ฌ true,false๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
๋‹จ๋…์œผ๋กœ ์“ฐ์ด์ง€ ์•Š๊ณ  PatchOperationSequence์™€ ์—ฐ๊ณ„ํ•˜์—ฌ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ์€ ๊ธ€๋ฃจ๋ฏธ ๊ฐ€๊ตฌ๋ชจ๋“œ์—์„œ VGP Drink๋ชจ๋“œ๊ฐ€ ์กด์žฌํ•œ๋‹ค๋ฉด ์ˆ ํ†ต, ํฐ์ˆ ํ†ต์— ๋Œ€ํ•œ ๊ทธ๋ž˜ํ”ฝ ํŒจ์น˜๋ฅผ ํ•˜๋Š” ๋ช…๋ น์ž…๋‹ˆ๋‹ค.

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>VGP Garden Drinks</li>
		</mods>
		<match Class="PatchOperationSequence">
			<success>Always</success>
			<operations>
				<!-- ๋ฐ”๋‹๋ผ ์ˆ ํ†ต ๊ทธ๋ž˜ํ”ฝํŒจ์น˜ -->
				<li Class="PatchOperationTest">
					<xpath>Defs/ThingDef[defName = "FermentingBarrel"]</xpath>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>*/ThingDef[defName="FermentingBarrel"]/graphicData</xpath>
					<value>
						<graphicData>
							<texPath>Things/Building/Furniture/RGK_orcB</texPath>
							<graphicClass>Graphic_Multi</graphicClass>
							<shaderType>CutoutComplex</shaderType>
							<damageData>
								<rect>(0.05,0.1,0.9,0.9)</rect>
							</damageData>
							<shadowData>
								<volume>(0.75, 0.35, 0.33)</volume>
							</shadowData>
							<drawSize>(2,2)</drawSize>
						</graphicData>
					</value>
				</li>
				<!-- ํฐ์ˆ ํ†ต ํŒจ์น˜ -->
				<li Class="PatchOperationTest">
					<xpath>Defs/ThingDef[defName = "VG_LargeFermentingBarrel"]</xpath>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName = "VG_LargeFermentingBarrel"]/graphicData</xpath>
					<value>
						<graphicData>
							<texPath>Things/Building/Furniture/RGK_orcB</texPath>
							<graphicClass>Graphic_Multi</graphicClass>
							<shaderType>CutoutComplex</shaderType>
							<damageData>
								<rect>(0.05,0.1,0.9,0.9)</rect>
							</damageData>
							<shadowData>
								<volume>(0.75, 0.35, 0.33)</volume>
							</shadowData>
							<drawSize>(4,4)</drawSize>
						</graphicData>
					</value>
				</li>
				<!-- VGP PrecursorBase ์ •์˜๊ฐ€ ์กด์žฌํ•˜๋ฉด ์™€์ธ๋ž™ ํŒจ์น˜ -->
				<li Class="PatchOperationTest">
					<xpath>*/ThingCategoryDef[defName = "PrecursorBase"]</xpath>
				</li>
				<li Class="PatchOperationAdd">
					<xpath>*/ThingDef[defName = "RKGWineRackB"]/building/defaultStorageSettings/filter/categories</xpath>
					<value>
						<li>VG_Sodas</li>
						<li>VG_Drinks</li>
						<li>PrecursorBase</li>
					</value>
				</li>
			</operations>
		</match>
	</Operation>
โš ๏ธ **GitHub.com Fallback** โš ๏ธ