vegapnk / RJW-Genes

Rimworld Biotech Genes related to RJW
MIT License
25 stars 28 forks source link

Double Outcome Doers for Sexperience Cum #48

Closed vegapnk closed 9 months ago

vegapnk commented 1 year ago

Someone got the following Error in the Discord:

XML error: Duplicate XML node name outcomeDoers in this XML block: <ingestible><foodType>Fluid, AnimalProduct</foodType><preferability>DesperateOnlyForHumanlikes</preferability><tasteThought>AteRawFood</tasteThought><outcomeDoers><li Class="IngestionOutcomeDoer_GiveHediff"><hediffDef>CumTolerance</hediffDef><severity>0.032</severity><divideByBodySize>true</divideByBodySize></li><li Class="IngestionOutcomeDoer_OffsetPsyfocus"><offset>0.05</offset></li><li Class="RJWSexperience.Cum.IngestionOutcomeDoer_RecordEatenCum"><unitAmount>5.2</unitAmount></li></outcomeDoers><outcomeDoers><li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset"><FertilinPerUnit>1</FertilinPerUnit></li></outcomeDoers></ingestible>

XML Formatted:

<ingestible>
<foodType>Fluid, AnimalProduct</foodType>
<preferability>DesperateOnlyForHumanlikes</preferability>
<tasteThought>AteRawFood</tasteThought>
<outcomeDoers>
    <li Class="IngestionOutcomeDoer_GiveHediff"><hediffDef>CumTolerance</hediffDef><severity>0.032</severity><divideByBodySize>true</divideByBodySize></li>
    <li Class="IngestionOutcomeDoer_OffsetPsyfocus"><offset>0.05</offset></li>
    <li Class="RJWSexperience.Cum.IngestionOutcomeDoer_RecordEatenCum"><unitAmount>5.2</unitAmount></li>
</outcomeDoers>
<outcomeDoers>
    <li Class="RJW_Genes.IngestionOutcomeDoer_LifeForceOffset"><FertilinPerUnit>1</FertilinPerUnit></li>
</outcomeDoers>
</ingestible>

Seems the patch is wrong targetted.

Relevant Patch: https://github.com/vegapnk/RJW-Genes/blob/main/Common/Patches/ThingDefs/Sexperience_Cum.xml

Also: Kick out L3 / adjust it

PowerSpiral commented 1 year ago

It seems it can be solved like this #54