Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
<Operation Class="PatchOperationFindMod">
<mods><li>Save Our Ship 2</li></mods>
<match Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]/researchPrerequisites</xpath>
<value><researchPrerequisites><li>VanometricTinkering</li></researchPrerequisites>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]</xpath>
<value><researchPrerequisites><li>VanometricTinkering</li></researchPrerequisites></value>
</nomatch>
Or a PatchOperationConditional could also do the trick, and check if research prereq already exists, if so replace, if not add.
Same with designation category.
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]/researchPrerequisites</xpath>
<match Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]/researchPrerequisites</xpath>
<value><researchPrerequisites><li>VanometricTinkering</li></researchPrerequisites></value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]</xpath>
<value><researchPrerequisites><li>VanometricTinkering</li></researchPrerequisites></value>
</nomatch>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]/designationCategory</xpath>
<match Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]/designationCategory</xpath>
<value><designationCategory>Power</designationCategory></value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VanometricPowerCell"]</xpath>
<value><designationCategory>Power</designationCategory></value>
</nomatch>
</Operation>
You'll want to replace your own patches in the Vanilla.xml file with these or the patches will cause duplication errors if anything else adds a category and researchprereq.