Quote from: Arkaile on April 13, 2019, 12:46:31 PMIt is hardcoded not to add tab to anything containing Android in its defName.
Does anyone know how I should go about re-enabling the psych tab for androids? Which file(s) should I be looking at?
Edit: As an alternative, is there a way I can manually add the psych tab to a colonist by editing a save?
Re-enabling: PsychologyBase.cs file in source code. Remove && !def.defName.Contains("Android") and compile.
Adding tab without compiling dll - Save code as patch.xml in Mods/YourMod/Patches, load after androids and psychology:
Code Select
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/recipes</xpath>
<value>
<li>TreatPyromania</li>
<li>TreatChemicalInterest</li>
<li>TreatChemicalFascination</li>
<li>TreatDepression</li>
<li>TreatInsomnia</li>
<li>CureAnxiety</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/race/hediffGiverSets</xpath>
<value>
<li>OrganicPsychology</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]</xpath>
<value>
<inspectorTabs>
<li>Psychology.ITab_Pawn_Psyche</li>
</inspectorTabs>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/comps</xpath>
<value>
<li Class="Psychology.CompProperties_Psychology" />
</value>
</Operation>
</Patch>
BTW, ChjDroid and ChjBattleDroid should be blacklisted - these are definitely rudimentary robots. Please, make blacklist of defNames xml or modsettings - editable.