code
stringlengths 0
56.1M
| repo_name
stringclasses 515
values | path
stringlengths 2
147
| language
stringclasses 447
values | license
stringclasses 7
values | size
int64 0
56.8M
|
---|---|---|---|---|---|
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Armbinder.label>수갑</Armbinder.label>
<Armbinder.description>첨단 기술이 적용된 수갑입니다. 장착하면 양팔을 사용할 수 없게 됩니다.</Armbinder.description>
<Armbinder.comps.2.useLabel>착용</Armbinder.comps.2.useLabel>
<Gag.label>재갈</Gag.label>
<Gag.description>첨단 기술이 적용된 재갈입니다. 장착하면 대화할 수 없게 됩니다.</Gag.description>
<Gag.comps.2.useLabel>착용</Gag.comps.2.useLabel>
<ChastityBelt.label>정조대</ChastityBelt.label>
<ChastityBelt.description>첨단 기술이 적용된 정조대입니다. 장착하면 어떤 형태의 성행위도 할 수 없게 됩니다.</ChastityBelt.description>
<ChastityBelt.comps.2.useLabel>착용</ChastityBelt.comps.2.useLabel>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Korean/DefInjected/rjw.bondage_gear_def/Items.xml
|
XML
|
mit
| 838 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<ForceOffArmbinder.label>수갑 강제로 풀기</ForceOffArmbinder.label>
<ForceOffArmbinder.description>수갑을 강제로 풉니다. 심한 부상을 입을 수 있습니다.</ForceOffArmbinder.description>
<ForceOffArmbinder.jobString>강제로 수갑 푸는 중</ForceOffArmbinder.jobString>
<ForceOffGag.label>재갈 강제로 벗기기</ForceOffGag.label>
<ForceOffGag.description>재갈을 강제로 벗습니다. 심한 부상을 입을 수 있습니다.</ForceOffGag.description>
<ForceOffGag.jobString>강제로 재갈 푸는 중</ForceOffGag.jobString>
<ForceOffChastityBelt.label>정조대 강제로 벗기기</ForceOffChastityBelt.label>
<ForceOffChastityBelt.description>정조대를 강제로 벗습니다. 심한 부상을 입을 수 있습니다.</ForceOffChastityBelt.description>
<ForceOffChastityBelt.jobString>강제로 정조대 푸는 중</ForceOffChastityBelt.jobString>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Korean/DefInjected/rjw.force_off_gear_def/Recipes_Surgery.xml
|
XML
|
mit
| 987 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<HIV.label>에이즈</HIV.label>
<HIV.description>에이즈는 급성과 만성으로 나뉘며 감염된 정착민의 혈액 여과 수치를 감소시킵니다. 급성 에이즈는 병세가 빠르게 진행되지만 완치가 가능합니다. 만성 에이즈는 매우 천천히 진행되지만 완치가 불가능하며 치료를 통해 진행을 늦출 수 있습니다.</HIV.description>
<Herpes.label>헤르페스</Herpes.label>
<Herpes.description>헤르페스는 불치병이지만 생명에는 지장이 없습니다. 감염된 정착민은 환부에 통증과 가려움을 경험합니다. 치료를 통해 증상의 강도를 줄일 수 있습니다. </Herpes.description>
<Warts.label>곤지름</Warts.label>
<Warts.description>성기에 생긴 곤지름은 보기 흉하고 가렵습니다. 쉽게 완치됩니다.</Warts.description>
<Syphilis.label>매독</Syphilis.label>
<Syphilis.description>매독은 치명적인 성병입니다. 방치할 경우 뇌, 간, 신장에 영구적인 손상을 입히며 결국 죽음에 이르게 합니다. 하지만 적절한 치료가 제공된다면 완치할 수 있습니다.</Syphilis.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Korean/DefInjected/rjw.std_def/STDs.xml
|
XML
|
mit
| 1,245 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Settings-->
<WildMode_name>야생 모드</WildMode_name>
<WildMode_desc>*실험적* 모든 섹스 제한 규칙을 해제합니다. 폭풍같은 삶을 즐기십시오.</WildMode_desc>
<DevMode_name>개발 모드</DevMode_name>
<DevMode_desc>RimJobWorld 로그 메시지를 켭니다. 일반적으로 이 모드를 사용할 필요는 없습니다.</DevMode_desc>
<sexneed_decay_rate_name>성 만족도 감소량 조정(%)</sexneed_decay_rate_name>
<sexneed_decay_rate_desc>정착민의 성 만족도가 감소되는 시간을 조정합니다.
정착민이 너무 섹스에 탐닉하지 않게 하고 싶다면 수치를 낮게 설정하십시오.
설정 범위: 0 - 100
</sexneed_decay_rate_desc>
<NymphsJoin>색정광 합류</NymphsJoin>
<NymphsJoin_desc>활성화하면 색정광 특성 보유자들이 당신의 정착지에 합류할 수 있습니다.</NymphsJoin_desc>
<STD_FromFloors>성병 자연 감염</STD_FromFloors>
<STD_FromFloors_desc>활성화하면 성병이 더러운 환경때문에 자연적으로 감염될 수 있습니다.</STD_FromFloors_desc>
<PrisonersBeating>구타 강간</PrisonersBeating>
<PrisonersBeating_desc>활성화하면 정착민들이 강간을 시도할 때 대상을 마구 때릴 것입니다.</PrisonersBeating_desc>
<OffspringLookLikeTheirMother>부/모 유전 확률(%)</OffspringLookLikeTheirMother>
<OffspringLookLikeTheirMother_desc>자식이 어머니와 같은 종으로 태어날 확률을 설정합니다.
100%는 어머니와 같은 종으로 태어납니다.
0%는 아버지와 같은 종으로 태어납니다.
설정 범위: 0 - 100</OffspringLookLikeTheirMother_desc>
<OffspringIsHuman>인간 유전자 보존 확률(%)</OffspringIsHuman>
<OffspringIsHuman_desc>이종 교배시 인간이 태어날 확률을 설정합니다.
100%는 아이가 인간으로 태어납니다.
0%는 항상 인간이 아닌 종으로 태어납니다.
설정 범위: 0 - 100</OffspringIsHuman_desc>
<PregnantCoeffecientForHuman>인간 임신율(%)</PregnantCoeffecientForHuman>
<PregnantCoeffecientForHuman_desc>사람 사이의 임신 확률을 설정합니다.
최저점에서는 임신하지 않습니다.
설정 범위: 0 - 100</PregnantCoeffecientForHuman_desc>
<PregnantCoeffecientForAnimals>동물 임신율(%)</PregnantCoeffecientForAnimals>
<PregnantCoeffecientForAnimals_desc>동물의 임신 확률을 설정합니다.
최저점에서는 임신하지 않습니다.
설정 범위: 0 - 100</PregnantCoeffecientForAnimals_desc>
<UseParentMethod>모계 유전</UseParentMethod>
<UseParentMethod_desc>이종 교배로 임신한 경우, 자식이 반드시 어머니와 같은 종으로 태어날지 여부를 결정합니다.</UseParentMethod_desc>
<SexFreeForAllAge>섹스 자율 연령</SexFreeForAllAge>
<SexFreeForAllAge_desc>설정치보다 나이가 어린 정착민은 나이차 두 살의 상대하고만 섹스할 것입니다.</SexFreeForAllAge_desc>
<SexMinimumAge>섹스 제한 연령</SexMinimumAge>
<SexMinimumAge_desc>설정치보다 나이가 적은 정착민은 전혀 섹스할 수 없습니다.</SexMinimumAge_desc>
<NonFutaWomenRaping_MaxVulnerability>역강간 설정</NonFutaWomenRaping_MaxVulnerability>
<NonFutaWomenRaping_MaxVulnerability_desc>설정치보다 낮은 취약성을 지닌 여성만이 다른 사람을 강간할 수 있습니다.
정착민의 취약성은 상세 정보 - 통계 - 사교 탭에서 확인할 수 있습니다.
설정 범위: 0 - 300</NonFutaWomenRaping_MaxVulnerability_desc>
<Rapee_MinVulnerability_human>강간 취약성(정착민)</Rapee_MinVulnerability_human>
<Rapee_MinVulnerability_human_desc>설정치보다 높은 취약성을 정착민만이 강간대상이 될 수 있습니다.
정착민의 취약성은 상세 정보 - 통계 - 사교 탭에서 확인할 수 있습니다.
설정 범위: 0 - 300</Rapee_MinVulnerability_human_desc>
<Rapee_MinVulnerability_animals>강간 취약성(동물)</Rapee_MinVulnerability_animals>
<Rapee_MinVulnerability_animals_desc>설정치보다 높은 취약성을 지닌 동물만이 수간 대상이 됩니다.
동물의 취약성은 따로 표시되지 않습니다.
설정 범위: 0 - 300</Rapee_MinVulnerability_animals_desc>
<submit_button_enabled>정착민의 "상납" 버튼을 활성화</submit_button_enabled>
<submit_button_enabled_desc>상납 버튼을 활성화하면 세세한 부분을 건너뛰고 바로 할 수 있습니다.
재미가 우선이라면 비활성화 하십시오.
(소집해야 버튼이 보임)</submit_button_enabled_desc>
<animals_enabled>동물 활성화</animals_enabled>
<animals_enabled_desc>동물도착증의 행동을 활성화합니다.</animals_enabled_desc>
<cross_species_breeding>인간과 동물사이의 임신 여부</cross_species_breeding>
<cross_species_breeding_desc>짐승과의 사이에 아기를 낳을지 여부를 결정합니다. 활성화에는 "동물 활성화"가 필요합니다.</cross_species_breeding_desc>
<CP_pregnancy>임신에 RimWorldChildren 모드를 사용</CP_pregnancy>
<CP_pregnancy_desc>임신시에 RJW가 고유의 임신기능을 사용할지 또는 RimWorldChildren 모드를 사용할지 여부를 결정합니다.</CP_pregnancy_desc>
<genetic_trait_filter>유전될 특성을 필터링</genetic_trait_filter>
<genetic_trait_filter_desc>활성화하면 유전될 특성에 rjw/Defs/NonInheritedTraits.xml을 사용해 특정 특성을 필터링합니다.</genetic_trait_filter_desc>
<RJW_designation_box>RJW 버튼 표시</RJW_designation_box>
<RJW_designation_box_desc>정착민 GUI에서 RJW 버튼을 표시할지 여부입니다.</RJW_designation_box_desc>
<!-- Bed -->
<ForWhoreUse>매춘용</ForWhoreUse>
<WhoreBedFormat>창녀 {0}</WhoreBedFormat>
<CommandBedSetAsWhoreLabel>매춘용</CommandBedSetAsWhoreLabel>
<CommandBedSetAsWhoreDesc>침대를 매춘 전용으로 지정합니다.</CommandBedSetAsWhoreDesc>
<!-- std.cs -->
<RJW_Opportunistic_Infection_Message>{0}의 약화된 면역력 때문에 감염이 발생했습니다.</RJW_Opportunistic_Infection_Message>
<!--RJW_Poisoned_by_Rimming_Message>{0} has gotten food poisoning by rimming {1}</RJW_Poisoned_by_Rimming_Message-->
<RJW_Syphilis_Damage_Message>{0}(은)는 {3}감염 때문에 {1} {2}에 영구적인 장애를 얻었습니다.</RJW_Syphilis_Damage_Message>
<!--Whore Activities-->
<RJW_VisitorAcceptWhore>{0}(은)는 {1}의 유혹에 넘어갔습니다.</RJW_VisitorAcceptWhore>
<RJW_VisitorRejectWhore>{0}(은)는 {1}의 유혹을 거절했습니다.</RJW_VisitorRejectWhore>
<RJW_VisitorSickWhore>{0}(은)는 {1}(이)가 건강해 보이지 않아 유혹을 거절했습니다.</RJW_VisitorSickWhore>
<!-- Notifications on right-clicking CP -->
<PawnCantRapeCP>정착민은 움직일 수 없는 상태입니다.</PawnCantRapeCP>
<PawnCantRapeCP0>정착민은 성관계를 원치 않거나, 건강하지 않은 상태입니다.</PawnCantRapeCP0>
<PawnCantRapeCP1>정착민의 섹스파트너가 근처에 있습니다. 눈치 좀!</PawnCantRapeCP1>
<PawnCantRapeCP2>정착민은 수간을 좋아하지 않습니다.</PawnCantRapeCP2>
<!-- Anal Sex Notificaitons-->
<AnalSexSucceeded></AnalSexSucceeded>
<AnalSexFailed></AnalSexFailed>
<VaginalSexSucceeded></VaginalSexSucceeded>
<VaginalSexFailed></VaginalSexFailed>
<OtherSexSucceeded></OtherSexSucceeded>
<OtherSexFailed></OtherSexFailed>
<!-- Rape Notificaitons-->
<AnalRapeSucceeded></AnalRapeSucceeded>
<AnalRapeFailed></AnalRapeFailed>
<VaginalRapeSucceeded></VaginalRapeSucceeded>
<VaginalRapeFailed></VaginalRapeFailed>
<OtherRapeSucceeded></OtherRapeSucceeded>
<OtherRapeFailed></OtherRapeFailed>
<!--Submit button-->
<CommandSubmit>상납</CommandSubmit>
<CommandSubmitDesc>당장 자빠뜨려서 아무나 받게합니다.</CommandSubmitDesc>
<!--Preganancy messages-->
<RJW_PregnantTitle>{0}(이)가 임신했습니다.</RJW_PregnantTitle>
<RJW_PregnantText>{0}(은)는 임신했고 곧 엄마가 될 것입니다. 기아와 정신적 외상은 아이를 잃게 할 수 있다는 것을 명심하세요.</RJW_PregnantText>
<RJW_Contractions>{0}의 진통이 시작됐습니다! 아기가 나오고 있어요!</RJW_Contractions>
<RJW_GaveBirthTitle>출산</RJW_GaveBirthTitle>
<RJW_GaveBirthText>{0}(은)는 무사히 출산했습니다.</RJW_GaveBirthText>
<RJW_ABaby>그녀의 아기</RJW_ABaby>
<RJW_NBabies>{0}의 아기들</RJW_NBabies>
<RJW_PregnantStrange>아기가 뭔가 이상한...</RJW_PregnantStrange>
<!--Comfort designation-->
<ForComfort>이 자의 모든 권리를 빼앗아버리세요.</ForComfort>
<ForComfortDesc>성노예로 지정</ForComfortDesc>
<!--Whore-->
<ForService>고객은 직접 지정해야 합니다.</ForService>
<ForServiceDesc>창녀로 지정</ForServiceDesc>
<!--Breeding designations-->
<ForBreeding>수간 번식</ForBreeding>
<ForBreedingDesc>이 죄수를 동물 번식용으로 지정합니다.</ForBreedingDesc>
<BreedMessage>번식 활동 중</BreedMessage>
<ForBreedingAnimalDesc>이 동물이나 죄수를 올라탈 수 있게 지정합니다.</ForBreedingAnimalDesc>
<!--Milking-->
<ForMilking>착유</ForMilking>
<ForMilkingDesc>이 '것'에서 생물학적 소재를 추출합니다</ForMilkingDesc>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Korean/Keyed/RimJobWorld.xml
|
XML
|
mit
| 9,413 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Genitals.label>Гениталии</Genitals.label>
<Chest.label>грудная клетка</Chest.label>
<Anus.label>анус</Anus.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/BodyPartDef/PrivateParts.xml
|
XML
|
mit
| 217 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Concepts taught through the learning readout, when opportunities arise -->
<WhoreBeds.label>Кроватьи для шлюх</WhoreBeds.label>
<WhoreBeds.helpText>Шлюхи предпочитают работать в кровати.\n\nЭто специальные кровати которые ты можешь построить для них.</WhoreBeds.helpText>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ConceptDef/Concepts_NotedOpportunistic_obsolete
|
none
|
mit
| 453 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!--<rep>
<path>WhoreBeds.label</path>
<trans>Whore beds</trans>
</rep>-->
<!--<rep>
<path>WhoreBeds.helpText</path>
<trans>Whores prefer to work in beds.\n\nThere are specific whore beds you can build for them.</trans>
</rep>-->
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ConceptDef/Concepts_obsolete
|
none
|
mit
| 317 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<ViralDamage.label>поражен вирусом</ViralDamage.label>
<ViralDamage.deathMessage>{0} умер от болезни.</ViralDamage.deathMessage>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/DamageDef/Damage.xml
|
XML
|
mit
| 231 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Armbinder.label>наручники</Armbinder.label>
<Gag.label>кляп</Gag.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs.xml
|
XML
|
mit
| 161 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<FeelingBroken.label>Ступени сломленности</FeelingBroken.label>
<FeelingBroken.stages.0.label>early-stage</FeelingBroken.stages.0.label>
<FeelingBroken.stages.1.label>В трансе</FeelingBroken.stages.1.label>
<FeelingBroken.stages.2.label>Сломлен</FeelingBroken.stages.2.label>
<FeelingBroken.stages.3.label>Сломлен и подчинен</FeelingBroken.stages.3.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs_FeelingBroken.xml
|
XML
|
mit
| 484 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Severity will be set to equal (1.0 - blood_filtration) in xxx.update_std_effects -->
<Immunodeficiency.label>иммунодефицит</Immunodeficiency.label>
<Immunodeficiency.stages.0.label>слабый</Immunodeficiency.stages.0.label>
<Immunodeficiency.stages.1.label>средний</Immunodeficiency.stages.1.label>
<Immunodeficiency.stages.2.label>сильный</Immunodeficiency.stages.2.label>
<VirusPerma.label>повреждения вирусами</VirusPerma.label>
<VirusPerma.comps.0.oldLabel>повреждено вирусом</VirusPerma.comps.0.oldLabel>
<VirusPerma.comps.0.instantlyOldLabel>поврежденно вирусом</VirusPerma.comps.0.instantlyOldLabel>
<VirusPerma.injuryProps.destroyedLabel>уничтожено болезнью</VirusPerma.injuryProps.destroyedLabel>
<VirusPerma.injuryProps.destroyedOutLabel>уничтожено болезнью</VirusPerma.injuryProps.destroyedOutLabel>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs_Other.xml
|
XML
|
mit
| 1,022 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Dummy hediff: Triggers creation of real privates for newly created pawns -->
<DummyPrivates.label>dummy privates</DummyPrivates.label>
<!-- Regular privates -->
<Penis.label>пенис</Penis.label>
<!-- Additional dick sizes -->
<Micropenis.label>микропенис</Micropenis.label>
<SmallPenis.label>маленький пенис</SmallPenis.label>
<BigPenis.label>большой пенис</BigPenis.label>
<HugePenis.label>огромный пенис</HugePenis.label>
<HorsePenis.label>Конский пенис</HorsePenis.label>
<CatPenis.label>Кошачий пенис</CatPenis.label>
<DogPenis.label>Собачий пенис</DogPenis.label>
<DragonPenis.label>Драконий пенис</DragonPenis.label>
<Vagina.label>вагина</Vagina.label>
<TightVagina.label>узкая вагина</TightVagina.label>
<LooseVagina.label>просторная вагина</LooseVagina.label>
<!-- Natural Breasts -->
<Breasts.label>грудь</Breasts.label>
<SmallBreasts.label>маленькая грудь</SmallBreasts.label>
<LargeBreasts.label>большая грудь</LargeBreasts.label>
<HugeBreasts.label>дойки</HugeBreasts.label>
<!-- Natural anuses -->
<Anus.label>анус</Anus.label>
<TightAnus.label>узкий анус</TightAnus.label>
<LooseAnus.label>просторный анус</LooseAnus.label>
<!-- Simple prosthetic privates -->
<PegDick.label>деревянный дилдо</PegDick.label>
<HydraulicVagina.label>гидравлическая вагина</HydraulicVagina.label>
<HydraulicBreasts.label>гидравлическая грудь</HydraulicBreasts.label>
<HydraulicAnus.label>гидравлический анус</HydraulicAnus.label>
<!-- Bionic privates -->
<BionicPenis.label>бионический пенис</BionicPenis.label>
<BionicVagina.label>бионическая вагина</BionicVagina.label>
<BionicBreasts.label>бионическая грудь</BionicBreasts.label>
<BionicAnus.label>бионический анус</BionicAnus.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs_PrivateParts.xml
|
XML
|
mit
| 2,141 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<AcuteHIV.label>ВИЧ</AcuteHIV.label>
<AcuteHIV.stages.0.label>обнаружен</AcuteHIV.stages.0.label>
<AcuteHIV.stages.1.label>начальное</AcuteHIV.stages.1.label>
<AcuteHIV.stages.2.label>легкое</AcuteHIV.stages.2.label>
<AcuteHIV.stages.3.label>слабое</AcuteHIV.stages.3.label>
<AcuteHIV.stages.4.label>среднее</AcuteHIV.stages.4.label>
<AcuteHIV.stages.5.label>сильное</AcuteHIV.stages.5.label>
<AcuteHIV.stages.6.label>острое</AcuteHIV.stages.6.label>
<AcuteHIV.stages.7.label>опасное</AcuteHIV.stages.7.label>
<AcuteHIV.stages.8.label>критическое</AcuteHIV.stages.8.label>
<AcuteHIV.stages.9.label>летальное</AcuteHIV.stages.9.label>
<ChronicHIV.label>ВИЧ - хронический</ChronicHIV.label>
<ChronicHIV.stages.0.label>обнаружен</ChronicHIV.stages.0.label>
<ChronicHIV.stages.1.label>начальное</ChronicHIV.stages.1.label>
<ChronicHIV.stages.2.label>легкое</ChronicHIV.stages.2.label>
<ChronicHIV.stages.3.label>слабое</ChronicHIV.stages.3.label>
<ChronicHIV.stages.4.label>среднее</ChronicHIV.stages.4.label>
<ChronicHIV.stages.5.label>сильное</ChronicHIV.stages.5.label>
<ChronicHIV.stages.6.label>острое</ChronicHIV.stages.6.label>
<ChronicHIV.stages.7.label>опасное</ChronicHIV.stages.7.label>
<ChronicHIV.stages.8.label>критическое</ChronicHIV.stages.8.label>
<ChronicHIV.stages.9.label>летальное</ChronicHIV.stages.9.label>
<Herpes.label>Герпес</Herpes.label>
<Herpes.stages.0.label>легкий</Herpes.stages.0.label>
<Herpes.stages.1.label>средний</Herpes.stages.1.label>
<Herpes.stages.2.label>сильный</Herpes.stages.2.label>
<Warts.label>Бородавки</Warts.label>
<Warts.stages.0.label>легкие</Warts.stages.0.label>
<Warts.stages.1.label>слабые</Warts.stages.1.label>
<Syphilis.label>Сифилис</Syphilis.label>
<Syphilis.stages.0.label>легкий</Syphilis.stages.0.label>
<Syphilis.stages.1.label>средний</Syphilis.stages.1.label>
<Syphilis.stages.2.label>сильный</Syphilis.stages.2.label>
<Syphilis.stages.3.label>острый</Syphilis.stages.3.label>
<Syphilis.stages.4.label>критический</Syphilis.stages.4.label>
<Syphilis.stages.5.label>летальный</Syphilis.stages.5.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs_STDs.xml
|
XML
|
mit
| 2,450 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<RJW_BabyState.label>рост ребенка</RJW_BabyState.label>
<RJW_BabyState.stages.0.label>новорожденный</RJW_BabyState.stages.0.label>
<RJW_BabyState.stages.1.label>младенец</RJW_BabyState.stages.1.label>
<RJW_BabyState.stages.2.label>ребенок</RJW_BabyState.stages.2.label>
<!-- This only exists separately from BabyState to get around a bug making children drop their weapons on savegame load. -->
<RJW_NoManipulationFlag.label>не может манипулировать объектами</RJW_NoManipulationFlag.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs_SimpleBaby.xml
|
XML
|
mit
| 640 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Sterilized.label>Стерилен.</Sterilized.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/HediffDef/Hediffs_Sterilized.xml
|
XML
|
mit
| 129 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<TestInc.label>МЕМЫ</TestInc.label>
<TestInc.letterText>МЕМЫ ПРОИЗОШЛИ</TestInc.letterText>
<TestInc.letterLabel>МЕМЫ ПРОИЗОШЛИ</TestInc.letterLabel>
<!-- I dont think this is needed anymore -->
<SexualizeThePawns.label>Оценивает существ.</SexualizeThePawns.label>
<NymphJoins.label>Нимфоман присоеденился.</NymphJoins.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/IncidentDef/Incidents.xml
|
XML
|
mit
| 474 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<AnalSex.label>анальный секс</AnalSex.label>
<AnalSex.logRulesInitiator.rulesStrings.0>logentry->Анально изнасиловал [other_nameShortIndef].</AnalSex.logRulesInitiator.rulesStrings.0>
<AnalSex.logRulesRecipient.rulesStrings.0>logentry->Был анально изнасилован [other_nameShortIndef].</AnalSex.logRulesRecipient.rulesStrings.0>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/InteractionDef/Interactions.xml
|
XML
|
mit
| 454 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Fappin.reportString>Онанирует.</Fappin.reportString>
<!-- No longer need to override this def since the additional code is patched into the original driver
<JobDef>
<defName>Lovin</defName>
<driverClass>rjw.JobDriver_LovinPP</driverClass>
<reportString>lovin'.</reportString>
<checkOverrideOnDamage>true</checkOverrideOnDamage>
<casualInterruptible>false</casualInterruptible>
</JobDef> -->
<NymphJoinInBed.reportString>занимается сексом</NymphJoinInBed.reportString>
<ComfortPrisonerRapin.reportString>насилует</ComfortPrisonerRapin.reportString>
<GettinLoved.reportString>занимается сексом</GettinLoved.reportString>
<GettinRaped.reportString>жертва изнасилования</GettinRaped.reportString>
<StruggleInBondageGear.reportString>бореться</StruggleInBondageGear.reportString>
<UnlockBondageGear.reportString>снимает блокировку</UnlockBondageGear.reportString>
<GiveBondageGear.reportString>Одевает</GiveBondageGear.reportString>
<ViolateCorpse.reportString>Трахает труп.</ViolateCorpse.reportString>
<Bestiality.reportString>Трахает животное.</Bestiality.reportString>
<RandomRape.reportString>Случайное изнасилование.</RandomRape.reportString>
<WhoreIsServingVisitors.reportString>Обслуживает посетителей.</WhoreIsServingVisitors.reportString>
<InvitingVisitors.reportString>Пытается подцепить.</InvitingVisitors.reportString>
<!-- <JobDef>
<defName>ComfortPrisonerGangRapin</defName>
<driverClass>rjw.JobDriver_ComfortPrisonerGangRapin</driverClass>
<reportString>gang rapin'.</reportString>
<casualInterruptible>false</casualInterruptible>
</JobDef> -->
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/JobDef/Jobs.xml
|
XML
|
mit
| 1,877 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Sex.label>Секс</Sex.label>
<Sex.description>Отображает уровень сексуальной удовлетворенности, который достигается за счет осуществления сексуальной деятельности и снижается во время простоя. Сон приостанавливает нужду.</Sex.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/NeedDef/Needs.xml
|
XML
|
mit
| 470 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Reproduction.label>плодовитость</Reproduction.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/PawnCapacityDef/PawnCapacity.xml
|
XML
|
mit
| 140 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Nymph.label>нимфоман</Nymph.label>
<Nymph.labelPlural>нимфоманы</Nymph.labelPlural>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/PawnKindDef/PawnKinds.xml
|
XML
|
mit
| 177 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<MakeHololock.label>сделать hololock</MakeHololock.label>
<MakeHololock.description>Сделать голографический замок.</MakeHololock.description>
<MakeHololock.jobString>Делает голографический замок.</MakeHololock.jobString>
<MakeArmbinder.label>сделать наручники</MakeArmbinder.label>
<MakeArmbinder.description>Сделать наручники.</MakeArmbinder.description>
<MakeArmbinder.jobString>Делает наручники.</MakeArmbinder.jobString>
<MakeGag.label>сделать кляп</MakeGag.label>
<MakeGag.description>Сделать кляп.</MakeGag.description>
<MakeGag.jobString>Делает кляп.</MakeGag.jobString>
<MakeChastityBelt.label>сделать пояс верности</MakeChastityBelt.label>
<MakeChastityBelt.description>Сделать пояс верности.</MakeChastityBelt.description>
<MakeChastityBelt.jobString>Делает пояс верности.</MakeChastityBelt.jobString>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RecipeDef/Recipes_Production.xml
|
XML
|
mit
| 1,095 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<MakePegDick.label>выстругать деревянный член</MakePegDick.label>
<MakePegDick.description>Выстругать дилдо из куска дерева.</MakePegDick.description>
<MakePegDick.jobString>Выстругивает деревянный член.</MakePegDick.jobString>
<MakeBionicPenis.label>сделать бионический пенис</MakeBionicPenis.label>
<MakeBionicPenis.description>Сделать бионический пенис из гиперткани, пластали, и копмонентов.</MakeBionicPenis.description>
<MakeBionicPenis.jobString>Делает бионический пенис. </MakeBionicPenis.jobString>
<!--[Duplicated] <MakeHydraulicVagina.label>craft hydraulic vagina</MakeHydraulicVagina.label>-->
<!--[Duplicated] <MakeHydraulicVagina.description>Crafts a hydraulic vagina from steel and components.</MakeHydraulicVagina.description>-->
<!--[Duplicated] <MakeHydraulicVagina.jobString>Crafting hydraulic vagina.</MakeHydraulicVagina.jobString>-->
<!--[Duplicated] <MakeBionicVagina.label>craft bionic vagina</MakeBionicVagina.label>-->
<!--[Duplicated] <MakeBionicVagina.description>Crafts a bionic vagina from hyperweave, plasteel, and components.</MakeBionicVagina.description>-->
<!--[Duplicated] <MakeBionicVagina.jobString>Crafting bionic vagina.</MakeBionicVagina.jobString>-->
<MakeHydraulicVagina.label>собрать гидравлическую вагину</MakeHydraulicVagina.label>
<MakeHydraulicVagina.description>Собрать гидравлическую вагину из стали и компонентов. </MakeHydraulicVagina.description>
<MakeHydraulicVagina.jobString>Собирает гидравлическую вагину.</MakeHydraulicVagina.jobString>
<MakeBionicVagina.label>сделать бионическую вагину</MakeBionicVagina.label>
<MakeBionicVagina.description>Сделать бионическую вагину из гиперткани, пластали, и компонентов.</MakeBionicVagina.description>
<MakeBionicVagina.jobString>Делает бионическую вагину.</MakeBionicVagina.jobString>
<MakeHydraulicBreasts.label>собрать гидравлическую грудь</MakeHydraulicBreasts.label>
<MakeHydraulicBreasts.description>Собрать гидравлическую грудь из стали и компонентов.</MakeHydraulicBreasts.description>
<MakeHydraulicBreasts.jobString>Собирает гидравлическую грудь.</MakeHydraulicBreasts.jobString>
<MakeBionicBreasts.label>сделать бионическую грудь</MakeBionicBreasts.label>
<MakeBionicBreasts.description>Сделать бионическую грудь из гиперткани, пластали и компонентов.</MakeBionicBreasts.description>
<MakeBionicBreasts.jobString>Делает бионическую грудь.</MakeBionicBreasts.jobString>
<MakeHydraulicAnus.label>собрать гидравлический анус</MakeHydraulicAnus.label>
<MakeHydraulicAnus.description>Собрать гидравлический анус из стали о компонентов.</MakeHydraulicAnus.description>
<MakeHydraulicAnus.jobString>Собирает гидравлический анус.</MakeHydraulicAnus.jobString>
<MakeBionicAnus.label>Сделать бионический анус</MakeBionicAnus.label>
<MakeBionicAnus.description>Сделать бионический анус из гиперткани, компонентов и пластали.</MakeBionicAnus.description>
<MakeBionicAnus.jobString>Делает бионический анус.</MakeBionicAnus.jobString>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RecipeDef/Recipes_Prosthetics.xml
|
XML
|
mit
| 3,813 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Attach natural privates -->
<AttachPenis.label>имплантировать пенис</AttachPenis.label>
<AttachPenis.description>Имплантирует пенис.</AttachPenis.description>
<AttachPenis.jobString>Имплантирует пенис.</AttachPenis.jobString>
<InstallVagina.label>имплантировать вагину</InstallVagina.label>
<InstallVagina.description>Имплантирует вагину.</InstallVagina.description>
<InstallVagina.jobString>Имплантирует вагину.</InstallVagina.jobString>
<InstallTightVagina.label>имплантировать узкую вагину</InstallTightVagina.label>
<InstallTightVagina.description>Имплантирует узкую вагину.</InstallTightVagina.description>
<InstallTightVagina.jobString>Имплантирует узкую вагину.</InstallTightVagina.jobString>
<InstallLooseVagina.label>имплантировать просторную вагину</InstallLooseVagina.label>
<InstallLooseVagina.description>Имплантирует просторную вагину.</InstallLooseVagina.description>
<InstallLooseVagina.jobString>Имплантирует просторную вагину.</InstallLooseVagina.jobString>
<AttachMicropenis.label>имплантировать микропенис</AttachMicropenis.label>
<AttachMicropenis.description>Имплантирует микропенис.</AttachMicropenis.description>
<AttachMicropenis.jobString>Имплантирует микропенис.</AttachMicropenis.jobString>
<AttachSmallPenis.label>имплантировать маленький пенис</AttachSmallPenis.label>
<AttachSmallPenis.description>Имплантирует маленький пенис.</AttachSmallPenis.description>
<AttachSmallPenis.jobString>Имплантирует маленький пенис.</AttachSmallPenis.jobString>
<AttachBigPenis.label>имплантировать большой пенис</AttachBigPenis.label>
<AttachBigPenis.description>Имплантирует большой пенис.</AttachBigPenis.description>
<AttachBigPenis.jobString>Имплантирует большой пенис.</AttachBigPenis.jobString>
<AttachHugePenis.label>имплантировать огромнй пенис</AttachHugePenis.label>
<AttachHugePenis.description>Имплантирует огромный пенис.</AttachHugePenis.description>
<AttachHugePenis.jobString>Имплантирует огромный пенис.</AttachHugePenis.jobString>
<AttachHorsePenis.label>имплантировать конский член</AttachHorsePenis.label>
<AttachHorsePenis.description>Имплантирует конский член.</AttachHorsePenis.description>
<AttachHorsePenis.jobString>Имплантирует конский член.</AttachHorsePenis.jobString>
<AttachCatPenis.label>имплантировать кошачий член</AttachCatPenis.label>
<AttachCatPenis.description>Имплантирует кошачий член.</AttachCatPenis.description>
<AttachCatPenis.jobString>Имплантирует кошачий член.</AttachCatPenis.jobString>
<AttachDogPenis.label>имплантировать собачий член</AttachDogPenis.label>
<AttachDogPenis.description>Имплантирует собачий член.</AttachDogPenis.description>
<AttachDogPenis.jobString>Имплантирует собачий член.</AttachDogPenis.jobString>
<AttachDragonPenis.label>имплантировать драконий член</AttachDragonPenis.label>
<AttachDragonPenis.description>Имплантирует драконий член.</AttachDragonPenis.description>
<AttachDragonPenis.jobString>Имплантирует драконий член.</AttachDragonPenis.jobString>
<!-- Breasts -->
<AttachSmallBreasts.label>имплантировать маленькую грудь</AttachSmallBreasts.label>
<AttachSmallBreasts.description>Имплантирует пару маленьких сисек.</AttachSmallBreasts.description>
<AttachSmallBreasts.jobString>Имплантирует пару маленьких сисек.</AttachSmallBreasts.jobString>
<AttachBreasts.label>имплантировать нормальную грудь</AttachBreasts.label>
<AttachBreasts.description>Имплантирует пару сисек.</AttachBreasts.description>
<AttachBreasts.jobString>Имплантирует пару сисек.</AttachBreasts.jobString>
<AttachLargeBreasts.label>имплантировать большую грудь</AttachLargeBreasts.label>
<AttachLargeBreasts.description>Имплантирует пару больших сисек.</AttachLargeBreasts.description>
<AttachLargeBreasts.jobString>Имплантирует пару больших сисек.</AttachLargeBreasts.jobString>
<AttachHugeBreasts.label>имплантировать огромные сиськи</AttachHugeBreasts.label>
<AttachHugeBreasts.description>Имплантирует пару доек.</AttachHugeBreasts.description>
<AttachHugeBreasts.jobString>Имплантирует пару доек.</AttachHugeBreasts.jobString>
<AttachAnus.label>имплантировать нормальный анус</AttachAnus.label>
<AttachAnus.description>Имплантирует анус.</AttachAnus.description>
<AttachAnus.jobString>Имплантирует анус.</AttachAnus.jobString>
<AttachLooseAnus.label>имплантировать просторный анус</AttachLooseAnus.label>
<AttachLooseAnus.description>Имплантирует просторный анус.</AttachLooseAnus.description>
<AttachLooseAnus.jobString>Имплантирует просторный анус.</AttachLooseAnus.jobString>
<AttachTightAnus.label>имплантировать узкий анус</AttachTightAnus.label>
<AttachTightAnus.description>Имплантирует узкий анус.</AttachTightAnus.description>
<AttachTightAnus.jobString>Имплантирует узкий анус.</AttachTightAnus.jobString>
<!-- Attach simple prosthetic privates -->
<InstallHydraulicVagina.label>устанавить гидравлическую вагину</InstallHydraulicVagina.label>
<InstallHydraulicVagina.description>Устанавливает гидравлическую вагину.</InstallHydraulicVagina.description>
<InstallHydraulicVagina.jobString>Устанавливает гидравлическую вагину.</InstallHydraulicVagina.jobString>
<InstallHydraulicBreasts.label>установить гидравлическую грудь</InstallHydraulicBreasts.label>
<InstallHydraulicBreasts.description>Устанавливает гидравлическую грудь.</InstallHydraulicBreasts.description>
<InstallHydraulicBreasts.jobString>Устанавливает гидравлическую грудь.</InstallHydraulicBreasts.jobString>
<InstallHydraulicAnus.label>установить гидравлический анус</InstallHydraulicAnus.label>
<InstallHydraulicAnus.description>Устанавливает гидравлический анус.</InstallHydraulicAnus.description>
<InstallHydraulicAnus.jobString>Устанавливает гидравлический анус.</InstallHydraulicAnus.jobString>
<AttachPegDick.label>прикрепить деревянный дилдо</AttachPegDick.label>
<AttachPegDick.description>Прикрепляет деревянный дилдо.</AttachPegDick.description>
<AttachPegDick.jobString>Прикрепляет деревянный дилдо.</AttachPegDick.jobString>
<!-- Attach bionic privates -->
<InstallBionicVagina.label>вживить бионическую вагину</InstallBionicVagina.label>
<InstallBionicVagina.description>Вживляет бионическую вагину.</InstallBionicVagina.description>
<InstallBionicVagina.jobString>Вживляет бионическую вагину.</InstallBionicVagina.jobString>
<AttachBionicPenis.label>вживить бионический пенис</AttachBionicPenis.label>
<AttachBionicPenis.description>Вживляет бионический пенис.</AttachBionicPenis.description>
<AttachBionicPenis.jobString>Вживляет бионический пенис.</AttachBionicPenis.jobString>
<InstallBionicBreasts.label>вживить бионическую грудь</InstallBionicBreasts.label>
<InstallBionicBreasts.description>Вживляет бионическую грудь.</InstallBionicBreasts.description>
<InstallBionicBreasts.jobString>Вживляет бионическую грудь.</InstallBionicBreasts.jobString>
<InstallBionicAnus.label>вживить бионический анус</InstallBionicAnus.label>
<InstallBionicAnus.description>Вживляет бионический анус.</InstallBionicAnus.description>
<InstallBionicAnus.jobString>Вживляет бионическую анус.</InstallBionicAnus.jobString>
<!-- Remove privates -->
<Nullify.label>оскопить</Nullify.label>
<Nullify.description>Отрезать все половые органы, делая невозможным занятие сексом.</Nullify.description>
<Nullify.jobString>Оскопляет</Nullify.jobString>
<RemoveBreasts.label>удалить грудь</RemoveBreasts.label>
<RemoveBreasts.description>Избавляет от груди.</RemoveBreasts.description>
<RemoveBreasts.jobString>Отрезает грудь.</RemoveBreasts.jobString>
<RemoveAnus.label>уалить анус</RemoveAnus.label>
<RemoveAnus.description>Удаляет анус.</RemoveAnus.description>
<RemoveAnus.jobString>Вырезает анус.</RemoveAnus.jobString>
<!-- targetsBodyPart>true</targetsBodyPart -->
<Sterilization.label>стерилизовать</Sterilization.label>
<Sterilization.description>Предотвратить репродукцию не удаляя генеталии.</Sterilization.description>
<Sterilization.jobString>Стерилизует.</Sterilization.jobString>
<!-- sterilization -->
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RecipeDef/Recipes_Surgery.xml
|
XML
|
mit
| 10,279 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RecordDef/Records_GetRaped.xml
|
XML
|
mit
| 73 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<AnalRapeSucceeded.rulePack.rulesStrings.0>sent-> [recipient_nameShortDef] успешно изнасилован анально.</AnalRapeSucceeded.rulePack.rulesStrings.0>
<AnalRapeFailed.rulePack.rulesStrings.0>sent-> [recipient_nameShortDef] не имеет ануса.</AnalRapeFailed.rulePack.rulesStrings.0>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RulePackDef/RulePacks_AnalRape.xml
|
XML
|
mit
| 389 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<AnalSexSucceeded.rulePack.rulesStrings.0>sent-> [recipient_nameShortDef] был успешный анальный секс.</AnalSexSucceeded.rulePack.rulesStrings.0>
<AnalSexFailed.rulePack.rulesStrings.0>sent-> [recipient_nameShortDef] нет ануса.</AnalSexFailed.rulePack.rulesStrings.0>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RulePackDef/RulePacks_AnalSex.xml
|
XML
|
mit
| 373 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<EngravedName.rulePack.rulesStrings.0>name->[animalnameunisex]</EngravedName.rulePack.rulesStrings.0>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/RulePackDef/RulePacks_EngravedNames.xml
|
XML
|
mit
| 176 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<SexAbility.label>сексуальные навыки</SexAbility.label>
<SexAbility.description>Отображает на сколько поселенец хорош в сексе</SexAbility.description>
<Vulnerability.label>vulnerability</Vulnerability.label>
<Vulnerability.description>Отображает на сколько вероятен захват сексуального пруимущества.</Vulnerability.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/StatDef/Stats.xml
|
XML
|
mit
| 519 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Hololock.label>Голографический замок</Hololock.label>
<Hololock.description>
Высокотехнологичный запирающий механизм. Особенности включают:
- Чрезвычайно крепкий, усиленный пласталью.
- Ключ и замок соединены с использованием криптографического UID, голографически встроенного в нефритовый субстрат, гарантируют, что поддельные ключи невозможно изготовить
- Самово-разрушающие отказоустойчивые триггеры при взломе замка гарантирет, что защищенный предмет уничтожается, а не захватывается противником.
Первоначально разработанный для использования в военных целях, голографический замок с тех пор стал популярным в сообществе BDSM, где принято выгравировать пару ключ и замок с соответствующими именами, для более легкой идентификации.
</Hololock.description>
<Holokey.label>Голографический ключ</Holokey.label>
<Holokey.description>Высокотехнологичный ключ. Открывает замок с таким же криптографическим штампом.</Holokey.description>
<Holokey.comps.2.useLabel>Разблокировать замок</Holokey.comps.2.useLabel>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ThingDef/Items.xml
|
XML
|
mit
| 1,789 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Natural Penises -->
<Penis.label>пенис</Penis.label>
<Penis.description>
Обычный отрезанный пенис. Это средний размер. Все в порядке, ничего плохого в этом нет. Действительно, нет никакого стыда в том чтобы быть средним. Это просто ... вы понимаете ... просто среднее.</Penis.description>
<Micropenis.label>микропенис</Micropenis.label>
<Micropenis.description>
Отрезанный мизинец.
Ах, нет подождите...
</Micropenis.description>
<SmallPenis.label>маленький пенис</SmallPenis.label>
<SmallPenis.description>
Отрезанный пенис.Он маленький, так что я надеюсь ты интересная разносторонняя личность.
A severed penis. It's rather small, so I hope you've got a great severed personality.</SmallPenis.description>
<BigPenis.label>большой пенис</BigPenis.label>
<BigPenis.description>Большой отрезанный пенис.</BigPenis.description>
<HugePenis.label>огромный пенис</HugePenis.label>
<HugePenis.description>Большой отрезанный пенис.</HugePenis.description>
<HorsePenis.label>конский член</HorsePenis.label>
<HorsePenis.description>Отрезанный член кентавра. Великоват для человека.</HorsePenis.description>
<CatPenis.label>кошачий член</CatPenis.label>
<CatPenis.description>Отрезанный член кошкодевочки. Длинный, тонкий и колючий.</CatPenis.description>
<DogPenis.label>собачий член</DogPenis.label>
<DogPenis.description>Отрезанный собачий член. Толстый .</DogPenis.description>
<DragonPenis.label>драконий член</DragonPenis.label>
<DragonPenis.description>Отрезанный драконий член. Твердый, большой и толстый.</DragonPenis.description>
<!-- Natural Vaginas -->
<Vagina.label>вагина</Vagina.label>
<Vagina.description>Вырезанная вагина, что бы это не значило.</Vagina.description>
<TightVagina.label>узкая вагина</TightVagina.label>
<TightVagina.description>Вырезнная узкая вагина, что бы это не значило.</TightVagina.description>
<LooseVagina.label>просторная вагина</LooseVagina.label>
<LooseVagina.description>Вырезанная просторная вагина, что бы это не значило.</LooseVagina.description>
<!-- Natural Breasts -->
<Breasts.label>грудь</Breasts.label>
<Breasts.description>Пара отрезанных сисек.</Breasts.description>
<SmallBreasts.label>маленькая грудь</SmallBreasts.label>
<SmallBreasts.description>Пара отрезанных маленьких сисек. Маленькие не значит плохие.</SmallBreasts.description>
<LargeBreasts.label>большая грудь</LargeBreasts.label>
<LargeBreasts.description>Пара отрезанных больших сисек.</LargeBreasts.description>
<HugeBreasts.label>огромная грудь</HugeBreasts.label>
<HugeBreasts.description>Пара отрезанных огромных сисек.</HugeBreasts.description>
<!-- Natural Anuses -->
<Anus.label>анус</Anus.label>
<Anus.description>Вырезанный анус... да я не знаю, что это значит.</Anus.description>
<TightAnus.label>узкий анус</TightAnus.label>
<TightAnus.description>Вырезанный узкий анус... да я не знаю, что это значит.</TightAnus.description>
<LooseAnus.label>широкий анус</LooseAnus.label>
<LooseAnus.description>Эй смотрите, пончик. Просто шучу, это анус.</LooseAnus.description>
<!-- Simple prosthetic penises -->
<PegDick.label>член-колышек</PegDick.label>
<PegDick.description>Деревянный дилдо спроэктированный заменить потерянный пенис. !ОСТОРОЖНО ЗАНОЗЫ!</PegDick.description>
<!-- Simple prosthetic vaginas -->
<HydraulicVagina.label>гидравлическая вагина</HydraulicVagina.label>
<HydraulicVagina.description>Низкотехнологичное протезное влагалище. Ее холодные металлические захваты неудобны, но имеют большую мощность всасывания.</HydraulicVagina.description>
<!-- Simple prosthetic breasts -->
<HydraulicBreasts.label>гидравлическая грудь</HydraulicBreasts.label>
<HydraulicBreasts.description>Низкотехнологичные протезные груди. Конический металл с повышенным насосным действием, распылите на друзей.</HydraulicBreasts.description>
<!-- Simple prosthetic anuses -->
<HydraulicAnus.label>гидравлический анус</HydraulicAnus.label>
<HydraulicAnus.description>Низкотехнологичный протезный анус. Его холодные металлические захваты неудобны, но имеют большую мощность всасывания.</HydraulicAnus.description>
<!-- Bionic penises -->
<BionicPenis.label>бионический пенис</BionicPenis.label>
<BionicPenis.description>
Высокотехнологичный протезный пенис. Особенности включают:
- НЕВЕРОЯТНО ОГРОМНЫЙ, этот протез больше, чем любой известный натуральный пенис, и является самым большим протезом полового члена, допустимым в соответствии с федеральным законом.
- Более 50 различных режимов вибрации, включая 10 сильнейших стимулирующих сигналов, известных науке
- Современный нейронный интерфейс активирует нейронные окончания, о которых вы даже не догадывались, что вы даже не представляли себе, что вы можете это чувствовать.
</BionicPenis.description>
<!-- Bionic vaginas -->
<BionicVagina.label>бионическая вагина</BionicVagina.label>
<BionicVagina.description>
Высокотехнологичное протезное влагалище. Особенности включают:
- Внутренняя сторона, облицованная 150 миллионами микро-точками G
- Изменяет размер чтобы подойти любому пенису
- Автоматическая смазка с борофритным псевдофлюидом, гладкая, но не вязкая (включает в себя легкую вязкость в случае, если вы ею покрыты)
- Технология SenseID идентифицирует человека, которого вы трахаете, автоматически добавляет его на Facebook и связывается с его матерью, представляя вас его новой девушкой)
</BionicVagina.description>
<!-- Bionic breasts -->
<BionicBreasts.label>бионическая грудь</BionicBreasts.label>
<BionicBreasts.description>
Высокотехнологичные протезные груди. Особенности включают:
- Изменяет размер до любого желаемого.
</BionicBreasts.description>
<!-- Bionic anuses -->
<BionicAnus.label>бионический анус</BionicAnus.label>
<BionicAnus.description>
Высокотехнологичный протезный анус. Особенности включают:
- Изменяет размер чтобы подойти любому пенису
- Автоматическая смазка с борофритным псевдофлюидом, гладкая, но не вязкая (включает в себя легкую вязкость в случае, если вы ею покрыты)
</BionicAnus.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ThingDef/Items_PrivateParts.xml
|
XML
|
mit
| 8,713 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<FilthCum.label>Конча</FilthCum.label>
<BedWhore.label>кровать для шлюх</BedWhore.label>
<BedWhore.description>Кровать специально разработанная для шлюх.</BedWhore.description>
<BedWhore_Blueprint.label>кровать для шлюх (чертеж)</BedWhore_Blueprint.label>
<BedWhore_Blueprint_Install.label>кровать для шлюх (чертеж)</BedWhore_Blueprint_Install.label>
<BedWhore_Frame.label>кровать для шлюх (строительство)</BedWhore_Frame.label>
<BedWhore_Frame.description>Кровать специально разработанная для шлюх.</BedWhore_Frame.description>
<DoubleBedWhore.label>двойная кровать для шлюх</DoubleBedWhore.label>
<DoubleBedWhore.description>Простая двойная кровать для шлюх, на ней могут поместиться два человека, специально разработанная для шлюх.</DoubleBedWhore.description>
<DoubleBedWhore_Blueprint.label>двойная кровать для шлюх (чертеж)</DoubleBedWhore_Blueprint.label>
<DoubleBedWhore_Blueprint_Install.label>двойная кровать для шлюх (чертеж)</DoubleBedWhore_Blueprint_Install.label>
<DoubleBedWhore_Frame.label>двойная кровать для шлюх (строительство)</DoubleBedWhore_Frame.label>
<DoubleBedWhore_Frame.description>Простая двойная кровать для шлюх, на ней могут поместиться два человека, специально разработанная для шлюх.</DoubleBedWhore_Frame.description>
<RoyalBedWhore.label>королевская кровать для шлюх</RoyalBedWhore.label>
<RoyalBedWhore.description>Сияющая инкрустированная золотом кровать специально для высокорожденных шлюх. Очень удобненькая и красивая. Вмещает двух человек.</RoyalBedWhore.description>
<RoyalBedWhore_Blueprint.label>королевская кровать для шлюх (чертеж)</RoyalBedWhore_Blueprint.label>
<RoyalBedWhore_Blueprint_Install.label>королевская кровать для шлюх (чертеж)</RoyalBedWhore_Blueprint_Install.label>
<RoyalBedWhore_Frame.label>королевская кровать для шлюх (строительство)</RoyalBedWhore_Frame.label>
<RoyalBedWhore_Frame.description>Сияющая инкрустированная золотом кровать специально для высокорожденных шлюх. Очень удобненькая и красивая. Вмещает двух человек.</RoyalBedWhore_Frame.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ThingDef/ThingsDef_XXX.xml
|
XML
|
mit
| 2,918 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- These are Mote ThingDefs. Remain the same, DO NOT translate them. -->
<Mote_NoHeart.label>Mote</Mote_NoHeart.label>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ThingDef/_Things_Mote.xml
|
XML
|
mit
| 197 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Bound.stages.0.label>связан</Bound.stages.0.label>
<Bound.stages.0.description>Эта штука сильно раздражает. Вот бы избавится от нее...</Bound.stages.0.description>
<Bound.stages.1.label>с кляпом во рту</Bound.stages.1.label>
<Bound.stages.1.description>Иш шшнн иш шрррш умннннн.</Bound.stages.1.description>
<Bound.stages.2.label>связан с кляпом во рту</Bound.stages.2.label>
<Bound.stages.2.description>Уфф иш хххх шшррррнннн шххрррр! Ххек ши тфффф!</Bound.stages.2.description>
<MasochistBound.stages.0.label>связанный мазохист</MasochistBound.stages.0.label>
<MasochistBound.stages.0.description>хе... хе хе...</MasochistBound.stages.0.description>
<MasochistBound.stages.1.label>мазохист с кляпом во рту</MasochistBound.stages.1.label>
<MasochistBound.stages.1.description>Нннн шш хххч ухтнн.</MasochistBound.stages.1.description>
<MasochistBound.stages.2.label>мазохист связан и с кляпом во рту</MasochistBound.stages.2.label>
<MasochistBound.stages.2.description>Шттт иххх шррр ффф шннн... шш чххнн урфш~!</MasochistBound.stages.2.description>
<NeedSex.stages.0.label>сексуально неудовлетворенный</NeedSex.stages.0.label>
<NeedSex.stages.0.description>То чувство, когда...</NeedSex.stages.0.description>
<NeedSex.stages.1.label>сексуально возбужденный</NeedSex.stages.1.label>
<NeedSex.stages.1.description>Уже так долго. Я не могу думать ни о чем другом кроме секса.</NeedSex.stages.1.description>
<NeedSex.stages.2.label>сексуально удовлетворенный</NeedSex.stages.2.label>
<NeedSex.stages.2.description>Хорошенько покувыркался под одеялом.</NeedSex.stages.2.description>
<NeedSex.stages.3.label>ahegao</NeedSex.stages.3.label>
<NeedSex.stages.3.description>Мои ноги онемели, мой язык вывалился изо рта, и мои глаза закатились назад.</NeedSex.stages.3.description>
<ItchyCrotch.stages.0.label>чешущаяся промежность</ItchyCrotch.stages.0.label>
<ItchyCrotch.stages.0.description>Я не думаю, что кто-то смотрит. Я просто...</ItchyCrotch.stages.0.description>
<ItchyCrotch.stages.1.label>чешущаяся, жгучая промежность</ItchyCrotch.stages.1.label>
<ItchyCrotch.stages.1.description>Худшая часть: Чем больше чешешь тем сильнее печет.</ItchyCrotch.stages.1.description>
<SyphiliticThoughts.stages.0.label>мысли сифилитика</SyphiliticThoughts.stages.0.label>
<SyphiliticThoughts.stages.0.description>Все такие тупые и все так раздражжает. Даже я, я не могу думать ясно.</SyphiliticThoughts.stages.0.description>
<SyphiliticThoughts.stages.1.label>экстримальные мысли сифилитика</SyphiliticThoughts.stages.1.label>
<SyphiliticThoughts.stages.1.description>Ладно, все что мне нужно... эм... что я опять делаю? Ладно вот так. Эта ебаная штука ЕБАНЫЫЙ КУСОК ДЕРЬМА. ЕБАНАЯ ХУЙНЯ</SyphiliticThoughts.stages.1.description>
<WastingAway.stages.0.label>чахнет</WastingAway.stages.0.label>
<WastingAway.stages.0.description>Каждый день я чуствую себя все слабее. Я ощущаяю как моя жизнь медленно покидает меня.</WastingAway.stages.0.description>
<FeelingBroken.stages.0.label>головокружение</FeelingBroken.stages.0.label>
<FeelingBroken.stages.0.description>Я чуствую сеюя истощенным(ной) моя голова кружиться, после стольких изнасилований.</FeelingBroken.stages.0.description>
<FeelingBroken.stages.1.label>мое тело сломлено</FeelingBroken.stages.1.label>
<FeelingBroken.stages.1.description>Нет...Я не хочу...аах...аххх...мое тело...сломлено...</FeelingBroken.stages.1.description>
<FeelingBroken.stages.2.label>просит большего</FeelingBroken.stages.2.label>
<FeelingBroken.stages.2.description>Хозяева, прошу накажите меня, мое смиренное тело полностью ваше. Пожалуйста заполните меня своей спермой.</FeelingBroken.stages.2.description>
<SawDiseasedPrivates1.stages.0.label>видел ужасную сыпь на промежности{0}</SawDiseasedPrivates1.stages.0.label>
<SawDiseasedPrivates2.stages.0.label>видел(а) мерзкие бородавки на промежности{0}</SawDiseasedPrivates2.stages.0.label>
<SawDiseasedPrivates3.stages.0.label>тошнит от больной промежности {0} </SawDiseasedPrivates3.stages.0.label>
<GotRaped.stages.0.label>изнасилован(а)</GotRaped.stages.0.label>
<GotRaped.stages.0.labelSocial>изнасилован(а)</GotRaped.stages.0.labelSocial>
<GotRaped.stages.0.description>Меня изнасиловали.</GotRaped.stages.0.description>
<MasochistGotRaped.stages.0.label>изнасилован(а) (Мазохист)</MasochistGotRaped.stages.0.label>
<MasochistGotRaped.stages.0.labelSocial>изнасилован(а) (Мазохист)</MasochistGotRaped.stages.0.labelSocial>
<MasochistGotRaped.stages.0.description>Меня использовали и выбросили как кусок мяса. Мне кажется.. что так и должно быть.</MasochistGotRaped.stages.0.description>
<GotBredByAnimal.stages.0.label>изнасилован животным</GotBredByAnimal.stages.0.label>
<GotBredByAnimal.stages.0.labelSocial>изнасилован животным</GotBredByAnimal.stages.0.labelSocial>
<GotBredByAnimal.stages.0.description>Животное пыталось спариваться со мной...</GotBredByAnimal.stages.0.description>
<MasochistGotBredByAnimal.stages.0.label>изнасилован животным (Мазохист)</MasochistGotBredByAnimal.stages.0.label>
<MasochistGotBredByAnimal.stages.0.labelSocial>изнасилован животным (Мазохист)</MasochistGotBredByAnimal.stages.0.labelSocial>
<MasochistGotBredByAnimal.stages.0.description>Животное спаривалось со мной. Я надеюсь все удалось!</MasochistGotBredByAnimal.stages.0.description>
<HateMyRapist.stages.0.label>изнасиловал меня</HateMyRapist.stages.0.label>
<HateMyRapist.stages.0.description>Я был(а) изнасилован(а) {0} раз.</HateMyRapist.stages.0.description>
<KindaLikeMyRapist.stages.0.label>изнасиловал(а) меня (Мазохист)</KindaLikeMyRapist.stages.0.label>
<KindaLikeMyRapist.stages.0.labelSocial>изнасиловал(а) меня (Мазохист)</KindaLikeMyRapist.stages.0.labelSocial>
<KindaLikeMyRapist.stages.0.description>Я был(а) изнасилован(а) {0} раз.</KindaLikeMyRapist.stages.0.description>
<AllowedMeToGetRaped.stages.0.label>позволил(а) насиловать меня</AllowedMeToGetRaped.stages.0.label>
<AllowedMeToGetRaped.stages.0.labelSocial>позволил(а) насиловать меня</AllowedMeToGetRaped.stages.0.labelSocial>
<AllowedMeToGetRaped.stages.0.description>Я страдал(а) пока {0} просто смотрел(а) в сторону.</AllowedMeToGetRaped.stages.0.description>
<StoleSomeLovin.stages.0.label>насильник</StoleSomeLovin.stages.0.label>
<StoleSomeLovin.stages.0.labelSocial>насильник</StoleSomeLovin.stages.0.labelSocial>
<StoleSomeLovin.stages.0.description>Я изнасиловал заключенного. Секс был весьма дерьмовый, но это лучше чем ничего.</StoleSomeLovin.stages.0.description>
<BloodlustStoleSomeLovin.stages.0.label>насильник (Кровожадность)</BloodlustStoleSomeLovin.stages.0.label>
<BloodlustStoleSomeLovin.stages.0.labelSocial>насильник (Кровожадность)</BloodlustStoleSomeLovin.stages.0.labelSocial>
<BloodlustStoleSomeLovin.stages.0.description>Я изнасиловал заключенного. Крики, слезы, кровь, это было так круто! Я не чуствовал себя так хорошо с тех пор как разбил этих дикарей.</BloodlustStoleSomeLovin.stages.0.description>
<ViolatedCorpse.stages.0.label>занимался сексом с трупом</ViolatedCorpse.stages.0.label>
<ViolatedCorpse.stages.0.labelSocial>занимался сексом с трупом</ViolatedCorpse.stages.0.labelSocial>
<ViolatedCorpse.stages.0.description>{0}не был единственым, что было жестким, если вы понимаете, о чем я...</ViolatedCorpse.stages.0.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/ThoughtDef/Thoughts.xml
|
XML
|
mit
| 9,376 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Nymphomaniac.degreeDatas.0.label>Нимфоман</Nymphomaniac.degreeDatas.0.label>
<Nymphomaniac.degreeDatas.0.description>NAME любит секс и всегда хочет большего.</Nymphomaniac.degreeDatas.0.description>
<Rapist.degreeDatas.0.label>Насильник</Rapist.degreeDatas.0.label>
<Rapist.degreeDatas.0.description>Для NAME 'Нет!' это не ответ.</Rapist.degreeDatas.0.description>
<Necrophiliac.degreeDatas.0.label>Некрофил</Necrophiliac.degreeDatas.0.label>
<Necrophiliac.degreeDatas.0.description>Мертвые не говорят нет...</Necrophiliac.degreeDatas.0.description>
<Zoophile.degreeDatas.0.label>Зоофил</Zoophile.degreeDatas.0.label>
<Zoophile.degreeDatas.0.description>NAME любит дикую природу.</Zoophile.degreeDatas.0.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/TraitDef/Traits.xml
|
XML
|
mit
| 914 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<RapeCP.label>Насиловать заключенных помеченых для комфорта</RapeCP.label>
<RapeCP.verb>Изнасилование.</RapeCP.verb>
<RapeCP.gerund>Насилует.</RapeCP.gerund>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/WorkGiverDef/WorkGivers.xml
|
XML
|
mit
| 296 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<DesignatorComfortPrisoner.label>заключенный-блядь</DesignatorComfortPrisoner.label>
<DesignatorComfortPrisoner.description>Обозначить заключенного как средство для сексуального удовлетворения всех желающих.</DesignatorComfortPrisoner.description>
<rjw_vatgrown_sex_slave.label>Вырощенный(ая) секс рабыня</rjw_vatgrown_sex_slave.label>
<rjw_vatgrown_sex_slave.description>NAME сделан скорее секс-машиной, чем человеком. На протяжении своего взросления на фабрике, HIS обучался(лась) социальным и сексуальным навыкам для того чтобы удовлетворять различные сексуальные приказы.</rjw_vatgrown_sex_slave.description>
<rjw_feisty.label>Озлобленый нимфоман</rjw_feisty.label>
<rjw_feisty.description>
NAME прибывает в колонию как завоеватель, исследуя недавно присоединенную территорию. Вы пытаетесь сосредоточиться на своей работе, но HE не позволит вам.
«Я слышал, что ты сказал обо мне!» HE обвиняет. Вы ничего не сказали об этом. HECAP это знает.
"Хочешь сразиться?" HE бросает вызов. Вы уже знаете, что это означает: несколько минут игровой борьбы, а затем вы берете ЕГО, или, если вы колеблетесь, он берет вас. \n \n
Хотя c NAME может быть трудно ужиться, вы поняли, насколько он практичней, чем другие.
Вы объясняете HE: «Вот это, должно быть там» или «Эти люди пытаются убить нас, поэтому давай сначала убьем их». HECAP слушает и делает то, что нужно.
</rjw_feisty.description>
<rjw_curious.label>Любопытный нимфоман</rjw_curious.label>
<rjw_curious.description>
Поднимите защитную пластину и поместите привод в паз C. Выровняйте стержень вверх. Нет, этого не достаточно, все должно быть идельно. Теперь поместите чип JC-444 на место. \n
Припаяйте оранжевый провод к выводу № 16 и полосатый провод к выводу №5. \n
Внезапно, появляетя HE. Вы не удивлены, увидев NAME, вы просто не слышали как HE подкрался(лась). К этому ты уже привык. \n
Вы продолжаете делать свою работу в тишине, когда HE нависает над вами, HIS большие глаза фиксируются на быстрых, ритмичных, расчетливых движениях ваших рук.
</rjw_curious.description>
<rjw_tender.label>Нежный нимфоман</rjw_tender.label>
<rjw_tender.description>У NAME очаровательные глаза, его голос мягкий и сладкий. Благодаря своей предыдущей работе медсестры, HE очень хорош в ухаживании за людьми.</rjw_tender.description>
<rjw_chatty.label>Нимфоман болтушка</rjw_chatty.label>
<rjw_chatty.description>Не существует более болтливых людей, чем NAME. HECAP имеет гибкий язык, острый ум и горячие губы.</rjw_chatty.description>
<rjw_broken.label>Сломаный нимфоман</rjw_broken.label>
<rjw_broken.description>
Возможно, NAME перенес некоторые ужасные вещи, он выглядит довольно истощенным, и никто не хочет разговаривать с HIM. \n
HECAP немного живляется, глядя на некоторые вещи, похожие на стержни.
</rjw_broken.description>
<rjw_vatgrown_sex_slave.stringA>Секс Рабыня</rjw_vatgrown_sex_slave.stringA>
<rjw_feisty.stringA>Нимфоман</rjw_feisty.stringA>
<rjw_curious.stringA>Нимфоман</rjw_curious.stringA>
<rjw_tender.stringA>Нимфоман</rjw_tender.stringA>
<rjw_chatty.stringA>Нимфоман</rjw_chatty.stringA>
<rjw_broken.stringA>Нимфоман</rjw_broken.stringA>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/rjw.MiscTranslationDef/MiscTranslationDefs.xml
|
XML
|
mit
| 4,842 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Armbinder.label>наручники</Armbinder.label>
<Armbinder.description>Высокотехнологичные наручники. Они не позволяют использовать руки, тому кто их носит.
</Armbinder.description>
<Armbinder.comps.2.useLabel>Надеть</Armbinder.comps.2.useLabel>
<Gag.label>кляп</Gag.label>
<Gag.description>Высокотехнологичный кляп. Не позволяет говорить, тому кто его носит.</Gag.description>
<Gag.comps.2.useLabel>Надеть</Gag.comps.2.useLabel>
<ChastityBelt.label>пояс верности</ChastityBelt.label>
<ChastityBelt.description>Высокотехнологичный пояс верности. Не дает заниматься сексом и мастурбировать.</ChastityBelt.description>
<ChastityBelt.comps.2.useLabel>Надеть</ChastityBelt.comps.2.useLabel>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/rjw.bondage_gear_def/Items.xml
|
XML
|
mit
| 1,008 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<ForceOffArmbinder.label>принудительно снять наручники</ForceOffArmbinder.label>
<ForceOffArmbinder.description>Принудительно снимает наручники без ключа, нанося значительный ущерб пользователю.</ForceOffArmbinder.description>
<ForceOffArmbinder.jobString>Принудительно снимает наручники.</ForceOffArmbinder.jobString>
<ForceOffGag.label>принудительно снять кляп</ForceOffGag.label>
<ForceOffGag.description>Принудительно снимает кляп без ключа, нанося значительный ущерб пользователю.</ForceOffGag.description>
<ForceOffGag.jobString>Принудительно снимает кляп.</ForceOffGag.jobString>
<ForceOffChastityBelt.label>принудительно снять пояс верности</ForceOffChastityBelt.label>
<ForceOffChastityBelt.description>Принудительно снимает пояс верности без ключа, нанося значительный ущерб пользователю.</ForceOffChastityBelt.description>
<ForceOffChastityBelt.jobString>Принудительно снимает пояс верности.</ForceOffChastityBelt.jobString>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/rjw.force_off_gear_def/Recipes_Surgery.xml
|
XML
|
mit
| 1,398 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<HIV.label>ВИЧ</HIV.label>
<HIV.description>
ВИЧ состоит из двух частей: острой и хронической инфекции. Обе части проходят один и тот же путь, уменьшая фильтрацию крови инфицированного существа по мере увеличения их тяжести. Острая фаза прогрессирует быстро, но ее можно побороть иммунной системой существа, тогда как хроническая фаза прогрессирует очень медленно, но никогда не может быть излечена. Лечение может немного замедлять развитие болезни.
</HIV.description>
<Herpes.label>герпес</Herpes.label>
<Herpes.description>Герпес - неизлечимая, но не смертельная болезнь. Пораженные существа испытывают боль и зуд в пораженных частях тела. Лечение эффективно снижает интенсивность симптомов.</Herpes.description>
<Warts.label>бородавки</Warts.label>
<Warts.description>Генитальные бородавки неприглядные, вызывают зуд и жжение. Их легко лечить и они не могут стать причиной летального исхода.</Warts.description>
<Syphilis.label>сифилис</Syphilis.label>
<Syphilis.description>Сифилис - серьезное заболевание, которое поражает ум. Если его не лечить, это приводит к развращенным мыслям, проблемам с настроением, потенциальному постоянному повреждению мозга, печени и почек и, в конечном счете, смерти. Хорошей новостью является то, что ее легко победить путем надлежащего лечения.
</Syphilis.description>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/DefInjected/rjw.std_def/STDs.xml
|
XML
|
mit
| 2,251 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Settings-->
<WildMode_name>Дикий мод</WildMode_name>
<WildMode_desc>ЭКСПЕРЕМЕНТАЛЬНО. Нет правил для секса. Все ограничения сняты. Наслаждайтесь дикой стороной RimWorld.</WildMode_desc>
<sexneed_decay_rate_name>Секс требует множитель ?распада? Sex need decay multiplier (%)</sexneed_decay_rate_name>
<sexneed_decay_rate_desc>0% для отсутствия множителя.
1000000% для Rapeturnus Planet.
</sexneed_decay_rate_desc>
<NymphsJoin>Нимфоманы.</NymphsJoin>
<NymphsJoin_desc>Позволяет нимфоманам присоединиться к колонии.</NymphsJoin_desc>
<STD_FromFloors>Половое заболевание из окружения.</STD_FromFloors>
<STD_FromFloors_desc>Существа могут подцепить половое заболевание от грязной окружающей среды.</STD_FromFloors_desc>
<PrisonersBeating>Избивание при изнасиловании.</PrisonersBeating>
<PrisonersBeating_desc>Насильники будут выбивать дурь из своих жертв.</PrisonersBeating_desc>
<OffspringLookLikeTheirMother>Генетическое наследование (%)</OffspringLookLikeTheirMother>
<OffspringLookLikeTheirMother_desc>100% означает что дети будут выглядеть точно так же как их матери. Установите 0% для случайного внешнего вида.
Возможные значения: 0 - 100%</OffspringLookLikeTheirMother_desc>
<OffspringIsHuman>Наследование человеческого ДНК (%)</OffspringIsHuman>
<OffspringIsHuman_desc>100% означает что все новорожденные будут людьми. 0% для случайного монстра.
Возможные значения: 0 - 100%</OffspringIsHuman_desc>
<PregnantCoeffecientForHuman>Шанс оплодотворения человека (%)</PregnantCoeffecientForHuman>
<PregnantCoeffecientForHuman_desc>Шанс оплодотворения человека в процентах.<br /><br />
Возможные значения: 0 - 100%
</PregnantCoeffecientForHuman_desc>
<PregnantCoeffecientForAnimals>Шанс оплодотворения животного (%)</PregnantCoeffecientForAnimals>
<PregnantCoeffecientForAnimals_desc>Шанс оплодотворения животного в процентах.<br /><br />
Возможные значения: 0 - 100%</PregnantCoeffecientForAnimals_desc>
<UseParentMethod>Раса ребенка</UseParentMethod>
<UseParentMethod_desc>Новорожденные будут той же расы, что и мать.</UseParentMethod_desc>
<SexFreeForAllAge>Минимальный возраст свободного занятия сексом.</SexFreeForAllAge>
<SexFreeForAllAge_desc>Существа младше этого возраста будут заниматься сексом только с существми разница в возрасте с которыми не больше 2 лет.</SexFreeForAllAge_desc>
<SexMinimumAge>Минимальный возраст занятия сексом.</SexMinimumAge>
<SexMinimumAge_desc>Существа младше этого возраста не будут заниматься сексом.</SexMinimumAge_desc>
<NonFutaWomenRaping_MaxVulnerability>Девушки начинаю насиловать с (%)</NonFutaWomenRaping_MaxVulnerability>
<NonFutaWomenRaping_MaxVulnerability_desc>Только женщины с восприимчивость ниже чем указанная, будут насиловать других.<br /><br /> Для проверки статуса 'Восприимчивости' перейдите 'просмотреть информацию об объекте' > статус.<br /><br />
Возможные значения: 0 - 300%</NonFutaWomenRaping_MaxVulnerability_desc>
<Rapee_MinVulnerability_human>Вероятность быть изнасилованным (%)</Rapee_MinVulnerability_human>
<Rapee_MinVulnerability_human_desc>Люди восприимчивость которых выше чем это значение будут изнасилованы.<br /><br />Для проверки статуса 'Восприимчивости' перейдите 'просмотреть информацию об объекте' > статус.<br /><br />
Возможные значения: 0 - 300%</Rapee_MinVulnerability_human_desc>
<Rapee_MinVulnerability_animals>Вероятность быть изнасилованным животные (%)</Rapee_MinVulnerability_animals>
<Rapee_MinVulnerability_animals_desc>Животные с восприимчивостью выше чем данная будут целями для изнасилования Зоофилами.<br /><br />Для проверки статуса 'Восприимчивости' перейдите 'просмотреть информацию об объекте' > статус.<br /><br />
Возможные значения: 0 - 300%</Rapee_MinVulnerability_animals_desc>
<!-- Bed -->
<ForWhoreUse>Для шлюх</ForWhoreUse>
<WhoreBedFormat>Шлюха{0}</WhoreBedFormat>
<CommandBedSetAsWhoreLabel>Для шлюх</CommandBedSetAsWhoreLabel>
<CommandBedSetAsWhoreDesc>Это кровать для шлюх.</CommandBedSetAsWhoreDesc>
<!-- std.cs -->
<RJW_Opportunistic_Infection_Message>{0} развилась инфекция из-за ослабленной иммунной системы.</RJW_Opportunistic_Infection_Message>
<!--RJW_Poisoned_by_Rimming_Message>{0} отравился во время римминга {1}</RJW_Poisoned_by_Rimming_Message-->
<RJW_Syphilis_Damage_Message>{0} получил {1} {2} постоянного урона из-за развивающейся {3} инфекции.</RJW_Syphilis_Damage_Message>
<!--Whore Activities-->
<RJW_VisitorAcceptWhore>{0} принял предложение {1}.</RJW_VisitorAcceptWhore>
<RJW_VisitorRejectWhore>{0} отклонил предложение {1}.</RJW_VisitorRejectWhore>
<!-- Notifications on right-clicking CP -->
<PawnCantRapeCP>Цель не достаточно здоровла или находится на запрещенной территории.</PawnCantRapeCP>
<PawnCantRapeCP0>Существу не нужен секс, не здоров, не может насиловать.</PawnCantRapeCP0>
<PawnCantRapeCP1>Существо не одно, или партнер рядом.</PawnCantRapeCP1>
<PawnCantRapeCP2>Существо не зоофил, не может насиловать животных.</PawnCantRapeCP2>
<!-- Anal Sex Notificaitons-->
<AnalSexSucceeded> </AnalSexSucceeded>
<AnalSexFailed> </AnalSexFailed>
</LanguageData>
|
Mewtopian/rjw
|
Obsolete/Languages/Russian/Keyed/RimJobWorld.xml
|
XML
|
mit
| 7,065 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Bird"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Bird"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Bird"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Obsolete/Patches/BodyParts_Bird.xml
|
XML
|
mit
| 827 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "BeetleLikeWithClaw"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.01</coverage>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "BeetleLike"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.01</coverage>
<depth>Inside</depth>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Obsolete/Patches/BodyParts_Insect.xml
|
XML
|
mit
| 544 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithPaws"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithPaws"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithPaws"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithPawsAndTail"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithPawsAndTail"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithPawsAndTail"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHooves"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHooves"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHooves"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndHump"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndHump"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndHump"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndTusks"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndTusks"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndTusks"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesTusksAndTrunk"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesTusksAndTrunk"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesTusksAndTrunk"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndHorn"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndHorn"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithHoovesAndHorn"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithClawsTailAndJowl"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithClawsTailAndJowl"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "QuadrupedAnimalWithClawsTailAndJowl"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "TurtleLike"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "TurtleLike"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "TurtleLike"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Monkey"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Monkey"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Monkey"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Obsolete/Patches/BodyParts_Quadruped.xml
|
XML
|
mit
| 8,456 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Snake"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Snake"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Snake"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Obsolete/Patches/BodyParts_Snake.xml
|
XML
|
mit
| 834 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Human Parts -->
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.0</coverage>
<height>Top</height>
<depth>Outside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName = "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<!-- Animal Parts -->
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName != "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.02</coverage>
<height>Bottom</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName != "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>*/BodyDef[defName != "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.01</coverage>
<height>Bottom</height>
<depth>Inside</depth>
</li>
</value>
</Operation>
<!-- Generate a HediffGiver for the dummy hediff, then inject it into the OrganicStandard HediffGiverSet;this replace the inject_sexualizer() in First.cs -->
<Operation Class="PatchOperationAdd">
<xpath>*/HediffGiverSetDef[defName = "OrganicStandard"]/hediffGivers</xpath>
<value>
<li Class="HediffGiver_Birthday">
<hediff>DummyPrivates</hediff>
<partsToAffect>
<li>Genitals</li>
</partsToAffect>
<canAffectAnyLivePart>false</canAffectAnyLivePart>
<ageFractionChanceCurve>
<points>
<li>(0.00, 1.00)</li>
<!-- Every birthday will give the pawns a DummyPrivates hediff used to check their privates and generate stds to their health if they are human. The DummyPrivates won't result in sexualization if the pawns have already been sexualized once.
<li>(0.05, 1.00)</li>
<li>(0.06, 0.00)</li>
<li>(1.00, 0.00)</li>-->
</points>
</ageFractionChanceCurve>
<averageSeverityPerDayBeforeGeneration>0.00</averageSeverityPerDayBeforeGeneration>
</li>
</value>
</Operation>
<!-- This adds HediffGiverSets to modded pawns so that they would spawn with privates, if their BodyDefs have been patched successfully, without reloading the save-->
<!-- Note:It's essential that you load the mod you want to patch before RJW.-->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>*/ThingDef[thingClass = "AIPawn.AIPawn"]</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[thingClass = "AIPawn.AIPawn"]/race</xpath>
<value>
<hediffGiverSets>
<li>DummyPrivatesForModdedPawnsOnBirthday</li>
</hediffGiverSets>
</value>
</li>
</operations>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Obsolete/Patches/BodyPatches.xml
|
XML
|
mit
| 3,580 |
using Verse;
namespace rjw
{
public class config : Def
{
// Feature Toggles
public bool comfort_prisoners_enabled;
public bool colonists_can_be_comfort_prisoners;
public bool cum_enabled;
//public bool rape_me_sticky_enabled;
public bool sounds_enabled;
public bool stds_enabled;
public bool bondage_gear_enabled;
public bool nymph_joiners_enabled;
//public bool whore_beds_enabled;
public bool necro_enabled;
public bool random_rape_enabled;
public bool always_accept_whores;
public bool nymphs_always_JoinInBed;
public bool zoophis_always_rape;
public bool rapists_always_rape;
public bool pawns_always_do_fapping;
public bool pawns_always_rapeCP;
public bool whores_always_findjob;
// Display Toggles
public bool show_regular_dick_and_vag;
// STD config
public bool std_show_roll_to_catch;
public float std_min_severity_to_pitch;
public float std_env_pitch_cleanliness_exaggeration;
public float std_env_pitch_dirtiness_exaggeration;
public float std_outdoor_cleanliness;
// Age Config
//public int sex_free_for_all_age;
//public int sex_minimum_age;
public float minor_pain_threshold; // 0.3
public float significant_pain_threshold; // 0.6
public float extreme_pain_threshold; // 0.95
public float base_chance_to_hit_prisoner; // 50
public int min_ticks_between_hits; // 500
public int max_ticks_between_hits; // 700
public float max_nymph_fraction;
public float opp_inf_initial_immunity;
public float comfort_prisoner_rape_mtbh_mul;
public float whore_mtbh_mul;
public float nymph_spawn_with_std_mul;
//public float chance_to_rim;
public float fertility_endAge_male;
public float fertility_endAge_female;
}
}
|
Mewtopian/rjw
|
Obsolete/Source/Common/config.cs
|
C#
|
mit
| 1,730 |
//using System;
//using RimWorld;
//using UnityEngine;
//using Verse;
//namespace rjw
//{
// //I have no idea what this shit means, I'm just reusing the comfort designator
// public class Designator_Breed : Designator_ComfortPrisoner
// {
// //private static readonly MiscTranslationDef MTdef = DefDatabase<MiscTranslationDef>.GetNamed("ForBreeding");
// public Designator_Breed()
// {
// //Log.Message("RJW breed designator constructor" );
// //Log.Message("object is null " + (this ==null));
// //Log.Message("RJW breed designator constructor" + MTdef);
// defaultLabel = "ForBreeding".Translate();
// defaultDesc = "ForBreedingDesc".Translate();
// //Log.Message("RJW breed designator constructor pre icon");
// icon = ContentFinder<Texture2D>.Get("UI/Commands/BreedingBuisiness", true);
// // TODO: Can this be null?
// hotKey = KeyBindingDefOf.Misc12;
// //Log.Message("RJW breed designator constructor exit");
// }
// public override AcceptanceReport CanDesignateThing(Thing t)
// {
// if (t == null) { return false; };
// var pawn = t as Pawn;
// if (pawn == null) { return false; }//fuck this
// var enabled = Mod_Settings.cross_species_breeding;
// var marked = BreederHelper.is_designated(pawn);
// return (enabled && !pawn.Dead && pawn.IsPrisonerOfColony && !marked && xxx.can_get_raped(pawn));
// }
// public override void DesignateThing(Thing t)
// {
// DesignationDef designation_def = BreederHelper.designationDef;
// base.Map.designationManager.AddDesignation(new Designation(t, designation_def));
// }
// }
//}
|
Mewtopian/rjw
|
Obsolete/Source/Designators/Designator_Breed.cs
|
C#
|
mit
| 1,583 |
////This code provided the "comfort prisoner" button functionality for very long time
////Now it lays here in well-deserved rest.
////It was a good designator, its code may still be used as an example for something else
//using System;
//using RimWorld;
//using UnityEngine;
//using Verse;
//namespace rjw
//{
// public abstract class Designator_Toggle : Command
// {
// public Designator_Toggle()
// {
// this.activateSound = SoundDefOf.SelectDesignator;
// }
// public Func<bool> isActive;
// public Action toggleAction;
// public SoundDef turnOnSound = SoundDefOf.CheckboxTurnedOn;
// public SoundDef turnOffSound = SoundDefOf.CheckboxTurnedOff;
// public override SoundDef CurActivateSound
// {
// get
// {
// if (this.isActive())
// {
// return this.turnOffSound;
// }
// return this.turnOnSound;
// }
// }
// public override void ProcessInput(Event ev)
// {
// base.ProcessInput(ev);
// this.toggleAction();
// }
// public override GizmoResult GizmoOnGUI(Vector2 loc)
// {
// GizmoResult result = base.GizmoOnGUI(loc);
// Rect rect = new Rect(loc.x, loc.y, this.Width, 75f);
// Rect position = new Rect(rect.x + rect.width - 24f, rect.y, 24f, 24f);
// Texture2D image = (!this.isActive()) ? Widgets.CheckboxOffTex : Widgets.CheckboxOnTex;
// GUI.DrawTexture(position, image);
// return result;
// }
// public override bool InheritInteractionsFrom(Gizmo other)
// {
// Command_Toggle command_Toggle = other as Command_Toggle;
// return command_Toggle != null && command_Toggle.isActive() == this.isActive();
// }
// }
// public class Designator_ComfortPrisoner : Designator
// {
// private static readonly MiscTranslationDef MTdef = DefDatabase<MiscTranslationDef>.GetNamedSilentFail("DesignatorComfortPrisoner");
// public Designator_ComfortPrisoner()
// {
// defaultLabel = MTdef.label;
// defaultDesc = MTdef.description;
// icon = ContentFinder<Texture2D>.Get("UI/Commands/comfort_prisoner_true");
// // TODO: Can this be null?
// hotKey = KeyBindingDefOf.Misc12;
// // These don't matter but set them just in case
// // soundDragSustain = SoundDefOf.DesignateDragStandard;
// // soundDragChanged = SoundDefOf.DesignateDragStandardChanged;
// // useMouseIcon = false;
// // soundSucceeded = SoundDefOf.DesignateClaim;
// }
// public Func<bool> isActive;
// public override GizmoResult GizmoOnGUI(Vector2 loc)
// {
// GizmoResult result = base.GizmoOnGUI(loc);
// Rect rect = new Rect(loc.x, loc.y, this.Width, 75f);
// Rect position = new Rect(rect.x + rect.width - 24f, rect.y, 24f, 24f);
// Texture2D image = (!this.isActive()) ? Widgets.CheckboxOffTex : Widgets.CheckboxOnTex;
// GUI.DrawTexture(position, image);
// return result;
// }
// public override AcceptanceReport CanDesignateCell(IntVec3 c)
// {
// return false;
// }
// public override void DesignateSingleCell(IntVec3 c)
// {
// }
// public override AcceptanceReport CanDesignateThing(Thing t)
// {
// var p = t as Pawn;
// //return (p != null) && (p.IsPrisonerOfColony || p.IsColonist || p.Faction == Faction.OfPlayer) && xxx.can_get_raped(p) && (!comfort_prisoners.is_designated(p));
// if (p != null)
// {
// //Log.Message("[RJW]CandDesignateThing run on" + p);
// if (p.IsPrisonerOfColony)
// {
// defaultLabel = "comfort prisoner"; //TODO: adds translationdef.
// }
// else if (xxx.is_animal(p))
// {
// defaultLabel = "comfort animal";
// }
// else
// {
// defaultLabel = "comfort colonist";
// }
// //Log.Message("[RJW]CandDesignateThing label is " + defaultLabel);
// }
// return ((p != null) && (!comfort_prisoners.is_designated(p)) && ((p.IsColonist || p.Faction == Faction.OfPlayer) || (xxx.is_animal(p)) || (p.IsPrisonerOfColony))); //TODO: Rape target button?
// }
// public override void DesignateThing(Thing t)
// {
// DesignationDef designation_def = comfort_prisoners.designation_def_no_sticky;
// if (xxx.config.rape_me_sticky_enabled)
// {
// designation_def = comfort_prisoners.designation_def;
// //comfort_prisoners.designation_def = comfort_prisoners.designation_def_no_sticky;
// }
// base.Map.designationManager.AddDesignation(new Designation(t, designation_def));
// }
// }
//}
|
Mewtopian/rjw
|
Obsolete/Source/Designators/Designator_ComfortPrisoner.cs
|
C#
|
mit
| 4,293 |
//unused anymore
//using System.Collections.Generic;
//using RimWorld;
//using Verse;
//namespace rjw
//{
// public class Recipe_InstallBreasts_Female : Recipe_InstallArtificialBodyPart
// {
// public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn p, RecipeDef r)
// {
// var gen_blo = Genital_Helper.breasts_blocked(p);
// if (p.gender == Gender.Female)
// {
// foreach (var part in base.GetPartsToApplyOn(p, r))
// if ((!gen_blo) || (part != xxx.breasts))
// yield return part;
// }
// }
// }
//}
|
Mewtopian/rjw
|
Obsolete/Source/Recipes/Recipe_InstallBreasts_Female.cs
|
C#
|
mit
| 538 |
//not used anymore
//using System.Collections.Generic;
//using RimWorld;
//using Verse;
//namespace rjw
//{
// public class Recipe_InstallPrivates_Female : Recipe_InstallArtificialBodyPart
// {
// public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn p, RecipeDef r)
// {
// var gen_blo = Genital_Helper.genitals_blocked(p);
// if (p.gender == Gender.Female)
// {
// foreach (var part in base.GetPartsToApplyOn(p, r))
// if ((!gen_blo) || (part != xxx.genitals))
// yield return part;
// }
// }
// }
//}
|
Mewtopian/rjw
|
Obsolete/Source/Recipes/Recipe_InstallPrivates_Female.cs
|
C#
|
mit
| 543 |
//these are not used anymore
//using System.Collections.Generic;
//using RimWorld;
//using Verse;
//namespace rjw
//{
// public class Recipe_InstallPrivates_Male : Recipe_InstallArtificialBodyPart
// {
// public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn p, RecipeDef r)
// {
// var gen_blo = Genital_Helper.genitals_blocked(p);
// if (p.gender == Gender.Male)
// {
// foreach (var part in base.GetPartsToApplyOn(p, r))
// if ((!gen_blo) || (part != xxx.genitals))
// yield return part;
// }
// else if (xxx.is_female(p)) //This allows futas
// {
// foreach (var part in base.GetPartsToApplyOn(p, r))
// if ((!gen_blo) || (part != xxx.genitals))
// yield return part;
// }
// }
// }
//}
|
Mewtopian/rjw
|
Obsolete/Source/Recipes/Recipe_InstallPrivates_Male.cs
|
C#
|
mit
| 749 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Animals, Insects, Birds, modded pawns -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName != "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.005</coverage>
<height>Bottom</height>
<depth>Outside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName != "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName != "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.001</coverage>
<height>Bottom</height>
<depth>Inside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/BodyParts_All.xml
|
XML
|
mit
| 1,033 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Humans -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName = "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Genitals</def>
<coverage>0.005</coverage>
<height>Bottom</height>
<depth>Outside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName = "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Chest</def>
<coverage>0.02</coverage>
<height>Top</height>
<depth>Outside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName = "Human"]/corePart/parts</xpath>
<value>
<li>
<def>Anus</def>
<coverage>0.001</coverage>
<height>Bottom</height>
<depth>Inside</depth>
<groups>
<li>Torso</li>
</groups>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/BodyParts_Humanoid.xml
|
XML
|
mit
| 999 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName = "MechanicalCentipede"]/corePart/parts</xpath>
<value>
<li>
<def>MechGenitals</def>
<!-- Causes yellow error(all parts coverage >1), if 0 causes red error(cant hit object error when its getting hit, see Waist bug) -->
<coverage>0.001</coverage>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName = "Scyther"]/corePart/parts</xpath>
<value>
<li>
<def>MechGenitals</def>
<coverage>0.001</coverage>
<depth>Inside</depth>
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName = "Lancer"]/corePart/parts</xpath>
<value>
<li>
<def>MechGenitals</def>
<coverage>0.001</coverage>
<depth>Inside</depth>
</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/BodyParts_Mechanoid.xml
|
XML
|
mit
| 935 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!--Removes CnP contraceptive because rjw has its own which works for both mods-->
<!--Fucking Tynan. Not removing anything, because the game will error about empty xml in CnP then-->
<!--Instead we'll delete RJW_contraceptive and insert the effect into CnP hediff-->
<!--Fuck it. I'm out-->
<!--<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/ThingDef[defName="Contraceptive"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/HediffDef[defName="Contraceptive"]</xpath>
<value>
<stages>
<li>
<label>Contracepted</label>
<capMods>
<li>
<capacity>Reproduction</capacity>
<setMax>0.1</setMax>
</li>
</capMods>
</li>
</stages>
</value>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName="RJW_Contraceptive"]</xpath>
</li>
</operations>
</Operation>-->
</Patch>
|
Mewtopian/rjw
|
Patches/CnP_compatibility.xml
|
XML
|
mit
| 998 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!--
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName="Human"]/comps</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="Human"]</xpath>
<value>
<comps />
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Human"]/comps</xpath>
<value>
<li Class="rjw.CompProperties_MilkableHuman">
<milkDef>Milk</milkDef>
<milkIntervalDays>1</milkIntervalDays>
<milkAmount>8</milkAmount>
<milkFemaleOnly>false</milkFemaleOnly>
</li>
</value>
</Operation>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/AlienRace.ThingDef_AlienRace/comps</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[
defName="Alien_Callistan" or
defName="Alien_Astoriel" or
defName="Fantasy_Goblin" or
defName="LotRE_ElfStandardRace" or
defName="LotRH_HobbitStandardRace" or
defName="Alien_Orassan" or
defName="RGK_Race_Ratty" or
defName="Alien_Twilek" or
defName="Alien_Zabrak" or
defName="Avali" or
defName="Alien_Argonian" or
defName="Alien_Asari_Base" or
defName="Alien_Eldar" or
defName="Alien_Kroot" or
defName="Alien_Ork" or
defName="Alien_Tau" or
defName="Alien_Vespid" or
defName="Alien_Terran" or
defName="Alien_Sororitas" or
defName="Alien_Salamander" or
defName="Alien_Astartes" or
defName="Alien_Guevesa" or
defName="Alien_Krieg" or
defName="Alien_Valhallan" or
defName="Alien_Ferrex" or
defName="Alien_Xenn" or
defName="Alien_Leeani" or
defName="Alien_Fennex" or
defName="Alien_Frijjid"]/comps</xpath>
<value>
<li Class="rjw.CompProperties_MilkableHuman">
<milkDef>Milk</milkDef>
<milkIntervalDays>3</milkIntervalDays>
<milkAmount>12</milkAmount>
<milkFemaleOnly>false</milkFemaleOnly>
</li>
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Naga"]/comps</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Naga"]/comps</xpath>
<value>
<li Class="rjw.CompProperties_MilkableHuman">
<milkDef>EggChickenUnfertilized</milkDef>
<milkIntervalDays>3</milkIntervalDays>
<milkAmount>6</milkAmount>
<milkFemaleOnly>true</milkFemaleOnly>
</li>
</value>
</li>
</operations>
</Operation>
-->
</Patch>
|
Mewtopian/rjw
|
Patches/MilkPatch.xml
|
XML
|
mit
| 3,051 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/TraitDef[defName="Prude"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nymphomaniac"]/conflictingTraits</xpath>
<value>
<li>Prude</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Prude"]/conflictingTraits</xpath>
<value>
<li>Nymphomaniac</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Prude"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexFrequency>-0.3</SexFrequency>
</statOffsets>
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/TraitDef[defName="Faithful"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nymphomaniac"]/conflictingTraits</xpath>
<value>
<li>Faithful</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Faithful"]/conflictingTraits</xpath>
<value>
<li>Nymphomaniac</li>
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexAbility>0.2</SexAbility>
<Vulnerability>-0.1</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexAbility>0.2</SexAbility>
<Vulnerability>-0.1</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>-0.1</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.1</Vulnerability>
</value>
</match>
</Operation>
<!-- Brawler does not need vulnerability patching: they already get hefty bonus from melee-->
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>-0.4</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.4</Vulnerability>
</value>
</match>
</Operation>
<!-- Lower vulnerability because TooSmart pwans are better prepared and/or likely to outwit the potential rapist-->
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>-0.3</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.3</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>0.2</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>0.2</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>0.3</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>0.3</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexFrequency>-0.3</SexFrequency>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexFrequency>-0.3</SexFrequency>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexFrequency>-0.1</SexFrequency>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexFrequency>-0.1</SexFrequency>
</value>
</match>
</Operation>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/TraitDef[defName="Asexual"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Necrophiliac"]/conflictingTraits</xpath>
<value>
<li>Asexual</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nymphomaniac"]/conflictingTraits</xpath>
<value>
<li>Asexual</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Rapist"]/conflictingTraits</xpath>
<value>
<li>Asexual</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Zoophile"]/conflictingTraits</xpath>
<value>
<li>Asexual</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Asexual"]/conflictingTraits</xpath>
<value>
<li>Necrophiliac</li>
<li>Nymphomaniac</li>
<li>Rapist</li>
<li>Zoophile</li>
</value>
</li>
</operations>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/ModdedTraits_compatibility.xml
|
XML
|
mit
| 7,088 |
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>Defs/ThoughtDef[defName="ObservedLayingCorpse"]/nullifyingTraits</xpath>
<value>
<li>Necrophiliac</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThoughtDef[defName="ObservedLayingRottingCorpse"]/nullifyingTraits</xpath>
<value>
<li>Necrophiliac</li>
</value>
</li>
</operations>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/Necro_Thought_patch.xml
|
XML
|
mit
| 498 |
<Patch>
<!--
Nymph: everyone should fuck me!!!
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>Defs/ThoughtDef[defName="CheatedOnMe"]/nullifyingTraits</xpath>
<value>
<li>Nymphomaniac</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThoughtDef[defName="CheatedOnMeMood"]/nullifyingTraits</xpath>
<value>
<li>Necrophiliac</li>
</value>
</li>
</operations>
</Operation>
-->
</Patch>
|
Mewtopian/rjw
|
Patches/Nymph_Thought_patch.xml
|
XML
|
mit
| 523 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Add peg arms -->
<!-- Races_Humanlike -->
<!--
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName = "Human"]/recipes</xpath>
<value>
<li>InstallPegArm</li>
</value>
</Operation>
-->
</Patch>
|
Mewtopian/rjw
|
Patches/Races_Humanlike_Patch.xml
|
XML
|
mit
| 277 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Animals -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="AnimalThingBase"]/recipes</xpath>
<value>
<li>DeterminePregnancy</li>
<li>RJW_AbortionHuman</li>
<li>RJW_AbortionBeast</li>
<li>RJW_AbortionMech</li>
<li>RJW_HackMech</li>
<li>RJW_RemoveRestraints</li>
<li>RJW_RemoveCocoon</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/Recipes_Animals_Patch.xml
|
XML
|
mit
| 419 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>Defs/RulePackDef[defName = "GlobalUtility"]/include</xpath>
<value>
<li>TalkTopicsSex</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/InteractionDef[defName = "DeepTalk"]/logRulesInitiator/rulesStrings</xpath>
<value>
<li>subject(p=0.24)->[TalkTopicSex]</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/InteractionDef[defName = "Chitchat"]/logRulesInitiator/rulesStrings</xpath>
<value>
<li>r_logentry(p=0.12)->[INITIATOR_nameDef] and [RECIPIENT_nameDef] [talkedabout] [TalkTopicSex].</li>
<li>r_logentry(p=0.12)->[INITIATOR_nameDef] [talkedabout] [TalkTopicSex] with [RECIPIENT_nameDef].</li>
<li>r_logentry(p=0.24)->[INITIATOR_nameDef] [commentedabout] [TalkTopicSex] to [RECIPIENT_nameDef].</li>
</value>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/TalkTopicsPatch_Sexual.xml
|
XML
|
mit
| 961 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "AssaultColony"]/thinkNode/subNodes/li[@Class="JobGiver_AIFightEnemies"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "AssaultColony"]/thinkNode/subNodes/li[@Class="JobGiver_AITrashColonyClose"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy">
</li>
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "Sapper"]/thinkNode/subNodes/li[@Class="JobGiver_AIFightEnemies"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "Defend"]/thinkNode/subNodes/li[@Class="ThinkNode_ForbidOutsideFlagRadius"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "DefendBase"]/thinkNode/subNodes/li[@Class="JobGiver_AIDefendPoint"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "HuntEnemiesIndividual"]/thinkNode/subNodes/li[@Class="JobGiver_AIFightEnemies"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "DefendAndExpandHive"]/thinkNode/subNodes/li[@Class="ThinkNode_Tagger"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "DefendBase"]/thinkNode/subNodes/li[@Class="ThinkNode_ForbidOutsideFlagRadius"]/subNodes/li[@Class="ThinkNode_Subtree"]</xpath>
<value>
<li Class="rjw.JobGiver_AIRapePrisoner" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/ThinkTreeDef[defName="MentalStateNonCritical"]/thinkRoot[@Class="ThinkNode_Tagger"]/subNodes/li[stateClass="MentalState_Manhunter"]/subNodes/li[@Class="ThinkNode_Priority"]/subNodes/li[@Class="JobGiver_Manhunter"]</xpath>
<!--/Defs[1]/ThinkTreeDef[7]/thinkRoot[1]/subNodes[1]/li[7]/subNodes[1]/li[1]/subNodes[1]/li[2]/@Class-->
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<!--<Operation Class="PatchOperationInsert">
<xpath>Defs/ThinkTreeDef[defName="MentalStateNonCritical"]/thinkRoot[@Class="ThinkNode_Tagger"]/subNodes/li[state="ManhunterPermanent"]/subNodes/li[@Class="ThinkNode_Priority"]/subNodes/li[@Class="JobGiver_Manhunter"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</Operation>-->
<!--<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "Sapper"]/thinkNode/subNodes/li[Class="JobGiver_AITrashColonyClose"]</xpath>
<value>
<li Class=" rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "TakeWoundedGuest"]/thinkNode/subNodes/li[0]</xpath>
<value>
<li Class=" rjw.JobGiver_RapeEnemy" />
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName = "Kidnap"]/thinkNode/subNodes/li[0]</xpath>
<value>
<li Class=" rjw.JobGiver_RapeEnemy" />
</value>
</Operation>-->
<!-- Copied from Vanilla BingingDrug. live selfish till rape someone. tweak if you want add some action. -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThinkTreeDef[defName="MentalStateCritical"]/thinkRoot[@Class="ThinkNode_Tagger"]/subNodes</xpath>
<value>
<li Class="ThinkNode_ConditionalMentalState">
<state>RandomRape</state>
<subNodes>
<li Class="ThinkNode_ConditionalNeedPercentageAbove">
<need>Rest</need>
<threshold>0.05</threshold>
<invert>true</invert>
<subNodes>
<li Class="JobGiver_GetRest"/>
</subNodes>
</li>
<li Class="ThinkNode_PrioritySorter">
<minPriority>0.5</minPriority>
<subNodes>
<li Class="JobGiver_GetFood"/>
<li Class="ThinkNode_Priority_GetJoy">
<subNodes>
<li Class="JobGiver_GetJoy"/>
</subNodes>
</li>
</subNodes>
</li>
<li Class="rjw.JobGiver_RandomRape"/>
<li Class="JobGiver_WanderColony" />
</subNodes>
</li>
</value>
</Operation>
<!--Better Infestations-->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/DutyDef[defName="BI_QueenDuty"]</xpath>
</li>
<li Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName="BI_QueenDuty"]/thinkNode/subNodes/li[@Class="ThinkNode_ChancePerHour_Constant"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</li>
<li Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName="BI_MegaspiderDuty"]/thinkNode/subNodes/li[@Class="ThinkNode_ChancePerHour_Constant"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</li>
<li Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName="BI_SpelopedeDuty"]/thinkNode/subNodes/li[@Class="ThinkNode_ChancePerHour_Constant"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</li>
<li Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName="BI_MegascarabDuty"]/thinkNode/subNodes/li[@Class="ThinkNode_ChancePerHour_Constant"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</li>
</operations>
</Operation>
</Patch>
|
Mewtopian/rjw
|
Patches/Tweak_Duty.xml
|
XML
|
mit
| 5,650 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RimJobWorld")]
[assembly: AssemblyDescription("Adult mod for Rimworld")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Community Project")]
[assembly: AssemblyProduct("RimJobWorld")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("c2825019-7f0b-456d-85a3-479c1a2a8805")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
|
Mewtopian/rjw
|
Properties/AssemblyInfo.cs
|
C#
|
mit
| 1,231 |
And why would you read me?
You can support current Dev(Me) here: https://www.patreon.com/Ed86
Mod home page:
https://www.loverslab.com/files/file/7257-rimjobworld-200/
Discord:
https://discord.gg/CXwHhv8
Requirements:
Hugslib ([Steam](https://steamcommunity.com/sharedfiles/filedetails/?id=818773962)) ([GitHub](https://github.com/UnlimitedHugs/RimworldHugsLib))
Installation:
(if updating - Delete all files from previous RJW versions)
Unpack the the content from the .7z into "...steam/steamapps/common/rimworld/mods/RJW", you will see RimJobWorld.Main.csproj
Start Game
Activate mod & the other required mods
Restart game
Load Order:
-Rimworld Core (that's the game)
--Hugslib
---your mods
--RimJobWorld
---addons for RimJobWorld
Contibuting:
use TABS not SPACES for xml/cs, please?
do comments in code for other people
P.S.
im not a pro C# programmer or git user, so i might do weird stuff ;)
|
Mewtopian/rjw
|
README.md
|
Markdown
|
mit
| 944 |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}</ProjectGuid>
<OutputType>Library</OutputType>
<NoStandardLibraries>false</NoStandardLibraries>
<AssemblyName>RJW</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<ShouldCreateLogs>True</ShouldCreateLogs>
<AdvancedSettingsExpanded>True</AdvancedSettingsExpanded>
<UpdateAssemblyVersion>True</UpdateAssemblyVersion>
<UpdateAssemblyFileVersion>True</UpdateAssemblyFileVersion>
<UpdateAssemblyInfoVersion>True</UpdateAssemblyInfoVersion>
<AssemblyVersionSettings>None.None.IncrementOnDemand.Increment</AssemblyVersionSettings>
<AssemblyFileVersionSettings>None.None.IncrementOnDemand.None</AssemblyFileVersionSettings>
<AssemblyInfoVersionSettings>None.None.IncrementOnDemand.None</AssemblyInfoVersionSettings>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
<AssemblyVersion>1.6.0.493</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Assemblies\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<FileAlignment>4096</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>Assemblies\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<RootNamespace>rjw</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="Source\Common\Data\DesignatorsData.cs" />
<Compile Include="Source\Common\Helpers\BreastSize_Helper.cs" />
<Compile Include="Source\Common\Data\PawnData.cs" />
<Compile Include="Source\Designators\Breeder.cs" />
<Compile Include="Source\Designators\Breedee.cs" />
<Compile Include="Source\Designators\Comfort.cs" />
<Compile Include="Source\Designators\Hero.cs" />
<Compile Include="Source\Designators\Milking.cs" />
<Compile Include="Source\Designators\Utility.cs" />
<Compile Include="Source\Designators\Service.cs" />
<Compile Include="Source\Harmony\patch_races.cs" />
<Compile Include="Source\Harmony\patch_selector.cs" />
<Compile Include="Source\Harmony\patch_ui_hero.cs" />
<Compile Include="Source\Harmony\patch_ui_rjw_buttons.cs" />
<Compile Include="Source\Harmony\SocialCardUtilityPatch.cs" />
<Compile Include="Source\Hediffs\Hediff_PartBase.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Sex.cs" />
<Compile Include="Source\Modules\Androids\AndroidsCompatibility.cs" />
<Compile Include="Source\Modules\Bondage\bondage_gear.cs" />
<Compile Include="Source\Common\Helpers\Breeder_Helper.cs" />
<Compile Include="Source\Modules\Multiplayer\Multiplayer.cs" />
<Compile Include="Source\Modules\SemenOverlay\BukkakeContent.cs" />
<Compile Include="Source\Modules\STD\std_def.cs" />
<Compile Include="Source\Modules\STD\std_spreader.cs" />
<Compile Include="Source\Modules\STD\std_updater.cs" />
<Compile Include="Source\Settings\config.cs" />
<Compile Include="Source\Common\CORE_EXPOSED\CORE_EXPOSED.cs" />
<Compile Include="Source\Common\Data\DataStore.cs" />
<Compile Include="Source\Common\Helpers\Gender_Helper.cs" />
<Compile Include="Source\Common\Helpers\Genital_Helper.cs" />
<Compile Include="Source\Common\MapCom_Injector.cs" />
<Compile Include="Source\Common\MiscTranslationDef.cs" />
<Compile Include="Source\Common\Data\ModData.cs" />
<Compile Include="Source\Common\CORE_EXPOSED\PawnGenerator.cs" />
<Compile Include="Source\Modules\Pregnancy\Pregnancy_Helper.cs" />
<Compile Include="Source\Modules\SemenOverlay\SemenHelper.cs" />
<Compile Include="Source\Common\Helpers\SexUtility.cs" />
<Compile Include="Source\Modules\STD\std.cs" />
<Compile Include="Source\Common\Data\StringListDef.cs" />
<Compile Include="Source\Common\Unprivater.cs" />
<Compile Include="Source\Modules\Whoring\Whoring_Helper.cs" />
<Compile Include="Source\Common\xxx.cs" />
<Compile Include="Source\Comps\CompAdder.cs" />
<Compile Include="Source\Modules\Bondage\Comps\CompBondageGear.cs" />
<Compile Include="Source\Modules\Bondage\Comps\CompGetBondageGear.cs" />
<Compile Include="Source\Modules\Bondage\Comps\CompHoloCryptoStamped.cs" />
<Compile Include="Source\Comps\CompProperties_RJW.cs" />
<Compile Include="Source\Comps\CompRJW.cs" />
<Compile Include="Source\Modules\Bondage\Comps\CompStampedApparelKey.cs" />
<Compile Include="Source\Modules\Bondage\Comps\CompUnlockBondageGear.cs" />
<Compile Include="Source\Modules\SemenOverlay\DefOf\RJW_HediffDefOf.cs" />
<Compile Include="Source\Modules\SemenOverlay\DefOf\RJW_JobDefOf.cs" />
<Compile Include="Source\Designators\_RJWdesignationsWidget.cs" />
<Compile Include="Source\Harmony\First.cs" />
<Compile Include="Source\Harmony\patch_ABF.cs" />
<Compile Include="Source\Harmony\patch_backstory_generator.cs" />
<Compile Include="Source\Harmony\patch_bondage_gear.cs" />
<Compile Include="Source\Harmony\patch_DubsBadHygiene.cs" />
<Compile Include="Source\Harmony\patch_lovin.cs" />
<Compile Include="Source\Harmony\patch_pregnancy.cs" />
<Compile Include="Source\Harmony\patch_semenOverlay.cs" />
<Compile Include="Source\Harmony\SexualityCard.cs" />
<Compile Include="Source\Harmony\SexualityCardInternal.cs" />
<Compile Include="Source\Hediffs\HediffComp_SeverityPerDayIfRest.cs" />
<Compile Include="Source\Modules\SemenOverlay\Hediffs\Hediff_Bukkake.cs" />
<Compile Include="Source\Hediffs\Hediff_Cocoon.cs" />
<Compile Include="Source\Modules\SemenOverlay\Hediffs\Hediff_Semen.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\HediffDef_EnemyImplants.cs" />
<Compile Include="Source\Hediffs\Hediff_ID.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_InsectEggPregnancy.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_MCEvents.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_MechanoidPregnancy.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_MechImplants.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\HeDiff_MicroComputer.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_ParasitePregnancy.cs" />
<Compile Include="Source\Hediffs\Hediff_Submitting.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_BasePregnancy.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_BestialPregnancy.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_HumanlikePregnancy.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\Hediff_SimpleBaby.cs" />
<Compile Include="Source\Modules\Nymphs\Incidents\IncidentWorker_NymphJoins.cs" />
<Compile Include="Source\Modules\Nymphs\Incidents\IncidentWorker_NymphVisitorGroup.cs" />
<Compile Include="Source\Modules\Nymphs\Incidents\IncidentWorker_TestInc.cs" />
<Compile Include="Source\Modules\Nymphs\Incidents\IncidentWorker_TestInc2.cs" />
<Compile Include="Source\Interactions\InteractionWorker_SexAttempt.cs" />
<Compile Include="Source\JobDrivers\JobDriver_BestialityForMale.cs" />
<Compile Include="Source\JobDrivers\JobDriver_BestialityForFemale.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Breeding.cs" />
<Compile Include="Source\Modules\SemenOverlay\JobDrivers\JobDriver_CleanSelf.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Fappin.cs" />
<Compile Include="Source\JobDrivers\JobDriver_GettinLoved.cs" />
<Compile Include="Source\JobDrivers\JobDriver_GettinRaped.cs" />
<Compile Include="Source\JobDrivers\JobDriver_JoinInBed.cs" />
<Compile Include="Source\JobDrivers\JobDriver_QuickFap.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemyByHumanlike.cs" />
<Compile Include="Source\Modules\Whoring\JobDrivers\JobDriver_WhoreInvitingVisitors.cs" />
<Compile Include="Source\JobDrivers\JobDriver_PrisonerComfortRapin.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RandomRape.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Rape.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemy.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemyByAnimal.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemyByInsect.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemyByMech.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemyToParasite.cs" />
<Compile Include="Source\Modules\Bondage\JobDrivers\JobDriver_StruggleInBondageGear.cs" />
<Compile Include="Source\Modules\Bondage\JobDrivers\JobDriver_UseItemOn.cs" />
<Compile Include="Source\JobDrivers\JobDriver_ViolateCorpse.cs" />
<Compile Include="Source\Modules\Whoring\JobDrivers\JobDriver_WhoreIsServingVisitors.cs" />
<Compile Include="Source\JobGivers\JobGiver_AIRapePrisoner.cs" />
<Compile Include="Source\JobGivers\JobGiver_Bestiality.cs" />
<Compile Include="Source\JobGivers\JobGiver_Breed.cs" />
<Compile Include="Source\JobGivers\JobGiver_ComfortPrisonerRape.cs" />
<Compile Include="Source\JobGivers\JobGiver_DoFappin.cs" />
<Compile Include="Source\JobGivers\JobGiver_JoinInBed.cs" />
<Compile Include="Source\JobGivers\JobGiver_RandomRape.cs" />
<Compile Include="Source\JobGivers\JobGiver_RapeEnemy.cs" />
<Compile Include="Source\JobGivers\JobGiver_ViolateCorpse.cs" />
<Compile Include="Source\Modules\Whoring\JobGivers\JobGiver_WhoreInvitingVisitors.cs" />
<Compile Include="Source\MentalStates\MentalState_RandomRape.cs" />
<Compile Include="Source\MentalStates\SexualMentalState.cs" />
<Compile Include="Source\Needs\Need_Sex.cs" />
<Compile Include="Source\PawnCapacities\BodyPartTagDefOf.cs" />
<Compile Include="Source\PawnCapacities\PawnCapacityWorker_Fertility.cs" />
<Compile Include="Source\Modules\Nymphs\Pawns\Nymph_Backstories.cs" />
<Compile Include="Source\Modules\Nymphs\Pawns\Nymph_Generator.cs" />
<Compile Include="Source\Recipes\Recipe_GrowBreasts.cs" />
<Compile Include="Source\Recipes\Install_Part\Recipe_InstallPart.cs" />
<Compile Include="Source\Modules\Pregnancy\Recipes\Recipe_Abortion.cs" />
<Compile Include="Source\Modules\Bondage\Recipes\Recipe_ChastityBelt.cs" />
<Compile Include="Source\Modules\Pregnancy\Recipes\Recipe_ClaimChild.cs" />
<Compile Include="Source\Modules\Pregnancy\Recipes\Recipe_DeterminePregnancy.cs" />
<Compile Include="Source\Modules\Bondage\Recipes\Recipe_ForceOffGear.cs" />
<Compile Include="Source\Modules\Pregnancy\Recipes\Recipe_InstallIUD.cs" />
<Compile Include="Source\Modules\Pregnancy\Recipes\Recipe_PregnancyHackMech.cs" />
<Compile Include="Source\Modules\Pregnancy\Recipes\Recipe_Sterilize.cs" />
<Compile Include="Source\Recipes\Recipe_Restraints.cs" />
<Compile Include="Source\Recipes\Recipe_ShrinkBreasts.cs" />
<Compile Include="Source\Recipes\Remove_Part\Recipe_RemoveAnus.cs" />
<Compile Include="Source\Recipes\Remove_Part\Recipe_RemoveBreasts.cs" />
<Compile Include="Source\Recipes\Remove_Part\Recipe_RemoveGenitals.cs" />
<Compile Include="Source\Recipes\Remove_Part\Recipe_RemovePart.cs" />
<Compile Include="Source\Recipes\Transgender\Recipe_MakeFuta.cs" />
<Compile Include="Source\Settings\RJWDebugSettings.cs" />
<Compile Include="Source\Settings\RJWHookupSettings.cs" />
<Compile Include="Source\Settings\RJWPregnancySettings.cs" />
<Compile Include="Source\Settings\RJWSettings.cs" />
<Compile Include="Source\Settings\RJWSettingsController.cs" />
<Compile Include="Source\Settings\RJWSexSettings.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ChancePerHour_Bestiality.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ChancePerHour_Breed.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ChancePerHour_Fappin.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ChancePerHour_Necro.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ChancePerHour_RapeCP.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalBestiality.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalCanBreed.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalCanRapeCP.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalFrustrated.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalHorny.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalNecro.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalNympho.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalRapist.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalSexChecks.cs" />
<Compile Include="Source\Modules\Whoring\ThinkTreeNodes\ThinkNode_ConditionalWhore.cs" />
<Compile Include="Source\Modules\Bondage\Thoughts\ThoughtWorker_Bound.cs" />
<Compile Include="Source\Thoughts\ThoughtWorker_FeelingBroken.cs" />
<Compile Include="Source\Modules\STD\Thoughts\ThoughtWorker_ItchyCrotch.cs" />
<Compile Include="Source\Thoughts\ThoughtWorker_NeedSex.cs" />
<Compile Include="Source\Thoughts\ThoughtWorker_SexChange.cs" />
<Compile Include="Source\Modules\STD\Thoughts\ThoughtWorker_SyphiliticThoughts.cs" />
<Compile Include="Source\Modules\STD\Thoughts\ThoughtWorker_WastingAway.cs" />
<Compile Include="Source\Modules\Whoring\Thoughts\ThoughtWorker_Whore.cs" />
<Compile Include="Source\Triggers\Trigger_SexSatisfy.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_BestialityForFemale.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_BestialityForMale.cs" />
<Compile Include="Source\Modules\SemenOverlay\WorkGivers\WorkGiver_CleanSelf.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Fap.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Fap_Bed.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Rape.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_RapeCP.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_RapeEnemy.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Sex.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Sexchecks.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_ViolateCorpse.cs" />
<Content Include=".gitattributes" />
<Content Include=".gitignore" />
<Compile Include="Source\Settings\Settings.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_CountOfWhore.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_IsWhore.cs" />
<Compile Include="Source\MainTab\MainTabWindow_Brothel.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_Mood.cs" />
<Compile Include="Source\MainTab\PawnTable_Whores.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_RoomAdjustmentOfWhore.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_PriceRangeOfWhore.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_AverageMoneyByWhore.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_TextCenter.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_IsComfortPrisoner.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_EarnedMoneyByWhore.cs" />
</ItemGroup>
<ItemGroup>
<None Include="LICENSE" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="%24HugsLibChecker, Version=0.5.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\UnlimitedHugs.Rimworld.HugsLibChecker.5.0.0\lib\net35\$HugsLibChecker.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="0Harmony, Version=1.2.0.1, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\UnlimitedHugs.Rimworld.HugsLib.6.1.1\lib\net35\0Harmony.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
<Reference Include="0MultiplayerAPI">
<HintPath>packages\Multiplayer\Assemblies\0MultiplayerAPI.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HugsLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\UnlimitedHugs.Rimworld.HugsLib.6.1.1\lib\net35\HugsLib.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="NAudio">
<HintPath>..\..\RimWorldWin64_Data\Managed\NAudio.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NVorbis">
<HintPath>..\..\RimWorldWin64_Data\Managed\NVorbis.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Psychology">
<HintPath>packages\Psychology.2018-11-18\Assemblies\Psychology.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RimWorldChildren">
<HintPath>packages\ChildrenAndPregnancy.0.4e\Assemblies\RimWorldChildren.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SyrTraits">
<HintPath>packages\SYR.Individuality.1.1.4\Assemblies\SyrTraits.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="UnityEngine">
<HintPath>..\..\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>..\..\RimWorldWin64_Data\Managed\UnityEngine.UI.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
<ProjectExtensions>
<VisualStudio AllowExistingFolder="true" />
</ProjectExtensions>
</Project>
|
Mewtopian/rjw
|
RimJobWorld.Main.csproj
|
csproj
|
mit
| 18,859 |
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
</Project>
|
Mewtopian/rjw
|
RimJobWorld.Main.csproj.user
|
user
|
mit
| 220 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2024
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RimJobWorld.Main", "RimJobWorld.Main.csproj", "{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Debug|Any CPU.ActiveCfg = Release|Any CPU
{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Debug|Any CPU.Build.0 = Release|Any CPU
{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {16BA61E5-4C97-4E73-926D-6718DE8E4776}
EndGlobalSection
EndGlobal
|
Mewtopian/rjw
|
RimJobWorld.Main.sln
|
sln
|
mit
| 1,105 |
/*
Core versions of scripts addapted for Greater Good
*/
using System;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using RimWorld.Planet;
using Verse;
namespace rjw_CORE_EXPOSED
{
public static class JobDriver_Lovin
{
public static readonly SimpleCurve LovinIntervalHoursFromAgeCurve = new SimpleCurve
{
new CurvePoint(1f, 12f),
new CurvePoint(16f, 6f),
new CurvePoint(22f, 9f),
new CurvePoint(30f, 12f),
new CurvePoint(50f, 18f),
new CurvePoint(75f, 24f)
};
}
// used in Vulnerability StatDef calculation
public class SkillNeed_BaseBonus : SkillNeed
{
private float baseValue = 0.5f;
private float bonusPerLevel = 0.05f;
public override float ValueFor(Pawn pawn)
{
if (pawn.skills == null)
{
return 1f;
}
int level = pawn.skills.GetSkill(this.skill).Level;
// remove melee bonus for pawns: downed, sleeping/resting/lying, wearing armbinder
if (pawn.Downed || pawn.GetPosture() != PawnPosture.Standing || pawn.health.hediffSet.HasHediff(HediffDef.Named("Armbinder")))
//|| pawn.health.hediffSet.HasHediff(HediffDef.Named("Yoke")) || pawn.health.hediffSet.HasHediff(HediffDef.Named("BoundHands")))
level = 0;
return this.ValueAtLevel(level);
}
private float ValueAtLevel(int level)
{
return this.baseValue + this.bonusPerLevel * (float)level;
}
public override IEnumerable<string> ConfigErrors()
{
foreach (string error in base.ConfigErrors())
{
yield return error;
}
for (int i = 1; i <= 20; i++)
{
float factor = this.ValueAtLevel(i);
if (factor <= 0f)
{
yield return "SkillNeed yields factor < 0 at skill level " + i;
}
}
}
}
public static class LovePartnerRelationUtility
{
public static float LovinMtbSinglePawnFactor(Pawn pawn)
{
float num = 1f;
num /= 1f - pawn.health.hediffSet.PainTotal;
float efficiency = pawn.health.capacities.GetLevel(PawnCapacityDefOf.Consciousness);
if (efficiency < 0.5f)
{
num /= efficiency * 2f;
}
if (!pawn.RaceProps.Humanlike)
{
return num * 4f;
}
if (RimWorld.LovePartnerRelationUtility.ExistingLovePartner(pawn) != null)
{
num *= 2f; //This is a factor which makes pawns with love partners less likely to do fappin/random raping/rapingCP/bestiality/necro.
}
else if (pawn.gender == Gender.Male)
{
num /= 1.25f; //This accounts for single men
}
return num / GenMath.FlatHill(0.0001f, 8f, 13f, 28f, 50f, 0.15f, pawn.ageTracker.AgeBiologicalYearsFloat);//this needs to be changed
}
}
public static class MedicalRecipesUtility
{
public static bool IsCleanAndDroppable(Pawn pawn, BodyPartRecord part)
{
return IsClean(pawn, part) && part.def.spawnThingOnRemoved != null;
}
//TODO: add check if hediff are bad?
public static bool IsClean(Pawn pawn, BodyPartRecord part)
{
//in vanilla Hediff = always bad?
return !pawn.Dead && !(from x in pawn.health.hediffSet.hediffs
where (x.Part == part)
select x).Any<Hediff>();
}
public static bool IsViolationOnPawn(Pawn pawn, BodyPartRecord part, Faction billDoerFaction)
{
return pawn.Faction != billDoerFaction || HealthUtility.PartRemovalIntent(pawn, part) == BodyPartRemovalIntent.Harvest;
}
public static void RestorePartAndSpawnAllPreviousParts(Pawn pawn, BodyPartRecord part, IntVec3 pos, Map map)
{
SpawnNaturalPartIfClean(pawn, part, pos, map);
SpawnThingsFromHediffs(pawn, part, pos, map);
pawn.health.RestorePart(part, null, true);
}
// always false since rjw uses hediffs for genitals, thus its always dirty
public static Thing SpawnNaturalPartIfClean(Pawn pawn, BodyPartRecord part, IntVec3 pos, Map map)
{
if (MedicalRecipesUtility.IsCleanAndDroppable(pawn, part))
{
//normal/rimworld parts
return GenSpawn.Spawn(part.def.spawnThingOnRemoved, pos, map);
}
return null;
}
// spawn rjw stuff
public static void SpawnThingsFromHediffs(Pawn pawn, BodyPartRecord part, IntVec3 pos, Map map)
{
if (!pawn.health.hediffSet.GetNotMissingParts(BodyPartHeight.Undefined, BodyPartDepth.Undefined).Contains(part))
{
return;
}
if (pawn.Dead)
{
return;
}
IEnumerable<Hediff> enumerable = from x in pawn.health.hediffSet.hediffs
where x.Part == part
select x;
//RJW parts and other implants?
foreach (Hediff current in enumerable)
{
if (current.def.spawnThingOnRemoved != null)
{
//rjw implants/parts
Thing thing = GenSpawn.Spawn(current.def.spawnThingOnRemoved, pos, map);
//Log.Message("SpawnThingsFromHediffs test 1 " + current);
//current.ExposeData();
//thing.ExposeData();
//Log.Message("SpawnThingsFromHediffs test 2 " + current);
//Scribe_Values.Look<float>(ref part.Size, "size", 1);
//Log.Message("SpawnThingsFromHediffs test 3 " + current);
}
}
//spawn sub parts? not sure why would it call itself but w/e
for (int i = 0; i < part.parts.Count; i++)
{
MedicalRecipesUtility.SpawnThingsFromHediffs(pawn, part.parts[i], pos, map);
}
}
}
public class Recipe_RemoveBodyPart : Recipe_Surgery
{
public virtual bool blocked(Pawn p)
{
return false;
}
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
{
if (!blocked(pawn))
{
IEnumerable<BodyPartRecord> parts = pawn.health.hediffSet.GetNotMissingParts(BodyPartHeight.Undefined, BodyPartDepth.Undefined);
foreach (BodyPartRecord part in parts)
{
if (pawn.health.hediffSet.HasDirectlyAddedPartFor(part))
{
yield return part;
}
if (MedicalRecipesUtility.IsCleanAndDroppable(pawn, part))
{
yield return part;
}
if (part != pawn.RaceProps.body.corePart && part.def.canSuggestAmputation && pawn.health.hediffSet.hediffs.Any((Hediff d) => !(d is Hediff_Injury) && d.def.isBad && d.Visible && d.Part == part))
{
yield return part;
}
}
}
}
private const int ViolationGoodwillImpact = -15;
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill)
{
bool flag = MedicalRecipesUtility.IsClean(pawn, part);
bool flag2 = MedicalRecipesUtility.IsViolationOnPawn(pawn, part, Faction.OfPlayer);
if (billDoer != null)
{
if (base.CheckSurgeryFail(billDoer, pawn, ingredients, part, bill))
{
return;
}
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, new object[]
{
billDoer,
pawn
});
MedicalRecipesUtility.SpawnNaturalPartIfClean(pawn, part, billDoer.Position, billDoer.Map);
MedicalRecipesUtility.SpawnThingsFromHediffs(pawn, part, billDoer.Position, billDoer.Map);
}
DamageDef surgicalCut = DamageDefOf.SurgicalCut;
float amount = 99999f;
float armorPenetration = 999f;
pawn.TakeDamage(new DamageInfo(surgicalCut, amount, armorPenetration, -1f, null, part, null, DamageInfo.SourceCategory.ThingOrUnknown, null));
if (flag)
{
if (pawn.Dead)
{
ThoughtUtility.GiveThoughtsForPawnExecuted(pawn, PawnExecutionKind.OrganHarvesting);
}
ThoughtUtility.GiveThoughtsForPawnOrganHarvested(pawn);
}
if (flag2 && pawn.Faction != null && billDoer != null && billDoer.Faction != null)
{
Faction faction = pawn.Faction;
Faction faction2 = billDoer.Faction;
string reason = "GoodwillChangedReason_RemovedBodyPart".Translate(part.LabelShort);
GlobalTargetInfo? lookTarget = pawn;
faction.TryAffectGoodwillWith(faction2, ViolationGoodwillImpact, true, true, reason, lookTarget);
}
}
public override string GetLabelWhenUsedOn(Pawn pawn, BodyPartRecord part)
{
if (pawn.RaceProps.IsMechanoid || pawn.health.hediffSet.PartOrAnyAncestorHasDirectlyAddedParts(part))
{
return RecipeDefOf.RemoveBodyPart.LabelCap;
}
BodyPartRemovalIntent bodyPartRemovalIntent = HealthUtility.PartRemovalIntent(pawn, part);
if (bodyPartRemovalIntent == BodyPartRemovalIntent.Harvest)
{
return "Harvest".Translate();
}
if (bodyPartRemovalIntent != BodyPartRemovalIntent.Amputate)
{
throw new InvalidOperationException();
}
if (part.depth == BodyPartDepth.Inside)
{
return "RemoveOrgan".Translate();
}
return "Amputate".Translate();
}
}
public class Recipe_InstallOrReplaceBodyPart : Recipe_Surgery
{
public virtual bool blocked(Pawn p)
{
return false;
}
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
{
if (!blocked(pawn))
{
for (int i = 0; i < recipe.appliedOnFixedBodyParts.Count; i++)
{
BodyPartDef part = recipe.appliedOnFixedBodyParts[i];
List<BodyPartRecord> bpList = pawn.RaceProps.body.AllParts;
for (int j = 0; j < bpList.Count; j++)
{
BodyPartRecord record = bpList[j];
if (record.def == part)
{
IEnumerable<Hediff> diffs = from x in pawn.health.hediffSet.hediffs
where x.Part == record
select x;
if (diffs.Count<Hediff>() != 1 || diffs.First<Hediff>().def != recipe.addsHediff)
{
if (record.parent == null || pawn.health.hediffSet.GetNotMissingParts(BodyPartHeight.Undefined, BodyPartDepth.Undefined, null, null).Contains(record.parent))
{
if (!pawn.health.hediffSet.PartOrAnyAncestorHasDirectlyAddedParts(record) || pawn.health.hediffSet.HasDirectlyAddedPartFor(record))
{
yield return record;
}
}
}
}
}
}
}
}
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill)
{
if (billDoer != null)
{
if (base.CheckSurgeryFail(billDoer, pawn, ingredients, part, bill))
{
DamageDef surgicalCut = DamageDefOf.SurgicalCut;
float amount = 99999f;
float armorPenetration = 999f;
pawn.TakeDamage(new DamageInfo(surgicalCut, amount, armorPenetration, -1f, null, part, null, DamageInfo.SourceCategory.ThingOrUnknown, null));
return;
}
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, new object[]
{
billDoer,
pawn
});
MedicalRecipesUtility.RestorePartAndSpawnAllPreviousParts(pawn, part, billDoer.Position, billDoer.Map);
}
pawn.health.AddHediff(recipe.addsHediff, part, null, null);
}
}
public class Recipe_AddBodyPart : Recipe_Surgery
{
public virtual bool blocked(Pawn p)
{
return false;
}
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
{
if (!blocked(pawn))
{
for (int i = 0; i < recipe.appliedOnFixedBodyParts.Count; i++)
{
BodyPartDef part = recipe.appliedOnFixedBodyParts[i];
List<BodyPartRecord> bpList = pawn.RaceProps.body.AllParts;
for (int j = 0; j < bpList.Count; j++)
{
BodyPartRecord record = bpList[j];
if (record.def == part)
{
IEnumerable<Hediff> diffs = from x in pawn.health.hediffSet.hediffs
where x.Part == record
select x;
if (diffs.Count<Hediff>() != 1 || diffs.First<Hediff>().def != recipe.addsHediff)
{
if (record.parent == null || pawn.health.hediffSet.GetNotMissingParts(BodyPartHeight.Undefined, BodyPartDepth.Undefined, null, null).Contains(record.parent))
{
if (!pawn.health.hediffSet.PartOrAnyAncestorHasDirectlyAddedParts(record) || pawn.health.hediffSet.HasDirectlyAddedPartFor(record))
{
yield return record;
}
}
}
}
}
}
}
}
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill)
{
if (billDoer != null)
{
if (base.CheckSurgeryFail(billDoer, pawn, ingredients, part, bill))
{
DamageDef surgicalCut = DamageDefOf.SurgicalCut;
float amount = 99999f;
float armorPenetration = 999f;
pawn.TakeDamage(new DamageInfo(surgicalCut, amount, armorPenetration, -1f, null, part, null, DamageInfo.SourceCategory.ThingOrUnknown, null));
return;
}
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, new object[]
{
billDoer,
pawn
});
pawn.health.AddHediff(recipe.addsHediff, part, null, null);
}
}
}
}
|
Mewtopian/rjw
|
Source/Common/CORE_EXPOSED/CORE_EXPOSED.cs
|
C#
|
mit
| 12,250 |
/*
*
*
* ALL THE CODE IN THIS FILE HAS JUST BEEN COPIED FROM THE DECOMPILED CORE ASSEMBLY.
* used for nymphs generation, since CORE for some reason ignores gender preference
*
*
*/
using RimWorld;
using RimWorld.Planet;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using UnityEngine;
using Verse;
using Multiplayer.API;
namespace rjw
{
[HasDebugOutput]
public static class rjw_PawnGenerator
{
[StructLayout(LayoutKind.Sequential, Size = 1)]
private struct PawnGenerationStatus
{
public Pawn Pawn
{
get;
private set;
}
public List<Pawn> PawnsGeneratedInTheMeantime
{
get;
private set;
}
public PawnGenerationStatus(Pawn pawn, List<Pawn> pawnsGeneratedInTheMeantime)
{
this = default(PawnGenerationStatus);
Pawn = pawn;
PawnsGeneratedInTheMeantime = pawnsGeneratedInTheMeantime;
}
}
private static List<PawnGenerationStatus> pawnsBeingGenerated = new List<PawnGenerationStatus>();
private static PawnRelationDef[] relationsGeneratableBlood = (from rel in DefDatabase<PawnRelationDef>.AllDefsListForReading
where rel.familyByBloodRelation && rel.generationChanceFactor > 0f
select rel).ToArray();
private static PawnRelationDef[] relationsGeneratableNonblood = (from rel in DefDatabase<PawnRelationDef>.AllDefsListForReading
where !rel.familyByBloodRelation && rel.generationChanceFactor > 0f
select rel).ToArray();
public const float MaxStartMentalBreakThreshold = 0.4f;
private static SimpleCurve DefaultAgeGenerationCurve = new SimpleCurve
{
new CurvePoint(0.05f, 0f),
new CurvePoint(0.1f, 100f),
new CurvePoint(0.675f, 100f),
new CurvePoint(0.75f, 30f),
new CurvePoint(0.875f, 18f),
new CurvePoint(1f, 10f),
new CurvePoint(1.125f, 3f),
new CurvePoint(1.25f, 0f)
};
public const float MaxGeneratedMechanoidAge = 2500f;
private static readonly SimpleCurve AgeSkillMaxFactorCurve = new SimpleCurve
{
new CurvePoint(0f, 0f),
new CurvePoint(10f, 0.7f),
new CurvePoint(35f, 1f),
new CurvePoint(60f, 1.6f)
};
private static readonly SimpleCurve LevelFinalAdjustmentCurve = new SimpleCurve
{
new CurvePoint(0f, 0f),
new CurvePoint(10f, 10f),
new CurvePoint(20f, 16f),
new CurvePoint(27f, 20f)
};
private static readonly SimpleCurve LevelRandomCurve = new SimpleCurve
{
new CurvePoint(0f, 0f),
new CurvePoint(0.5f, 150f),
new CurvePoint(4f, 150f),
new CurvePoint(5f, 25f),
new CurvePoint(10f, 5f),
new CurvePoint(15f, 0f)
};
// no idea wtf is that
// [CompilerGenerated]
// private static Func<Pawn, bool> _003C_003Ef__mg_0024cache0;
//
// [CompilerGenerated]
// private static Func<Pawn, float> _003C_003Ef__mg_0024cache1;
//
// [CompilerGenerated]
// private static Func<Pawn, float> _003C_003Ef__mg_0024cache2;
//
// [CompilerGenerated]
// private static Func<Pawn, float> _003C_003Ef__mg_0024cache3;
//
public static void Reset()
{
relationsGeneratableBlood = (from rel in DefDatabase<PawnRelationDef>.AllDefsListForReading
where rel.familyByBloodRelation && rel.generationChanceFactor > 0f
select rel).ToArray();
relationsGeneratableNonblood = (from rel in DefDatabase<PawnRelationDef>.AllDefsListForReading
where !rel.familyByBloodRelation && rel.generationChanceFactor > 0f
select rel).ToArray();
}
public static Pawn GeneratePawn(PawnKindDef kindDef, Faction faction = null)
{
return GeneratePawn(new PawnGenerationRequest(kindDef, faction));
}
public static Pawn GeneratePawn(PawnGenerationRequest request)
{
try
{
Pawn pawn = GenerateOrRedressPawnInternal(request);
if (pawn != null && !request.AllowDead && pawn.health.hediffSet.hediffs.Any())
{
bool dead = pawn.Dead;
bool downed = pawn.Downed;
pawn.health.hediffSet.DirtyCache();
pawn.health.CheckForStateChange(null, null);
if (pawn.Dead)
{
Log.Error("Pawn was generated dead but the pawn generation request specified the pawn must be alive. This shouldn't ever happen even if we ran out of tries because null pawn should have been returned instead in this case. Resetting health...\npawn.Dead=" + pawn.Dead + " pawn.Downed=" + pawn.Downed + " deadBefore=" + dead + " downedBefore=" + downed + "\nrequest=" + request);
pawn.health.Reset();
}
}
if (pawn.Faction == Faction.OfPlayerSilentFail)
{
Find.StoryWatcher.watcherPopAdaptation.Notify_PawnEvent(pawn, PopAdaptationEvent.GainedColonist);
}
return pawn;
}
catch (Exception arg)
{
Log.Error("Error while generating pawn. Rethrowing. Exception: " + arg);
throw;
}
finally
{
}
}
[SyncMethod]
private static Pawn GenerateOrRedressPawnInternal(PawnGenerationRequest request)
{
Pawn result = null;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (!request.Newborn && !request.ForceGenerateNewPawn)
{
if (request.ForceRedressWorldPawnIfFormerColonist)
{
IEnumerable<Pawn> validCandidatesToRedress = GetValidCandidatesToRedress(request);
if (validCandidatesToRedress.Where(PawnUtility.EverBeenColonistOrTameAnimal).TryRandomElementByWeight(WorldPawnSelectionWeight, out result))
{
RedressPawn(result, request);
Find.WorldPawns.RemovePawn(result);
}
}
if (result == null && request.Inhabitant && request.Tile != -1)
{
SettlementBase settlement = Find.WorldObjects.WorldObjectAt<SettlementBase>(request.Tile);
if (settlement != null && settlement.previouslyGeneratedInhabitants.Any())
{
IEnumerable<Pawn> validCandidatesToRedress2 = GetValidCandidatesToRedress(request);
if ((from x in validCandidatesToRedress2
where settlement.previouslyGeneratedInhabitants.Contains(x)
select x).TryRandomElementByWeight(WorldPawnSelectionWeight, out result))
{
RedressPawn(result, request);
Find.WorldPawns.RemovePawn(result);
}
}
}
if (result == null && Rand.Chance(ChanceToRedressAnyWorldPawn(request)))
{
IEnumerable<Pawn> validCandidatesToRedress3 = GetValidCandidatesToRedress(request);
if (validCandidatesToRedress3.TryRandomElementByWeight(WorldPawnSelectionWeight, out result))
{
RedressPawn(result, request);
Find.WorldPawns.RemovePawn(result);
}
}
}
bool redressed;
if (result == null)
{
redressed = false;
result = GenerateNewPawnInternal(ref request);
if (result == null)
{
return null;
}
if (request.Inhabitant && request.Tile != -1)
{
Find.WorldObjects.WorldObjectAt<SettlementBase>(request.Tile)?.previouslyGeneratedInhabitants.Add(result);
}
}
else
{
redressed = true;
}
if (Find.Scenario != null)
{
Find.Scenario.Notify_PawnGenerated(result, request.Context, redressed);
}
return result;
}
public static void RedressPawn(Pawn pawn, PawnGenerationRequest request)
{
try
{
pawn.ChangeKind(request.KindDef);
GenerateGearFor(pawn, request);
if (pawn.Faction != request.Faction)
{
pawn.SetFaction(request.Faction);
}
if (pawn.guest != null)
{
pawn.guest.SetGuestStatus(null);
}
}
finally
{
}
}
public static bool IsBeingGenerated(Pawn pawn)
{
for (int i = 0; i < pawnsBeingGenerated.Count; i++)
{
if (pawnsBeingGenerated[i].Pawn == pawn)
{
return true;
}
}
return false;
}
private static bool IsValidCandidateToRedress(Pawn pawn, PawnGenerationRequest request)
{
if (pawn.def != request.KindDef.race)
{
return false;
}
if (!request.WorldPawnFactionDoesntMatter && pawn.Faction != request.Faction)
{
return false;
}
if (!request.AllowDead && (pawn.Dead || pawn.Destroyed))
{
return false;
}
if (!request.AllowDowned && pawn.Downed)
{
return false;
}
if (pawn.health.hediffSet.BleedRateTotal > 0.001f)
{
return false;
}
if (!request.CanGeneratePawnRelations && pawn.RaceProps.IsFlesh && pawn.relations.RelatedToAnyoneOrAnyoneRelatedToMe)
{
return false;
}
if (!request.AllowGay && pawn.RaceProps.Humanlike && pawn.story.traits.HasTrait(TraitDefOf.Gay))
{
return false;
}
if (request.ValidatorPreGear != null && !request.ValidatorPreGear(pawn))
{
return false;
}
if (request.ValidatorPostGear != null && !request.ValidatorPostGear(pawn))
{
return false;
}
if (request.FixedBiologicalAge.HasValue && pawn.ageTracker.AgeBiologicalYearsFloat != request.FixedBiologicalAge)
{
return false;
}
if (request.FixedChronologicalAge.HasValue && (float)pawn.ageTracker.AgeChronologicalYears != request.FixedChronologicalAge)
{
return false;
}
if (request.FixedGender.HasValue && pawn.gender != request.FixedGender)
{
return false;
}
if (request.FixedLastName != null && ((NameTriple)pawn.Name).Last != request.FixedLastName)
{
return false;
}
if (request.FixedMelanin.HasValue && pawn.story != null && pawn.story.melanin != request.FixedMelanin)
{
return false;
}
if (request.Context == PawnGenerationContext.PlayerStarter && Find.Scenario != null && !Find.Scenario.AllowPlayerStartingPawn(pawn, tryingToRedress: true, request))
{
return false;
}
if (request.MustBeCapableOfViolence)
{
if (pawn.story != null && pawn.story.WorkTagIsDisabled(WorkTags.Violent))
{
return false;
}
if (pawn.RaceProps.ToolUser && !pawn.health.capacities.CapableOf(PawnCapacityDefOf.Manipulation))
{
return false;
}
}
return true;
}
private static Pawn GenerateNewPawnInternal(ref PawnGenerationRequest request)
{
Pawn pawn = null;
string error = null;
bool ignoreScenarioRequirements = false;
bool ignoreValidator = false;
for (int i = 0; i < 120; i++)
{
if (i == 70)
{
Log.Error("Could not generate a pawn after " + 70 + " tries. Last error: " + error + " Ignoring scenario requirements.");
ignoreScenarioRequirements = true;
}
if (i == 100)
{
Log.Error("Could not generate a pawn after " + 100 + " tries. Last error: " + error + " Ignoring validator.");
ignoreValidator = true;
}
PawnGenerationRequest request2 = request;
pawn = TryGenerateNewPawnInternal(ref request2, out error, ignoreScenarioRequirements, ignoreValidator);
if (pawn != null)
{
request = request2;
break;
}
}
if (pawn == null)
{
Log.Error("Pawn generation error: " + error + " Too many tries (" + 120 + "), returning null. Generation request: " + request);
return null;
}
return pawn;
}
[SyncMethod]
private static Pawn TryGenerateNewPawnInternal(ref PawnGenerationRequest request, out string error, bool ignoreScenarioRequirements, bool ignoreValidator)
{
error = null;
Pawn pawn = (Pawn)ThingMaker.MakeThing(request.KindDef.race);
pawnsBeingGenerated.Add(new PawnGenerationStatus(pawn, null));
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
try
{
pawn.kindDef = request.KindDef;
pawn.SetFactionDirect(request.Faction);
PawnComponentsUtility.CreateInitialComponents(pawn);
if (request.FixedGender.HasValue)
{
pawn.gender = request.FixedGender.Value;
}
else if (pawn.RaceProps.hasGenders)
{
if (Rand.Value < 0.5f)
{
pawn.gender = Gender.Male;
}
else
{
pawn.gender = Gender.Female;
}
}
else
{
pawn.gender = Gender.None;
}
GenerateRandomAge(pawn, request);
pawn.needs.SetInitialLevels();
if (!request.Newborn && request.CanGeneratePawnRelations)
{
GeneratePawnRelations(pawn, ref request);
}
if (pawn.RaceProps.Humanlike)
{
Faction faction;
FactionDef factionType = (request.Faction != null) ? request.Faction.def : ((!Find.FactionManager.TryGetRandomNonColonyHumanlikeFaction(out faction, tryMedievalOrBetter: false, allowDefeated: true)) ? Faction.OfAncients.def : faction.def);
pawn.story.melanin = ((!request.FixedMelanin.HasValue) ? PawnSkinColors.RandomMelanin(request.Faction) : request.FixedMelanin.Value);
pawn.story.crownType = ((Rand.Value < 0.5f) ? CrownType.Average : CrownType.Narrow);
pawn.story.hairColor = PawnHairColors.RandomHairColor(pawn.story.SkinColor, pawn.ageTracker.AgeBiologicalYears);
PawnBioAndNameGenerator.GiveAppropriateBioAndNameTo(pawn, request.FixedLastName, factionType);
pawn.story.hairDef = PawnHairChooser.RandomHairDefFor(pawn, factionType);
GenerateTraits(pawn, request);
GenerateBodyType(pawn);
GenerateSkills(pawn);
}
if (pawn.RaceProps.Animal && request.Faction != null && request.Faction.IsPlayer)
{
pawn.training.SetWantedRecursive(TrainableDefOf.Tameness, checkOn: true);
pawn.training.Train(TrainableDefOf.Tameness, null, complete: true);
}
GenerateInitialHediffs(pawn, request);
if (pawn.workSettings != null && request.Faction != null && request.Faction.IsPlayer)
{
pawn.workSettings.EnableAndInitialize();
}
if (request.Faction != null && pawn.RaceProps.Animal)
{
pawn.GenerateNecessaryName();
}
if (Find.Scenario != null)
{
Find.Scenario.Notify_NewPawnGenerating(pawn, request.Context);
}
if (!request.AllowDead && (pawn.Dead || pawn.Destroyed))
{
DiscardGeneratedPawn(pawn);
error = "Generated dead pawn.";
return null;
}
if (!request.AllowDowned && pawn.Downed)
{
DiscardGeneratedPawn(pawn);
error = "Generated downed pawn.";
return null;
}
if (request.MustBeCapableOfViolence && ((pawn.story != null && pawn.story.WorkTagIsDisabled(WorkTags.Violent)) || (pawn.RaceProps.ToolUser && !pawn.health.capacities.CapableOf(PawnCapacityDefOf.Manipulation))))
{
DiscardGeneratedPawn(pawn);
error = "Generated pawn incapable of violence.";
return null;
}
if (!ignoreScenarioRequirements && request.Context == PawnGenerationContext.PlayerStarter && Find.Scenario != null && !Find.Scenario.AllowPlayerStartingPawn(pawn, tryingToRedress: false, request))
{
DiscardGeneratedPawn(pawn);
error = "Generated pawn doesn't meet scenario requirements.";
return null;
}
if (!ignoreValidator && request.ValidatorPreGear != null && !request.ValidatorPreGear(pawn))
{
DiscardGeneratedPawn(pawn);
error = "Generated pawn didn't pass validator check (pre-gear).";
return null;
}
if (!request.Newborn)
{
GenerateGearFor(pawn, request);
}
if (!ignoreValidator && request.ValidatorPostGear != null && !request.ValidatorPostGear(pawn))
{
DiscardGeneratedPawn(pawn);
error = "Generated pawn didn't pass validator check (post-gear).";
return null;
}
for (int i = 0; i < pawnsBeingGenerated.Count - 1; i++)
{
if (pawnsBeingGenerated[i].PawnsGeneratedInTheMeantime == null)
{
pawnsBeingGenerated[i] = new PawnGenerationStatus(pawnsBeingGenerated[i].Pawn, new List<Pawn>());
}
pawnsBeingGenerated[i].PawnsGeneratedInTheMeantime.Add(pawn);
}
return pawn;
}
finally
{
pawnsBeingGenerated.RemoveLast();
}
}
private static void DiscardGeneratedPawn(Pawn pawn)
{
if (Find.WorldPawns.Contains(pawn))
{
Find.WorldPawns.RemovePawn(pawn);
}
Find.WorldPawns.PassToWorld(pawn, PawnDiscardDecideMode.Discard);
List<Pawn> pawnsGeneratedInTheMeantime = pawnsBeingGenerated.Last().PawnsGeneratedInTheMeantime;
if (pawnsGeneratedInTheMeantime != null)
{
for (int i = 0; i < pawnsGeneratedInTheMeantime.Count; i++)
{
Pawn pawn2 = pawnsGeneratedInTheMeantime[i];
if (Find.WorldPawns.Contains(pawn2))
{
Find.WorldPawns.RemovePawn(pawn2);
}
Find.WorldPawns.PassToWorld(pawn2, PawnDiscardDecideMode.Discard);
for (int j = 0; j < pawnsBeingGenerated.Count; j++)
{
pawnsBeingGenerated[j].PawnsGeneratedInTheMeantime.Remove(pawn2);
}
}
}
}
private static IEnumerable<Pawn> GetValidCandidatesToRedress(PawnGenerationRequest request)
{
IEnumerable<Pawn> enumerable = Find.WorldPawns.GetPawnsBySituation(WorldPawnSituation.Free);
if (request.KindDef.factionLeader)
{
enumerable = enumerable.Concat(Find.WorldPawns.GetPawnsBySituation(WorldPawnSituation.FactionLeader));
}
return from x in enumerable
where IsValidCandidateToRedress(x, request)
select x;
}
private static float ChanceToRedressAnyWorldPawn(PawnGenerationRequest request)
{
int pawnsBySituationCount = Find.WorldPawns.GetPawnsBySituationCount(WorldPawnSituation.Free);
float num = Mathf.Min(0.02f + 0.01f * ((float)pawnsBySituationCount / 10f), 0.8f);
if (request.MinChanceToRedressWorldPawn.HasValue)
{
num = Mathf.Max(num, request.MinChanceToRedressWorldPawn.Value);
}
return num;
}
private static float WorldPawnSelectionWeight(Pawn p)
{
if (p.RaceProps.IsFlesh && !p.relations.everSeenByPlayer && p.relations.RelatedToAnyoneOrAnyoneRelatedToMe)
{
return 0.1f;
}
return 1f;
}
private static void GenerateGearFor(Pawn pawn, PawnGenerationRequest request)
{
PawnApparelGenerator.GenerateStartingApparelFor(pawn, request);
PawnWeaponGenerator.TryGenerateWeaponFor(pawn);
PawnInventoryGenerator.GenerateInventoryFor(pawn, request);
}
[SyncMethod]
private static void GenerateInitialHediffs(Pawn pawn, PawnGenerationRequest request)
{
int num = 0;
while (true)
{
AgeInjuryUtility.GenerateRandomOldAgeInjuries(pawn, !request.AllowDead);
PawnTechHediffsGenerator.GenerateTechHediffsFor(pawn);
PawnAddictionHediffsGenerator.GenerateAddictionsAndTolerancesFor(pawn);
if ((request.AllowDead && pawn.Dead) || request.AllowDowned || !pawn.Downed)
{
break;
}
pawn.health.Reset();
num++;
if (num > 80)
{
Log.Warning("Could not generate old age injuries for " + pawn.ThingID + " of age " + pawn.ageTracker.AgeBiologicalYears + " that allow pawn to move after " + 80 + " tries. request=" + request);
break;
}
}
if (!pawn.Dead && (request.Faction == null || !request.Faction.IsPlayer))
{
int num2 = 0;
while (true)
{
if (!pawn.health.HasHediffsNeedingTend())
{
return;
}
num2++;
if (num2 > 10000)
{
break;
}
TendUtility.DoTend(null, pawn, null);
}
Log.Error("Too many iterations.");
}
}
[SyncMethod]
private static void GenerateRandomAge(Pawn pawn, PawnGenerationRequest request)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (request.FixedBiologicalAge.HasValue && request.FixedChronologicalAge.HasValue)
{
float? fixedBiologicalAge = request.FixedBiologicalAge;
bool hasValue = fixedBiologicalAge.HasValue;
float? fixedChronologicalAge = request.FixedChronologicalAge;
if ((hasValue & fixedChronologicalAge.HasValue) && fixedBiologicalAge.GetValueOrDefault() > fixedChronologicalAge.GetValueOrDefault())
{
Log.Warning("Tried to generate age for pawn " + pawn + ", but pawn generation request demands biological age (" + request.FixedBiologicalAge + ") to be greater than chronological age (" + request.FixedChronologicalAge + ").");
}
}
if (request.Newborn)
{
pawn.ageTracker.AgeBiologicalTicks = 0L;
}
else if (request.FixedBiologicalAge.HasValue)
{
pawn.ageTracker.AgeBiologicalTicks = (long)(request.FixedBiologicalAge.Value * 3600000f);
}
else
{
float num = 0f;
int num2 = 0;
do
{
num = ((pawn.RaceProps.ageGenerationCurve != null) ? ((float)Mathf.RoundToInt(Rand.ByCurve(pawn.RaceProps.ageGenerationCurve))) : ((!pawn.RaceProps.IsMechanoid) ? (Rand.ByCurve(DefaultAgeGenerationCurve) * pawn.RaceProps.lifeExpectancy) : Rand.Range(0f, 2500f)));
num2++;
if (num2 > 300)
{
Log.Error("Tried 300 times to generate age for " + pawn);
break;
}
}
while (num > (float)pawn.kindDef.maxGenerationAge || num < (float)pawn.kindDef.minGenerationAge);
pawn.ageTracker.AgeBiologicalTicks = (long)(num * 3600000f) + Rand.Range(0, 3600000);
}
if (request.Newborn)
{
pawn.ageTracker.AgeChronologicalTicks = 0L;
}
else if (request.FixedChronologicalAge.HasValue)
{
pawn.ageTracker.AgeChronologicalTicks = (long)(request.FixedChronologicalAge.Value * 3600000f);
}
else
{
int num3;
if (request.CertainlyBeenInCryptosleep || Rand.Value < pawn.kindDef.backstoryCryptosleepCommonality)
{
float value = Rand.Value;
if (value < 0.7f)
{
num3 = Rand.Range(0, 100);
}
else if (value < 0.95f)
{
num3 = Rand.Range(100, 1000);
}
else
{
int max = GenDate.Year(GenTicks.TicksAbs, 0f) - 2026 - pawn.ageTracker.AgeBiologicalYears;
num3 = Rand.Range(1000, max);
}
}
else
{
num3 = 0;
}
int ticksAbs = GenTicks.TicksAbs;
long num4 = ticksAbs - pawn.ageTracker.AgeBiologicalTicks;
num4 -= (long)num3 * 3600000L;
pawn.ageTracker.BirthAbsTicks = num4;
}
if (pawn.ageTracker.AgeBiologicalTicks > pawn.ageTracker.AgeChronologicalTicks)
{
pawn.ageTracker.AgeChronologicalTicks = pawn.ageTracker.AgeBiologicalTicks;
}
}
[SyncMethod]
public static int RandomTraitDegree(TraitDef traitDef)
{
if (traitDef.degreeDatas.Count == 1)
{
return traitDef.degreeDatas[0].degree;
}
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
return traitDef.degreeDatas.RandomElementByWeight((TraitDegreeData dd) => dd.commonality).degree;
}
[SyncMethod]
private static void GenerateTraits(Pawn pawn, PawnGenerationRequest request)
{
if (pawn.story != null)
{
if (pawn.story.childhood.forcedTraits != null)
{
List<TraitEntry> forcedTraits = pawn.story.childhood.forcedTraits;
for (int i = 0; i < forcedTraits.Count; i++)
{
TraitEntry traitEntry = forcedTraits[i];
if (traitEntry.def == null)
{
Log.Error("Null forced trait def on " + pawn.story.childhood);
}
else if (!pawn.story.traits.HasTrait(traitEntry.def))
{
pawn.story.traits.GainTrait(new Trait(traitEntry.def, traitEntry.degree));
}
}
}
if (pawn.story.adulthood != null && pawn.story.adulthood.forcedTraits != null)
{
List<TraitEntry> forcedTraits2 = pawn.story.adulthood.forcedTraits;
for (int j = 0; j < forcedTraits2.Count; j++)
{
TraitEntry traitEntry2 = forcedTraits2[j];
if (traitEntry2.def == null)
{
Log.Error("Null forced trait def on " + pawn.story.adulthood);
}
else if (!pawn.story.traits.HasTrait(traitEntry2.def))
{
pawn.story.traits.GainTrait(new Trait(traitEntry2.def, traitEntry2.degree));
}
}
}
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
int num = Rand.RangeInclusive(2, 3);
if (request.AllowGay && (LovePartnerRelationUtility.HasAnyLovePartnerOfTheSameGender(pawn) || LovePartnerRelationUtility.HasAnyExLovePartnerOfTheSameGender(pawn)))
{
Trait trait = new Trait(TraitDefOf.Gay, RandomTraitDegree(TraitDefOf.Gay));
pawn.story.traits.GainTrait(trait);
}
while (pawn.story.traits.allTraits.Count < num)
{
TraitDef newTraitDef = DefDatabase<TraitDef>.AllDefsListForReading.RandomElementByWeight((TraitDef tr) => tr.GetGenderSpecificCommonality(pawn.gender));
if (!pawn.story.traits.HasTrait(newTraitDef) && (newTraitDef != TraitDefOf.Gay || (request.AllowGay && !LovePartnerRelationUtility.HasAnyLovePartnerOfTheOppositeGender(pawn) && !LovePartnerRelationUtility.HasAnyExLovePartnerOfTheOppositeGender(pawn))) && (request.Faction == null || Faction.OfPlayerSilentFail == null || !request.Faction.HostileTo(Faction.OfPlayer) || newTraitDef.allowOnHostileSpawn) && !pawn.story.traits.allTraits.Any((Trait tr) => newTraitDef.ConflictsWith(tr)) && (newTraitDef.conflictingTraits == null || !newTraitDef.conflictingTraits.Any((TraitDef tr) => pawn.story.traits.HasTrait(tr))) && (newTraitDef.requiredWorkTypes == null || !pawn.story.OneOfWorkTypesIsDisabled(newTraitDef.requiredWorkTypes)) && !pawn.story.WorkTagIsDisabled(newTraitDef.requiredWorkTags))
{
int degree = RandomTraitDegree(newTraitDef);
if (!pawn.story.childhood.DisallowsTrait(newTraitDef, degree) && (pawn.story.adulthood == null || !pawn.story.adulthood.DisallowsTrait(newTraitDef, degree)))
{
Trait trait2 = new Trait(newTraitDef, degree);
if (pawn.mindState != null && pawn.mindState.mentalBreaker != null)
{
float breakThresholdExtreme = pawn.mindState.mentalBreaker.BreakThresholdExtreme;
breakThresholdExtreme += trait2.OffsetOfStat(StatDefOf.MentalBreakThreshold);
breakThresholdExtreme *= trait2.MultiplierOfStat(StatDefOf.MentalBreakThreshold);
if (breakThresholdExtreme > 0.4f)
{
continue;
}
}
pawn.story.traits.GainTrait(trait2);
}
}
}
}
}
[SyncMethod]
private static void GenerateBodyType(Pawn pawn)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (pawn.story.adulthood != null)
{
pawn.story.bodyType = pawn.story.adulthood.BodyTypeFor(pawn.gender);
}
else if (Rand.Value < 0.5f)
{
pawn.story.bodyType = BodyTypeDefOf.Thin;
}
else
{
pawn.story.bodyType = ((pawn.gender != Gender.Female) ? BodyTypeDefOf.Male : BodyTypeDefOf.Female);
}
}
[SyncMethod]
private static void GenerateSkills(Pawn pawn)
{
List<SkillDef> allDefsListForReading = DefDatabase<SkillDef>.AllDefsListForReading;
for (int i = 0; i < allDefsListForReading.Count; i++)
{
SkillDef skillDef = allDefsListForReading[i];
int num = FinalLevelOfSkill(pawn, skillDef);
SkillRecord skill = pawn.skills.GetSkill(skillDef);
skill.Level = num;
if (!skill.TotallyDisabled)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float num2 = (float)num * 0.11f;
float value = Rand.Value;
if (value < num2)
{
if (value < num2 * 0.2f)
{
skill.passion = Passion.Major;
}
else
{
skill.passion = Passion.Minor;
}
}
skill.xpSinceLastLevel = Rand.Range(skill.XpRequiredForLevelUp * 0.1f, skill.XpRequiredForLevelUp * 0.9f);
}
}
}
[SyncMethod]
private static int FinalLevelOfSkill(Pawn pawn, SkillDef sk)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float num = (!sk.usuallyDefinedInBackstories) ? Rand.ByCurve(LevelRandomCurve) : ((float)Rand.RangeInclusive(0, 4));
foreach (Backstory item in from bs in pawn.story.AllBackstories
where bs != null
select bs)
{
foreach (KeyValuePair<SkillDef, int> item2 in item.skillGainsResolved)
{
if (item2.Key == sk)
{
num += (float)item2.Value * Rand.Range(1f, 1.4f);
}
}
}
for (int i = 0; i < pawn.story.traits.allTraits.Count; i++)
{
int value = 0;
if (pawn.story.traits.allTraits[i].CurrentData.skillGains.TryGetValue(sk, out value))
{
num += (float)value;
}
}
float num2 = Rand.Range(1f, AgeSkillMaxFactorCurve.Evaluate((float)pawn.ageTracker.AgeBiologicalYears));
num *= num2;
num = LevelFinalAdjustmentCurve.Evaluate(num);
return Mathf.Clamp(Mathf.RoundToInt(num), 0, 20);
}
public static void PostProcessGeneratedGear(Thing gear, Pawn pawn)
{
gear.TryGetComp<CompQuality>()?.SetQuality(QualityUtility.GenerateQualityGeneratingPawn(pawn.kindDef), ArtGenerationContext.Outsider);
if (gear.def.useHitPoints)
{
float randomInRange = pawn.kindDef.gearHealthRange.RandomInRange;
if (randomInRange < 1f)
{
int b = Mathf.RoundToInt(randomInRange * (float)gear.MaxHitPoints);
b = (gear.HitPoints = Mathf.Max(1, b));
}
}
}
[SyncMethod]
private static void GeneratePawnRelations(Pawn pawn, ref PawnGenerationRequest request)
{
if (pawn.RaceProps.Humanlike)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
Pawn[] array = (from x in PawnsFinder.AllMapsWorldAndTemporary_AliveOrDead
where x.def == pawn.def
select x).ToArray();
if (array.Length != 0)
{
int num = 0;
Pawn[] array2 = array;
foreach (Pawn pawn2 in array2)
{
if (pawn2.Discarded)
{
Log.Warning("Warning during generating pawn relations for " + pawn + ": Pawn " + pawn2 + " is discarded, yet he was yielded by PawnUtility. Discarding a pawn means that he is no longer managed by anything.");
}
else if (pawn2.Faction != null && pawn2.Faction.IsPlayer)
{
num++;
}
}
float num2 = 45f;
num2 += (float)num * 2.7f;
PawnGenerationRequest localReq = request;
Pair<Pawn, PawnRelationDef> pair = GenerateSamples(array, relationsGeneratableBlood, 40).RandomElementByWeightWithDefault((Pair<Pawn, PawnRelationDef> x) => x.Second.generationChanceFactor * x.Second.Worker.GenerationChance(pawn, x.First, localReq), num2 * 40f / (float)(array.Length * relationsGeneratableBlood.Length));
if (pair.First != null)
{
pair.Second.Worker.CreateRelation(pawn, pair.First, ref request);
}
Pair<Pawn, PawnRelationDef> pair2 = GenerateSamples(array, relationsGeneratableNonblood, 40).RandomElementByWeightWithDefault((Pair<Pawn, PawnRelationDef> x) => x.Second.generationChanceFactor * x.Second.Worker.GenerationChance(pawn, x.First, localReq), num2 * 40f / (float)(array.Length * relationsGeneratableNonblood.Length));
if (pair2.First != null)
{
pair2.Second.Worker.CreateRelation(pawn, pair2.First, ref request);
}
}
}
}
[SyncMethod]
private static Pair<Pawn, PawnRelationDef>[] GenerateSamples(Pawn[] pawns, PawnRelationDef[] relations, int count)
{
Pair<Pawn, PawnRelationDef>[] array = new Pair<Pawn, PawnRelationDef>[count];
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
for (int i = 0; i < count; i++)
{
array[i] = new Pair<Pawn, PawnRelationDef>(pawns[Rand.Range(0, pawns.Length)], relations[Rand.Range(0, relations.Length)]);
}
return array;
}
[DebugOutput]
[Category("Performance")]
public static void PawnGenerationHistogram()
{
DebugHistogram debugHistogram = new DebugHistogram((from x in Enumerable.Range(1, 20)
select (float)x * 10f).ToArray());
for (int i = 0; i < 100; i++)
{
long timestamp = Stopwatch.GetTimestamp();
Pawn pawn = GeneratePawn(new PawnGenerationRequest(PawnKindDefOf.Colonist, null, PawnGenerationContext.NonPlayer, -1, forceGenerateNewPawn: true));
debugHistogram.Add((float)((Stopwatch.GetTimestamp() - timestamp) * 1000 / Stopwatch.Frequency));
pawn.Destroy();
}
debugHistogram.Display();
}
}
}
|
Mewtopian/rjw
|
Source/Common/CORE_EXPOSED/PawnGenerator.cs
|
C#
|
mit
| 31,117 |
using System.Collections.Generic;
using HugsLib.Utils;
using Verse;
namespace rjw
{
/// <summary>
/// Hugslib Utility Data object storing the RJW info
/// also implements extensions to Pawn method
/// is used as a static field in PawnData
/// </summary>
public class DataStore : UtilityWorldObject
{
public Dictionary<int, PawnData> PawnData = new Dictionary<int, PawnData> ();
//public Dictionary<int, PartsData> PartsData = new Dictionary<int, PartsData> ();
public override void ExposeData()
{
if (Scribe.mode==LoadSaveMode.Saving)
PawnData.RemoveAll(item => item.Value==null || !item.Value.IsValid);
base.ExposeData();
Scribe_Collections.Look(ref PawnData, "Data", LookMode.Value, LookMode.Deep);
//Scribe_Collections.Look(ref PartsData, "Data", LookMode.Value, LookMode.Deep);
if (Scribe.mode == LoadSaveMode.LoadingVars)
{
if (PawnData == null) PawnData = new Dictionary<int, PawnData>();
//if (PartsData == null) PartsData = new Dictionary<int, PartsData>();
}
}
public PawnData GetPawnData(Pawn pawn)
{
PawnData res;
//--Log.Message("Getting data for " + pawn);
//--Log.Message("Pawn " + pawn + " id " + pawn.thingIDNumber);
//--Log.Message("PawnData isn't null " + !(PawnData == null));
var filled = PawnData.TryGetValue(pawn.thingIDNumber, out res);
//--Log.Message("Output is not null" + PawnData.TryGetValue(pawn.thingIDNumber, out res));
//--Log.Message("Out is not null " + (res != null));
//--Log.Message("Out is valid " + (res != null && res.IsValid));
if ((res==null) || (!res.IsValid))
{
if (filled)
{
//--Log.Message("Clearing incorrect data for " + pawn);
PawnData.Remove(pawn.thingIDNumber);
}
//--Log.Message("PawnData missing, creating for " + pawn);
res = new PawnData(pawn);
PawnData.Add(pawn.thingIDNumber, res);
}
//--Log.Message("Finishing");
//--Log.Message("PawnData is " + res.Comfort + " " + res.Service + " " + res.Breeding);
return res;
}
void SetPawnData(Pawn pawn, PawnData data)
{
PawnData.Add(pawn.thingIDNumber, data);
}
//public PartsData GetPartsData(Thing thing)
//{
// PartsData res;
// //--Log.Message("Getting data for " + thing);
// //--Log.Message("Pawn " + thing + " id " + thing.thingIDNumber);
// //--Log.Message("PartsData isn't null " + !(PartsData == null));
// var filled = PartsData.TryGetValue(thing.thingIDNumber, out res);
// //--Log.Message("Output is not null" + PartsData.TryGetValue(thing.thingIDNumber, out res));
// //--Log.Message("Out is not null " + (res != null));
// //--Log.Message("Out is valid " + (res != null && res.IsValid));
// if ((res==null) || (!res.IsValid))
// {
// if (filled)
// {
// //--Log.Message("Clearing incorrect data for " + thing);
// PartsData.Remove(thing.thingIDNumber);
// }
// //--Log.Message("PartsData missing, creating for " + thing);
// res = new PartsData(thing);
// PartsData.Add(thing.thingIDNumber, res);
// }
// //--Log.Message("Finishing");
// return res;
//}
//void SetPartsData(Thing thing, PartsData data)
//{
// PartsData.Add(thing.thingIDNumber, data);
//}
}
}
|
Mewtopian/rjw
|
Source/Common/Data/DataStore.cs
|
C#
|
mit
| 3,187 |
using Verse;
using System.Collections.Generic;
namespace rjw
{
/// <summary>
/// Collection of Designated pawns
/// </summary>
public class DesignatorsData : DataStore
{
public static List<Pawn> rjwHero = new List<Pawn>();
public static List<Pawn> rjwComfort = new List<Pawn>();
public static List<Pawn> rjwService = new List<Pawn>();
public static List<Pawn> rjwMilking = new List<Pawn>();
public static List<Pawn> rjwBreeding = new List<Pawn>();
public static List<Pawn> rjwBreedingAnimal = new List<Pawn>();
public override void ExposeData()
{
base.ExposeData();
Scribe_Values.Look(ref rjwHero, "rjwHero");
Scribe_Values.Look(ref rjwComfort, "rjwComfort");
Scribe_Values.Look(ref rjwService, "rjwService");
Scribe_Values.Look(ref rjwMilking, "rjwMilking");
Scribe_Values.Look(ref rjwBreeding, "rjwBreeding");
Scribe_Values.Look(ref rjwBreedingAnimal, "rjwBreedingAnimal");
}
}
}
|
Mewtopian/rjw
|
Source/Common/Data/DesignatorsData.cs
|
C#
|
mit
| 929 |
using HugsLib;
using HugsLib.Utils;
using System;
namespace rjw
{
/// <summary>
/// Rjw settings store
/// </summary>
public class SaveStorage : ModBase
{
public override string ModIdentifier => "RJW";
public override Version GetVersion()
{
//--Log.Message("GetVersion() called");
return base.GetVersion();
}
public static DataStore DataStore;//reference to savegame data, hopefully
public override void WorldLoaded()
{
DataStore = UtilityWorldObjectManager.GetUtilityWorldObject<DataStore>();
}
protected override bool HarmonyAutoPatch { get => false; }//first.cs creates harmony and does some convoulted stuff with it
}
}
|
Mewtopian/rjw
|
Source/Common/Data/ModData.cs
|
C#
|
mit
| 661 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Verse;
using HugsLib;
namespace rjw
{
/// <summary>
/// Utility rjw data object for storing Parts(genitals, breasts, anuses) data between operations
/// </summary>
public class PartsData : IExposable
{
public Pawn Pawn = null; // store original owner , maybe better kinddef?
public Thing Thing = null; // store world thing?
public float Severity = 0.0f; // store size
public PartsData() { }
public PartsData(Thing thing, Pawn pawn = null, float severity = 0.5f)
{
//Log.Message("Creating PartsData for " + thing);
Pawn = pawn;
Thing = thing;
Severity = severity;
//Log.Message("This data is valid " + this.IsValid);
}
public void ExposeData()
{
Scribe_Values.Look<float>(ref Severity, "severity", 0.5f, true);
Scribe_References.Look<Pawn>(ref this.Pawn, "Pawn");
Scribe_References.Look<Thing>(ref this.Thing, "Thing");
}
public bool IsValid { get { return Thing != null; } }
}
}
|
Mewtopian/rjw
|
Source/Common/Data/PartsData.cs
|
C#
|
mit
| 1,031 |
using System;
using Verse;
namespace rjw
{
/// <summary>
/// Utility data object and a collection of extension methods for Pawn
/// </summary>
public class PawnData : IExposable
{
//Should probably mix but not shake it with RJW designation classes
public Pawn Pawn = null;
public bool Comfort = false;
public bool Service = false;
public bool Breeding = false;
public bool Milking = false;
public bool Hero = false;
public bool Ironman = false;
public string HeroOwner = "";
public bool BreedingAnimal = false;
public bool CanChangeDesignationColonist = false;
public bool CanChangeDesignationPrisoner = false;
public bool CanDesignateService = false;
public bool CanDesignateMilking = false;
public bool CanDesignateComfort = false;
public bool CanDesignateBreedingAnimal = false;
public bool CanDesignateBreeding = false;
public bool CanDesignateHero = false;
public PawnData() { }
public PawnData(Pawn pawn)
{
//Log.Message("Creating pawndata for " + pawn);
Pawn = pawn;
//Log.Message("This data is valid " + this.IsValid);
}
public void ExposeData()
{
Scribe_References.Look<Pawn>(ref this.Pawn, "Pawn");
Scribe_Values.Look<bool>(ref Comfort, "Comfort", false, true);
Scribe_Values.Look<bool>(ref Service, "Service", false, true);
Scribe_Values.Look<bool>(ref Breeding, "Breeding", false, true);
Scribe_Values.Look<bool>(ref Milking, "Milking", false, true);
Scribe_Values.Look<bool>(ref Hero, "Hero", false, true);
Scribe_Values.Look<bool>(ref Ironman, "Ironman", false, true);
Scribe_Values.Look<String>(ref HeroOwner, "HeroOwner", "", true);
Scribe_Values.Look<bool>(ref BreedingAnimal, "BreedingAnimal", false, true);
Scribe_Values.Look<bool>(ref CanChangeDesignationColonist, "CanChangeDesignationColonist", false, true);
Scribe_Values.Look<bool>(ref CanChangeDesignationPrisoner, "CanChangeDesignationPrisoner", false, true);
Scribe_Values.Look<bool>(ref CanDesignateService, "CanDesignateService", false, true);
Scribe_Values.Look<bool>(ref CanDesignateMilking, "CanDesignateMilking", false, true);
Scribe_Values.Look<bool>(ref CanDesignateComfort, "CanDesignateComfort", false, true);
Scribe_Values.Look<bool>(ref CanDesignateBreedingAnimal, "CanDesignateBreedingAnimal", false, true);
Scribe_Values.Look<bool>(ref CanDesignateBreeding, "CanDesignateBreeding", false, true);
Scribe_Values.Look<bool>(ref CanDesignateHero, "CanDesignateHero", false, true);
}
public bool IsValid { get { return Pawn != null; } }
}
}
|
Mewtopian/rjw
|
Source/Common/Data/PawnData.cs
|
C#
|
mit
| 2,550 |
using System.Collections.Generic;
using Verse;
namespace rjw
{
/// <summary>
/// Just a simplest form of passing data from xml to the code
/// </summary>
class StringListDef : Def
{
public List<string> strings = new List<string>();
}
}
|
Mewtopian/rjw
|
Source/Common/Data/StringListDef.cs
|
C#
|
mit
| 249 |
using System.Collections.Generic;
using UnityEngine;
using Verse;
namespace RimWorld
{
public class racedefs : Def
{
public float fertility_endAge_male = 0.2f;
public float fertility_endAge_female = 0.1f;
}
}
|
Mewtopian/rjw
|
Source/Common/Data/racedefs.cs
|
C#
|
mit
| 217 |
///Better not leave it be, this mod is not intended to reimpelement base functionality and break other mods by that.
//using Harmony;
//using RimWorld;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Reflection;
//using System.Text;
//using UnityEngine;
//using Verse;
//using Verse.Sound;
//namespace rjw.Source.Common
//{
// public static class ExpandedPawnCharacterCard
// {
// /// <summary>
// /// Better to leave it be, since it doesn't affect anything much.
// /// </summary>
// public static float cardX = 570f; // vanilla is 570
// /// <summary>
// /// Basically, you want to increase this value if you want character info card be taller (thus allowing to have more
// /// traits and skills shown). Height is in pixels, increase by ~25 pixels for each additional row of skill/trait.
// /// </summary>
// public static float cardY = 470f; // vanilla is 470
// [HarmonyPatch(typeof(CharacterCardUtility), "DrawCharacterCard", new[] { typeof(Rect), typeof(Pawn), typeof(Action), typeof(Rect), })]
// public static class CharacterCardUtilityPatch
// {
// private static IEnumerable<WorkTags> WorkTagsFrom(WorkTags tags)
// {
// foreach (WorkTags workTag in tags.GetAllSelectedItems<WorkTags>())
// {
// if (workTag != WorkTags.None)
// {
// yield return workTag;
// }
// }
// }
// [HarmonyPrefix]
// public static bool DrawCharacterCardP(ref Rect rect, ref Pawn pawn, ref Action randomizeCallback, ref Rect creationRect)
// {
// rect.position = new Vector2(17f, 17f);
// rect.size = new Vector2(cardX, cardY);
// bool flag = randomizeCallback != null;
// GUI.BeginGroup((!flag) ? rect : creationRect);
// Rect rectLabel = new Rect(0f, 0f, 300f, 30f);
// NameTriple nameTriple = pawn.Name as NameTriple;
// if (flag && nameTriple != null)
// {
// Rect rect3 = new Rect(rectLabel);
// rect3.width *= 0.333f;
// Rect rect4 = new Rect(rectLabel);
// rect4.width *= 0.333f;
// rect4.x += rect4.width;
// Rect rect5 = new Rect(rectLabel);
// rect5.width *= 0.333f;
// rect5.x += rect4.width * 2f;
// string first = nameTriple.First;
// string nick = nameTriple.Nick;
// string last = nameTriple.Last;
// CharacterCardUtility.DoNameInputRect(rect3, ref first, 12);
// if (nameTriple.Nick == nameTriple.First || nameTriple.Nick == nameTriple.Last)
// {
// GUI.color = new Color(1f, 1f, 1f, 0.5f);
// }
// CharacterCardUtility.DoNameInputRect(rect4, ref nick, 9);
// GUI.color = Color.white;
// CharacterCardUtility.DoNameInputRect(rect5, ref last, 12);
// if (nameTriple.First != first || nameTriple.Nick != nick || nameTriple.Last != last)
// {
// pawn.Name = new NameTriple(first, nick, last);
// }
// TooltipHandler.TipRegion(rect3, "FirstNameDesc".Translate());
// TooltipHandler.TipRegion(rect4, "ShortIdentifierDesc".Translate());
// TooltipHandler.TipRegion(rect5, "LastNameDesc".Translate());
// }
// else
// {
// rectLabel.width = 999f;
// Text.Font = GameFont.Medium;
// Widgets.Label(rectLabel, pawn.Name.ToStringFull);
// Text.Font = GameFont.Small;
// }
// if (randomizeCallback != null)
// {
// Rect rectRandomise = new Rect(creationRect.width - 24f - 100f, 0f, 100f, rectLabel.height);
// if (Widgets.ButtonText(rectRandomise, "Randomize".Translate(), true, false, true))
// {
// SoundDefOf.TickTiny.PlayOneShotOnCamera(null);
// randomizeCallback();
// }
// UIHighlighter.HighlightOpportunity(rectRandomise, "RandomizePawn");
// }
// if (flag)
// {
// Widgets.InfoCardButton(creationRect.width - 24f, 0f, pawn);
// }
// else if (!pawn.health.Dead)
// {
// float num = CharacterCardUtility.PawnCardSize.x - 85f;
// if ((pawn.Faction == Faction.OfPlayer || pawn.IsPrisonerOfColony) && pawn.Spawned)
// {
// Rect rectBanish = new Rect(num, 0f, 30f, 30f);
// TooltipHandler.TipRegion(rectBanish, PawnBanishUtility.GetBanishButtonTip(pawn));
// if (Widgets.ButtonImage(rectBanish, ContentFinder<Texture2D>.Get("UI/Buttons/Banish", true)))
// {
// if (pawn.Downed)
// {
// Messages.Message("MessageCantBanishDownedPawn".Translate(new object[]
// {
// pawn.LabelShort
// }).AdjustedFor(pawn), pawn, MessageTypeDefOf.RejectInput);
// }
// else
// {
// PawnBanishUtility.ShowBanishPawnConfirmationDialog(pawn);
// }
// }
// num -= 40f;
// }
// if (pawn.IsColonist)
// {
// Rect rect8 = new Rect(num, 0f, 30f, 30f);
// TooltipHandler.TipRegion(rect8, "RenameColonist".Translate());
// if (Widgets.ButtonImage(rect8, ContentFinder<Texture2D>.Get("UI/Buttons/Rename", true)))
// {
// Find.WindowStack.Add(new Dialog_ChangeNameTriple(pawn));
// }
// num -= 40f;
// }
// }
// string label = pawn.MainDesc(true);
// Rect rectMainDesc = new Rect(0f, 45f, rect.width, 60f);
// Widgets.Label(rectMainDesc, label);
// Pawn p = pawn;
// TooltipHandler.TipRegion(rectMainDesc, () => p.ageTracker.AgeTooltipString, 6873641);
// Rect positionLeftHalf = new Rect(0f, 100f, 250f, cardY);
// Rect positionRightHalf = new Rect(positionLeftHalf.xMax, 100f, 258f, cardY);
// GUI.BeginGroup(positionLeftHalf);
// float currentY = 0f;
// Text.Font = GameFont.Medium;
// Widgets.Label(new Rect(0f, 0f, 200f, 30f), "Backstory".Translate());
// currentY += 30f;
// Text.Font = GameFont.Small;
// foreach (BackstorySlot backstorySlot in Enum.GetValues(typeof(BackstorySlot)))
// {
// Backstory backstory = pawn.story.GetBackstory(backstorySlot);
// if (backstory != null)
// {
// Rect rect10 = new Rect(0f, currentY, positionLeftHalf.width, 24f);
// if (Mouse.IsOver(rect10))
// {
// Widgets.DrawHighlight(rect10);
// }
// TooltipHandler.TipRegion(rect10, backstory.FullDescriptionFor(pawn));
// Text.Anchor = TextAnchor.MiddleLeft;
// string str = (backstorySlot != BackstorySlot.Adulthood) ? "Childhood".Translate() : "Adulthood".Translate();
// Widgets.Label(rect10, str + ":");
// Text.Anchor = TextAnchor.UpperLeft;
// Rect rect11 = new Rect(rect10);
// rect11.x += 90f;
// rect11.width -= 90f;
// string title = backstory.Title;
// Widgets.Label(rect11, title);
// currentY += rect10.height + 2f;
// }
// }
// currentY += 25f;
// Text.Font = GameFont.Small;
// Widgets.Label(new Rect(0f, currentY, 200f, 30f), "IncapableOf".Translate());
// currentY += 30f;
// Text.Font = GameFont.Small;
// StringBuilder stringBuilder = new StringBuilder();
// WorkTags combinedDisabledWorkTags = pawn.story.CombinedDisabledWorkTags;
// if (combinedDisabledWorkTags == WorkTags.None)
// {
// stringBuilder.Append("(" + "NoneLower".Translate() + "), ");
// }
// else
// {
// List<WorkTags> list = WorkTagsFrom(combinedDisabledWorkTags).ToList<WorkTags>();
// bool flag2 = true;
// foreach (WorkTags current in list)
// {
// if (flag2)
// {
// stringBuilder.Append(current.LabelTranslated().CapitalizeFirst());
// }
// else
// {
// stringBuilder.Append(current.LabelTranslated());
// }
// stringBuilder.Append(", ");
// flag2 = false;
// }
// }
// string text = stringBuilder.ToString();
// text = text.Substring(0, text.Length - 2);
// Rect rect12 = new Rect(0f, currentY, positionLeftHalf.width, 999f);
// Widgets.Label(rect12, text);
// currentY += 100f;
// Text.Font = GameFont.Medium;
// Widgets.Label(new Rect(0f, currentY, 200f, 30f), "Traits".Translate());
// currentY += 30f;
// Text.Font = GameFont.Small;
// for (int i = 0; i < pawn.story.traits.allTraits.Count; i++)
// {
// Trait trait = pawn.story.traits.allTraits[i];
// Rect rectCurrentTrait = new Rect(0f, currentY, positionLeftHalf.width, 24f);
// if (Mouse.IsOver(rectCurrentTrait))
// {
// Widgets.DrawHighlight(rectCurrentTrait);
// }
// Widgets.Label(rectCurrentTrait, trait.LabelCap);
// currentY += rectCurrentTrait.height + 2f;
// Trait trLocal = trait;
// TipSignal tip = new TipSignal(() => trLocal.TipString(p), (int)currentY * 37);
// TooltipHandler.TipRegion(rectCurrentTrait, tip);
// }
// GUI.EndGroup();
// GUI.BeginGroup(positionRightHalf);
// Text.Font = GameFont.Medium;
// Widgets.Label(new Rect(0f, 0f, 200f, 30f), "Skills".Translate());
// SkillUI.SkillDrawMode mode;
// if (Current.ProgramState == ProgramState.Playing)
// {
// mode = SkillUI.SkillDrawMode.Gameplay;
// }
// else
// {
// mode = SkillUI.SkillDrawMode.Menu;
// }
// SkillUI.DrawSkillsOf(pawn, new Vector2(0f, 35f), mode);
// GUI.EndGroup();
// GUI.EndGroup();
// return false;
// }
// }
// [HarmonyPatch(typeof(ITab_Pawn_Character), "FillTab")]
// public static class ITab_Pawn_CharacterPatch
// {
// [HarmonyPrefix]
// public static bool FillTabP(ITab_Pawn_Character __instance)
// {
// FieldInfo fi = typeof(ITab_Pawn_Character).GetField("size", Unprivater.flags);
// fi.SetValue(__instance, new Vector2(cardX+34f, cardY+34f));
// var p = Unprivater.GetProtectedProperty<Pawn>("PawnToShowInfoAbout", __instance);
// Rect rect = new Rect(17f, 17f, 570f, cardY);
// CharacterCardUtility.DrawCharacterCard(rect, p, null, default(Rect));
// return false;
// }
// }
// }
//}
|
Mewtopian/rjw
|
Source/Common/ExpandedPawnCharacterCard.cs
|
C#
|
mit
| 9,613 |
using System.Collections.Generic;
using RimWorld;
using Verse;
using System.Linq;
using System;
namespace rjw
{
public static class BreastSize_Helper
{
public static int NipplesOnlyBreastSize = -1;
static HediffDef[] BreastsInOrder = new[] {
Genital_Helper.flat_breasts,
Genital_Helper.small_breasts,
Genital_Helper.average_breasts,
Genital_Helper.large_breasts,
Genital_Helper.huge_breasts
};
public static int MaxSize = BreastsInOrder.Length - 1;
static IDictionary<HediffDef, int> SizeByHediffDef = BreastsInOrder
.Select((hed, i) => new { hed, i })
.ToDictionary(pair => pair.hed, pair => pair.i);
/// <summary>
/// Returns true and sets size if pawn has natural breasts.
/// Otherwise returns false.
/// </summary>
public static bool TryGetBreastSize(Pawn pawn, out int size)
{
return TryGetBreastSize(pawn, out size, out var hediff);
}
/// <summary>
/// Returns true and sets size and hediff if pawn has natural breasts.
/// Hediff will still be null for nipples only.
/// Otherwise returns false.
/// </summary>
public static bool TryGetBreastSize(Pawn pawn, out int size, out Hediff hediff)
{
var chest = Genital_Helper.get_breasts(pawn);
if (pawn.health.hediffSet.PartIsMissing(chest))
{
size = 0;
hediff = null;
return false;
}
foreach(var candidate_hediff in pawn.health.hediffSet.hediffs)
{
if (SizeByHediffDef.TryGetValue(candidate_hediff.def, out size))
{
hediff = candidate_hediff;
return true;
}
}
if (HasNipplesOnly(pawn, chest))
{
size = NipplesOnlyBreastSize;
hediff = null;
return true;
}
size = 0;
hediff = null;
return false;
}
public static int GetSize(HediffDef hediffDef)
{
return SizeByHediffDef[hediffDef];
}
public static HediffDef GetHediffDef(int size)
{
return BreastsInOrder[size];
}
public static bool IsMammal(Pawn pawn)
{
// In theory should not apply to lizards etc either.
return !xxx.is_mechanoid(pawn);
}
/// <summary>
/// Returns true if pawn has nipples but no breast development or implants.
/// </summary>
public static bool HasNipplesOnly(Pawn pawn, BodyPartRecord chest)
{
var alreadyHasBoobs = pawn.health.hediffSet.hediffs.Any(hediff =>
hediff.Part == chest &&
(hediff is Hediff_Implant || hediff is Hediff_AddedPart));
return IsMammal(pawn) && !alreadyHasBoobs;
}
/// <summary>
/// Adds two bruises with amount up to the given max.
/// </summary>
public static void HurtBreasts(Pawn pawn, BodyPartRecord part, int max)
{
if (max <= 0)
{
return;
}
// Two bruises.
for (var i = 0; i < 2; i++)
{
pawn.TakeDamage(new DamageInfo(
DamageDefOf.Blunt,
Rand.RangeInclusive(max / 4, max),
999f,
-1f,
null,
part,
null,
DamageInfo.SourceCategory.ThingOrUnknown,
null));
}
}
}
}
|
Mewtopian/rjw
|
Source/Common/Helpers/BreastSize_Helper.cs
|
C#
|
mit
| 2,927 |
// #define TESTMODE // Uncomment to enable logging.
using Verse;
using Verse.AI;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using System.Diagnostics;
using Multiplayer.API;
namespace rjw
{
/// <summary>
/// Helper for sex with animals
/// </summary>
public class BreederHelper
{
public const int max_animals_at_once = 1; // lets not forget that the purpose is procreation, not sodomy
[Conditional("TESTMODE")]
private static void DebugText(string msg)
{
Log.Message(msg);
}
//animal try to find best designated pawn to breed
[SyncMethod]
public static Pawn find_designated_breeder(Pawn pawn, Map m)
{
if (!DesignatorsData.rjwBreeding.Any()) return null;
DebugText("BreederHelper::find_designated_breeder( " + xxx.get_pawnname(pawn) + " ) called");
Pawn best_target = null;
var best_fuckability = 0.10f; // Don't breed pawns with <10% fuckability
IEnumerable<Pawn> targets = DesignatorsData.rjwBreeding.Where(x
=> x != pawn
&& xxx.is_not_dying(x)
&& xxx.can_get_raped(x)
&& !x.IsForbidden(pawn)
&& !x.Suspended
&& !x.HostileTo(pawn)
&& pawn.CanReserveAndReach(x, PathEndMode.Touch, Danger.Some, max_animals_at_once)
&& ((RJWSettings.bestiality_enabled && xxx.is_human(x)) || (RJWSettings.animal_on_animal_enabled && xxx.is_animal(x)))
);
foreach (Pawn target in targets)
{
if (!xxx.can_path_to_target(pawn, target.Position))
continue;// too far
var fuc = xxx.would_fuck(pawn, target, invert_opinion: true, ignore_gender: (Genital_Helper.has_penis(pawn) || Genital_Helper.has_penis_infertile(pawn) || xxx.is_insect(pawn)));
DebugText("BreederHelper::find_designated_breeder( " + xxx.get_pawnname(pawn) + " -> " + xxx.get_pawnname(target) + " (" + fuc.ToString() + " / " + best_fuckability.ToString() + ")");
if ((fuc > best_fuckability) && (Rand.Value < fuc))
{
best_target = target;
best_fuckability = fuc;
}
}
return best_target;
}
//animal or human try to find animals to breed (non designation)
//public static Pawn find_breeder_animal(Pawn pawn, Map m, bool SameRace = true)
[SyncMethod]
public static Pawn find_breeder_animal(Pawn pawn, Map m)
{
DebugText("BreederHelper::find_breeder_animal( " + xxx.get_pawnname(pawn) + " ) called");
float base_fuckability = 0.1f; //Determines how picky the pawns are. Could be added as config.
List<Pawn> valid_targets = new List<Pawn>();
//Pruning initial pawn list.
IEnumerable<Pawn> targets = m.mapPawns.AllPawnsSpawned.Where(x
=> x != pawn
&& xxx.is_animal(x)
&& xxx.can_get_raped(x)
&& !x.IsForbidden(pawn)
&& !x.Suspended
&& !x.HostileTo(pawn)
&& pawn.CanReserveAndReach(x, PathEndMode.Touch, Danger.Some, max_animals_at_once)
//&& SameRace ? pawn.kindDef.race == x.kindDef.race : true
);
if (targets.Any())
{
//filter pawns for female, who can fuck her
//not sure if faction check should be but w/e
if (!Genital_Helper.has_penis(pawn) && !Genital_Helper.has_penis_infertile(pawn) && (Genital_Helper.has_vagina(pawn) || Genital_Helper.has_anus(pawn)))
{
targets = targets.Where(x => xxx.can_fuck(x) && x.Faction == pawn.Faction);
}
//for humans, animals dont have need - always = 3f
//if not horny, seek only targets with safe temp
if (xxx.need_some_sex(pawn) < 3.0f)
{
targets = targets.Where(x => pawn.CanReach(x, PathEndMode.Touch, Danger.None));
}
//Used for interspecies animal-on-animal.
//Animals will only go for targets they can see.
if (xxx.is_animal(pawn))
{
targets = targets.Where(x => pawn.CanSee(x) && pawn.def.defName != x.def.defName);
}
else
{
// Pickier about the targets if the pawn has no prior experience.
if (pawn.records.GetValue(xxx.CountOfSexWithAnimals) < 3 && !xxx.is_zoophile(pawn))
{
base_fuckability *= 2f;
}
if (xxx.need_some_sex(pawn) > 2f)
{ // Less picky when frustrated...
base_fuckability *= 0.6f;
}
else if (xxx.need_some_sex(pawn) < 2f)
{ // ...and far more picky when satisfied.
base_fuckability *= 2.5f;
}
}
}
DebugText("[RJW]BreederHelper::find_breeder_animal::" + targets.Count() + " targets found on map.");
if (!targets.Any())
{
return null; //None found.
}
foreach (Pawn target in targets)
{
DebugText("[RJW]BreederHelper::find_breeder_animal::Checking target " + target.kindDef.race.defName.ToLower());
if (!xxx.can_path_to_target(pawn, target.Position))
continue;// too far
float fuc = xxx.would_fuck_animal(pawn, target); // 0.0 to ~3.0, orientation checks etc.
if (!(fuc > base_fuckability)) continue;
DebugText("Adding target" + target.kindDef.race.defName.ToLower());
valid_targets.Add(target);
}
DebugText(valid_targets.Count() + " valid targets found on map.");
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
return valid_targets.Any() ? valid_targets.RandomElement() : null;
}
}
}
|
Mewtopian/rjw
|
Source/Common/Helpers/Breeder_Helper.cs
|
C#
|
mit
| 5,087 |
using System.Collections.Generic;
using RimWorld;
using Verse;
using System.Linq;
using System;
//This one is helper lib for handling all the trans surgery.
namespace rjw
{
public static class GenderHelper
{
public enum Sex { male, female, trap, futa, none }//there is Verse,Gender but it is shit
//These would probably be better packed in some enumerable structure, so that functions below weren't if-trees, but I don't know C#, sry.
public static HediffDef was_boy = HediffDef.Named("hediff_was_boy");
public static HediffDef was_girl = HediffDef.Named("hediff_was_girl");
public static HediffDef was_futa = HediffDef.Named("hediff_was_futa");
public static HediffDef was_trap = HediffDef.Named("hediff_was_trap");
static List<HediffDef> old_sex_list = new List<HediffDef> { was_boy, was_girl, was_futa, was_trap };
static Dictionary<Sex, HediffDef> sex_to_old_sex = new Dictionary<Sex, HediffDef>() {
{Sex.male, was_boy },{Sex.female, was_girl},{Sex.trap, was_trap},{Sex.futa, was_futa}
};
static Dictionary<HediffDef,Sex> old_sex_to_sex = sex_to_old_sex.ToDictionary(x => x.Value, x => x.Key);
public static HediffDef m2t = HediffDef.Named("hediff_male2trap");
public static HediffDef m2f = HediffDef.Named("hediff_male2female");
public static HediffDef m2h = HediffDef.Named("hediff_male2futa");
public static HediffDef f2t = HediffDef.Named("hediff_female2trap");
public static HediffDef f2m = HediffDef.Named("hediff_female2male");
public static HediffDef f2h = HediffDef.Named("hediff_female2futa");
public static HediffDef h2t = HediffDef.Named("hediff_futa2trap");
public static HediffDef h2m = HediffDef.Named("hediff_futa2male");
public static HediffDef h2f = HediffDef.Named("hediff_futa2female");
public static HediffDef t2h = HediffDef.Named("hediff_trap2futa");
public static HediffDef t2m = HediffDef.Named("hediff_trap2male");
public static HediffDef t2f = HediffDef.Named("hediff_trap2female");
static List<HediffDef> SexChangeThoughts = new List<HediffDef> { m2t, m2f, m2h, f2t, f2m, f2h, h2t, h2m, h2f };
private static readonly SimpleCurve rigidity_from_age = new SimpleCurve//relative to max age
{
new CurvePoint(0f, 0.1f),
new CurvePoint(0.2f, 0.1f),
new CurvePoint(0.5f, 1f),
new CurvePoint(10f, 1f)
};
public static Sex GetSex(Pawn pawn)
{
bool has_vagina = Genital_Helper.has_vagina(pawn);
bool has_penis = Genital_Helper.has_penis(pawn);
bool has_penis_infertile = Genital_Helper.has_penis_infertile(pawn);
bool has_breasts = Genital_Helper.has_breasts(pawn);
bool has_male_breasts = Genital_Helper.has_male_breasts(pawn);
//BodyType? bt = pawn.story?.bodyType;
//if (bt != null)
// bt = BodyType.Undefined;
Sex res;
if (has_vagina && !has_penis && !has_penis_infertile)
res = Sex.female;
else if (has_vagina && (has_penis || has_penis_infertile))
res = Sex.futa;
else if ((has_penis || has_penis_infertile) && has_breasts && !has_male_breasts)
res = Sex.trap;
else if (has_penis || has_penis_infertile) //probably should change this later
res = Sex.male;
else if (pawn.gender == Gender.Male)
res = Sex.male;
else if (pawn.gender == Gender.Female)
res = Sex.female;
else
res = Sex.none;
return res;
}
/*
public static HediffDef GetReactionHediff(Sex before, Sex after)
{
if (before == after)
return null;
if (before == Sex.male)
return (after == Sex.female) ? m2f : m2t;
else if (before == Sex.female)
{
if (after == Sex.male)
return f2m;
else if (after == Sex.trap)
return f2t;
else if (after == Sex.futa)
return f2h;
else
return null;
}
else if (before == Sex.futa && (after == Sex.female || after == Sex.none))
return h2f;
else//trap to anything, futa to trap; probably won't even be reached ever
return null;
}
*/
//TODO: fix reactions
public static HediffDef GetReactionHediff(Sex before, Sex after)
{
if (before == after)
return null;
else if (before == Sex.male)
{
if (after == Sex.female)
return m2f;
else if (after == Sex.trap)
return m2t;
else if (after == Sex.futa)
return m2h;
else
return null;
}
else if (before == Sex.female)
{
if (after == Sex.male)
return f2m;
else if (after == Sex.trap)
return f2t;
else if (after == Sex.futa)
return f2h;
else
return null;
}
else if (before == Sex.futa)
{
if (after == Sex.male)
return h2m;
else if (after == Sex.female)
return h2f;
else if (after == Sex.trap)
return h2t;
else
return null;
}
else if (before == Sex.trap)
{
if (after == Sex.male)
return t2m;
else if (after == Sex.female)
return t2f;
else if (after == Sex.futa)
return t2h;
else
return null;
}
else//unicorns?
return null;
}
public static bool WasThisBefore(Pawn pawn, Sex after)
{
Hediff was = null;
switch (after)
{
case Sex.male:
was = pawn.health.hediffSet.GetFirstHediffOfDef(was_boy);
break;
case Sex.female:
was = pawn.health.hediffSet.GetFirstHediffOfDef(was_girl);
break;
case Sex.trap:
was = pawn.health.hediffSet.GetFirstHediffOfDef(was_trap);
break;
case Sex.futa:
was = pawn.health.hediffSet.GetFirstHediffOfDef(was_futa);
break;
}
return (was != null) ? true : false;
}
//Get one of the sexes that were on this pawn before
public static Sex GetOriginalSex(Pawn pawn)
{
foreach (var os in old_sex_list)
{
if (pawn.health.hediffSet.GetFirstHediffOfDef(os) != null)
return old_sex_to_sex[os];
}
return Sex.none;//it shouldnt reach here though
}
public static Hediff IsInDenial(Pawn pawn)
{
Hediff res = null;
foreach (var h in SexChangeThoughts)
{
res = pawn.health.hediffSet.GetFirstHediffOfDef(h);
if (res != null)
break;
}
return res;
}
//roll how much gender fluid the pawn is.
//In ideal world this would actually take into account from where to where transition is moving and so on.
//Same applies to the thought hediffs themselves, but we get what we can get now
static float RollSexChangeSeverity(Pawn pawn)
{
float res = 1;
if (xxx.is_bisexual(pawn))
res *= 0.5f;
if (pawn.story != null && (pawn.story.bodyType == BodyTypeDefOf.Thin || pawn.story.bodyType == BodyTypeDefOf.Fat))
res *= 0.8f;
if (!pawn.ageTracker.CurLifeStage.reproductive)
res *= 0.2f;
else
res *= rigidity_from_age.Evaluate(SexUtility.ScaleToHumanAge(pawn));
return res;
}
//Quick hack to check if hediff is adding happiness
static bool is_happy(this Hediff thought)
{
return thought.CurStageIndex == 0;
}
static void make_happy(this Hediff thought)
{
thought.Severity = 0.24f;//this is currently max severity for hediff, that is associated with positive mood
}
static void mix_thoughts(this Hediff newer, Hediff older)
{
newer.Severity = (newer.Severity + older.Severity) / 2f ;
}
static void GiveThought(Pawn pawn, HediffDef thought, bool happy = false, Hediff old_thought=null)
{
pawn.health.AddHediff(thought);
var new_thought = pawn.health.hediffSet.GetFirstHediffOfDef(thought);
if (happy)
{
new_thought.make_happy();
return;
}
new_thought.Severity = RollSexChangeSeverity(pawn);
if (old_thought!=null)
{
new_thought.Severity = (new_thought.Severity + old_thought.Severity) / 2f;
}
}
/// <summary>
/// Executes action and then changes sex if necessary.
/// </summary>
public static void ChangeSex(Pawn pawn, Action action)
{
var before = GetSex(pawn);
action();
var after = GetSex(pawn);
ChangeSex(pawn, before, after);
}
public static void ChangeSex(Pawn pawn, Sex oldsex, Sex newsex)
{
// Wakeup pawn sexuality if it has none before
if (!(CompRJW.Comp(pawn).orientation == Orientation.Asexual || CompRJW.Comp(pawn).orientation == Orientation.None))
if (oldsex == newsex)
return;
//update ingame genders
if (newsex == Sex.none)
return;
else if (newsex == Sex.male || newsex == Sex.trap)
pawn.gender = Gender.Male;
else
pawn.gender = Gender.Female;
// Sexualize pawn after installation of parts if it was "not interested in".
if (oldsex == Sex.none || CompRJW.Comp(pawn).orientation == Orientation.Asexual || CompRJW.Comp(pawn).orientation == Orientation.None)
if (pawn.kindDef.race.defName.ToLower().Contains("droid") && !AndroidsCompatibility.IsAndroid(pawn))
{
//basic droids,they dont care
return;
}
else
{
CompRJW.Comp(pawn).Sexualize(pawn, true);
}
var old_thought = IsInDenial(pawn);
var react = GetReactionHediff(oldsex, newsex);
if (old_thought==null || old_thought.is_happy())//pawn either liked it or got used already
{
//Log.Message("ChangeSex 1 old_thought" + old_thought);
//Log.Message("ChangeSex 1 react" + react);
if (react!=null)
GiveThought(pawn, react, pawn.IsDesignatedHero());//give unhappy, if not hero
if (old_thought!=null)
pawn.health.RemoveHediff(old_thought);
//add tracking hediff
pawn.health.AddHediff(sex_to_old_sex[oldsex]);
}
else//pawn was unhappy
{
if (WasThisBefore(pawn, newsex))//pawn is happy to be previous self
{
GiveThought(pawn, react, happy:true);
pawn.health.RemoveHediff(old_thought);
}
else//pawn is still unhappy mix the unhappiness from two
{
react = GetReactionHediff(GetOriginalSex(pawn), newsex);//check reaction from original sex
if (react!=null)
{
GiveThought(pawn, react, old_thought: old_thought);
pawn.health.RemoveHediff(old_thought);
}
//else pawn keeps old unhappy thought
}
}
}
}
}
|
Mewtopian/rjw
|
Source/Common/Helpers/Gender_Helper.cs
|
C#
|
mit
| 9,861 |
using RimWorld;
using System.Collections.Generic;
using System.Linq;
using Verse;
using System;
using Multiplayer.API;
namespace rjw
{
public static class Genital_Helper
{
public static HediffDef generic_anus = HediffDef.Named("GenericAnus");
public static HediffDef generic_penis = HediffDef.Named("GenericPenis");
public static HediffDef generic_vagina = HediffDef.Named("GenericVagina");
public static HediffDef generic_breasts = HediffDef.Named("GenericBreasts");
public static HediffDef micro_penis = HediffDef.Named("MicroPenis");
public static HediffDef small_penis = HediffDef.Named("SmallPenis");
public static HediffDef average_penis = HediffDef.Named("Penis");
public static HediffDef big_penis = HediffDef.Named("BigPenis");
public static HediffDef huge_penis = HediffDef.Named("HugePenis");
public static HediffDef hydraulic_penis = HediffDef.Named("HydraulicPenis");
public static HediffDef bionic_penis = HediffDef.Named("BionicPenis");
public static HediffDef archotech_penis = HediffDef.Named("ArchotechPenis");
public static HediffDef micro_vagina = HediffDef.Named("MicroVagina");
public static HediffDef tight_vagina = HediffDef.Named("TightVagina");
public static HediffDef average_vagina = HediffDef.Named("Vagina");
public static HediffDef loose_vagina = HediffDef.Named("LooseVagina");
public static HediffDef gaping_vagina = HediffDef.Named("GapingVagina");
public static HediffDef hydraulic_vagina = HediffDef.Named("HydraulicVagina");
public static HediffDef bionic_vagina = HediffDef.Named("BionicVagina");
public static HediffDef archotech_vagina = HediffDef.Named("ArchotechVagina");
public static HediffDef flat_breasts = HediffDef.Named("FlatBreasts");
public static HediffDef small_breasts = HediffDef.Named("SmallBreasts");
public static HediffDef average_breasts = HediffDef.Named("Breasts");
public static HediffDef large_breasts = HediffDef.Named("LargeBreasts");
public static HediffDef huge_breasts = HediffDef.Named("HugeBreasts");
public static HediffDef hydraulic_breasts = HediffDef.Named("HydraulicBreasts");
public static HediffDef bionic_breasts = HediffDef.Named("BionicBreasts");
public static HediffDef archotech_breasts = HediffDef.Named("ArchotechBreasts");
public static HediffDef featureless_chest = HediffDef.Named("FeaturelessChest");
public static HediffDef udder = HediffDef.Named("Udder");
public static HediffDef micro_anus = HediffDef.Named("MicroAnus");
public static HediffDef tight_anus = HediffDef.Named("TightAnus");
public static HediffDef loose_anus = HediffDef.Named("LooseAnus");
public static HediffDef average_anus = HediffDef.Named("Anus");
public static HediffDef gaping_anus = HediffDef.Named("GapingAnus");
public static HediffDef hydraulic_anus = HediffDef.Named("HydraulicAnus");
public static HediffDef bionic_anus = HediffDef.Named("BionicAnus");
public static HediffDef archotech_anus = HediffDef.Named("ArchotechAnus");
public static HediffDef peg_penis = HediffDef.Named("PegDick");
public static HediffDef insect_anus = HediffDef.Named("InsectAnus");
public static HediffDef ovipositorM = HediffDef.Named("OvipositorM");
public static HediffDef ovipositorF = HediffDef.Named("OvipositorF");
public static HediffDef demonT_penis = HediffDef.Named("DemonTentaclePenis");
public static HediffDef demon_penis = HediffDef.Named("DemonPenis");
public static HediffDef demon_vagina = HediffDef.Named("DemonVagina");
public static HediffDef demon_anus = HediffDef.Named("DemonAnus");
public static HediffDef slime_breasts = HediffDef.Named("SlimeBreasts");
public static HediffDef slime_penis = HediffDef.Named("SlimeTentacles");
public static HediffDef slime_vagina = HediffDef.Named("SlimeVagina");
public static HediffDef slime_anus = HediffDef.Named("SlimeAnus");
public static HediffDef feline_penis = HediffDef.Named("CatPenis");
public static HediffDef feline_vagina = HediffDef.Named("CatVagina");
public static HediffDef canine_penis = HediffDef.Named("DogPenis");
public static HediffDef canine_vagina = HediffDef.Named("DogVagina");
public static HediffDef equine_penis = HediffDef.Named("HorsePenis");
public static HediffDef equine_vagina = HediffDef.Named("HorseVagina");
public static HediffDef dragon_penis = HediffDef.Named("DragonPenis");
public static HediffDef dragon_vagina = HediffDef.Named("DragonVagina");
public static HediffDef raccoon_penis = HediffDef.Named("RaccoonPenis");
public static HediffDef hemipenis = HediffDef.Named("Hemipenis");
public static HediffDef crocodilian_penis = HediffDef.Named("CrocodilianPenis");
public static List<HediffDef> penise = new List<HediffDef> { generic_penis,
feline_penis, canine_penis, equine_penis, dragon_penis, raccoon_penis, hemipenis,
ovipositorM, crocodilian_penis, average_penis, micro_penis, small_penis, big_penis,
huge_penis, peg_penis, hydraulic_penis, bionic_penis, archotech_penis };
public static List<HediffDef> vaginae = new List<HediffDef> { generic_vagina,
feline_vagina, canine_vagina, equine_vagina, dragon_vagina, ovipositorF,
average_vagina, micro_vagina, tight_vagina, loose_vagina, gaping_vagina,
hydraulic_vagina, bionic_vagina, archotech_vagina };
public static HashSet<String> Penis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("Penis_filter").strings);
public static HashSet<String> HydraulicPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("HydraulicPenis_filter").strings);
public static HashSet<String> BionicPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("BionicPenis_filter").strings);
public static HashSet<String> Vagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("Vagina_filter").strings);
public static HashSet<String> HydraulicVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("HydraulicVagina_filter").strings);
public static HashSet<String> BionicVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("BionicVagina_filter").strings);
public static HashSet<String> Breasts_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("Breasts_filter").strings);
public static HashSet<String> HydraulicBreasts_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("HydraulicBreasts_filter").strings);
public static HashSet<String> BionicBreasts_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("BionicBreasts_filter").strings);
public static HashSet<String> Udder_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("Udder_filter").strings);
public static HashSet<String> FeaturelessBreasts_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("FeaturelessBreasts_filter").strings);
public static HashSet<String> Anus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("Anus_filter").strings);
public static HashSet<String> HydraulicAnus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("HydraulicAnus_filter").strings);
public static HashSet<String> BionicAnus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("BionicAnus_filter").strings);
public static HashSet<String> InsectAnus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("InsectAnus_filter").strings);
public static HashSet<String> OvipositorM_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("OvipositorM_filter").strings);
public static HashSet<String> OvipositorF_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("OvipositorF_filter").strings);
public static HashSet<String> DemonTentaclePenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DemonTentaclePenis_filter").strings);
public static HashSet<String> DemonPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DemonPenis_filter").strings);
public static HashSet<String> DemonVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DemonVagina_filter").strings);
public static HashSet<String> DemonAnus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DemonAnus_filter").strings);
public static HashSet<String> SlimeTentacles_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("SlimeTentacles_filter").strings);
public static HashSet<String> SlimeVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("SlimeVagina_filter").strings);
public static HashSet<String> SlimeAnus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("SlimeAnus_filter").strings);
public static HashSet<String> SlimeBreasts_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("SlimeBreasts_filter").strings);
public static HashSet<String> CatPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("CatPenis_filter").strings);
public static HashSet<String> CatVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("CatVagina_filter").strings);
public static HashSet<String> DogPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DogPenis_filter").strings);
public static HashSet<String> DogVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DogVagina_filter").strings);
public static HashSet<String> HorsePenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("HorsePenis_filter").strings);
public static HashSet<String> HorseVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("HorseVagina_filter").strings);
public static HashSet<String> DragonPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DragonPenis_filter").strings);
public static HashSet<String> DragonVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("DragonVagina_filter").strings);
public static HashSet<String> RaccoonPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("RaccoonPenis_filter").strings);
public static HashSet<String> Hemipenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("Hemipenis_filter").strings);
public static HashSet<String> CrocodilianPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("CrocodilianPenis_filter").strings);
public static HashSet<String> NoBreasts_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("NoBreasts_filter").strings);
public static HashSet<String> NoPenis_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("NoPenis_filter").strings);
public static HashSet<String> NoVagina_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("NoVagina_filter").strings);
public static HashSet<String> NoAnus_filter = new HashSet<string>(DefDatabase<StringListDef>.GetNamed("NoAnus_filter").strings);
public static BodyPartRecord get_genitals(Pawn pawn)
{
//--Log.Message("Genital_Helper::get_genitals( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName == "Genitals");
if (Part == null)
{
//--Log.Message("[RJW] get_genitals( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static BodyPartRecord get_breasts(Pawn pawn)
{
//--Log.Message("[RJW] get_breasts( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName == "Chest");
if (Part == null)
{
//--Log.Message("[RJW] get_breasts( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static BodyPartRecord get_anus(Pawn pawn)
{
//--Log.Message("[RJW] get_anus( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName == "Anus");
if (Part == null)
{
//--Log.Message("[RJW] get_anus( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static bool genitals_blocked(Pawn pawn)
{
if (pawn.apparel != null)
{
foreach (var app in pawn.apparel.WornApparel)
{
if ((app.def is bondage_gear_def gear_def) && (gear_def.blocks_genitals))
{
return true;
}
}
}
return false;
}
public static bool breasts_blocked(Pawn pawn)
{
if (pawn.apparel != null)
{
foreach (var app in pawn.apparel.WornApparel)
{
if ((app.def is bondage_gear_def gear_def) && (gear_def.blocks_breasts))
return true;
}
}
return false;
}
public static bool anus_blocked(Pawn pawn)
{
if (pawn.apparel != null)
{
foreach (var app in pawn.apparel.WornApparel)
{
if ((app.def is bondage_gear_def gear_def) && (gear_def.blocks_anus))
return true;
}
}
return false;
}
public static bool has_genitals(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed is Hediff_Implant || hed is Hediff_AddedPart));
}
public static bool has_breasts(Pawn pawn)
{
BodyPartRecord Part = get_breasts(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed is Hediff_Implant || hed is Hediff_AddedPart) &&
!hed.def.defName.ToLower().Contains("udder") &&
!hed.def.defName.ToLower().Contains("featureless"));
}
public static bool has_male_breasts(Pawn pawn)
{
BodyPartRecord Part = get_breasts(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed is Hediff_Implant || hed is Hediff_AddedPart) && hed.def == flat_breasts);
}
public static bool has_anus(Pawn pawn)
{
BodyPartRecord Part = get_anus(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) && (hed is Hediff_Implant || hed is Hediff_AddedPart));
}
public static bool has_penis(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed.def.defName.ToLower().Contains("penis") || hed.def.defName.ToLower().Contains("ovipositorm")));
}
public static bool has_multipenis(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return (pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed.def.defName.ToLower().Contains("hemipenis")))
||
pawn.health.hediffSet.hediffs.Count((Hediff hed) =>
(hed.Part == Part) && (
(hed.def.defName.ToLower().Contains("penis")) ||
(hed.def.defName.ToLower().Contains("pegdick")) ||
(hed.def.defName.ToLower().Contains("tentacle"))
)) > 1);
}
public static bool has_penis_infertile(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed.def.defName.ToLower().Contains("pegdick") || hed.def.defName.ToLower().Contains("tentacle")));
}
public static bool has_ovipositorF(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed.def.defName.ToLower().Contains("ovipositorf")));
}
public static bool has_ovipositorM(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed.def.defName.ToLower().Contains("ovipositorm")));
}
public static bool has_vagina(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return false;
return pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) &&
(hed.def.defName.ToLower().Contains("vagina") || hed.def.defName.ToLower().Contains("ovipositorf")));
}
public static Hediff get_penis(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return null;
return pawn.health.hediffSet.hediffs.Find((Hediff hed) =>
(hed.Part == Part) && penise.Contains(hed.def));
}
public static Hediff get_penis_all(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return null;
return pawn.health.hediffSet.hediffs.Find((Hediff hed) =>
(hed.Part == Part) &&
(!hed.def.defName.ToLower().Contains("vagina")) &&
(penise.Contains(hed.def) ||
hed.def.defName.ToLower().Contains("penis") ||
hed.def.defName.ToLower().Contains("pegdick") ||
hed.def.defName.ToLower().Contains("ovipositorm") ||
hed.def.defName.ToLower().Contains("tentacle")));
}
public static Hediff get_vagina(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return null;
return pawn.health.hediffSet.hediffs.Find((Hediff hed) =>
(hed.Part == Part) && vaginae.Contains(hed.def));
}
public static Hediff get_vagina_all(Pawn pawn)
{
BodyPartRecord Part = get_genitals(pawn);
if (Part is null)
return null;
return pawn.health.hediffSet.hediffs.Find((Hediff hed) =>
(hed.Part == Part) &&
(vaginae.Contains(hed.def) ||
hed.def.defName.ToLower().Contains("ovipositorf")));
}
public static bool is_futa(Pawn pawn)
{
return (has_penis(pawn) && has_vagina(pawn));
}
[SyncMethod]
public static double GenderTechLevelCheck(Pawn pawn)
{
if (pawn == null)
return 0;
//--Log.Message("[RJW] check pawn tech level for bionics ( " + xxx.get_pawnname(pawn) + " )");
bool lowtechlevel = true;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
double value = Rand.Value;
if (pawn.Faction != null)
lowtechlevel = (int)pawn.Faction.def.techLevel < 5;
//--save savages from inventing hydraulic and bionic genitals
while (lowtechlevel && value >= 0.90)
{
value = Rand.Value;
}
return value;
}
// return True if going to set penis
// return False for vagina
public static bool privates_gender(Pawn pawn, Gender gender)
{
return (pawn.gender == Gender.Male) ? (gender != Gender.Female) : (gender == Gender.Male);
}
[SyncMethod]
public static void add_genitals(Pawn pawn, Pawn parent = null, Gender gender = Gender.None)
{
//--Log.Message("Genital_Helper::add_genitals( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = get_genitals(pawn);
//--Log.Message("Genital_Helper::add_genitals( " + xxx.get_pawnname(pawn) + " ) - checking genitals");
if (Part == null)
{
//--Log.Message("[RJW] add_genitals( " + xxx.get_pawnname(pawn) + " ) doesn't have a genitals");
return;
}
else if (pawn.health.hediffSet.PartIsMissing(Part))
{
//--Log.Message("[RJW] add_genitals( " + xxx.get_pawnname(pawn) + " ) had a genital but was removed.");
return;
}
if (has_genitals(pawn) && gender == Gender.None)//allow to add gender specific genitals(futa)
{
//--Log.Message("[RJW] add_genitals( " + xxx.get_pawnname(pawn) + " ) already has genitals");
return;
}
var temppawn = pawn;
if (parent != null)
temppawn = parent;
HediffDef privates;
double value = GenderTechLevelCheck(pawn);
string racename = temppawn.kindDef.race.defName.ToLower();
// maybe add some check based on bodysize of pawn for genitals size limit
//Log.Message("Genital_Helper::add_genitals( " + pawn.RaceProps.baseBodySize + " ) - 1");
//Log.Message("Genital_Helper::add_genitals( " + pawn.kindDef.race.size. + " ) - 2");
privates = (privates_gender(pawn, gender)) ? generic_penis : generic_vagina;
if (has_vagina(pawn) && privates == generic_vagina)
{
//--Log.Message("[RJW] add_genitals( " + xxx.get_pawnname(pawn) + " ) already has vagina");
return;
}
if ((has_penis(pawn) || has_penis_infertile(pawn)) && privates == generic_penis)
{
//--Log.Message("[RJW] add_genitals( " + xxx.get_pawnname(pawn) + " ) already has penis");
return;
}
//override race genitals
if (privates == generic_vagina)
{
if (NoVagina_filter.Contains(pawn.kindDef.race.defName))
{
return;
}
if (Vagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(average_vagina, Part);
return;
}
if (HydraulicVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(hydraulic_vagina, Part);
return;
}
if (BionicVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(bionic_vagina, Part);
return;
}
if (DemonVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(demon_vagina, Part);
return;
}
if (SlimeVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(slime_vagina, Part);
return;
}
if (CatVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(feline_vagina, Part);
return;
}
if (DogVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(canine_vagina, Part);
return;
}
if (HorseVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(equine_vagina, Part);
return;
}
if (DragonVagina_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(dragon_vagina, Part);
return;
}
if (OvipositorF_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(ovipositorF, Part);
return;
}
}
if (privates == generic_penis)
{
if (NoPenis_filter.Contains(pawn.kindDef.race.defName))
{
return;
}
if (Penis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(average_penis, Part);
return;
}
if (HydraulicPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(hydraulic_penis, Part);
return;
}
if (BionicPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(bionic_penis, Part);
return;
}
if (DemonTentaclePenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(demonT_penis, Part);
return;
}
if (DemonPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(demon_penis, Part);
return;
}
if (SlimeTentacles_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(slime_penis, Part);
return;
}
if (CatPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(feline_penis, Part);
return;
}
if (DogPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(canine_penis, Part);
return;
}
if (HorsePenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(equine_penis, Part);
return;
}
if (DragonPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(dragon_penis, Part);
return;
}
if (RaccoonPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(raccoon_penis, Part);
return;
}
if (Hemipenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(hemipenis, Part);
return;
}
if (CrocodilianPenis_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(crocodilian_penis, Part);
return;
}
if (OvipositorM_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(ovipositorM, Part);
return;
}
}
//Log.Message("Genital_Helper::add_genitals( " + xxx.get_pawnname(pawn));
//Log.Message("Genital_Helper::add_genitals( " + pawn.kindDef.race.defName);
//Log.Message("Genital_Helper::is male( " + privates_gender(pawn, gender));
//Log.Message("Genital_Helper::is male1( " + pawn.gender);
//Log.Message("Genital_Helper::is male2( " + gender);
if (xxx.is_mechanoid(pawn))
{
return;
}
//insects
else if (xxx.is_insect(temppawn)
|| racename.Contains("apini")
|| racename.Contains("mantodean")
|| racename.Contains("insect")
|| racename.Contains("bug"))
{
privates = (privates_gender(pawn, gender)) ? ovipositorM : ovipositorF;
//override for Better infestations, since queen is male at creation
if (racename.Contains("Queen"))
privates = ovipositorF;
}
//space cats pawns
else if ((racename.Contains("orassan") || racename.Contains("neko")) && !racename.ContainsAny("akaneko"))
{
if ((value < 0.70) || (pawn.ageTracker.AgeBiologicalYears < 2) || !pawn.RaceProps.Humanlike)
privates = (privates_gender(pawn, gender)) ? feline_penis : feline_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
else
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
}
//space dog pawns
else if (racename.Contains("fennex")
|| racename.Contains("xenn")
|| racename.Contains("leeani")
|| racename.Contains("ferian")
|| racename.Contains("callistan"))
{
if ((value < 0.70) || (pawn.ageTracker.AgeBiologicalYears < 2) || !pawn.RaceProps.Humanlike)
privates = (privates_gender(pawn, gender)) ? canine_penis : canine_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
else
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
}
//space horse pawns
else if (racename.Contains("equium"))
{
if ((value < 0.70) || (pawn.ageTracker.AgeBiologicalYears < 2) || !pawn.RaceProps.Humanlike)
privates = (privates_gender(pawn, gender)) ? equine_penis : equine_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
else
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
}
//space raccoon pawns
else if (racename.Contains("racc") && !racename.Contains("raccoon"))
{
if ((value < 0.70) || (pawn.ageTracker.AgeBiologicalYears < 2) || !pawn.RaceProps.Humanlike)
{
privates = (privates_gender(pawn, gender)) ? raccoon_penis : generic_vagina;
}
else if (value < 0.90)
{
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
}
else
{
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
}
}
//alien races - ChjDroid, ChjAndroid
else if (racename.Contains("droid"))
{
if (pawn.story.GetBackstory(BackstorySlot.Childhood) != null)
{
if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("bishojo"))
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("pleasure"))
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("idol"))
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("social"))
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("substitute"))
{
if (value < 0.05)
privates = (privates_gender(pawn, gender)) ? micro_penis : micro_vagina;
else if (value < 0.20)
privates = (privates_gender(pawn, gender)) ? small_penis : tight_vagina;
else if (value < 0.70)
privates = (privates_gender(pawn, gender)) ? average_penis : average_vagina;
else if (value < 0.80)
privates = (privates_gender(pawn, gender)) ? big_penis : loose_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? huge_penis : gaping_vagina;
else if (value < 0.95)
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
else
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
}
else
return;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
}
if (privates == generic_penis || privates == generic_vagina)
return;
}
//animal cats
else if (racename.ContainsAny("cat", "cougar", "lion", "leopard", "cheetah", "panther", "tiger", "lynx", "smilodon", "akaneko"))
{
privates = (privates_gender(pawn, gender)) ? feline_penis : feline_vagina;
}
//animal canine/dogs
else if (racename.ContainsAny("husky", "warg", "terrier", "collie", "hound", "retriever", "mastiff", "wolf", "fox",
"vulptex", "dachshund", "schnauzer", "corgi", "pug", "doberman", "chowchow", "borzoi", "saintbernard", "newfoundland",
"poodle", "dog", "coyote") && !racename.Contains("lf_foxia"))
{
privates = (privates_gender(pawn, gender)) ? canine_penis : canine_vagina;
}
//animal horse - MoreMonstergirls
else if (racename.ContainsAny("horse", "centaur", "zebra", "donkey", "dryad"))
{
privates = (privates_gender(pawn, gender)) ? equine_penis : equine_vagina;
}
//animal raccoon
else if (racename.Contains("racc"))
{
privates = (privates_gender(pawn, gender)) ? raccoon_penis : generic_vagina;
}
//animal crocodilian (alligator, crocodile, etc)
else if (racename.ContainsAny("alligator", "crocodile", "caiman", "totodile", "croconaw", "feraligatr", "quinkana", "purussaurus", "kaprosuchus", "sarcosuchus"))
{
privates = (privates_gender(pawn, gender)) ? crocodilian_penis : generic_vagina;
}
//hemipenes - mostly reptiles and snakes
else if (racename.ContainsAny("guana", "cobra", "gecko", "snake", "boa", "quinkana", "megalania", "gila", "gigantophis", "komodo", "basilisk", "thorny", "onix", "lizard", "slither") && !racename.ContainsAny("boar"))
{
privates = (privates_gender(pawn, gender)) ? hemipenis : generic_vagina;
}
//animal dragon - MoreMonstergirls
else if (racename.ContainsAny("dragon", "thrumbo", "drake", "charizard", "saurus")&& !racename.Contains("lf_dragonia"))
{
privates = (privates_gender(pawn, gender)) ? dragon_penis : dragon_vagina;
}
//animal slime - MoreMonstergirls
else if (racename.Contains("slime"))
{
//privates = (privates_gender(pawn, gender)) ? slime_penis : slime_vagina;
pawn.health.AddHediff((privates_gender(pawn, gender)) ? slime_penis : slime_vagina, Part);
pawn.health.AddHediff((privates_gender(pawn, gender)) ? slime_vagina : slime_penis, Part);
return;
}
//animal demons - MoreMonstergirls
else if (racename.Contains("impmother") || racename.Contains("demon"))
{
pawn.health.AddHediff((privates_gender(pawn, gender)) ? demon_penis : demon_vagina, Part);
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (Rand.Value < 0.25f)
pawn.health.AddHediff((privates_gender(pawn, gender)) ? demon_penis : demonT_penis, Part);
return;
}
//animal demons - MoreMonstergirls
else if (racename.Contains("baphomet"))
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (Rand.Value < 0.50f)
pawn.health.AddHediff((privates_gender(pawn, gender)) ? demon_penis : demon_vagina, Part);
else
pawn.health.AddHediff((privates_gender(pawn, gender)) ? equine_penis : demon_vagina, Part);
return;
}
//humanoid monstergirls - LostForest
else if (racename.ContainsAny("lf_dragonia", "lf_flammelia", "lf_foxia", "lf_glacia", "lf_lefca", "lf_wolvern"))
{
if (value < 0.05)
privates = (privates_gender(pawn, gender)) ? micro_penis : micro_vagina;
else if (value < 0.20)
privates = (privates_gender(pawn, gender)) ? small_penis : tight_vagina;
else if (value < 0.70)
privates = (privates_gender(pawn, gender)) ? average_penis : average_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? big_penis : loose_vagina;
else
privates = (privates_gender(pawn, gender)) ? huge_penis : loose_vagina;
}
else if (pawn.RaceProps.Humanlike)
{
//--Log.Message("Genital_Helper::add_genitals( " + xxx.get_pawnname(pawn) + " ) - race is humanlike");
if (pawn.ageTracker.AgeBiologicalYears < 5)
{
if (value < 0.05)
privates = (privates_gender(pawn, gender)) ? micro_penis : micro_vagina;
else if (value < 0.20)
privates = (privates_gender(pawn, gender)) ? small_penis : tight_vagina;
else if (value < 0.70)
privates = (privates_gender(pawn, gender)) ? average_penis : average_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? big_penis : loose_vagina;
else
privates = (privates_gender(pawn, gender)) ? huge_penis : loose_vagina;
}
else
{
if (value < 0.02)
privates = (privates_gender(pawn, gender)) ? peg_penis : micro_vagina;
else if (value < 0.05)
privates = (privates_gender(pawn, gender)) ? micro_penis : micro_vagina;
else if (value < 0.20)
privates = (privates_gender(pawn, gender)) ? small_penis : tight_vagina;
else if (value < 0.70)
privates = (privates_gender(pawn, gender)) ? average_penis : average_vagina;
else if (value < 0.80)
privates = (privates_gender(pawn, gender)) ? big_penis : loose_vagina;
else if (value < 0.90)
privates = (privates_gender(pawn, gender)) ? huge_penis : gaping_vagina;
else if (value < 0.95)
privates = (privates_gender(pawn, gender)) ? hydraulic_penis : hydraulic_vagina;
else
privates = (privates_gender(pawn, gender)) ? bionic_penis : bionic_vagina;
}
}
//--Log.Message("Genital_Helper::add_genitals final ( " + xxx.get_pawnname(pawn) + " ) " + privates.defName);
pawn.health.AddHediff(privates, Part);
}
public static void add_breasts(Pawn pawn, Pawn parent = null, Gender gender = Gender.None)
{
//--Log.Message("[RJW] add_breasts( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = get_breasts(pawn);
if (Part == null)
{
//--Log.Message("[RJW] add_breasts( " + xxx.get_pawnname(pawn) + " ) - pawn doesn't have a breasts");
return;
}
else if (pawn.health.hediffSet.PartIsMissing(Part))
{
//--Log.Message("[RJW] add_breasts( " + xxx.get_pawnname(pawn) + " ) had breasts but were removed.");
return;
}
if (has_breasts(pawn))
{
//--Log.Message("[RJW] add_breasts( " + xxx.get_pawnname(pawn) + " ) - pawn already has breasts");
return;
}
var temppawn = pawn;
if (parent != null)
temppawn = parent;
HediffDef bewbs;
double value = GenderTechLevelCheck(pawn);
string racename = temppawn.kindDef.race.defName.ToLower();
bewbs = generic_breasts;
//TODO: figure out how to add (flat) breasts to males
if (bewbs == generic_breasts)
{
if (NoBreasts_filter.Contains(pawn.kindDef.race.defName))
{
return;
}
if (FeaturelessBreasts_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(featureless_chest, Part);
return;
}
if (pawn.gender == Gender.Female || gender == Gender.Female)
{
if (Breasts_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(average_breasts, Part);
return;
}
if (HydraulicBreasts_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(hydraulic_breasts, Part);
return;
}
if (BionicBreasts_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(bionic_breasts, Part);
return;
}
if (Udder_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(udder, Part);
return;
}
if (SlimeBreasts_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(slime_breasts, Part);
return;
}
}
}
if (xxx.is_mechanoid(pawn))
{
return;
}
if (xxx.is_insect(temppawn))
{
// this will probably need override in case there are humanoid insect race
//--Log.Message("[RJW] add_breasts( " + xxx.get_pawnname(pawn) + " ) - is insect,doesnt need breasts");
return;
}
//alien races - MoreMonstergirls
else if (racename.Contains("slime"))
{
//slimes are always females, and idc what anyone else say!
pawn.health.AddHediff(slime_breasts, Part);
return;
}
else if(pawn.gender == Gender.Female || gender == Gender.Female)
{
if (pawn.RaceProps.Humanlike)
{
//alien races - ChjDroid, ChjAndroid
if (racename.ContainsAny("mantis", "rockman", "slug", "zoltan", "engie", "sergal", "cutebold", "dodo", "owl", "parrot",
"penguin", "cassowary", "chicken", "vulture"))
{
pawn.health.AddHediff(featureless_chest, Part);
return;
}
else if (racename.ContainsAny("avali", "khess"))
{
return;
}
else if (racename.Contains("droid"))
{
if (pawn.story.GetBackstory(BackstorySlot.Childhood) != null)
{
if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("bishojo"))
bewbs = bionic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("pleasure"))
bewbs = bionic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("idol"))
bewbs = bionic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("social"))
bewbs = hydraulic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("substitute"))
{
if (value < 0.05)
bewbs = flat_breasts;
else if (value < 0.25)
bewbs = small_breasts;
else if (value < 0.70)
bewbs = average_breasts;
else if (value < 0.80)
bewbs = large_breasts;
else if (value < 0.90)
bewbs = huge_breasts;
else if (value < 0.95)
bewbs = hydraulic_breasts;
else
bewbs = bionic_breasts;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
bewbs = bionic_breasts;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
bewbs = hydraulic_breasts;
}
else
return;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
bewbs = bionic_breasts;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
bewbs = hydraulic_breasts;
}
if (bewbs == generic_breasts)
return;
}
//alien races - MoreMonstergirls
//alien races - Kijin
else if (racename.Contains("cowgirl") || racename.Contains("kijin"))
{
if (value < 0.05)
bewbs = flat_breasts;
else if (value < 0.10)
bewbs = small_breasts;
else if (value < 0.20)
bewbs = average_breasts;
else if (value < 0.50)
bewbs = large_breasts;
else if (value < 0.75 && racename.Contains("cowgirl"))
bewbs = udder;
else
bewbs = huge_breasts;
}
else if (pawn.ageTracker.AgeBiologicalYears < 5)
{
if (value < 0.05)
bewbs = flat_breasts;
else if (value < 0.15)
bewbs = small_breasts;
else if (value < 0.70)
bewbs = average_breasts;
else if (value < 0.80)
bewbs = large_breasts;
else
bewbs = huge_breasts;
}
else
{
if (value < 0.05)
bewbs = flat_breasts;
else if (value < 0.25)
bewbs = small_breasts;
else if (value < 0.70)
bewbs = average_breasts;
else if (value < 0.80)
bewbs = large_breasts;
else if (value < 0.90)
bewbs = huge_breasts;
else if (value < 0.95)
bewbs = hydraulic_breasts;
else
bewbs = bionic_breasts;
}
}
//humanoid monstergirls - LostForest
else if (racename.ContainsAny("lf_dragonia", "lf_flammelia", "lf_foxia", "lf_glacia", "lf_lefca", "lf_wolvern"))
{
if (value < 0.10)
bewbs = flat_breasts;
else if (value < 0.30)
bewbs = small_breasts;
else if (value < 0.70)
bewbs = average_breasts;
else if (value < 0.90)
bewbs = large_breasts;
else
bewbs = huge_breasts;
}
else if (racename.ContainsAny("mammoth", "elasmotherium", "chalicotherium", "megaloceros", "sivatherium", "deinotherium",
"aurochs", "zygolophodon", "uintatherium", "gazelle", "ffalo", "boomalope", "cow", "miltank", "elk", "reek", "nerf",
"bantha", "tauntaun", "caribou", "deer", "ibex", "dromedary", "alpaca", "llama", "goat", "moose"))
{
pawn.health.AddHediff(udder, Part);
return;
}
else if (racename.ContainsAny("cassowary", "emu", "dinornis", "ostrich", "turkey", "chicken", "duck", "murkroW", "bustard", "palaeeudyptes",
"goose", "tukiri", "porg", "yi", "kiwi", "penguin", "quail", "ptarmigan", "doduo", "flamingo", "plup", "empoleon", "meadow ave") && !racename.ContainsAny("duck-billed"))
{
return; // Separate list for birds, to make it easier to add cloaca at some later date.
} // Other breastless creatures.
else if (racename.ContainsAny("titanis", "titanoboa", "guan", "tortoise", "turt", "aerofleet", "quinkana", "megalochelys",
"purussaurus", "cobra", "dewback", "rancor", "frog", "onyx", "flommel", "lapras", "aron", "chinchou",
"squirtle", "wartortle", "blastoise", "totodile", "croconaw", "feraligatr", "litwick", "pumpkaboo", "shuppet", "haunter",
"gastly", "oddish", "hoppip", "tropius", "budew", "roselia", "bellsprout", "drifloon", "chikorita", "bayleef", "meganium",
"char", "drago", "dratini", "saur", "tyrannus", "carnotaurus", "baryonyx", "minmi", "diplodocus", "phodon", "indominus",
"raptor", "caihong", "coelophysis", "cephale", "compsognathus", "mimus", "troodon", "dactyl", "tanystropheus", "geosternbergia",
"deino", "suchus", "dracorex", "cephalus", "trodon", "quetzalcoatlus", "pteranodon", "antarctopelta", "stygimoloch", "rhabdodon",
"rhamphorhynchus", "ceratops", "ceratus", "zalmoxes", "mochlodon", "gigantophis", "crab", "pulmonoscorpius", "manipulator",
"meganeura", "euphoberia", "holcorobeus", "protosolpuga", "barbslinger", "blizzarisk", "frostmite", "devourer", "hyperweaver",
"macrelcana", "acklay", "elemental", "megalania", "gecko", "gator", "komodo", "scolipede", "shuckle", "combee", "shedinja",
"caterpie", "wurmple", "lockjaw", "needlepost", "needleroll", "squid", "slug", "gila", "pleura"))
{
return;
}
pawn.health.AddHediff(bewbs, Part);
}
}
public static void add_anus(Pawn pawn, Pawn parent = null)
{
BodyPartRecord Part = get_anus(pawn);
if (Part == null)
{
//--Log.Message("[RJW] add_anus( " + xxx.get_pawnname(pawn) + " ) doesn't have an anus");
return;
}
else if (pawn.health.hediffSet.PartIsMissing(Part))
{
//--Log.Message("[RJW] add_anus( " + xxx.get_pawnname(pawn) + " ) had an anus but was removed.");
return;
}
if (has_anus(pawn))
{
//--Log.Message("[RJW] add_anus( " + xxx.get_pawnname(pawn) + " ) already has an anus");
return;
}
var temppawn = pawn;
if (parent != null)
temppawn = parent;
HediffDef asshole;
double value = GenderTechLevelCheck(pawn);
string racename = temppawn.kindDef.race.defName.ToLower();
asshole = generic_anus;
if (asshole == generic_anus)
{
if (NoAnus_filter.Contains(pawn.kindDef.race.defName))
{
return;
}
if (Anus_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(average_anus, Part);
return;
}
if (HydraulicAnus_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(hydraulic_anus, Part);
return;
}
if (BionicAnus_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(bionic_anus, Part);
return;
}
if (DemonAnus_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(demon_anus, Part);
return;
}
if (SlimeAnus_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(slime_anus, Part);
return;
}
if (InsectAnus_filter.Contains(pawn.kindDef.race.defName))
{
pawn.health.AddHediff(insect_anus, Part);
return;
}
}
if (xxx.is_mechanoid(pawn))
{
return;
}
else if (xxx.is_insect(temppawn))
{
asshole = insect_anus;
}
//alien races - ChjDroid, ChjAndroid
else if (racename.Contains("droid"))
{
if (pawn.story.GetBackstory(BackstorySlot.Childhood) != null)
{
if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("bishojo"))
asshole = bionic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("pleasure"))
asshole = bionic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("idol"))
asshole = bionic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("social"))
asshole = hydraulic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("substitute"))
{
if (value < 0.05)
asshole = micro_anus;
else if (value < 0.20)
asshole = tight_anus;
else if (value < 0.70)
asshole = average_anus;
else if (value < 0.80)
asshole = loose_anus;
else if (value < 0.90)
asshole = gaping_anus;
else if (value < 0.95)
asshole = hydraulic_anus;
else
asshole = bionic_anus;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
asshole = bionic_anus;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
asshole = hydraulic_anus;
}
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
asshole = bionic_anus;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
asshole = hydraulic_anus;
}
if (asshole == generic_anus)
return;
}
else if (racename.Contains("slime"))
{
asshole = slime_anus;
}
//animal demons - MoreMonstergirls
else if (racename.Contains("impmother") || racename.Contains("baphomet") || racename.Contains("demon"))
{
asshole = demon_anus;
}
//humanoid monstergirls - LostForest
else if (racename.ContainsAny("lf_dragonia", "lf_flammelia", "lf_foxia", "lf_glacia", "lf_lefca", "lf_wolvern"))
{
if (value < 0.05)
asshole = micro_anus;
else if (value < 0.20)
asshole = tight_anus;
else if (value < 0.90)
asshole = average_anus;
else
asshole = loose_anus;
}
else if (pawn.RaceProps.Humanlike)
{
if (pawn.ageTracker.AgeBiologicalYears < 5)
{
if (value < 0.05)
asshole = micro_anus;
else if (value < 0.20)
asshole = tight_anus;
else if (value < 0.90)
asshole = average_anus;
else
asshole = loose_anus;
}
else
{
if (value < 0.05)
asshole = micro_anus;
else if (value < 0.20)
asshole = tight_anus;
else if (value < 0.70)
asshole = average_anus;
else if (value < 0.80)
asshole = loose_anus;
else if (value < 0.90)
asshole = gaping_anus;
else if (value < 0.95)
asshole = hydraulic_anus;
else
asshole = bionic_anus;
}
}
pawn.health.AddHediff(asshole, Part);
}
[SyncMethod]
public static void sexualize_pawn(Pawn pawn)
{
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) called");
if (pawn == null)
return;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (!pawn.RaceProps.hasGenders)
{
if (Current.ProgramState == ProgramState.Playing) // DO NOT run at world generation, throws error
{
if (RJWSettings.GenderlessAsFuta && !xxx.is_mechanoid(pawn))
{
Log.Message("[RJW] sexualize_pawn() - genderless pawn, treating Genderless pawn As Futa" + xxx.get_pawnname(pawn));
//set gender to female for futas
pawn.gender = Gender.Female;
add_genitals(pawn, null, Gender.Male);
add_genitals(pawn, null, Gender.Female);
add_breasts(pawn, null, Gender.Female);
add_anus(pawn, null);
}
else
Log.Message("[RJW] sexualize_pawn() - unable to sexualize genderless pawn " + xxx.get_pawnname(pawn) + " gender: " + pawn.gender);
return;
}
}
else
{
//apply normal gender
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) add genitals");
add_genitals(pawn, null, pawn.gender);
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) add breasts");
add_breasts(pawn, null, pawn.gender);
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) add anus");
add_anus(pawn, null);
//apply futa gender
//if (pawn.gender == Gender.Female) // changing male to futa will break pawn generation due to relations
//if (Current.ProgramState == ProgramState.Playing) // DO NOT run at world generation, throws error
{
if (pawn.Faction != null && !xxx.is_animal(pawn)) //null faction throws error
{
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) techLevel: " + (int)pawn.Faction.def.techLevel);
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) techLevel: " + pawn.Faction.Name);
//natives/spacer futa
float chance = (int)pawn.Faction.def.techLevel < 5 ? RJWSettings.futa_natives_chance : RJWSettings.futa_spacers_chance;
//nymph futa gender
chance = xxx.is_nympho(pawn) ? RJWSettings.futa_nymph_chance : chance;
if (Rand.Chance(chance))
{
//make futa
if (pawn.gender == Gender.Female && RJWSettings.FemaleFuta)
add_genitals(pawn, null, Gender.Male);
//make trap
else if (pawn.gender == Gender.Male && RJWSettings.MaleTrap)
add_breasts(pawn, null, Gender.Female);
}
}
}
}
if (!pawn.Dead)
{
//Add ticks at generation, so pawns don't instantly start lovin' when generated (esp. on scenario start).
//if (xxx.RoMIsActive && pawn.health.hediffSet.HasHediff(HediffDef.Named("TM_ShapeshiftHD"))) // Rimworld of Magic's polymorph/shapeshift
// pawn.mindState.canLovinTick = Find.TickManager.TicksGame + (int)(SexUtility.GenerateMinTicksToNextLovin(pawn) * Rand.Range(0.01f, 0.05f));
if (!xxx.is_insect(pawn))
pawn.mindState.canLovinTick = Find.TickManager.TicksGame + (int)(SexUtility.GenerateMinTicksToNextLovin(pawn) * Rand.Range(0.1f, 1.0f));
else
pawn.mindState.canLovinTick = Find.TickManager.TicksGame + (int)(SexUtility.GenerateMinTicksToNextLovin(pawn) * Rand.Range(0.01f, 0.2f));
//Log.Message("[RJW] sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) add sexneed");
if (pawn.RaceProps.Humanlike)
{
var sex_need = pawn.needs.TryGetNeed<Need_Sex>();
if (pawn.Faction != null && !(pawn.Faction?.IsPlayer ?? false) && sex_need != null)
{
sex_need.CurLevel = Rand.Range(0.01f, 0.75f);
}
}
}
}
}
}
|
Mewtopian/rjw
|
Source/Common/Helpers/Genital_Helper.cs
|
C#
|
mit
| 53,032 |
using System;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using UnityEngine;
using Verse;
using Verse.AI;
using Verse.Sound;
using JobDriver_Lovin = rjw_CORE_EXPOSED.JobDriver_Lovin;
using Harmony;
using Multiplayer.API;
namespace rjw
{
public class SexUtility
{
private const float no_partner_ability = 0.8f;
private const float base_sat_per_fuck = 0.40f;
//Anal sex
private static readonly InteractionDef analSex = DefDatabase<InteractionDef>.GetNamed("AnalSex");
//Vaginal sex
private static readonly InteractionDef vaginalSex = DefDatabase<InteractionDef>.GetNamed("VaginalSex");
//Oral sex
private static readonly InteractionDef rimming = DefDatabase<InteractionDef>.GetNamed("Rimming");
private static readonly InteractionDef cunnilingus = DefDatabase<InteractionDef>.GetNamed("Cunnilingus");
private static readonly InteractionDef fellatio = DefDatabase<InteractionDef>.GetNamed("Fellatio");
private static readonly InteractionDef sixtynine = DefDatabase<InteractionDef>.GetNamed("Sixtynine");
//Other sex types
private static readonly InteractionDef doublePenetration = DefDatabase<InteractionDef>.GetNamed("DoublePenetration");
private static readonly InteractionDef breastjob = DefDatabase<InteractionDef>.GetNamed("Breastjob");
private static readonly InteractionDef handjob = DefDatabase<InteractionDef>.GetNamed("Handjob");
private static readonly InteractionDef footjob = DefDatabase<InteractionDef>.GetNamed("Footjob");
private static readonly InteractionDef beakjob = DefDatabase<InteractionDef>.GetNamed("Beakjob");
private static readonly InteractionDef fingering = DefDatabase<InteractionDef>.GetNamed("Fingering");
private static readonly InteractionDef scissoring = DefDatabase<InteractionDef>.GetNamed("Scissoring");
private static readonly InteractionDef mutualMasturbation = DefDatabase<InteractionDef>.GetNamed("MutualMasturbation");
private static readonly InteractionDef fisting = DefDatabase<InteractionDef>.GetNamed("Fisting");
//Rape types
private static readonly InteractionDef analRape = DefDatabase<InteractionDef>.GetNamed("AnalRape");
private static readonly InteractionDef vaginalRape = DefDatabase<InteractionDef>.GetNamed("VaginalRape");
private static readonly InteractionDef otherRape = DefDatabase<InteractionDef>.GetNamed("OtherRape");
private static readonly InteractionDef handRape = DefDatabase<InteractionDef>.GetNamed("HandjobRape");
private static readonly InteractionDef fingeringRape = DefDatabase<InteractionDef>.GetNamed("FingeringRape");
private static readonly InteractionDef violateCorpse = DefDatabase<InteractionDef>.GetNamed("ViolateCorpse");
private static readonly InteractionDef mechImplant = DefDatabase<InteractionDef>.GetNamed("MechImplant");
//Breeding
private static readonly InteractionDef vaginalBreeding = DefDatabase<InteractionDef>.GetNamed("VaginalBreeding");
private static readonly InteractionDef analBreeding = DefDatabase<InteractionDef>.GetNamed("AnalBreeding");
private static readonly InteractionDef oralBreeding = DefDatabase<InteractionDef>.GetNamed("OralBreeding");
private static readonly InteractionDef forcedOralBreeding = DefDatabase<InteractionDef>.GetNamed("ForcedOralBreeding");
private static readonly InteractionDef forcedFellatioBreeding = DefDatabase<InteractionDef>.GetNamed("ForcedFellatioBreeding");
private static readonly InteractionDef fingeringBreeding = DefDatabase<InteractionDef>.GetNamed("FingeringBreeding");
private static readonly InteractionDef requestBreeding = DefDatabase<InteractionDef>.GetNamed("RequestBreeding");
private static readonly InteractionDef requestAnalBreeding = DefDatabase<InteractionDef>.GetNamed("RequestAnalBreeding");
public static readonly InteractionDef AnimalSexChat = DefDatabase<InteractionDef>.GetNamed("AnimalSexChat");
private static readonly ThingDef cum = ThingDef.Named("FilthCum");
private static readonly ThingDef girlcum = ThingDef.Named("FilthGirlCum");
private static readonly Dictionary<InteractionDef, xxx.rjwSextype> sexActs = new Dictionary<InteractionDef, xxx.rjwSextype>
{
{analSex, xxx.rjwSextype.Anal },
{analRape, xxx.rjwSextype.Anal },
{vaginalSex, xxx.rjwSextype.Vaginal },
{vaginalRape, xxx.rjwSextype.Vaginal },
{fellatio, xxx.rjwSextype.Oral },
{rimming, xxx.rjwSextype.Oral },
{cunnilingus, xxx.rjwSextype.Oral },
{sixtynine, xxx.rjwSextype.Oral },
{handjob, xxx.rjwSextype.Handjob },
{handRape, xxx.rjwSextype.Handjob },
{breastjob, xxx.rjwSextype.Boobjob },
{doublePenetration, xxx.rjwSextype.DoublePenetration },
{footjob, xxx.rjwSextype.Footjob },
{fingering, xxx.rjwSextype.Fingering },
{fingeringRape, xxx.rjwSextype.Fingering },
{fingeringBreeding, xxx.rjwSextype.Fingering },
{scissoring, xxx.rjwSextype.Scissoring },
{mutualMasturbation, xxx.rjwSextype.MutualMasturbation },
{fisting, xxx.rjwSextype.Fisting },
{vaginalBreeding, xxx.rjwSextype.Vaginal },
{analBreeding, xxx.rjwSextype.Anal },
{oralBreeding, xxx.rjwSextype.Oral },
{forcedOralBreeding, xxx.rjwSextype.Oral },
{forcedFellatioBreeding, xxx.rjwSextype.Oral },
{requestBreeding, xxx.rjwSextype.Vaginal },
{requestAnalBreeding, xxx.rjwSextype.Anal },
{otherRape, xxx.rjwSextype.Oral },
{mechImplant, xxx.rjwSextype.MechImplant },
{violateCorpse, xxx.rjwSextype.None } // Sextype as none, since this cannot result in pregnancy etc.
};
// This and the following array are used to generate text from interactions.
private static readonly InteractionDef[,] dictionarykeys =
{
// 1: Interactions_Sex (consensual), 2: Interactions_Rape (forced), 3: Interactions_Breed (animals)
{vaginalSex, vaginalRape, vaginalBreeding }, // Vaginal
{vaginalSex, vaginalRape, requestBreeding }, // Vaginal - reseiving
{analSex, analRape, analBreeding }, // Anal
{analSex, analRape, requestAnalBreeding }, // Anal - reseiving
{cunnilingus, otherRape, oralBreeding }, // Cunnilingus
{cunnilingus, otherRape, forcedOralBreeding }, // Cunnilingus - receiving
{rimming, otherRape, oralBreeding }, // Rimming
{rimming, otherRape, forcedOralBreeding }, // Rimming - receiving
{fellatio, otherRape, oralBreeding }, // Fellatio
{fellatio, otherRape, forcedOralBreeding }, // Fellatio - receiving
{doublePenetration, vaginalRape, vaginalBreeding }, // Double penetration
{doublePenetration, vaginalRape, vaginalBreeding }, // Double penetration - receiving
{breastjob, otherRape, breastjob }, // Breastjob
{breastjob, otherRape, breastjob }, // Breastjob - receiving
{handjob, handRape, handjob }, // Handjob
{handjob, handRape, handjob }, // Handjob - receiving
{footjob, otherRape, footjob }, // Footjob
{footjob, otherRape, footjob }, // Footjob - receiving
{fingering, fingeringRape, fingeringBreeding }, // Fingering
{fingering, otherRape, fingeringBreeding }, // Fingering - receiving
{scissoring, otherRape, scissoring }, // Scissoring
{scissoring, otherRape, scissoring }, // Scissoring - receiving
{mutualMasturbation, otherRape, mutualMasturbation }, // Mutual Masturbation
{mutualMasturbation, otherRape, mutualMasturbation }, // Mutual Masturbation - receiving
{fisting, analRape, fisting }, // Fisting
{fisting, analRape, fisting }, // Fisting - receiving
{sixtynine, otherRape, sixtynine }, // 69
{sixtynine, otherRape, sixtynine }, // 69 - receiving
};
private static readonly string[,] rulepacks =
{
// Rulepacks for interaction text output.
// 1: RulePacks_Sex (consensual), 2: RulePacks_Rape (forced), 3: RulePacks_Breeding (animals)
{"VaginalSexRP", "VaginalRapeRP", "VaginalBreedingRP"}, // Vaginal
{"VaginalSexRP", "VaginalDomRP", "VaginalBreedingRP"}, // Vaginal - reseiving
{"AnalSexRP", "AnalRapeRP", "AnalBreedingRP"}, // Anal
{"AnalSexRP", "AnalDomRP", "AnalBreedingRP"}, // Anal - reseiving
{"CunnilingusRP", "VaginalRapeRP", "CunnilingusRP"}, // Cunnilingus
{"CunnilingusRP", "ForcedCunnilingusRP", "CunnilingusRP"}, // Cunnilingus - receiving
{"RimmingRP", "VaginalRapeRP", "RimmingRP"}, // Rimming
{"RimmingRP", "ForcedRimmingRP", "RimmingRP"}, // Rimming - receiving
{"FellatioRP", "FellatioRapeRP", "FellatioRP"}, // Fellatio
{"FellatioRP", "ForcedFellatioRP", "FellatioRP"}, // Fellatio - receiving
{"DoublePenetrationRP", "DoubleRapeRP", "VaginalBreedingRP"}, // Double penetration
{"DoublePenetrationRP", "OtherRapeRP", "VaginalBreedingRP"}, // Double penetration - receiving
{"BreastjobRP", "MaleRapeRP", "BreastjobRP"}, // Breastjob
{"BreastjobRP", "ForcedBreastjobRP", "BreastjobRP"}, // Breastjob - receiving
{"HandjobRP", "HandjobRapeRP", "HandjobRP"}, // Handjob
{"HandjobRP", "ForcedHandjobRP", "HandjobRP"}, // Handjob - receiving
{"FootjobRP", "FootjobRapeRP", "FootjobRP"}, // Footjob
{"FootjobRP", "ForcedFootjobRP", "FootjobRP"}, // Footjob - receiving
{"FingeringRP", "FingeringRapeRP", "FingeringRP"}, // Fingering
{"FingeringRP", "ForcedFingeringRP", "FingeringRP"}, // Fingering - receiving
{"ScissoringRP", "ScissoringRapeRP", "ScissoringRP"}, // Scissoring
{"ScissoringRP", "ForcedScissoringRP", "ScissoringRP"}, // Scissoring - receiving
{"MutualMasturbationRP", null, "MutualMasturbationRP"}, // Mutual Masturbation
{"MutualMasturbationRP", null, "MutualMasturbationRP"}, // Mutual Masturbation - receiving
{"FistingRP", "FistingRapeRP", "FistingRP"}, // Fisting
{"FistingRP", null, "FistingRP"}, // Fisting - receiving
{"SixtynineRP", "ForcedSixtynineRP", "SixtynineRP"}, // 69
{"SixtynineRP", null, "SixtynineRP"} // 69 - receiving
};
// Alert checker that is called from several jobs. Checks the pawn relation, and whether it should sound alert.
public static void RapeAttemptAlert(Pawn rapist, Pawn target)
{
bool silent = false;
PawnRelationDef relation = rapist.GetMostImportantRelation(target);
string rapeverb = "rape";
if (xxx.is_mechanoid(rapist)) rapeverb = "assault";
else if (xxx.is_animal(rapist) || xxx.is_animal(target)) rapeverb = "breed";
// TODO: Need to write a cherker method for family relations. Would be useful for other things than just this, such as incest settings/quirk.
string message = (xxx.get_pawnname(rapist) + " is trying to " + rapeverb + " " + xxx.get_pawnname(target));
message += relation == null ? "." : (", " + rapist.Possessive() + " " + relation.GetGenderSpecificLabel(target) + ".");
switch (RJWPreferenceSettings.rape_alert_sound)
{
case RJWPreferenceSettings.RapeAlert.Enabled:
break;
case RJWPreferenceSettings.RapeAlert.Humanlikes:
if (!xxx.is_human(target))
silent = true;
break;
case RJWPreferenceSettings.RapeAlert.Colonists:
if (target.Faction != Faction.OfPlayer)
silent = true;
break;
default:
silent = true;
break;
}
if (!silent)
{
Messages.Message(message, rapist, MessageTypeDefOf.NegativeEvent);
}
else
{
Messages.Message(message, rapist, MessageTypeDefOf.SilentInput);
}
}
// Quick method that return a body part by name. Used for checking if a pawn has a specific body part, etc.
public static BodyPartRecord GetPawnBodyPart(Pawn pawn, string bodyPart)
{
return pawn.RaceProps.body.AllParts.Find(x => x.def == DefDatabase<BodyPartDef>.GetNamed(bodyPart));
}
public static void CumFilthGenerator(Pawn pawn)
{
if (pawn.Dead) return;
if (xxx.is_slime(pawn)) return;
if (!RJWSettings.cum_filth) return;
// Larger creatures, larger messes.
float pawn_cum = Math.Min(80 / ScaleToHumanAge(pawn), 2.0f) * pawn.BodySize;
// Increased output if the pawn has the Messy quirk.
if (xxx.has_quirk(pawn, "Messy"))
pawn_cum *= 2.0f;
if (Genital_Helper.has_vagina(pawn))
FilthMaker.MakeFilth(pawn.PositionHeld, pawn.MapHeld, girlcum, pawn.LabelIndefinite(), (int)Math.Max(pawn_cum/2, 1.0f));
if (Genital_Helper.has_penis(pawn))
FilthMaker.MakeFilth(pawn.PositionHeld, pawn.MapHeld, cum, pawn.LabelIndefinite(), (int)Math.Max(pawn_cum, 1.0f));
}
// The pawn may or may not clean up the mess after fapping.
[SyncMethod]
public static bool ConsiderCleaning(Pawn fapper)
{
if (!RJWSettings.cum_filth) return false;
if (!xxx.has_traits(fapper) || fapper.story == null) return false;
if (fapper.story.WorkTagIsDisabled(WorkTags.Cleaning)) return false;
float do_cleaning = 0.5f; // 50%
if (!fapper.PositionHeld.Roofed(fapper.Map))
do_cleaning -= 0.25f; // Less likely to clean if outdoors.
if (xxx.CTIsActive && fapper.story.traits.HasTrait(TraitDef.Named("RCT_NeatFreak")))
do_cleaning += 1.00f;
if (xxx.has_quirk(fapper, "Messy"))
do_cleaning -= 0.75f;
switch (fapper.needs.rest.CurCategory)
{
case RestCategory.Exhausted:
do_cleaning -= 0.5f;
break;
case RestCategory.VeryTired:
do_cleaning -= 0.3f;
break;
case RestCategory.Tired:
do_cleaning -= 0.1f;
break;
case RestCategory.Rested:
do_cleaning += 0.3f;
break;
}
if (fapper.story.traits.DegreeOfTrait(TraitDefOf.NaturalMood) == -2) // Depressive
do_cleaning -= 0.3f;
if (fapper.story.traits.DegreeOfTrait(TraitDefOf.Industriousness) == 2) // Industrious
do_cleaning += 1.0f;
else if (fapper.story.traits.DegreeOfTrait(TraitDefOf.Industriousness) == 1) // Hard worker
do_cleaning += 0.5f;
else if (fapper.story.traits.DegreeOfTrait(TraitDefOf.Industriousness) == -1) // Lazy
do_cleaning -= 0.5f;
else if (fapper.story.traits.DegreeOfTrait(TraitDefOf.Industriousness) == -2) // Slothful
do_cleaning -= 1.0f;
if (xxx.is_ascetic(fapper))
do_cleaning += 0.2f;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
return Rand.Chance(do_cleaning);
}
// <summary>Handles after-sex trait and thought gain, and fluid creation. Initiator of the act (whore, rapist, female zoophile, etc) should be first.</summary>
[SyncMethod]
private static void Aftersex(Pawn pawn, Pawn partner, bool rape = false, bool isCoreLovin = false, xxx.rjwSextype sextype = xxx.rjwSextype.Vaginal)
{
bool bothInMap = false;
if (!partner.Dead)
bothInMap = pawn.Map != null && partner.Map != null; //Added by Hoge. false when called this function for despawned pawn: using for background rape like a kidnappee
//Catch-all timer increase, for ensuring that pawns don't get stuck repeating jobs.
pawn.rotationTracker.Face(partner.DrawPos);
pawn.rotationTracker.FaceCell(partner.Position);
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (bothInMap)
{
if (!partner.Dead)
{
partner.rotationTracker.Face(pawn.DrawPos);
partner.rotationTracker.FaceCell(pawn.Position);
if (RJWSettings.sounds_enabled)
{
if (rape)
{
if (Rand.Value > 0.30f)
LifeStageUtility.PlayNearestLifestageSound(partner, (ls) => ls.soundAngry, 1.2f);
else
LifeStageUtility.PlayNearestLifestageSound(partner, (ls) => ls.soundCall, 1.2f);
pawn.Drawer.Notify_MeleeAttackOn(partner);
partner.stances.StaggerFor(Rand.Range(10, 300));
}
else
LifeStageUtility.PlayNearestLifestageSound(partner, (ls) => ls.soundCall);
}
if (sextype == xxx.rjwSextype.Vaginal || sextype == xxx.rjwSextype.DoublePenetration)
if (xxx.is_Virgin(partner))
{
//TODO: bind virginity to parts of pawn
/*
string thingdef_penis_name = Genital_Helper.get_penis_all(pawn)?.def.defName ?? "";
ThingDef thingdef_penis = null;
Log.Message("SexUtility::thingdef_penis_name " + thingdef_penis_name);
Log.Message("SexUtility::thingdef_penis 1 " + thingdef_penis);
if (thingdef_penis_name != "")
thingdef_penis = (from x in DefDatabase<ThingDef>.AllDefs where x.defName == thingdef_penis_name select x).RandomElement();
Log.Message("SexUtility::thingdef_penis 2 " + thingdef_penis);
partner.TakeDamage(new DamageInfo(DamageDefOf.Stab, 1, 999, -1.0f, null, xxx.genitals, thingdef_penis));
*/
}
}
if (RJWSettings.sounds_enabled)
SoundDef.Named("Cum").PlayOneShot(!partner.Dead
? new TargetInfo(partner.Position, pawn.Map)
: new TargetInfo(pawn.Position, pawn.Map));
if (rape)
{
if (Rand.Value > 0.30f)
LifeStageUtility.PlayNearestLifestageSound(pawn, (ls) => ls.soundAngry, 1.2f);
else
LifeStageUtility.PlayNearestLifestageSound(pawn, (ls) => ls.soundCall, 1.2f);
}
else
LifeStageUtility.PlayNearestLifestageSound(pawn, (ls) => ls.soundCall);
}
//--Log.Message("SexUtility::aftersex( " + pawn_name + ", " + partner_name + " ) - applying cum effect");
CumFilthGenerator(pawn);
if (bothInMap && !isCoreLovin)
CumFilthGenerator(partner);
//apply cum to body:
SemenHelper.calculateAndApplySemen(pawn, partner, sextype);
//--Log.Message("SexUtility::aftersex( " + pawn_name + ", " + partner_name + " ) - checking satisfaction");
if (!pawn.Dead && !partner.Dead)
{
PregnancyHelper.impregnate(pawn, partner, sextype);
//The dead have no hediff, so no need to roll_to_catch; TO DO: add a roll_to_catch_from_corpse to std
//--Log.Message("SexUtility::aftersex( " + pawn_name + ", " + partner_name + " ) - checking disease");
if (!(xxx.is_animal(pawn) || xxx.is_animal(partner)))
std_spreader.roll_to_catch(pawn, partner);
}
xxx.UpdateRecords(pawn, partner, sextype, rape, isCoreLovin);
Satisfy(pawn, partner, sextype, rape);
CheckTraitGain(pawn);
CheckTraitGain(partner);
}
// <summary>Solo acts.</summary>
public static void Aftersex(Pawn pawn, xxx.rjwSextype sextype = xxx.rjwSextype.Masturbation)
{
IncreaseTicksToNextLovin(pawn);
//if (Mod_Settings.sounds_enabled)
//{
// SoundDef.Named("Cum").PlayOneShot(new TargetInfo(pawn.Position, pawn.Map, false));
//}
CumFilthGenerator(pawn);
//apply cum to body:
SemenHelper.calculateAndApplySemen(pawn, null, sextype);
//--Log.Message("SexUtility::aftersex( " + pawn_name + ", " + partner_name + " ) - checking satisfaction");
xxx.UpdateRecords(pawn, null, sextype);
Satisfy(pawn, null, sextype);
// No traits from solo. Enable if some are edded. (Voyerism?)
//check_trait_gain(pawn);
}
private static void Satisfy(Pawn pawn, Pawn partner, xxx.rjwSextype sextype, bool rape = false)
{
//--Log.Message("xxx::satisfy( " + pawn_name + ", " + partner_name + ", " + violent + "," + isCoreLovin + " ) called");
if (pawn == null && partner == null) return; // Unlikely, but checking this here makes other checks simpler.
float pawn_ability = pawn != null ? Math.Max(xxx.get_sex_ability(pawn), 0.3f) : no_partner_ability;
float partner_ability = (partner != null && !partner.Dead) ? Math.Max(xxx.get_sex_ability(partner), 0.3f) : no_partner_ability;
/*
if(sextype == xxx.rjwSextype.Anal)
{
pawn_ability = pawn != null ? pawn.health.hediffSet.GetFirstHediffOfDef(Genital_Helper.average_anus).CurStage.statOffsets.FindLast(DefDatabase<StatDef>.GetNamed("SexAbility")).value : pawn_ability;
partner_ability = (partner != null && !partner.Dead) ? Math.Max(xxx.get_sex_ability(partner), 0.3f) : partner_ability;
}
*/
//--Log.Message("xxx::satisfy( " + pawn_name + ", " + partner_name + ", " + violent + "," + isCoreLovin + " ) - calculate base satisfaction");
// Base satisfaction is based on partnerner's ability
float pawn_satisfaction = base_sat_per_fuck * partner_ability;
float partner_satisfaction = base_sat_per_fuck * pawn_ability;
// Measure by own ability instead if masturbating.
// Low pawn_ability usually means things like impaired manipulation, which should make masturbation less satisfactory.
if (sextype == xxx.rjwSextype.Masturbation)
pawn_satisfaction = base_sat_per_fuck * pawn_ability;
if (pawn != null && partner != null)
{
if (xxx.is_animal(partner) && xxx.is_zoophile(pawn))
{
pawn_satisfaction *= 1.5f;
}
if (partner.Dead && xxx.is_necrophiliac(pawn))
{
pawn_satisfaction *= 1.5f;
}
if (!partner.Dead)
{
xxx.TransferNutrition(pawn, partner, sextype);
if (rape)
{
//--Log.Message("SexUtility::aftersex( " + pawn_name + ", " + partner_name + " ) - Broken mind updates for rape");
xxx.processBrokenPawn(partner);
xxx.ExtraSatisfyForBrokenPawn(partner);
}
}
}
SatisfyPersonal(pawn, partner, sextype, rape, pawn_satisfaction);
SatisfyPersonal(partner, pawn, sextype, rape, partner_satisfaction);
//--Log.Message("xxx::satisfy( " + pawn_name + ", " + partner_name + ", " + rape + " ) - pawn_satisfaction = " + pawn_satisfaction + ", partner_satisfaction = " + partner_satisfaction);
}
// Scales alien lifespan to human age.
// Some aliens have broken lifespans, that can be manually corrected here.
public static int ScaleToHumanAge(Pawn pawn, int humanLifespan = 80)
{
float pawnAge = pawn.ageTracker.AgeBiologicalYearsFloat;
float pawnLifespan = pawn.RaceProps.lifeExpectancy;
if (pawn.def.defName == "Human") return (int)pawnAge; // Human, no need to scale anything.
// Xen races, all broken and need a fix.
if (pawn.def.defName.ContainsAny("Alien_Sergal", "Alien_SergalNME", "Alien_Xenn", "Alien_Racc", "Alien_Ferrex", "Alien_Wolvx", "Alien_Frijjid", "Alien_Fennex") && pawnLifespan >= 2000f)
{
pawnAge = Math.Min(pawnAge, 80f); // Clamp to 80.
pawnLifespan = 80f;
}
if (pawn.def.defName.ContainsAny("Alien_Gnoll", "Alien_StripedGnoll") && pawnLifespan >= 2000f)
{
pawnAge = Math.Min(pawnAge, 60f); // Clamp to 60.
pawnLifespan = 60f; // Mature faster than humans.
}
// Immortal races that mature at similar rate to humans.
if (pawn.def.defName.ContainsAny("LF_Dragonia", "LotRE_ElfStandardRace", "Alien_Crystalloid", "Alien_CrystalValkyrie"))
{
pawnAge = Math.Min(pawnAge, 40f); // Clamp to 40 - never grow 'old'.
pawnLifespan = 80f;
}
float age_scaling = humanLifespan / pawnLifespan;
float scaled_age = pawnAge * age_scaling;
if (scaled_age < 1)
scaled_age = 1;
return (int)scaled_age;
}
// Used in complex impregnation calculation. Pawns/animals with similar parts have better compatibility.
public static float BodySimilarity(Pawn pawn, Pawn partner)
{
float size_adjustment = Mathf.Lerp(0.3f, 1.05f, 1.0f - Math.Abs(pawn.BodySize - partner.BodySize));
//Log.Message("[RJW] Size adjustment: " + size_adjustment);
List<BodyPartDef> pawn_partlist = new List<BodyPartDef> { };
List<BodyPartDef> pawn_mismatched = new List<BodyPartDef> { };
List<BodyPartDef> partner_mismatched = new List<BodyPartDef> { };
//Log.Message("[RJW]Checking compatibility for " + xxx.get_pawnname(pawn) + " and " + xxx.get_pawnname(partner));
bool pawnHasHands = pawn.health.hediffSet.GetNotMissingParts().Any(part => part.IsInGroup(BodyPartGroupDefOf.RightHand) || part.IsInGroup(BodyPartGroupDefOf.LeftHand));
foreach (BodyPartRecord part in pawn.RaceProps.body.AllParts)
{
pawn_partlist.Add(part.def);
}
float pawn_count = pawn_partlist.Count();
foreach (BodyPartRecord part in partner.RaceProps.body.AllParts)
{
partner_mismatched.Add(part.def);
}
float partner_count = partner_mismatched.Count();
foreach (BodyPartDef part in pawn_partlist)
{
if (partner_mismatched.Contains(part))
{
pawn_mismatched.Add(part);
partner_mismatched.Remove(part);
}
}
float pawn_mismatch = pawn_mismatched.Count() / pawn_count;
float partner_mismatch = partner_mismatched.Count() / partner_count;
//Log.Message("[RJW]Body type similarity for " + xxx.get_pawnname(pawn) + " and " + xxx.get_pawnname(partner) + ": " + Math.Round(((pawn_mismatch + partner_mismatch) * 50) * size_adjustment, 1) + "%");
return ((pawn_mismatch + partner_mismatch) / 2) * size_adjustment;
}
private static void SatisfyPersonal(Pawn pawn, Pawn partner, xxx.rjwSextype sextype, bool violent, float satisfaction)
{
//--Log.Message("xxx::satisfy( " + pawn_name + ", " + partner_name + ", " + violent + "," + isCoreLovin + " ) - modifying partner satisfaction");
if (pawn?.needs?.TryGetNeed<Need_Sex>() == null) return;
string pawn_quirks = CompRJW.Comp(pawn).quirks.ToString();
if (pawn_quirks.Contains("Endytophile"))
{
if (pawn.apparel.PsychologicallyNude)
satisfaction *= 0.75f;
else
satisfaction *= 1.1f;
}
if (partner != null)
{
if (pawn_quirks.Contains("Podophile") && sextype == xxx.rjwSextype.Footjob)
satisfaction *= 1.4f;
if (pawn_quirks.Contains("Somnophile") && !partner.Awake())
satisfaction *= 1.4f;
if (pawn_quirks.Contains("Impregnation fetish") && (sextype == xxx.rjwSextype.Vaginal || sextype == xxx.rjwSextype.DoublePenetration) && (PregnancyHelper.CanImpregnate(pawn, partner) || PregnancyHelper.CanImpregnate(partner, pawn)))
satisfaction *= 1.4f;
if (pawn_quirks.Contains("Gerontophile"))
{
satisfaction *= ScaleToHumanAge(partner) > 55 ? 1.4f : 0.7f;
}
}
if (pawn_quirks.Contains("Exhibitionist"))
{
if (pawn.Map.mapPawns.AllPawnsSpawned.Any(x => x != pawn && x != partner && !x.Dead && x.CanSee(pawn) && !xxx.is_animal(x)))
satisfaction *= 1.4f;
else if (pawn.Map.mapPawns.AllPawnsSpawned.Any(x => x != pawn && x != partner && !x.Dead && x.CanSee(pawn)))
{
satisfaction *= xxx.is_zoophile(pawn) ? 1.4f : 1.1f;
}
}
if (xxx.is_rapist(pawn) || xxx.is_bloodlust(pawn))
{
// Rapists and Bloodlusts get more satisfaction from violetn encounters, and less from non-violent
satisfaction *= violent ? 1.20f : 0.8f;
}
else
{
// non-violent pawns get less satisfaction from violent encounters, and full from non-violent
satisfaction *= violent ? 0.8f : 1.0f;
}
if (pawn.health.hediffSet.HasHediff(HediffDef.Named("HumpShroomAddiction")) && !pawn.health.hediffSet.HasHediff(HediffDef.Named("HumpShroomEffect")))
{
//Log.Message("[RJW]xxx::satisfy 0 pawn is " + xxx.get_pawnname(pawn));
satisfaction = 0.1f;
}
//--Log.Message("xxx::satisfy( " + pawn_name + ", " + partner_name + ", " + violent + "," + isCoreLovin + " ) - setting pawn joy");
pawn.needs.TryGetNeed<Need_Sex>().CurLevel += satisfaction;
if (pawn.needs.joy != null)
pawn.needs.joy.CurLevel += satisfaction * 0.50f; // convert half of satisfaction to joy
}
[SyncMethod]
private static void CheckTraitGain(Pawn pawn)
{
if (!xxx.has_traits(pawn) || pawn.records.GetValue(xxx.CountOfSex) <= 10) return;
if (!xxx.is_necrophiliac(pawn) && pawn.records.GetValue(xxx.CountOfSexWithCorpse) > 0.5 * pawn.records.GetValue(xxx.CountOfSex))
{
pawn.story.traits.GainTrait(new Trait(xxx.necrophiliac));
//Log.Message(xxx.get_pawnname(necro) + " aftersex, not necro, adding necro trait");
}
if (!xxx.is_rapist(pawn) && !xxx.is_masochist(pawn) && pawn.records.GetValue(xxx.CountOfRapedHumanlikes) > 0.12 * pawn.records.GetValue(xxx.CountOfSex))
{
var chance = 0.5f;
if (xxx.is_kind(pawn)) chance -= 0.25f;
if (xxx.is_prude(pawn)) chance -= 0.25f;
if (xxx.is_zoophile(pawn)) chance -= 0.25f; // Less interested in raping humanlikes.
if (xxx.is_ascetic(pawn)) chance -= 0.2f;
if (xxx.is_bloodlust(pawn)) chance += 0.2f;
if (xxx.is_psychopath(pawn)) chance += 0.25f;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (Rand.Chance(chance))
{
pawn.story.traits.GainTrait(new Trait(xxx.rapist));
//--Log.Message(xxx.get_pawnname(pawn) + " aftersex, not rapist, adding rapist trait");
}
}
if (!xxx.is_zoophile(pawn) && (pawn.records.GetValue(xxx.CountOfSexWithAnimals) + pawn.records.GetValue(xxx.CountOfSexWithInsects) > 0.5 * pawn.records.GetValue(xxx.CountOfSex)))
//if (!xxx.is_zoophile(pawn) && (pawn.records.GetValue(xxx.CountOfRapedAnimals) + pawn.records.GetValue(xxx.CountOfRapedInsects) > 0.5 * pawn.records.GetValue(xxx.CountOfSex)
// || pawn.records.GetValue(xxx.CountOfBeenRapedByAnimals) + pawn.records.GetValue(xxx.CountOfBeenRapedByInsects) > 0.5 * pawn.records.GetValue(xxx.CountOfSex)))
{
pawn.story.traits.GainTrait(new Trait(xxx.zoophile));
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(xxx.got_bred);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(xxx.got_groped);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(xxx.got_licked);
//--Log.Message(xxx.get_pawnname(pawn) + " aftersex, not zoo, adding zoo trait");
}
}
// Checks if enough time has passed from previous lovin'.
public static bool ReadyForLovin(Pawn pawn)
{
return Find.TickManager.TicksGame > pawn.mindState.canLovinTick;
}
// Checks if enough time has passed from previous search for a hookup.
// Checks if hookups allowed during working hours, exlcuding nymphs
public static bool ReadyForHookup(Pawn pawn)
{
if (!xxx.is_nympho(pawn) && RJWHookupSettings.NoHookupsDuringWorkHours && ((pawn.timetable != null) ? pawn.timetable.CurrentAssignment : TimeAssignmentDefOf.Anything) == TimeAssignmentDefOf.Work) return false;
return Find.TickManager.TicksGame > CompRJW.Comp(pawn).NextHookupTick;
}
private static void IncreaseTicksToNextLovin(Pawn pawn)
{
if (pawn == null || pawn.Dead) return;
int currentTime = Find.TickManager.TicksGame;
if (pawn.mindState.canLovinTick <= currentTime)
pawn.mindState.canLovinTick = currentTime + GenerateMinTicksToNextLovin(pawn);
}
[SyncMethod]
public static int GenerateMinTicksToNextLovin(Pawn pawn)
{
if (DebugSettings.alwaysDoLovin) return 100;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float interval = JobDriver_Lovin.LovinIntervalHoursFromAgeCurve.Evaluate(ScaleToHumanAge(pawn));
float rinterval = Math.Max(0.5f, Rand.Gaussian(interval, 0.3f));
float tick = 1.0f;
// Nymphs automatically get the tick increase from the trait influence on sex drive.
if (xxx.is_animal(pawn))
tick = 0.75f;
else if (xxx.is_prude(pawn))
tick = 1.5f;
if (xxx.has_quirk(pawn, "Vigorous"))
tick *= 0.8f;
float sex_drive = xxx.get_sex_drive(pawn);
if (sex_drive <= 0.05f)
sex_drive = 0.05f;
return (int)(tick * rinterval * (2500.0f / sex_drive));
}
public static void IncreaseTicksToNextHookup(Pawn pawn)
{
if (pawn == null || pawn.Dead)
return;
// There are 2500 ticks per rimworld hour. Sleeping an hour between checks seems like a good start.
// We could get fancier and weight it by sex drive and stuff, but would people even notice?
const int TicksBetweenHookups = 2500;
int currentTime = Find.TickManager.TicksGame;
CompRJW.Comp(pawn).NextHookupTick = currentTime + TicksBetweenHookups;
}
// <summary>
// Determines the sex type and handles the log output.
// "Pawn" should be initiator of the act (rapist, whore, etc), "Partner" should be the target.
// </summary>
public static void ProcessSex(Pawn pawn, Pawn partner, bool rape = false, bool isCoreLovin = false, bool whoring = false)
{
if (pawn == null || partner == null)
{
if (pawn == null)
Log.Error("[RJW][SexUtility] ERROR: pawn is null.");
if (partner == null)
Log.Error("[RJW][SexUtility] ERROR: partner is null.");
return;
}
// Re-draw clothes.
if (xxx.is_human(pawn))
pawn.Drawer.renderer.graphics.ResolveApparelGraphics();
if (xxx.is_human(partner))
partner.Drawer.renderer.graphics.ResolveApparelGraphics();
IncreaseTicksToNextLovin(pawn);
IncreaseTicksToNextLovin(partner);
rape = rape || pawn?.CurJob.def == xxx.gettin_raped || (!partner.Dead && partner.CurJob.def == xxx.gettin_raped); // Double-checking.
Pawn receiving = partner;
xxx.rjwSextype sextype = DetermineSextype(pawn, partner, rape, whoring, ref receiving);
Aftersex(pawn, partner, rape, isCoreLovin, sextype);
//--Log.Message("SexUtility::processsex( " + pawn_name + ", " + partner_name + " ) - checking thoughts");
xxx.think_about_sex(pawn, partner, receiving == pawn, rape, sextype, isCoreLovin, whoring);
xxx.think_about_sex(partner, pawn, receiving == partner, rape, sextype, isCoreLovin, false);
pawn.Drawer.Notify_MeleeAttackOn(partner);
}
[SyncMethod]
private static xxx.rjwSextype DetermineSextype(Pawn pawn, Pawn partner, bool rape, bool whoring, ref Pawn receiving)
{
//--Log.Message("[RJW]SexUtility::processSex is called for pawn" + xxx.get_pawnname(pawn) + " and partner " + xxx.get_pawnname(partner));
bool pawnHasAnus = Genital_Helper.has_anus(pawn) && !Genital_Helper.anus_blocked(pawn);
bool pawnHasBreasts = Genital_Helper.has_breasts(pawn) && !Genital_Helper.breasts_blocked(pawn);
bool pawnHasVagina = Genital_Helper.has_vagina(pawn) && !Genital_Helper.genitals_blocked(pawn);
bool pawnHasPenis = (Genital_Helper.has_penis(pawn) || Genital_Helper.has_penis_infertile(pawn) || Genital_Helper.has_ovipositorF(pawn)) && !Genital_Helper.genitals_blocked(pawn);
bool pawnHasMultiPenis = Genital_Helper.has_multipenis(pawn) && !Genital_Helper.genitals_blocked(pawn);
//--Log.Message("[RJW]SexUtility::processSex is pawnHasPenis " + pawnHasPenis);
//--Log.Message("[RJW]SexUtility::processSex is is_female(Partner) " + is_female(Partner));
bool partnerHasAnus = Genital_Helper.has_anus(partner) && !Genital_Helper.anus_blocked(partner);
bool partnerHasBreasts = Genital_Helper.has_breasts(partner) && !Genital_Helper.breasts_blocked(partner);
bool partnerHasVagina = Genital_Helper.has_vagina(partner) && !Genital_Helper.genitals_blocked(partner);
bool partnerHasPenis = (Genital_Helper.has_penis(partner) || Genital_Helper.has_penis_infertile(pawn)) && !Genital_Helper.genitals_blocked(partner);
bool partnerHasMultiPenis = Genital_Helper.has_multipenis(partner) && !Genital_Helper.genitals_blocked(partner);
bool pawnHasHands = pawn.health.hediffSet.GetNotMissingParts().Any(part => part.IsInGroup(BodyPartGroupDefOf.RightHand) || part.IsInGroup(BodyPartGroupDefOf.LeftHand));
bool partnerHasHands = partner.health.hediffSet.GetNotMissingParts().Any(part => part.IsInGroup(BodyPartGroupDefOf.RightHand) || part.IsInGroup(BodyPartGroupDefOf.LeftHand));
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
/*Things to keep in mind:
- Both the initiator and the partner can be female, male, or futa.
- Can be rape or consensual.
- Includes pawns with blocked or no genitalia.
Need to add support here when new types get added.
Types to be added: 69, spooning...?
This would be much 'better' code as arrays, but that'd hurt readability and make it harder to modify.
If this weren't 3.5, I'd use tuples.*/
// Range 1.0 to 0.0 [100% to 0%].
float vagiIni = RJWPreferenceSettings.vaginal; // Vaginal
float VagiRec = RJWPreferenceSettings.vaginal; // Vaginal - receiving
float analIni = RJWPreferenceSettings.anal; // Anal
float analRec = RJWPreferenceSettings.anal; // Anal - receiving
float cunnIni = RJWPreferenceSettings.cunnilingus; // Cunnilingus
float cunnRec = RJWPreferenceSettings.cunnilingus; // Cunnilingus - receiving
float rimmIni = RJWPreferenceSettings.rimming; // Rimming
float rimmRec = RJWPreferenceSettings.rimming; // Rimming - receiving
float fellIni = RJWPreferenceSettings.fellatio; // Fellatio
float fellRec = RJWPreferenceSettings.fellatio; // Fellatio - receiving
float doubIni = RJWPreferenceSettings.double_penetration; // DoublePenetration
float doubRec = RJWPreferenceSettings.double_penetration; // DoublePenetration - receiving
float bresIni = RJWPreferenceSettings.breastjob; // Breastjob
float bresRec = RJWPreferenceSettings.breastjob; // Breastjob - receiving
float handIni = RJWPreferenceSettings.handjob; // Handjob
float handRec = RJWPreferenceSettings.handjob; // Handjob - receiving
float footIni = RJWPreferenceSettings.footjob; // Footjob
float footRec = RJWPreferenceSettings.footjob; // Footjob - receiving
float fingIni = RJWPreferenceSettings.fingering; // Fingering
float fingRec = RJWPreferenceSettings.fingering; // Fingering - receiving
float scisIni = RJWPreferenceSettings.scissoring; // Scissoring
float scisRec = RJWPreferenceSettings.scissoring; // Scissoring - receiving
float mutuIni = RJWPreferenceSettings.mutual_masturbation; // MutualMasturbation
float mutuRec = RJWPreferenceSettings.mutual_masturbation; // MutualMasturbation - receiving
float fistIni = RJWPreferenceSettings.fisting; // Fisting
float fistRec = RJWPreferenceSettings.fisting; // Fisting - receiving
float sixtIni = RJWPreferenceSettings.sixtynine; // 69
float sixtRec = RJWPreferenceSettings.sixtynine; // 69 - receiving
string pawn_quirks = CompRJW.Comp(pawn).quirks.ToString();
string partner_quirks = CompRJW.Comp(partner).quirks.ToString();
// Modifiers > 1.0f = higher chance of being picked
// Modifiers < 1.0f = lower chance of being picked
// 0 = disables types.
// Pawn does not need sex, or is not horny. Mostly whores, sexbots, etc.
if (xxx.need_some_sex(pawn) < 1.0f)
{
vagiIni *= 0.6f;
analIni *= 0.6f;
cunnRec *= 0.6f;
rimmRec *= 0.6f;
fellRec *= 0.6f;
doubIni *= 0.6f;
bresRec *= 0.6f;
handRec *= 0.6f;
footRec *= 0.6f;
fingRec *= 0.6f;
sixtIni *= 0.6f;
sixtRec *= 0.6f;
}
// Adjusts initial chances
if (pawnHasPenis)
{
vagiIni *= 1.5f;
analIni *= 1.5f;
fellRec *= 1.5f;
doubIni *= 1.5f;
if (partnerHasVagina)
{
fistRec *= 0.5f;
rimmIni *= 0.8f;
rimmRec *= 0.5f;
}
}
else if (pawnHasVagina)
{
VagiRec *= 1.2f;
scisRec *= 1.2f;
}
//Size adjustments. Makes pawns reluctant to have penetrative sex if there's large size difference.
if (partner.BodySize > pawn.BodySize * 2 && !rape && !xxx.is_animal(pawn))
{
VagiRec *= 0.6f;
analRec *= 0.6f;
fistRec *= 0.2f;
sixtIni *= 0.2f;
sixtRec *= 0.2f;
}
else if (pawn.BodySize > partner.BodySize * 2 && !rape && !xxx.is_animal(pawn) && !xxx.is_psychopath(pawn))
{
vagiIni *= 0.6f;
analIni *= 0.6f;
fistIni *= 0.3f;
sixtIni *= 0.2f;
sixtRec *= 0.2f;
}
if (partner.Dead || partner.Downed || !partner.health.capacities.CanBeAwake) // This limits options a lot, for obvious reason.
{
VagiRec = 0f;
analRec = 0f;
cunnIni *= 0.3f;
cunnRec = 0f;
rimmIni *= 0.1f;
rimmRec = 0f;
fellRec *= 0.2f;
doubRec = 0f;
bresRec = 0f;
handRec = 0f;
footRec = 0f;
fingRec = 0f;
fingIni *= 0.5f;
scisIni *= 0.2f;
scisRec = 0f;
mutuIni = 0f;
mutuRec = 0f;
fistRec = 0f;
sixtRec = 0f;
if (pawnHasPenis)
{
sixtIni *= 0.5f; // Can facefuck the unconscious (or corpse). :/
}
else
{
sixtIni = 0f;
}
if (partner.Dead)
{
fellIni = 0f;
handIni = 0f;
footIni = 0f;
bresIni = 0f;
fingIni = 0f;
fistIni *= 0.2f; // Fisting a corpse? Whatever floats your boat, I guess.
}
else
{
fellIni *= 0.4f;
handIni *= 0.5f;
footIni *= 0.2f;
bresIni *= 0.2f;
fistIni *= 0.6f;
}
}
if (rape)
{
// This makes most types less likely to happen during rape, but doesn't disable them.
// Things like forced blowjob can happen, so it shouldn't be impossible in rjw.
VagiRec *= 0.5f; //Forcing vaginal on male.
analRec *= 0.3f; //Forcing anal on male.
cunnIni *= 0.3f; //Forced cunnilingus.
cunnRec *= 0.6f;
rimmIni *= 0.1f;
fellIni *= 0.4f;
doubRec *= 0.2f; //Rapist forcing the target to double-penetrate her - unlikely.
bresIni *= 0.2f;
bresRec *= 0.2f;
handIni *= 0.6f;
handRec *= 0.2f;
footIni *= 0.2f;
footRec *= 0.1f;
fingIni *= 0.8f;
fingRec *= 0.1f;
scisIni *= 0.6f;
scisRec *= 0.1f;
mutuIni = 0f;
mutuRec = 0f;
fistIni *= 1.2f;
fistRec = 0f;
sixtIni *= 0.5f;
sixtRec = 0f;
}
if (xxx.is_animal(pawn))
{
if (pawn.relations.DirectRelationExists(PawnRelationDefOf.Bond, partner))
{ //Bond animals
VagiRec *= 1.8f; //Presenting
analRec *= 1.2f;
fellIni *= 1.2f;
cunnIni *= 1.2f;
}
else
{
VagiRec *= 0.3f;
analRec *= 0.3f;
}
vagiIni *= 1.8f;
analIni *= 0.9f;
cunnRec *= 0.2f;
rimmRec *= 0.1f;
fellRec *= 0.1f;
doubIni *= 0.6f;
doubRec *= 0.1f;
bresIni = 0f;
bresRec *= 0.1f;
handIni *= 0.4f; //Enabled for primates.
handRec *= 0.1f;
footIni = 0f;
footRec *= 0.1f;
fingIni *= 0.3f; //Enabled for primates.
fingRec *= 0.2f;
scisIni *= 0.2f;
scisRec *= 0.1f;
mutuIni *= 0.1f;
mutuRec *= 0.1f;
fistIni *= 0.2f; //Enabled for primates...
fistRec *= 0.6f;
sixtIni *= 0.2f;
sixtRec *= 0.2f;
}
if (xxx.is_animal(partner)) // Zoophilia and animal-on-animal
{
if (pawn.Faction != partner.Faction && rape) // Wild animals && animals from other factions
{
cunnRec *= 0.1f; // Wild animals bite, colonists should be smart enough to not try to force oral from them.
rimmRec *= 0.1f;
fellRec *= 0.1f;
}
else
{
cunnRec *= 0.5f;
rimmRec *= 0.4f;
fellRec *= 0.4f;
}
cunnIni *= 0.7f;
rimmIni *= 0.1f;
fellIni *= 1.2f;
doubIni *= 0.6f;
doubRec *= 0.1f;
bresIni *= 0.3f; //Giving a breastjob to animals - unlikely.
bresRec = 0f;
handIni *= 1.2f;
handRec *= 0.4f; //Animals are not known for giving handjobs, but enabled for primates and such.
footIni *= 0.3f;
footRec = 0f;
fingIni *= 0.8f;
fingRec *= 0.2f; //Enabled for primates.
scisIni *= 0.1f;
scisRec = 0f;
mutuIni *= 0.6f;
mutuRec *= 0.1f;
fistIni *= 0.6f;
fistRec *= 0.1f;
sixtIni *= 0.2f;
sixtRec *= 0.2f;
}
//Quirks
if (pawn_quirks.Contains("Podophile")) // Foot fetish
{
footIni *= 2.0f;
footRec *= 2.5f;
}
if (partner_quirks.Contains("Podophile"))
{
footIni *= 2.5f;
footRec *= 2.0f;
}
if (pawn_quirks.Contains("Impregnation fetish") && (PregnancyHelper.CanImpregnate(pawn, partner) || PregnancyHelper.CanImpregnate(partner, pawn)))
{
vagiIni *= 2.5f;
VagiRec *= 2.5f;
}
if (whoring) // Paid sex
{
VagiRec *= 1.5f;
analIni *= 0.7f; //Some customers may pay for this.
analRec *= 1.2f;
cunnIni *= 1.2f;
cunnRec *= 0.3f; //Customer paying to lick the whore - uncommon.
rimmRec *= 0.2f;
fellIni *= 1.5f; //Classic.
fellRec *= 0.2f;
doubIni *= 0.8f;
doubRec *= 1.2f;
bresIni *= 1.2f;
bresRec *= 0.1f;
handIni *= 1.5f;
handRec *= 0.1f;
footIni *= 0.6f;
footRec *= 0.1f;
fingIni *= 0.6f;
fingRec *= 0.2f;
scisRec *= 0.2f;
mutuIni *= 0.2f;
mutuRec *= 0.2f;
fistIni *= 0.6f;
fistRec *= 0.7f;
sixtIni *= 0.7f;
sixtRec *= 0.7f;
}
// Pawn lacks vagina, disable related types.
if (!pawnHasVagina)
{
VagiRec = 0f;
cunnRec = 0f;
doubRec = 0f;
fingRec = 0f;
scisIni = 0f;
scisRec = 0f;
}
if (!partnerHasVagina)
{
vagiIni = 0f;
cunnIni = 0f;
doubIni = 0f;
fingIni = 0f;
scisIni = 0f;
scisRec = 0f;
}
// Pawn lacks penis, disable related types.
if (!pawnHasPenis)
{
vagiIni = 0f;
analIni = 0f;
fellRec = 0f;
doubIni = 0f;
bresRec = 0f;
handRec = 0f;
footRec = 0f;
}
else if (pawnHasMultiPenis && partnerHasVagina && partnerHasAnus)
{
// Pawn has multi-penis and can use it. Single-penetration chance down.
vagiIni *= 0.8f;
analIni *= 0.8f;
doubIni *= 1.5f;
}
else
{
doubIni = 0f;
}
if (!partnerHasPenis)
{
VagiRec = 0f;
analRec = 0f;
fellIni = 0f;
doubRec = 0f;
bresIni = 0f;
handIni = 0f;
footIni = 0f;
}
else if (partnerHasMultiPenis && pawnHasVagina && pawnHasAnus)
{
// Pawn has multi-penis and can use it. Single-penetration chance down.
VagiRec *= 0.8f;
analRec *= 0.8f;
doubRec *= 1.5f;
}
else
{
doubRec = 0f;
}
// One pawn lacks genitalia: no mutual masturbation or 69.
if (!(pawnHasPenis || pawnHasVagina) || !(partnerHasPenis || partnerHasVagina))
{
mutuIni = 0f;
mutuRec = 0f;
sixtIni = 0f;
sixtRec = 0f;
}
// Pawn lacks anus...
if (!pawnHasAnus)
{
analRec = 0f;
rimmRec = 0f;
doubRec = 0f;
fistRec = 0f;
}
if (!partnerHasAnus)
{
analIni = 0f;
rimmIni = 0f;
doubIni = 0f;
fistIni = 0f;
}
// Pawn lacks boobs
if (!pawnHasBreasts)
{
bresIni = 0f;
}
if (!partnerHasBreasts)
{
bresRec = 0f;
}
// Pawn lacks hands
if (!pawnHasHands)
{
handIni = 0f;
fingIni = 0f;
mutuIni = 0f;
fistIni = 0f;
}
if (!partnerHasHands)
{
handRec = 0f;
fingRec = 0f;
mutuRec = 0f;
fistRec = 0f;
}
List<float> sexTypes = new List<float> {
vagiIni, VagiRec, // 0, 1
analIni, analRec, // 2, 3
cunnIni, cunnRec, // 4, 5
rimmIni, rimmRec, // 6, 7
fellIni, fellRec, // 8, 9
doubIni, doubRec, // 10, 11
bresIni, bresRec, // 12, 13
handIni, handRec, // 14, 15
footIni, footRec, // 16, 17
fingIni, fingRec, // 18, 19
scisIni, scisRec, // 20, 21
mutuIni, mutuRec, // 22, 23
fistIni, fistRec, // 24, 25
sixtIni, sixtRec // 26, 27
};
// Bit of randomization..
for (int i = 0; i < sexTypes.Count; i++)
{
sexTypes[i] = Rand.Range(0f, sexTypes[i]);
}
float maxValue = sexTypes.Max();
if (!(maxValue > 0f))
{
Log.Error("[RJW] ERROR: No available sex types for " + xxx.get_pawnname(pawn) + " and " + xxx.get_pawnname(partner));
return xxx.rjwSextype.None;
}
List<RulePackDef> extraSentencePacks = new List<RulePackDef>();
string rulepack; //defName of the rulePackDef (see RulePacks_Sex.xml, etc.)
InteractionDef dictionaryKey;
Pawn giving = pawn;
if (sexTypes.IndexOf(maxValue) % 2 != 0 && !rape)
{
giving = partner;
receiving = pawn;
}
int typeIndex = sexTypes.IndexOf(maxValue);
if (xxx.is_animal(pawn))
{
rulepack = rulepacks[typeIndex, 2];
dictionaryKey = dictionarykeys[typeIndex, 2];
}
else if (!rape)
{
rulepack = rulepacks[typeIndex, 0];
dictionaryKey = dictionarykeys[typeIndex, 0];
}
else // is rape
{
rulepack = rulepacks[typeIndex, 1];
dictionaryKey = dictionarykeys[typeIndex, 1];
}
// Override for mechanoid implanting. Add the defNames for species that should be allowed to do it.
// Currently only includes the core mechanoids, plus some from Orion's More Mechanoids mod.
if (pawn.kindDef.race.defName.ContainsAny("Mech_Centipede", "Mech_Lancer", "Mech_Scyther", "Mech_Crawler", "Mech_Skullywag", "Mech_Flamebot", "Mech_Mammoth", "Mech_Assaulter"))
{
dictionaryKey = mechImplant;
rulepack = "MechImplantingRP";
}
if (rulepack == "FellatioRP")
{
if (GetPawnBodyPart(pawn, "Beak") != null && pawn == giving || GetPawnBodyPart(partner, "Beak") != null && pawn == receiving)
{
rulepack = "BeakjobRP";
dictionaryKey = beakjob;
}
}
// Text override for corpse violation.
if (pawn.CurJob.def == xxx.violate_corpse)
dictionaryKey = violateCorpse;
xxx.rjwSextype sextype = sexActs[dictionaryKey];
extraSentencePacks.Add(RulePackDef.Named(rulepack));
PlayLogEntry_Interaction playLogEntry = new PlayLogEntry_Interaction(dictionaryKey, giving, receiving, extraSentencePacks);
Find.PlayLog.Add(playLogEntry);
return sextype;
}
}
}
|
Mewtopian/rjw
|
Source/Common/Helpers/SexUtility.cs
|
C#
|
mit
| 48,256 |
using Verse;
namespace rjw
{
public class MapCom_Injector : MapComponent
{
public bool injected_designator = false;
public bool triggered_after_load = false;
public MapCom_Injector(Map m) : base(m)
{
}
public override void MapComponentUpdate()
{
}
public override void MapComponentTick()
{
}
public override void MapComponentOnGUI()
{
var currently_visible = Find.CurrentMap == map;
if ((!injected_designator) && currently_visible)
{
//Find.ReverseDesignatorDatabase.AllDesignators.Add(new Designator_ComfortPrisoner());
//Find.ReverseDesignatorDatabase.AllDesignators.Add(new Designator_Breed());
injected_designator = true;
}
else if (injected_designator && (!currently_visible))
injected_designator = false;
}
public override void ExposeData()
{
}
}
}
|
Mewtopian/rjw
|
Source/Common/MapCom_Injector.cs
|
C#
|
mit
| 833 |
using System;
using Verse;
namespace rjw
{
public sealed class MiscTranslationDef : Def
{
public Type targetClass;
public string stringA = null;
public string stringB = null;
public string stringC = null;
private void Assert(bool check, string errorMessage)
{
if (!check)
{
Log.Error($"[RJW] Invalid data in MiscTranslationDef {defName}: {errorMessage}");
}
}
public override void PostLoad()
{
Assert(targetClass != null, "targetClass field must be set");
}
public override void ResolveReferences()
{
base.ResolveReferences();
}
}
}
|
Mewtopian/rjw
|
Source/Common/MiscTranslationDef.cs
|
C#
|
mit
| 587 |
using Verse;
namespace rjw
{
/* TO BE FINISHED
public enum RandomDialogueJobType
{
Rape = 0,
Love = 1,
Other = 2
}
public sealed class RandomDialoguesDef : Def
{
public RandomDialogueJobType JobType;
public string RD0;
public string RD1;
public string RD2;
public string RD3;
public string RD4;
public string RD5;
public string RD6;
public string RD7;
public string RD8;
public string RD9;
public string RD10;
public string RD11;
public string RD12;
public string RD13;
public string RD14;
public string RD15;
public string RD16;
public string RD17;
public string RD18;
public string RD19;
}
[DefOf]
public static class RandomDialoguesDefOf
{
//0 means before, 1 means during, 2 means after
//public readonly static RandomDialoguesDef rape0;
//public readonly static RandomDialoguesDef rape1;
//public readonly static RandomDialoguesDef rape2;
//public readonly static RandomDialoguesDef love0;
//public readonly static RandomDialoguesDef love1;
//public readonly static RandomDialoguesDef love2;
//public readonly static RandomDialoguesDef other0;
//public readonly static RandomDialoguesDef other1;
//public readonly static RandomDialoguesDef other2;
}
*/
// TO BE FINISHED
/*
public static class RandomDialogues
{
public static void processBeforeDialogue(Pawn psubject,Pawn pobject,int Type = 4)
{
switch (Type)
{
case 0:
string traitDefName;
if (xxx.has_traits(psubject)&&Rand.Value<0.25){
traitDefName = psubject.random_pick_a_trait();
switch (traitDefName)
{
case "Nymphomaniac":
break;
case "Rapist":
break;
case "Necrophiliac":
break;
case "Zoophile":
break;
case "Bloodlust":
break;
case "Psychopath":
break;
case "Cannibal":
break;
case "Masochist":
break;
case "Prosthophile":
break;
case "Prosthophobe":
break;
case "Jealous":
break;
case "Gay":
break;
default:
break;
}
}
if (xxx.has_traits(pobject))
{
}
return;
case 1:
return;
case 2:
return;
default:
Log.Error("[RJW]RandomDialogues::processBeforeDialogue - Type not found");
return;
}
}
public static void processDuringDialogue(Pawn psubject, Pawn pobject, int Type = 4)
{
switch (Type)
{
case 0:
return;
case 1:
return;
case 2:
return;
default:
Log.Error("[RJW]RandomDialogues::processBeforeDialogue - Type not found");
return;
}
}
public static void processAfterDialogue(Pawn psubject, Pawn pobject, int Type = 4)
{
switch (Type)
{
case 0:
return;
case 1:
return;
case 2:
return;
default:
Log.Error("[RJW]RandomDialogues::processBeforeDialogue - Type not found");
return;
}
}
}
*/
}
|
Mewtopian/rjw
|
Source/Common/RandomDialogues.cs
|
C#
|
mit
| 2,988 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace rjw
{
public static class Unprivater
{
internal const BindingFlags flags = BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;
/// <summary>
/// T is for returned type. For instance-class fields
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fieldName"></param>
/// <param name="obj"></param>
/// <returns></returns>
public static T GetProtectedValue<T>(string fieldName, object obj)
{
var fieldinfo = obj.GetType().GetField(fieldName, flags);
var readData = fieldinfo.GetValue(obj);
if (readData is T)
{
return (T)readData;
}
else
{
try
{
return (T)Convert.ChangeType(readData, typeof(T));
}
catch (InvalidCastException)
{
return default(T);
}
}
}
public static bool SetProtectedValue(string fieldName, object obj, object value)
{
var fieldinfo = obj.GetType().GetField(fieldName, flags);
try
{
fieldinfo.SetValue(obj, value);
return true;
}
catch (Exception)
{
return false;
}
}
/// <summary>
/// T is for returned type. For instance-class properties ( [ get; thingies ] )
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fieldName"></param>
/// <param name="obj"></param>
/// <returns></returns>
public static T GetProtectedProperty<T>(string propertyName, object obj)
{
var propinfo = obj.GetType().GetProperty(propertyName, flags);
var getter = propinfo.GetGetMethod(nonPublic: true);
var readData = getter.Invoke(obj, null);
if (readData is T)
{
return (T)readData;
}
else
{
try
{
return (T)Convert.ChangeType(readData, typeof(T));
}
catch (InvalidCastException)
{
return default(T);
}
}
}
public static bool SetProtectedProperty(string propertyName, object obj, object value)
{
var propinfo = obj.GetType().GetProperty(propertyName, flags);
try
{
propinfo.SetValue(obj, value, null);
return true;
}
catch (Exception)
{
return false;
}
}
/// <summary>
/// T is for returned type. For static-class fields
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fieldName"></param>
/// <param name="t"></param>
/// <returns></returns>
public static T GetProtectedValue<T>(string fieldName, Type t)
{
var fieldinfo = t.GetField(fieldName, flags);
var readData = fieldinfo.GetValue(null);
if (readData is T)
{
return (T)readData;
}
else
{
try
{
return (T)Convert.ChangeType(readData, typeof(T));
}
catch (InvalidCastException)
{
return default(T);
}
}
}
public static bool SetProtectedValue(string fieldName, Type t, object value)
{
var fieldinfo = t.GetField(fieldName, flags);
try
{
fieldinfo.SetValue(null, value);
return true;
}
catch (Exception)
{
return false;
}
}
// needs testing, dunno if it works for statics
public static T GetProtectedProperty<T>(string propertyName, Type t)
{
var propinfo = t.GetProperty(propertyName, flags);
var getter = propinfo.GetGetMethod(nonPublic: true);
var readData = getter.Invoke(null, null);
if (readData is T)
{
return (T)readData;
}
else
{
try
{
return (T)Convert.ChangeType(readData, typeof(T));
}
catch (InvalidCastException)
{
return default(T);
}
}
}
}
}
|
Mewtopian/rjw
|
Source/Common/Unprivater.cs
|
C#
|
mit
| 3,622 |
namespace rjw
{
/*This is useless for now.
public class Verb_Fuck : Verb
{
private const int TargetCooldown = 40;
protected override bool TryCastShot()
{
Pawn casterPawn = base.CasterPawn;
Thing thing = this.currentTarget.Thing;
casterpawn.rotationTracker.Face(thing.DrawPos);
this.SoundJuicy().PlayOneShot(new TargetInfo(thing.Position, casterPawn.Map, false));
casterPawn.Drawer.Notify_MeleeAttackOn(thing);
casterpawn.rotationTracker.FaceCell(thing.Position);
if (casterPawn.caller != null) {
casterPawn.caller.Notify_DidMeleeAttack();
}
return true;
}
private SoundDef SoundJuicy()
{
return SoundDef.Named ("Sex");
}
}
*/
}
|
Mewtopian/rjw
|
Source/Common/Verb_Fuck.cs
|
C#
|
mit
| 688 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Diagnostics;
using Harmony;
using RimWorld;
using UnityEngine;
using Verse;
using Verse.AI;
using Verse.AI.Group;
using Verse.Sound;
using Multiplayer.API;
//using static RimWorld.Planet.CaravanInventoryUtility;
//using RimWorldChildren;
namespace rjw
{
public static class Logger
{
private static readonly LogMessageQueue messageQueueRJW = new LogMessageQueue();
public static void Message(string text)
{
bool DevModeEnabled = RJWSettings.DevMode;
if (!DevModeEnabled) return;
UnityEngine.Debug.Log(text);
messageQueueRJW.Enqueue(new LogMessage(LogMessageType.Message, text, StackTraceUtility.ExtractStackTrace()));
}
public static void Warning(string text)
{
bool DevModeEnabled = RJWSettings.DevMode;
if (!DevModeEnabled) return;
UnityEngine.Debug.Log(text);
messageQueueRJW.Enqueue(new LogMessage(LogMessageType.Warning, text, StackTraceUtility.ExtractStackTrace()));
}
public static void Error(string text)
{
bool DevModeEnabled = RJWSettings.DevMode;
if (!DevModeEnabled) return;
UnityEngine.Debug.Log(text);
messageQueueRJW.Enqueue(new LogMessage(LogMessageType.Error, text, StackTraceUtility.ExtractStackTrace()));
}
public static TimeSpan Time(Action action)
{
Stopwatch stopwatch = Stopwatch.StartNew();
action();
stopwatch.Stop();
return stopwatch.Elapsed;
}
}
public static class xxx
{
public static readonly BindingFlags ins_public_or_no = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;
public static readonly config config = DefDatabase<config>.GetNamed("the_one");
public const float base_sat_per_fuck = 0.40f;
public const float base_attraction = 0.60f;
public const float no_partner_ability = 0.8f;
//HARDCODED MAGIC USED ACROSS DOZENS OF FILES, this is as bad place to put it as any other
//Should at the very least be encompassed in the related designation type
public static readonly int max_rapists_per_prisoner = 6;
public static readonly TraitDef nymphomaniac = TraitDef.Named("Nymphomaniac");
public static readonly TraitDef rapist = TraitDef.Named("Rapist");
public static readonly TraitDef masochist = TraitDef.Named("Masochist");
public static readonly TraitDef necrophiliac = TraitDef.Named("Necrophiliac");
public static readonly TraitDef zoophile = TraitDef.Named("Zoophile");
//CombatExtended Traits
public static HediffDef MuscleSpasms;
public static bool CombatExtendedIsActive;
//RomanceDiversified Traits
public static TraitDef straight;
public static TraitDef bisexual;
public static TraitDef asexual;
public static TraitDef faithful;
public static TraitDef philanderer;
public static TraitDef polyamorous;
public static bool RomanceDiversifiedIsActive; //A dirty way to check if the mod is active
//Psychology Traits
public static TraitDef prude;
public static TraitDef lecher;
public static TraitDef polygamous;
public static bool PsychologyIsActive;
//[SYR] Individuality
public static bool IndividualityIsActive;
//Rimworld of Magic
public static bool RoMIsActive;
//Consolidated Traits
public static bool CTIsActive;
//SimpleSlavery
public static bool SimpleSlaveryIsActive;
//Dubs Bad Hygiene
public static bool DubsBadHygieneIsActive;
//Alien Framework Traits
public static TraitDef xenophobia; // Degrees: 1: xenophobe, -1: xenophile
public static bool AlienFrameworkIsActive;
//Children&Pregnancy Hediffs
public static HediffDef babystate;
public static bool RimWorldChildrenIsActive; //A dirty way to check if the mod is active
//The Hediff to prevent reproduction
public static readonly HediffDef sterilized = HediffDef.Named("Sterilized");
//The Hediff for broken body(resulted from being raped as CP for too many times)
public static readonly HediffDef feelingBroken = HediffDef.Named("FeelingBroken");
public static PawnCapacityDef reproduction = DefDatabase<PawnCapacityDef>.GetNamed("Reproduction");
public static readonly BodyPartDef genitalsDef = DefDatabase<BodyPartDef>.GetNamed("Genitals");
public static readonly BodyPartDef breastsDef = DefDatabase<BodyPartDef>.GetNamed("Chest");
public static readonly BodyPartDef anusDef = DefDatabase<BodyPartDef>.GetNamed("Anus");
public static readonly ThoughtDef saw_rash_1 = DefDatabase<ThoughtDef>.GetNamed("SawDiseasedPrivates1");
public static readonly ThoughtDef saw_rash_2 = DefDatabase<ThoughtDef>.GetNamed("SawDiseasedPrivates2");
public static readonly ThoughtDef saw_rash_3 = DefDatabase<ThoughtDef>.GetNamed("SawDiseasedPrivates3");
public static readonly ThoughtDef got_raped = DefDatabase<ThoughtDef>.GetNamed("GotRaped");
public static readonly ThoughtDef got_raped_unconscious = DefDatabase<ThoughtDef>.GetNamed("GotRapedUnconscious");
public static readonly ThoughtDef got_bred = DefDatabase<ThoughtDef>.GetNamed("GotBredByAnimal");
public static readonly ThoughtDef got_licked = DefDatabase<ThoughtDef>.GetNamed("GotLickedByAnimal");
public static readonly ThoughtDef got_groped = DefDatabase<ThoughtDef>.GetNamed("GotGropedByAnimal");
public static readonly ThoughtDef masochist_got_raped = DefDatabase<ThoughtDef>.GetNamed("MasochistGotRaped");
public static readonly ThoughtDef masochist_got_bred = DefDatabase<ThoughtDef>.GetNamed("MasochistGotBredByAnimal");
public static readonly ThoughtDef masochist_got_licked = DefDatabase<ThoughtDef>.GetNamed("MasochistGotLickedByAnimal");
public static readonly ThoughtDef masochist_got_groped = DefDatabase<ThoughtDef>.GetNamed("MasochistGotGropedByAnimal");
public static readonly ThoughtDef allowed_animal_to_breed = DefDatabase<ThoughtDef>.GetNamed("AllowedAnimalToBreed");
public static readonly ThoughtDef allowed_animal_to_lick = DefDatabase<ThoughtDef>.GetNamed("AllowedAnimalToLick");
public static readonly ThoughtDef allowed_animal_to_grope = DefDatabase<ThoughtDef>.GetNamed("AllowedAnimalToGrope");
public static readonly ThoughtDef zoophile_got_bred = DefDatabase<ThoughtDef>.GetNamed("ZoophileGotBredByAnimal");
public static readonly ThoughtDef zoophile_got_licked = DefDatabase<ThoughtDef>.GetNamed("ZoophileGotLickedByAnimal");
public static readonly ThoughtDef zoophile_got_groped = DefDatabase<ThoughtDef>.GetNamed("ZoophileGotGropedByAnimal");
public static readonly ThoughtDef hate_my_rapist = DefDatabase<ThoughtDef>.GetNamed("HateMyRapist");
public static readonly ThoughtDef kinda_like_my_rapist = DefDatabase<ThoughtDef>.GetNamed("KindaLikeMyRapist");
public static readonly ThoughtDef allowed_me_to_get_raped = DefDatabase<ThoughtDef>.GetNamed("AllowedMeToGetRaped");
public static readonly ThoughtDef stole_some_lovin = DefDatabase<ThoughtDef>.GetNamed("StoleSomeLovin");
public static readonly ThoughtDef bloodlust_stole_some_lovin = DefDatabase<ThoughtDef>.GetNamed("BloodlustStoleSomeLovin");
public static readonly ThoughtDef violated_corpse = DefDatabase<ThoughtDef>.GetNamed("ViolatedCorpse");
public static readonly ThoughtDef gave_virginity = DefDatabase<ThoughtDef>.GetNamed("FortunateGaveVirginity");
public static readonly ThoughtDef lost_virginity = DefDatabase<ThoughtDef>.GetNamed("UnfortunateLostVirginity");
public static readonly ThoughtDef VanillaGotSomeLovin = DefDatabase<ThoughtDef>.GetNamed("GotSomeLovin");
public static readonly ThoughtDef took_virginity = DefDatabase<ThoughtDef>.GetNamed("TookVirginity");
public static readonly JobDef fappin = DefDatabase<JobDef>.GetNamed("Fappin");
public static readonly JobDef quickfap = DefDatabase<JobDef>.GetNamed("QuickFap");
public static readonly JobDef gettin_loved = DefDatabase<JobDef>.GetNamed("GettinLoved");
public static readonly JobDef casual_sex = DefDatabase<JobDef>.GetNamed("JoinInBed");
public static readonly JobDef gettin_raped = DefDatabase<JobDef>.GetNamed("GettinRaped");
public static readonly JobDef gettin_bred = DefDatabase<JobDef>.GetNamed("GettinBred");
public static readonly JobDef comfort_prisoner_rapin = DefDatabase<JobDef>.GetNamed("ComfortPrisonerRapin");
public static readonly JobDef RapeEnemy = DefDatabase<JobDef>.GetNamed("RapeEnemy");
public static readonly JobDef violate_corpse = DefDatabase<JobDef>.GetNamed("ViolateCorpse");
public static readonly JobDef bestiality = DefDatabase<JobDef>.GetNamed("Bestiality");
public static readonly JobDef bestialityForFemale = DefDatabase<JobDef>.GetNamed("BestialityForFemale");
public static readonly JobDef random_rape = DefDatabase<JobDef>.GetNamed("RandomRape");
public static readonly JobDef whore_inviting_visitors = DefDatabase<JobDef>.GetNamed("WhoreInvitingVisitors");
public static readonly JobDef whore_is_serving_visitors = DefDatabase<JobDef>.GetNamed("WhoreIsServingVisitors");
public static readonly JobDef struggle_in_BondageGear = DefDatabase<JobDef>.GetNamed("StruggleInBondageGear");
public static readonly JobDef unlock_BondageGear = DefDatabase<JobDef>.GetNamed("UnlockBondageGear");
public static readonly JobDef give_BondageGear = DefDatabase<JobDef>.GetNamed("GiveBondageGear");
public static readonly JobDef animalBreed = DefDatabase<JobDef>.GetNamed("Breed");
public static readonly ThingDef mote_noheart = ThingDef.Named("Mote_NoHeart");
public static readonly StatDef sex_stat = StatDef.Named("SexAbility");
public static readonly StatDef vulnerability_stat = StatDef.Named("Vulnerability");
public static readonly StatDef sex_drive_stat = StatDef.Named("SexFrequency");
public static readonly RecordDef GetRapedAsComfortPrisoner = DefDatabase<RecordDef>.GetNamed("GetRapedAsComfortPrisoner");
public static readonly RecordDef CountOfFappin = DefDatabase<RecordDef>.GetNamed("CountOfFappin");
public static readonly RecordDef CountOfWhore = DefDatabase<RecordDef>.GetNamed("CountOfWhore");
public static readonly RecordDef EarnedMoneyByWhore = DefDatabase<RecordDef>.GetNamed("EarnedMoneyByWhore");
public static readonly RecordDef CountOfSex = DefDatabase<RecordDef>.GetNamed("CountOfSex");
public static readonly RecordDef CountOfSexWithHumanlikes = DefDatabase<RecordDef>.GetNamed("CountOfSexWithHumanlikes");
public static readonly RecordDef CountOfSexWithAnimals = DefDatabase<RecordDef>.GetNamed("CountOfSexWithAnimals");
public static readonly RecordDef CountOfSexWithInsects = DefDatabase<RecordDef>.GetNamed("CountOfSexWithInsects");
public static readonly RecordDef CountOfSexWithOthers = DefDatabase<RecordDef>.GetNamed("CountOfSexWithOthers");
public static readonly RecordDef CountOfSexWithCorpse = DefDatabase<RecordDef>.GetNamed("CountOfSexWithCorpse");
public static readonly RecordDef CountOfRapedHumanlikes = DefDatabase<RecordDef>.GetNamed("CountOfRapedHumanlikes");
public static readonly RecordDef CountOfBeenRapedByHumanlikes = DefDatabase<RecordDef>.GetNamed("CountOfBeenRapedByHumanlikes");
public static readonly RecordDef CountOfRapedAnimals = DefDatabase<RecordDef>.GetNamed("CountOfRapedAnimals");
public static readonly RecordDef CountOfBeenRapedByAnimals = DefDatabase<RecordDef>.GetNamed("CountOfBeenRapedByAnimals");
public static readonly RecordDef CountOfRapedInsects = DefDatabase<RecordDef>.GetNamed("CountOfRapedInsects");
public static readonly RecordDef CountOfBeenRapedByInsects = DefDatabase<RecordDef>.GetNamed("CountOfBeenRapedByInsects");
public static readonly RecordDef CountOfRapedOthers = DefDatabase<RecordDef>.GetNamed("CountOfRapedOthers");
public static readonly RecordDef CountOfBeenRapedByOthers = DefDatabase<RecordDef>.GetNamed("CountOfBeenRapedByOthers");
public static readonly RecordDef CountOfBirthHuman = DefDatabase<RecordDef>.GetNamed("CountOfBirthHuman");
public static readonly RecordDef CountOfBirthAnimal = DefDatabase<RecordDef>.GetNamed("CountOfBirthAnimal");
public static readonly RecordDef CountOfBirthEgg = DefDatabase<RecordDef>.GetNamed("CountOfBirthEgg");
public enum rjwSextype { None, Vaginal, Anal, Oral, Masturbation, DoublePenetration, Boobjob, Handjob, Footjob, Fingering, Scissoring, MutualMasturbation, Fisting, MechImplant }
private static readonly SimpleCurve attractiveness_from_age_male = new SimpleCurve
{
new CurvePoint(0f, 0.0f),
new CurvePoint(4f, 0.1f),
new CurvePoint(5f, 0.2f),
new CurvePoint(15f, 0.8f),
new CurvePoint(20f, 1.0f),
new CurvePoint(32f, 1.0f),
new CurvePoint(40f, 0.9f),
new CurvePoint(45f, 0.77f),
new CurvePoint(50f, 0.7f),
new CurvePoint(55f, 0.5f),
new CurvePoint(75f, 0.1f),
new CurvePoint(100f, 0f)
};
//These were way too low and could be increased further. Anything under 0.7f pretty much stops sex from happening.
private static readonly SimpleCurve attractiveness_from_age_female = new SimpleCurve
{
new CurvePoint(0f, 0.0f),
new CurvePoint(4f, 0.1f),
new CurvePoint(5f, 0.2f),
new CurvePoint(14f, 0.8f),
new CurvePoint(28f, 1.0f),
new CurvePoint(30f, 1.0f),
new CurvePoint(45f, 0.7f),
new CurvePoint(55f, 0.3f),
new CurvePoint(75f, 0.1f),
new CurvePoint(100f, 0f)
};
private static readonly SimpleCurve fuckability_per_reserved = new SimpleCurve
{
new CurvePoint(0f, 1.0f),
new CurvePoint(0.3f, 0.4f),
new CurvePoint(1f, 0.2f)
};
public static void bootstrap(Map m)
{
if (m.GetComponent<MapCom_Injector>() == null)
m.components.Add(new MapCom_Injector(m));
}
//<Summary>Simple method that quickly checks for match from a list.</Summary>
public static bool ContainsAny(this string haystack, params string[] needles) { return needles.Any(haystack.Contains); }
public static bool has_traits(Pawn pawn)
{
return pawn?.story?.traits != null;
}
public static bool has_quirk(Pawn pawn, string quirk)
{
return pawn != null && is_human(pawn) && CompRJW.Comp(pawn).quirks.ToString().Contains(quirk);
}
[SyncMethod]
public static string random_pick_a_trait(this Pawn pawn)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
return has_traits(pawn) ? pawn.story.traits.allTraits.RandomElement().def.defName : null;
}
public static bool is_psychopath(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(TraitDefOf.Psychopath);
}
public static bool is_ascetic(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(TraitDefOf.Ascetic);
}
public static bool is_bloodlust(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(TraitDefOf.Bloodlust);
}
public static bool is_brawler(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(TraitDefOf.Brawler);
}
public static bool is_kind(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(TraitDefOf.Kind);
}
public static bool is_rapist(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(rapist);
}
public static bool is_necrophiliac(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(necrophiliac);
}
public static bool is_zoophile(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(zoophile);
}
public static bool is_masochist(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(TraitDef.Named("Masochist"));
}
public static bool is_nympho(Pawn pawn)
{
return has_traits(pawn) && pawn.story.traits.HasTrait(nymphomaniac);
}
public static bool is_slime(Pawn pawn)
{
string racename = pawn.kindDef.race.defName.ToLower();
//if (Prefs.DevMode) Log.Message("[RJW] is_slime " + xxx.get_pawnname(pawn) + " " + racename.Contains("slime"));
return racename.Contains("slime");
}
public static bool is_demon(Pawn pawn)
{
string racename = pawn.kindDef.race.defName.ToLower();
//if (Prefs.DevMode) Log.Message("[RJW] is_demon " + xxx.get_pawnname(pawn) + " " + racename.Contains("demon"));
return racename.Contains("demon");
}
public static bool is_asexual(Pawn pawn) => CompRJW.Comp(pawn).orientation == Orientation.Asexual;
public static bool is_bisexual(Pawn pawn) => CompRJW.Comp(pawn).orientation == Orientation.Bisexual;
public static bool is_homosexual(Pawn pawn) => (CompRJW.Comp(pawn).orientation == Orientation.Homosexual || CompRJW.Comp(pawn).orientation == Orientation.MostlyHomosexual);
public static bool is_heterosexual(Pawn pawn) => (CompRJW.Comp(pawn).orientation == Orientation.Heterosexual || CompRJW.Comp(pawn).orientation == Orientation.MostlyHeterosexual);
public static bool is_pansexual(Pawn pawn) => CompRJW.Comp(pawn).orientation == Orientation.Pansexual;
public static bool is_slave(Pawn pawn)
{
if (SimpleSlaveryIsActive)
return pawn?.health.hediffSet.HasHediff(HediffDef.Named("Enslaved")) ?? false;
else
return false;
}
// A quick check on whether the pawn has the two traits
// It's used in determine the eligibility of CP raping for the non-futa women
// Before using it, you should make sure the pawn has traits.
public static bool is_nympho_or_rapist_or_zoophile(Pawn pawn)
{
if (!has_traits(pawn)) { return false; }
return (is_rapist(pawn) || is_nympho(pawn) || is_zoophile(pawn));
}
//Humanoid Alien Framework traits
public static bool is_xenophile(Pawn pawn)
{
if (!has_traits(pawn) || !AlienFrameworkIsActive) { return false; }
return pawn.story.traits.DegreeOfTrait(xenophobia) == -1;
}
public static bool is_xenophobe(Pawn pawn)
{
if (!has_traits(pawn) || !AlienFrameworkIsActive) { return false; }
return pawn.story.traits.DegreeOfTrait(xenophobia) == 1;
}
public static bool is_whore(Pawn pawn)
{
if (!has_traits(pawn)) { return false; }
return pawn != null && pawn.IsDesignatedService() && (!RomanceDiversifiedIsActive || !pawn.story.traits.HasTrait(asexual));
//return (pawn != null && pawn.ownership != null && pawn.ownership.OwnedBed is Building_WhoreBed && (!xxx.RomanceDiversifiedIsActive || !pawn.story.traits.HasTrait(xxx.asexual)));
}
public static bool is_lecher(Pawn pawn)
{
if (!has_traits(pawn)) { return false; }
return RomanceDiversifiedIsActive && pawn.story.traits.HasTrait(philanderer) || PsychologyIsActive && pawn.story.traits.HasTrait(lecher);
}
public static bool is_prude(Pawn pawn)
{
if (!has_traits(pawn)) { return false; }
return RomanceDiversifiedIsActive && pawn.story.traits.HasTrait(faithful) || PsychologyIsActive && pawn.story.traits.HasTrait(prude);
}
public static bool is_animal(Pawn pawn)
{
//return !pawn.RaceProps.Humanlike;
//Edited by nizhuan-jjr:to make Misc.Robots not allowed to have sex. This change makes those robots not counted as animals.
//return (pawn.RaceProps.Animal || (pawn.RaceProps.intelligence == Intelligence.Animal));
return pawn?.RaceProps?.Animal ?? false;
}
public static bool is_insect(Pawn pawn)
{
//Added by Hoge: Insects are also animal. you need check is_insect before is_animal.
//return pawn.RaceProps.FleshType.defName == "Insectoid";
//Added by Ed86: its better? isnt it?
if (pawn == null) return false;
bool isit = pawn.RaceProps.FleshType == FleshTypeDefOf.Insectoid
//genetic rim
|| pawn.RaceProps.FleshType.defName.Contains("GR_Insectoid");
//Log.Message("is_insect " + get_pawnname(pawn) + " - " + isit);
return isit;
}
public static bool is_mechanoid(Pawn pawn)
{
//Added by nizhuan-jjr:to make Misc.Robots not allowed to have sex. Note:Misc.MAI is not a mechanoid.
if (pawn == null) return false;
if (AndroidsCompatibility.IsAndroid(pawn)) return false;
bool isit = pawn.RaceProps.IsMechanoid
|| pawn.RaceProps.FleshType == FleshTypeDefOf.Mechanoid
//genetic rim
|| pawn.RaceProps.FleshType.defName.Contains("GR_Mechanoid")
//android tiers
|| pawn.RaceProps.FleshType.defName.Contains("MechanisedInfantry")
|| pawn.RaceProps.FleshType.defName.Contains("Android");
//Log.Message("is_mechanoid " + get_pawnname(pawn) + " - " + isit);
return isit;
}
public static bool is_tooluser(Pawn pawn)
{
return pawn.RaceProps.ToolUser;
}
public static bool is_human(Pawn pawn)
{
if (pawn == null) return false;
return pawn.RaceProps.Humanlike;//||pawn.kindDef.race == ThingDefOf.Human
}
public static bool is_female(Pawn pawn)
{
return pawn.gender == Gender.Female;
}
public static bool is_male(Pawn pawn)
{
return pawn.gender == Gender.Male;
}
public static bool is_healthy(Pawn pawn)
{
return !pawn.Dead &&
pawn.health.capacities.CanBeAwake &&
pawn.health.hediffSet.BleedRateTotal <= 0.0f &&
pawn.health.hediffSet.PainTotal < config.significant_pain_threshold;
}
public static bool is_healthy_enough(Pawn pawn)
{
return !pawn.Dead &&
pawn.health.capacities.CanBeAwake &&
pawn.health.hediffSet.BleedRateTotal <= 0.1f;
}
//pawn can initiate action or respond - whoring, etc
public static bool IsTargetPawnOkay(Pawn pawn)
{
return xxx.is_healthy(pawn) && !pawn.Downed && !pawn.Suspended;
}
public static bool is_not_dying(Pawn pawn)
{
return !pawn.Dead &&
pawn.health.hediffSet.BleedRateTotal <= 0.3f;
}
public static bool is_starved(Pawn pawn)
{
return pawn?.needs?.food != null &&
pawn.needs.food.Starving;
}
public static float bleedingRate(Pawn pawn)
{
return pawn?.health?.hediffSet?.BleedRateTotal ?? 0f;
}
public static bool is_Virgin(Pawn pawn)
{
//if (RJWSettings.DevMode) Log.Message("[RJW]xxx::is_Virgin check:" +get_pawnname(pawn));
if (pawn.relations != null)
if (pawn.relations.ChildrenCount > 0)
{
//if (RJWSettings.DevMode) Log.Message("[RJW]xxx::is_Virgin " + " ChildrenCount " + pawn.relations.ChildrenCount);
return false;
}
if (!(
pawn.records.GetValue(GetRapedAsComfortPrisoner) == 0 &&
pawn.records.GetValue(CountOfSex) == 0 &&
pawn.records.GetValue(CountOfSexWithHumanlikes) == 0 &&
pawn.records.GetValue(CountOfSexWithAnimals) == 0 &&
pawn.records.GetValue(CountOfSexWithInsects) == 0 &&
pawn.records.GetValue(CountOfSexWithOthers) == 0 &&
pawn.records.GetValue(CountOfSexWithCorpse) == 0 &&
pawn.records.GetValue(CountOfWhore) == 0 &&
pawn.records.GetValue(CountOfRapedHumanlikes) == 0 &&
pawn.records.GetValue(CountOfBeenRapedByHumanlikes) == 0 &&
pawn.records.GetValue(CountOfRapedAnimals) == 0 &&
pawn.records.GetValue(CountOfBeenRapedByAnimals) == 0 &&
pawn.records.GetValue(CountOfRapedInsects) == 0 &&
pawn.records.GetValue(CountOfBeenRapedByInsects) == 0 &&
pawn.records.GetValue(CountOfRapedOthers) == 0 &&
pawn.records.GetValue(CountOfBeenRapedByOthers) == 0 &&
pawn.records.GetAsInt(xxx.CountOfBirthHuman) == 0 &&
pawn.records.GetAsInt(xxx.CountOfBirthAnimal) == 0 &&
pawn.records.GetAsInt(xxx.CountOfBirthEgg) == 0
))
{
//if (RJWSettings.DevMode) Log.Message("[RJW]xxx::is_Virgin " + "records check fail");
return false;
}
return true;
}
public static string get_pawnname(Pawn who)
{
//Log.Message("[RJW]xxx::get_pawnname is "+ who.KindLabelDefinite());
//Log.Message("[RJW]xxx::get_pawnname is "+ who.KindLabelIndefinite());
if (who == null) return "null";
string name = who.Label;
if (name != null)
{
if (who.Name?.ToStringShort != null)
name = who.Name.ToStringShort;
}
else
name = "noname";
return name;
}
public static bool is_gettin_rapeNow(Pawn pawn)
{
if (pawn?.jobs?.curDriver != null)
{
return pawn.jobs.curDriver.GetType() == typeof(JobDriver_GettinRaped);
}
return false;
}
public static bool can_path_to_target(Pawn pawn, IntVec3 Position)
{
//probably less taxing, but ignores walls
if (RJWSettings.maxDistancetowalk < 100)
return pawn.Position.DistanceToSquared(Position) < RJWSettings.maxDistancetowalk;
//probably more taxing, using real path
bool canit = true;
PawnPath pawnPath = pawn.Map.pathFinder.FindPath(pawn.Position, Position, pawn, PathEndMode.OnCell);
if (pawnPath.TotalCost > RJWSettings.maxDistancetowalk)
canit = false;// too far
pawnPath.Dispose();
return canit;
}
public static void reduce_rest(Pawn pawn, int x = 1)
{
if (has_quirk(pawn, "Vigorous")) x -= 1;
Need_Rest need_rest = pawn.needs.TryGetNeed<Need_Rest>();
if (need_rest == null)
return;
need_rest.CurLevel -= need_rest.RestFallPerTick * x;
}
public static float need_some_sex(Pawn pawn)
{
// 3=> always horny for non humanlikes
float horniness_degree = 3f;
Need_Sex need_sex = pawn.needs.TryGetNeed<Need_Sex>();
if (need_sex == null) return horniness_degree;
if (need_sex.CurLevel < need_sex.thresh_frustrated()) horniness_degree = 3f;
else if (need_sex.CurLevel < need_sex.thresh_horny()) horniness_degree = 2f;
else if (need_sex.CurLevel < need_sex.thresh_satisfied()) horniness_degree = 1f;
else horniness_degree = 0f;
return horniness_degree;
}
public static bool is_frustrated(Pawn pawn)
{
Need_Sex need_sex = pawn.needs.TryGetNeed<Need_Sex>();
if (need_sex == null) return false;
return need_sex.CurLevel < need_sex.thresh_frustrated();
}
public static bool is_horny(Pawn pawn)
{
Need_Sex need_sex = pawn.needs.TryGetNeed<Need_Sex>();
if (need_sex == null) return false;
return need_sex.CurLevel < need_sex.thresh_horny();
}
/// <summary> Checks to see if the pawn has any partners who don't have a Polyamorous/Polygamous trait; aka someone who'd get mad about sleeping around. </summary>
/// <returns> True if the pawn has at least one romantic partner who does not have a poly trait. False if no partners or all partners are poly. </returns>
public static bool HasNonPolyPartnerOnCurrentMap(Pawn pawn)
{
// If they don't have a partner at all we can bail right away.
if (!LovePartnerRelationUtility.HasAnyLovePartner(pawn))
return false;
// They have a partner and a mod that adds a poly trait, so check each partner to see if they're poly.
foreach (DirectPawnRelation relation in pawn.relations.DirectRelations)
{
if (relation.def != PawnRelationDefOf.Lover &&
relation.def != PawnRelationDefOf.Fiance &&
relation.def != PawnRelationDefOf.Spouse)
{
continue;
}
// Dead partners don't count. And stasis'd partners will never find out!
if (relation.otherPawn.Dead || relation.otherPawn.Suspended)
continue;
// Neither does anyone on another map because cheating away from home is obviously never ever discovered
if (pawn.Map == null || relation.otherPawn.Map == null || relation.otherPawn.Map != pawn.Map)
continue;
if ((RomanceDiversifiedIsActive && relation.otherPawn.story.traits.HasTrait(polyamorous)) ||
(PsychologyIsActive && relation.otherPawn.story.traits.HasTrait(polygamous)))
{
// We have a partner who has the poly trait! But they could have multiple partners so keep checking.
continue;
}
// We found a partner who doesn't have a poly trait.
return true;
}
// If we got here then we checked every partner and all of them had a poly trait, so they don't have a non-poly partner.
return false;
}
public static Gender opposite_gender(Gender g)
{
switch (g)
{
case Gender.Male:
return Gender.Female;
case Gender.Female:
return Gender.Male;
default:
return Gender.None;
}
}
public static float get_sex_ability(Pawn pawn)
{
try
{
return pawn.GetStatValue(sex_stat, false);
}
catch (NullReferenceException)
//not seeded with stats, error for non humanlikes/corpses
//this and below should probably be rewriten to do calculations here
{
//Log.Warning(e.ToString());
return 1f;
}
}
public static float get_vulnerability(Pawn pawn)
{
try
{
return pawn.GetStatValue(vulnerability_stat, false);
}
catch (NullReferenceException)
//not seeded with stats, error for non humanlikes/corpses
{
//Log.Warning(e.ToString());
return 1f;
}
}
public static float get_sex_drive(Pawn pawn)
{
try
{
return pawn.GetStatValue(sex_drive_stat, false);
}
catch (NullReferenceException)
//not seeded with stats, error for non humanlikes/corpses
{
//Log.Warning(e.ToString());
return 1f;
}
}
public static bool isSingleOrPartnerNotHere(Pawn pawn)
{
return LovePartnerRelationUtility.ExistingLovePartner(pawn) == null || LovePartnerRelationUtility.ExistingLovePartner(pawn).Map != pawn.Map;
}
//do loving ??
//oral not included
public static bool can_do_loving(Pawn pawn)
{
if (is_mechanoid(pawn))
return false;
if (is_human(pawn))
{
int age = pawn.ageTracker.AgeBiologicalYears;
if (age < RJWSettings.sex_minimum_age)
return false;
return get_sex_ability(pawn) > 0.0f;
}
if (is_animal(pawn))
{
if (!(RJWSettings.bestiality_enabled || RJWSettings.animal_on_animal_enabled))
return false;
//CurLifeStageIndex for insects since they are not reproductive
return (pawn.ageTracker.CurLifeStageIndex >= 2 || pawn.ageTracker.CurLifeStage.reproductive);
}
return false;
}
// Penetrative organ check.
public static bool can_fuck(Pawn pawn)
{
//this may cause problems with human mechanoids, like misc. bots or other custom race mechanoids
if (is_mechanoid(pawn))
return true;
if (!Genital_Helper.has_penis(pawn) && !Genital_Helper.has_penis_infertile(pawn) && !Genital_Helper.has_ovipositorF(pawn)) return false;
if (is_human(pawn))
{
int age = pawn.ageTracker.AgeBiologicalYears;
if (age < RJWSettings.sex_minimum_age)
return false;
return !Genital_Helper.genitals_blocked(pawn);
}
if (is_animal(pawn))
{
if (!(RJWSettings.bestiality_enabled || RJWSettings.animal_on_animal_enabled))
return false;
//CurLifeStageIndex for insects since they are not reproductive
return (pawn.ageTracker.CurLifeStageIndex >= 2 || pawn.ageTracker.CurLifeStage.reproductive);
}
return false;
}
// Orifice check.
public static bool can_be_fucked(Pawn pawn)
{
if (is_mechanoid(pawn))
return false;
if (!Genital_Helper.has_vagina(pawn) && !Genital_Helper.has_anus(pawn)) return false;
if (is_human(pawn))
{
int age = pawn.ageTracker.AgeBiologicalYears;
if (age < RJWSettings.sex_minimum_age)
return false;
return (Genital_Helper.has_vagina(pawn) && !Genital_Helper.genitals_blocked(pawn))
|| (Genital_Helper.has_anus(pawn) && !Genital_Helper.anus_blocked(pawn));
}
if (is_animal(pawn))
{
if (!(RJWSettings.bestiality_enabled || RJWSettings.animal_on_animal_enabled))
return false;
//CurLifeStageIndex for insects since they are not reproductive
return (pawn.ageTracker.CurLifeStageIndex >= 2 || pawn.ageTracker.CurLifeStage.reproductive);
}
return false;
}
public static bool can_rape(Pawn pawn)
{
if (!RJWSettings.rape_enabled) return false;
if (is_mechanoid(pawn))
return true;
if (is_human(pawn))
{
int age = pawn.ageTracker.AgeBiologicalYears;
if (age < RJWSettings.sex_minimum_age)
return false;
if (RJWSettings.WildMode)
return true;
bool has_penis = Genital_Helper.has_penis(pawn) || Genital_Helper.has_penis_infertile(pawn) || Genital_Helper.has_ovipositorF(pawn);
return need_some_sex(pawn) > 0
&& !Genital_Helper.genitals_blocked(pawn)
&& (!is_female(pawn) ? has_penis :
has_penis || get_vulnerability(pawn) <= RJWSettings.nonFutaWomenRaping_MaxVulnerability);
}
if (is_animal(pawn))
{
if (!(RJWSettings.bestiality_enabled || RJWSettings.animal_on_animal_enabled))
return false;
//CurLifeStageIndex for insects since they are not reproductive
return (pawn.ageTracker.CurLifeStageIndex >= 2 || pawn.ageTracker.CurLifeStage.reproductive);
}
return false;
}
public static bool can_get_raped(Pawn pawn)
{
// Pawns can still get raped even if their genitals are destroyed/removed.
// Animals can always be raped regardless of age
if (is_human(pawn))
{
int age = pawn.ageTracker.AgeBiologicalYears;
if (age < RJWSettings.sex_minimum_age)
return false;
return get_sex_ability(pawn) > 0.0f
&& !Genital_Helper.genitals_blocked(pawn)
&& (!(RJWSettings.rapee_MinVulnerability_human < 0) && get_vulnerability(pawn) >= RJWSettings.rapee_MinVulnerability_human);
}
if (is_animal(pawn))
{
if (!(RJWSettings.bestiality_enabled || RJWSettings.animal_on_animal_enabled))
return false;
//CurLifeStageIndex for insects since they are not reproductive
return (pawn.ageTracker.CurLifeStageIndex >= 2 || pawn.ageTracker.CurLifeStage.reproductive);
}
return false;
}
/// <summary>
/// Returns boolean, no more messing around with floats.
/// Just a simple 'Would rape? True/false'.
/// </summary>
[SyncMethod]
public static bool would_rape(Pawn rapist, Pawn rapee)
{
float rape_factor = 0.3f; // start at 30%
float vulnerabilityFucker = get_vulnerability(rapist); //0 to 3
float vulnerabilityPartner = get_vulnerability(rapee); //0 to 3
// More inclined to rape someone from another faction.
if (rapist.HostileTo(rapee) || rapist.Faction != rapee.Faction)
rape_factor += 0.25f;
// More inclined to rape if the target is designated as CP.
if (rapee.IsDesignatedComfort())
rape_factor += 0.25f;
// More inclined to rape when horny.
Need_Sex horniness = rapist.needs.TryGetNeed<Need_Sex>();
if (!is_animal(rapist) && horniness?.CurLevel <= horniness?.thresh_horny())
{
rape_factor += 0.25f;
}
if (is_animal(rapist))
{
if (vulnerabilityFucker < vulnerabilityPartner)
rape_factor -= 0.1f;
else
rape_factor += 0.25f;
}
else if (is_animal(rapee))
{
if (is_zoophile(rapist))
rape_factor += 0.5f;
else
rape_factor -= 0.2f;
}
else
{
rape_factor *= 0.5f + Mathf.InverseLerp(vulnerabilityFucker, 3f, vulnerabilityPartner);
}
if (rapist.health.hediffSet.HasHediff(HediffDef.Named("AlcoholHigh")))
rape_factor *= 1.25f; //too drunk to care
// Increase factor from traits.
if (is_rapist(rapist))
rape_factor *= 1.5f;
if (is_nympho(rapist))
rape_factor *= 1.25f;
if (is_bloodlust(rapist))
rape_factor *= 1.2f;
if (is_psychopath(rapist))
rape_factor *= 1.2f;
if (is_masochist(rapee))
rape_factor *= 1.2f;
// Lower factor from traits.
if (is_masochist(rapist))
rape_factor *= 0.8f;
if (rapist.needs.joy != null && rapist.needs.joy.CurLevel < 0.1f) // The rapist is really bored...
rape_factor *= 1.2f;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (rapist.relations == null || is_animal(rapist)) return Rand.Chance(rape_factor);
int opinion = rapist.relations.OpinionOf(rapee);
// Won't rape friends, unless rapist or psychopath.
if (is_kind(rapist))
{ //<-80: 1f /-40: 0.5f / 0+: 0f
rape_factor *= 1f - Mathf.Pow(GenMath.InverseLerp(-80, 0, opinion), 2);
}
else if (is_rapist(rapist) || is_psychopath(rapist))
{ //<40: 1f /80: 0.5f / 120+: 0f
rape_factor *= 1f - Mathf.Pow(GenMath.InverseLerp(40, 120, opinion), 2); // This can never be 0, since opinion caps at 100.
}
else
{ //<-60: 1f /-20: 0.5f / 40+: 0f
rape_factor *= 1f - Mathf.Pow(GenMath.InverseLerp(-60, 40, opinion), 2);
}
//Log.Message("rjw::xxx rape_factor for " + get_pawnname(rapee) + " is " + rape_factor);
return Rand.Chance(rape_factor);
}
public static float would_fuck(Pawn fucker, Corpse fucked, bool invert_opinion = false, bool ignore_bleeding = false, bool ignore_gender = false)
{
CompRottable comp = fucked.GetComp<CompRottable>();
//--Log.Message("rotFactor:" + rotFactor);
// Things that don't rot, such as mechanoids and weird mod-added stuff such as Rimworld of Magic's elementals.
if (comp == null)
{
// Trying to necro the weird mod-added stuff causes an error, so skipping those for now.
return 0.0f;
}
float maxRot = ((CompProperties_Rottable)comp.props).TicksToDessicated;
float rotFactor = (maxRot - comp.RotProgress) / maxRot;
//--Log.Message("rotFactor:" + rotFactor);
return would_fuck(fucker, fucked.InnerPawn, invert_opinion, ignore_bleeding, ignore_gender) * rotFactor;
}
public static float would_fuck_animal(Pawn pawn, Pawn target, bool invert_opinion = false, bool ignore_bleeding = false, bool ignore_gender = false)
{
float wildness_modifier = 1.0f;
List<float> size_preference = new List<float>() { pawn.BodySize * 0.75f, pawn.BodySize * 1.6f };
float fuc = xxx.would_fuck(pawn, target, invert_opinion, ignore_bleeding, ignore_gender); // 0.0 to ~3.0, orientation checks etc.
if (fuc < 0.1f)
{ // Would not fuck
return 0;
}
if (xxx.has_quirk(pawn, "Teratophile"))
{ // Teratophiles prefer more 'monstrous' partners.
size_preference[0] = pawn.BodySize * 0.8f;
size_preference[1] = pawn.BodySize * 2.0f;
wildness_modifier = 0.3f;
}
if (pawn.health.hediffSet.HasHediff(HediffDef.Named("AlcoholHigh")))
{
wildness_modifier = 0.5f; //Drunk and making poor judgments.
size_preference[1] *= 1.5f;
}
else if (pawn.health.hediffSet.HasHediff(HediffDef.Named("YayoHigh")))
{
wildness_modifier = 0.2f; //This won't end well.
size_preference[1] *= 2.5f;
}
if (!Genital_Helper.has_penis(pawn) && (Genital_Helper.has_vagina(pawn) || Genital_Helper.has_anus(pawn)))
{
size_preference[1] = pawn.BodySize * 1.3f;
}
if (xxx.is_animal(pawn))
{
size_preference[1] = pawn.BodySize * 1.3f;
wildness_modifier = 0.4f;
}
else
{
if (pawn.story.traits.HasTrait(TraitDefOf.Tough) || pawn.story.traits.HasTrait(TraitDefOf.Brawler))
{
size_preference[1] += 0.2f;
wildness_modifier -= 0.2f;
}
else if (pawn.story.traits.HasTrait(TraitDef.Named("Wimp")))
{
size_preference[0] -= 0.2f;
size_preference[1] -= 0.2f;
wildness_modifier += 0.25f;
}
}
float wildness = target.RaceProps.wildness; // 0.0 to 1.0
float petness = target.RaceProps.petness; // 0.0 to 1.0
float distance = pawn.Position.DistanceToSquared(target.Position);
//Log.Message("[RJW]would_fuck_animal:: base: " + fuc + ", wildness: " + wildness + ", petness: " + petness + ", distance: " + distance);
fuc = fuc + fuc * petness - fuc * wildness * wildness_modifier;
if (fuc < 0.1f)
{ // Would not fuck
return 0;
}
// Adjust by distance, nearby targets preferred.
fuc *= 1.0f - Mathf.Max(distance / 10000, 0.1f);
// Adjust by size difference.
if (target.BodySize < size_preference[0])
{
fuc *= Mathf.Lerp(0.1f, size_preference[0], target.BodySize);
}
else if (target.BodySize > size_preference[1])
{
fuc *= Mathf.Lerp(size_preference[1] * 10, size_preference[1], target.BodySize);
}
if (target.Faction != pawn.Faction)
{
//Log.Message("[RJW]would_fuck_animal(NT):: base: " + fuc + ", bound1: " + fuc * 0.75f);
//Log.Message("[RJW]would_fuck_animal(NT):: base: " + fuc + ", bound2: " + fuc + 0.25f);
fuc *= 0.75f; // Less likely to target wild animals.
}
else if (pawn.relations.DirectRelationExists(PawnRelationDefOf.Bond, target))
{
//Log.Message("[RJW]would_fuck_animal(T):: base: " + fuc + ", bound1: " + fuc * 1.25f);
//Log.Message("[RJW]would_fuck_animal(T):: base: " + fuc + ", bound2: " + fuc + 0.25f);
fuc *= 1.25f; // Bonded animals preferred.
}
return fuc;
}
// Returns how fuckable 'fucker' thinks 'p' is on a scale from 0.0 to 1.0
public static float would_fuck(Pawn fucker, Pawn fucked, bool invert_opinion = false, bool ignore_bleeding = false, bool ignore_gender = false)
{
//--Log.Message("[RJW]would_fuck("+xxx.get_pawnname(fucker)+","+xxx.get_pawnname(fucked)+","+invert_opinion.ToString()+") is called");
if (!is_healthy_enough(fucker) && !is_psychopath(fucker)) // Not healthy enough to have sex, shouldn't have got this far.
return 0f;
if ((is_animal(fucker) || is_animal(fucked)) && (!is_animal(fucker) || !is_animal(fucked)) && !RJWSettings.bestiality_enabled)
return 0f; // Animals disabled.
if (fucked.Dead && !RJWSettings.necrophilia_enabled)
return 0f; // Necrophilia disabled.
if (fucker.Dead || fucker.Suspended || fucked.Suspended)
return 0f; // Target unreachable. Shouldn't have got this far, but doesn't hurt to double-check.
if (is_starved(fucked) && fucked.Faction == fucker.Faction && !is_psychopath(fucker) && !is_rapist(fucker))
return 0f;
if (!ignore_bleeding && !is_not_dying(fucked) && !is_psychopath(fucker) && !is_rapist(fucker) && !is_bloodlust(fucker))
return 0f; // Most people wouldn't fuck someone who's dying.
if (fucker.gender == Gender.Male)
switch (RJWPreferenceSettings.Malesex)
{
case RJWPreferenceSettings.AllowedSex.All:
break;
case RJWPreferenceSettings.AllowedSex.Homo:
if (fucked.gender != Gender.Male)
return 0f;
break;
case RJWPreferenceSettings.AllowedSex.Nohomo:
if (fucked.gender == Gender.Male)
return 0f;
break;
}
if (fucker.gender == Gender.Female)
switch (RJWPreferenceSettings.FeMalesex)
{
case RJWPreferenceSettings.AllowedSex.All:
break;
case RJWPreferenceSettings.AllowedSex.Homo:
if (fucked.gender != Gender.Female)
return 0f;
break;
case RJWPreferenceSettings.AllowedSex.Nohomo:
if (fucked.gender == Gender.Female)
return 0f;
break;
}
int fucker_age = fucker.ageTracker.AgeBiologicalYears;
string fucker_quirks = CompRJW.Comp(fucker).quirks.ToString();
int p_age = fucked.ageTracker.AgeBiologicalYears;
// --- Age checks ---
bool age_ok;
{
if (is_animal(fucker) && p_age >= RJWSettings.sex_minimum_age)
{
age_ok = true;
}
else if (is_animal(fucked) && fucker_age >= RJWSettings.sex_minimum_age)
{
// don't check the age of animals when they are the victim
age_ok = true;
}
else if (fucker_age >= RJWSettings.sex_free_for_all_age && p_age >= RJWSettings.sex_free_for_all_age)
{
age_ok = true;
}
else if (fucker_age < RJWSettings.sex_minimum_age || p_age < RJWSettings.sex_minimum_age)
{
age_ok = false;
}
else
{
age_ok = Math.Abs(fucker.ageTracker.AgeBiologicalYearsFloat - fucked.ageTracker.AgeBiologicalYearsFloat) < 2.05f;
}
}
// Age not acceptable, automatic fail.
//Log.Message("would_fuck() - age_ok = " + age_ok.ToString());
if (!age_ok) return 0.0f;
float age_factor;
//The human age curve needs work. Currently pawns refuse to have sex with anyone over age of ~50 no matter what the other factors are, which is just silly...
age_factor = fucked.gender == Gender.Male ? attractiveness_from_age_male.Evaluate(SexUtility.ScaleToHumanAge(fucked)) : attractiveness_from_age_female.Evaluate(SexUtility.ScaleToHumanAge(fucked));
//--Log.Message("would_fuck() - age_factor = " + age_factor.ToString());
if (is_animal(fucker))
{
age_factor = 1.0f; //using flat factors, since human age is not comparable to animal ages
}
else if (is_animal(fucked))
{
if (p_age <= 1 && fucked.RaceProps.lifeExpectancy > 8)
age_factor = 0.5f;
else
age_factor = 1.0f;
//--Log.Message("would_fuck() - animal age_factor = " + age_factor.ToString());
}
if (fucker_quirks.Contains("Gerontophile"))
{
age_factor = SexUtility.ScaleToHumanAge(fucked) > 55 ? 1.0f : 0.4f;
}
// --- Orientation checks ---
float orientation_factor; //0 or 1
{
orientation_factor = 1.0f;
if (!ignore_gender && !is_animal(fucker))
{
if (is_asexual(fucker))
return 0.0f;
if (!CompRJW.CheckPreference(fucker, fucked))
{
//Log.Message("would_fuck() - preference fail");
return 0.0f;
}
}
}
//Log.Message("would_fuck() - orientation_factor = " + orientation_factor.ToString());
// --- Body and appearance checks ---
float body_factor; //0.4 to 1.6
{
if (fucker.health.hediffSet.HasHediff(HediffDef.Named("AlcoholHigh")))
{
if (!is_zoophile(fucker) && is_animal(fucked))
body_factor = 0.8f;
else
body_factor = 1.25f; //beer lens
}
else if (is_zoophile(fucker) && !is_animal(fucked))
{
body_factor = 0.7f;
}
else if (!is_zoophile(fucker) && is_animal(fucked))
{
body_factor = 0.45f;
}
else if (fucked.story != null)
{
if (fucked.story.bodyType == BodyTypeDefOf.Female) body_factor = 1.25f;
else if (fucked.story.bodyType == BodyTypeDefOf.Fat) body_factor = fucker_quirks.Contains("Teratophile") ? 1.2f : 1.0f;
else body_factor = 1.1f;
if (fucked.story.traits.HasTrait(TraitDefOf.CreepyBreathing))
body_factor *= fucker_quirks.Contains("Teratophile") ? 1.1f : 0.9f;
if (fucked.story.traits.HasTrait(TraitDefOf.Beauty))
{
switch (fucked.story.traits.DegreeOfTrait(TraitDefOf.Beauty))
{
case 2: // Beautiful
body_factor *= fucker_quirks.Contains("Teratophile") ? 0.4f : 1.25f;
break;
case 1: // Pretty
body_factor *= fucker_quirks.Contains("Teratophile") ? 0.6f : 1.1f;
break;
case -1: // Ugly
body_factor *= fucker_quirks.Contains("Teratophile") ? 1.1f : 0.8f;
break;
case -2: // Staggeringly Ugly
body_factor *= fucker_quirks.Contains("Teratophile") ? 1.25f : 0.5f;
break;
}
}
if (RelationsUtility.IsDisfigured(fucked))
{
body_factor *= fucker_quirks.Contains("Teratophile") ? 1.25f : 0.8f;
}
// Nude target is more tempting.
if (fucked.apparel.PsychologicallyNude && fucker.CanSee(fucked) && !fucker_quirks.Contains("Endytophile"))
body_factor *= 1.1f;
}
else
{
body_factor = 1.1f;
}
if (!fucked.Awake() && fucker_quirks.Contains("Somnophile"))
body_factor *= 1.25f;
if (fucker_quirks.Contains("Pregnancy fetish"))
{
if (fucked.health.hediffSet.HasHediff(HediffDefOf.Pregnant, true))
body_factor *= 1.25f;
else
body_factor *= 0.9f;
}
if (fucker_quirks.Contains("Impregnation fetish"))
{
if (PregnancyHelper.CanImpregnate(fucker, fucked))
body_factor *= 1.25f;
else
body_factor *= 0.9f;
}
if (AlienFrameworkIsActive && !is_animal(fucker))
{
if (is_xenophile(fucker))
{
if (fucker.def.defName == fucked.def.defName)
body_factor *= 0.5f; // Same species, xenophile less interested.
}
else if (is_xenophobe(fucker))
{
if (fucker.def.defName != fucked.def.defName)
body_factor *= 0.25f; // Different species, xenophobe less interested.
}
}
if (fucked.Dead && !is_necrophiliac(fucker))
{
body_factor *= 0.5f;
}
}
//Log.Message("would_fuck() - body_factor = " + body_factor.ToString());
// --- Opinion checks ---
float opinion_factor;
{
if (fucked.relations != null && fucker.relations != null && !is_animal(fucker) && !is_animal(fucked))
{
float opi = !invert_opinion ? fucker.relations.OpinionOf(fucked) : 100 - fucker.relations.OpinionOf(fucked); // -100 to 100
opinion_factor = 0.8f + (opi + 100.0f) * (.45f / 200.0f); // 0.8 to 1.25
}
else if ((is_animal(fucker) || is_animal(fucked)) && fucker.relations.DirectRelationExists(PawnRelationDefOf.Bond, fucked))
{
opinion_factor = 1.3f;
}
else
{
opinion_factor = 1.0f;
}
// More likely to take advantege of CP.
if (fucked.IsDesignatedComfort() || (fucked.IsDesignatedBreeding() && is_animal(fucker)))
opinion_factor += 0.25f;
else if (fucked.IsDesignatedService())
opinion_factor += 0.1f;
// Less picky if designated for whorin'.
if (fucker.IsDesignatedService())
opinion_factor += 0.1f;
if (has_quirk(fucker, "Sapiosexual") && has_traits(fucked))
{
if (fucked.story.traits.HasTrait(TraitDefOf.TooSmart)
|| (CTIsActive && fucked.story.traits.HasTrait(TraitDef.Named("RCT_Savant")))
|| (IndividualityIsActive && fucked.story.traits.HasTrait(TraitDef.Named("SYR_Scientist"))))
opinion_factor *= 1.3f;
else if (fucked.story.traits.HasTrait(TraitDef.Named("FastLearner"))
|| (CTIsActive && fucked.story.traits.HasTrait(TraitDef.Named("RCT_Inventor")))
|| fucked.story.traits.HasTrait(TraitDefOf.GreatMemory))
opinion_factor *= 1.2f;
else if (fucked.story.traits.HasTrait(TraitDefOf.Transhumanist))
opinion_factor *= 1.1f;
if (fucked.story.WorkTagIsDisabled(WorkTags.Intellectual)
|| (CTIsActive && fucked.story.traits.HasTrait(TraitDef.Named("RCT_Dunce"))))
opinion_factor *= 0.7f;
}
}
//Log.Message("would_fuck() - opinion_factor = " + opinion_factor.ToString());
float horniness_factor; // 1 to 1.6
{
float need_sex = need_some_sex(fucker);
switch (need_sex)
{
case 3:
horniness_factor = 1.6f;
break;
case 2:
horniness_factor = 1.3f;
break;
case 1:
horniness_factor = 1.1f;
break;
default:
horniness_factor = 1f;
break;
}
}
//Log.Message("would_fuck() - horniness_factor = " + horniness_factor.ToString());
float reservedPercentage = (fucked.Dead ? 1f : fucked.ReservedCount()) / max_rapists_per_prisoner;
//Log.Message("would_fuck() reservedPercentage:" + reservedPercentage + "fuckability_per_reserved"+ fuckability_per_reserved.Evaluate(reservedPercentage));
//Log.Message("would_fuck() - horniness_factor = " + horniness_factor.ToString());
float prenymph_att = Mathf.InverseLerp(0f, 2.8f, base_attraction * orientation_factor * horniness_factor * age_factor * body_factor * opinion_factor);
float final_att = !is_nympho(fucker) ? prenymph_att : 0.2f + 0.8f * prenymph_att;
//Log.Message("would_fuck( " + xxx.get_pawnname(fucker) + ", " + xxx.get_pawnname(fucked) + " ) - prenymph_att = " + prenymph_att.ToString() + ", final_att = " + final_att.ToString());
return Mathf.Min(final_att, fuckability_per_reserved.Evaluate(reservedPercentage));
}
private static int ReservedCount(this Thing pawn)
{
int ret = 0;
if (pawn == null) return 0;
try
{
ReservationManager reserver = pawn.Map.reservationManager;
IList reservations = (IList)AccessTools.Field(typeof(ReservationManager), "reservations").GetValue(reserver);
if (reservations.Count == 0) return 0;
Type reserveType = reservations[0].GetType();
ret += (from object t in reservations
where t != null
let target = (LocalTargetInfo) AccessTools.Field(reserveType, "target").GetValue(t)
let claimant = (Pawn) AccessTools.Field(reserveType, "claimant").GetValue(t)
where target != null
where target.Thing != null
where target.Thing.ThingID == pawn.ThingID
select (int) AccessTools.Field(reserveType, "stackCount").GetValue(t)).Count();
}
catch (Exception e)
{
Log.Warning(e.ToString());
}
return ret;
}
//Takes the nutrition away from the one penetrating and injects it to the one on the receiving end
//As with everything in the mod, this could be greatly extended, current focus though is to prevent starvation of those caught in a huge horde of rappers (that may happen with some mods)
public static void TransferNutrition(Pawn pawn, Pawn partner, rjwSextype sextype)
{
//Log.Message("xxx::TransferNutrition:: " + xxx.get_pawnname(pawn) + " => " + xxx.get_pawnname(partner));
if (partner?.needs == null)
{
//Log.Message("xxx::TransferNutrition() failed due to lack of transfer equipment or pawn ");
return;
}
if (sextype == xxx.rjwSextype.Oral && Genital_Helper.has_penis(pawn))
{
Need_Food need = pawn.needs.TryGetNeed<Need_Food>();
if (need == null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(pawn) + " doesn't track nutrition in itself, probably shouldn't feed the others");
return;
}
float nutrition_amount = Math.Min(need.MaxLevel / 15f, need.CurLevel); //body size is taken into account implicitly by need.MaxLevel
pawn.needs.food.CurLevel = need.CurLevel - nutrition_amount;
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(pawn) + " sent " + nutrition_amount + " of nutrition");
if (partner?.needs?.TryGetNeed<Need_Food>() != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " can receive");
partner.needs.food.CurLevel += nutrition_amount;
}
if (xxx.DubsBadHygieneIsActive)
{
Need DBHThirst = partner.needs.AllNeeds.Find(x => x.def == DefDatabase<NeedDef>.GetNamed("DBHThirst"));
if (DBHThirst != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " decreasing thirst");
partner.needs.TryGetNeed(DBHThirst.def).CurLevel += 0.1f;
}
}
}
if (xxx.RoMIsActive && (sextype == xxx.rjwSextype.Oral || sextype == xxx.rjwSextype.Vaginal || sextype == xxx.rjwSextype.Anal || sextype == xxx.rjwSextype.DoublePenetration))
{
if (has_traits(partner))
if ((partner.story.traits.HasTrait(TraitDef.Named("Succubus")) || partner.story.traits.HasTrait(TraitDef.Named("Warlock"))))
{
Need TM_Mana = partner.needs.AllNeeds.Find(x => x.def == DefDatabase<NeedDef>.GetNamed("TM_Mana"));
if (TM_Mana != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " increase mana");
partner.needs.TryGetNeed(TM_Mana.def).CurLevel += 0.1f;
}
Need_Rest need = pawn.needs.TryGetNeed<Need_Rest>();
if (need != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " increase rest");
partner.needs.TryGetNeed(need.def).CurLevel += 0.25f;
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(pawn) + " decrease rest");
pawn.needs.TryGetNeed(need.def).CurLevel -= 0.25f;
}
}
if (has_traits(pawn))
if ((pawn.story.traits.HasTrait(TraitDef.Named("Succubus")) || pawn.story.traits.HasTrait(TraitDef.Named("Warlock"))))
{
Need TM_Mana = pawn.needs.AllNeeds.Find(x => x.def == DefDatabase<NeedDef>.GetNamed("TM_Mana"));
if (TM_Mana != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(pawn) + " increase mana");
pawn.needs.TryGetNeed(TM_Mana.def).CurLevel += 0.1f;
}
Need_Rest need = pawn.needs.TryGetNeed<Need_Rest>();
if (need != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(pawn) + " increase rest");
pawn.needs.TryGetNeed(need.def).CurLevel += 0.25f;
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " decrease rest");
partner.needs.TryGetNeed(need.def).CurLevel -= 0.25f;
}
}
}
}
public static bool bed_has_at_least_two_occupants(Building_Bed bed)
{
return bed.CurOccupants.Count() >= 2;
}
public static bool in_same_bed(Pawn pawn, Pawn partner)
{
if (pawn.InBed() && partner.InBed())
{
if (pawn.CurrentBed() == partner.CurrentBed())
return true;
}
return false;
}
public static bool is_laying_down_alone(Pawn pawn)
{
if (pawn == null || !pawn.InBed()) return false;
if (pawn.CurrentBed() != null)
return !bed_has_at_least_two_occupants(pawn.CurrentBed());
return true;
}
// Overrides the current clothing. Defaults to nude, with option to keep headgear on.
public static void DrawNude(Pawn pawn, bool keep_hat_on = false)
{
if (!is_human(pawn)) return;
if (RJWPreferenceSettings.sex_wear == RJWPreferenceSettings.Clothing.Clothed) return;
pawn.Drawer.renderer.graphics.ClearCache();
pawn.Drawer.renderer.graphics.apparelGraphics.Clear();
if (RJWPreferenceSettings.sex_wear == RJWPreferenceSettings.Clothing.Headgear || keep_hat_on)
{
foreach (Apparel current in pawn.apparel.WornApparel.Where(x => x.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.UpperHead) || x.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.FullHead)))
{
ApparelGraphicRecord item;
if (ApparelGraphicRecordGetter.TryGetGraphicApparel(current, pawn.story.bodyType, out item))
{
pawn.Drawer.renderer.graphics.apparelGraphics.Add(item);
}
}
}
pawn.Draw();
}
public static void sexTick(Pawn pawn, Pawn partner, bool enablerotation = true, bool pawnnude = true, bool partnernude = true)
{
if (enablerotation)
{
pawn.rotationTracker.Face(partner.DrawPos);
partner.rotationTracker.Face(pawn.DrawPos);
}
if (RJWSettings.sounds_enabled)
{
SoundDef.Named("Sex").PlayOneShot(new TargetInfo(pawn.Position, pawn.Map));
}
pawn.Drawer.Notify_MeleeAttackOn(partner);
if (enablerotation)
pawn.rotationTracker.FaceCell(partner.Position);
// Endytophiles prefer clothed sex, everyone else gets nude.
if (pawnnude && !has_quirk(pawn, "Endytophile"))
{
DrawNude(pawn);
}
if (partnernude && !has_quirk(pawn, "Endytophile"))
{
DrawNude(partner);
}
}
//violent - mark true when pawn rape partner
//Note: violent is not reliable, since either pawn could be the rapist. Check jobdrivers instead, they're still active since this is called before ending the job.
public static void think_about_sex(Pawn pawn, Pawn partner, bool isReceiving, bool violent = false, rjwSextype sextype = rjwSextype.None, bool isCoreLovin = false, bool whoring = false)
{
// Partner should never be null, but just in case something gets changed elsewhere..
if (partner == null)
{
Log.Message("xxx::think-after_sex( ERROR: " + get_pawnname(pawn) + " has no partner. This should not be called from solo acts. Sextype: " + sextype);
return;
}
// Both pawns are now checked individually, instead of giving thoughts to the partner.
//Can just return if the currently checked pawn is dead or can't have thoughts, which simplifies the checks.
if (pawn.Dead || !is_human(pawn))
return;
//--Log.Message("xxx::think_about_sex( " + xxx.get_pawnname(pawn) + ", " + xxx.get_pawnname(partner) + ", " + violent + " ) called");
//--Log.Message("xxx::think_about_sex( " + xxx.get_pawnname(pawn) + ", " + xxx.get_pawnname(partner) + ", " + violent + " ) - setting pawn thoughts");
//unconscious pawns has no thoughts
//and if they has sex, its probably rape, since they have no choice
// pawn.Awake();
if (!pawn.health.capacities.CanBeAwake)
{
ThoughtDef pawn_thought = is_masochist(pawn) || BadlyBroken(pawn) ? masochist_got_raped : got_raped_unconscious;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
return;
}
// Thoughts for animal-on-colonist.
if (is_animal(partner) && isReceiving)
{
if (!is_zoophile(pawn) && !violent)
{
if (sextype == rjwSextype.Oral)
pawn.needs.mood.thoughts.memories.TryGainMemory(allowed_animal_to_lick);
else if (sextype == rjwSextype.Anal || sextype == rjwSextype.Vaginal)
pawn.needs.mood.thoughts.memories.TryGainMemory(allowed_animal_to_breed);
else //Other rarely seen sex types, such as fingering (by primates, monster girls, etc)
pawn.needs.mood.thoughts.memories.TryGainMemory(allowed_animal_to_grope);
}
else
{
if (!is_zoophile(pawn))
{
if (sextype == rjwSextype.Oral)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(is_masochist(pawn) ? masochist_got_licked : got_licked);
}
else if (sextype == rjwSextype.Anal || sextype == rjwSextype.Vaginal)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(is_masochist(pawn) ? masochist_got_bred : got_bred);
}
else //Other types
{
pawn.needs.mood.thoughts.memories.TryGainMemory(is_masochist(pawn) ? masochist_got_groped : got_groped);
}
}
else
{
if (sextype == rjwSextype.Oral)
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_licked);
else if (sextype == rjwSextype.Anal || sextype == rjwSextype.Vaginal)
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_bred);
else //Other types
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_groped);
}
}
if (!partner.Dead && is_zoophile(pawn) && pawn.CurJob.def != gettin_raped && partner.Faction == null && pawn.Faction == Faction.OfPlayer)
{
InteractionDef intDef = !partner.AnimalOrWildMan() ? InteractionDefOf.RecruitAttempt : InteractionDefOf.TameAttempt;
pawn.interactions.TryInteractWith(partner, intDef);
}
}
// Edited by nizhuan-jjr:The two types of stole_sone_lovin are violent due to the description, so I make sure the thought would only trigger after violent behaviors.
// Edited by hoge: !is_animal is include mech. mech has no mood.
// Edited by Zaltys: Since this is checked for both pawns, checking violent doesn't work.
if (partner.Dead || partner.CurJob.def == gettin_raped)
{ // Rapist
ThoughtDef pawn_thought = is_rapist(pawn) || is_bloodlust(pawn) ? bloodlust_stole_some_lovin : stole_some_lovin;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
if ((is_necrophiliac(pawn) || is_psychopath(pawn)) && partner.Dead)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(violated_corpse);
}
}
else if (pawn.CurJob.def == gettin_raped) // Rape by animals handled earlier.
{ // Raped
if (is_human(partner))
{
ThoughtDef pawn_thought = is_masochist(pawn) || BadlyBroken(pawn) ? masochist_got_raped : got_raped;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
ThoughtDef pawn_thought_about_rapist = is_masochist(pawn) || BadlyBroken(pawn) ? kinda_like_my_rapist : hate_my_rapist;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought_about_rapist, partner);
}
if (pawn.Faction != null && pawn.Map != null && !is_masochist(pawn) && !(is_animal(partner) && is_zoophile(pawn)))
{
foreach (Pawn bystander in pawn.Map.mapPawns.SpawnedPawnsInFaction(pawn.Faction).Where(x => !is_animal(x) && x != pawn && x != partner && !x.Downed && !x.Suspended))
{
// dont see through walls, dont see whole map, only 15 cells around
if (pawn.CanSee(bystander) && pawn.Position.DistanceToSquared(bystander.Position) < 15)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(allowed_me_to_get_raped, bystander);
}
}
}
}
else if (is_human(partner))
{
if (!isCoreLovin && !whoring)
{
// human partner and not part of rape or necrophilia. add the vanilla GotSomeLovin thought
pawn.needs.mood.thoughts.memories.TryGainMemory(VanillaGotSomeLovin, partner);
}
}
//--Log.Message("xxx::think_about_sex( " + xxx.get_pawnname(pawn) + ", " + xxx.get_pawnname(partner) + ", " + violent + " ) - setting disease thoughts");
ThinkAboutDiseases(pawn, partner);
}
private static void ThinkAboutDiseases(Pawn pawn, Pawn partner)
{
// Dead and non-humans have no diseases (yet).
if (partner.Dead || !is_human(partner)) return;
// check for visible diseases
// Add negative relation for visible diseases on the genitals
int pawn_rash_severity = std.genital_rash_severity(pawn) - std.genital_rash_severity(partner);
ThoughtDef pawn_thought_about_rash;
if (pawn_rash_severity == 1) pawn_thought_about_rash = saw_rash_1;
else if (pawn_rash_severity == 2) pawn_thought_about_rash = saw_rash_2;
else if (pawn_rash_severity >= 3) pawn_thought_about_rash = saw_rash_3;
else return;
Thought_Memory memory = (Thought_Memory)ThoughtMaker.MakeThought(pawn_thought_about_rash);
pawn.needs.mood.thoughts.memories.TryGainMemory(memory, partner);
}
// <summary>Updates records for whoring.</summary>
public static void UpdateRecords(Pawn pawn, int price)
{
pawn.records.AddTo(EarnedMoneyByWhore, price);
pawn.records.Increment(CountOfWhore);
//this is added by normal outcome
//pawn.records.Increment(CountOfSex);
}
// <summary>Updates records. "Pawn" should be initiator, and "partner" should be the target.</summary>
public static void UpdateRecords(Pawn pawn, Pawn partner, rjwSextype sextype, bool isRape = false, bool isLoveSex = false)
{
if (!pawn.Dead)
UpdateRecordsInternal(pawn, partner, isRape, isLoveSex, true, sextype);
if (partner == null || partner.Dead)
return;
UpdateRecordsInternal(partner, pawn, isRape, isLoveSex, false, sextype);
}
private static void UpdateRecordsInternal(Pawn pawn, Pawn partner, bool isRape, bool isLoveSex, bool pawnIsRaper, rjwSextype sextype)
{
if (pawn == null) return;
if (pawn.health.Dead) return;
if (sextype == rjwSextype.Masturbation)
{
pawn.records.Increment(CountOfFappin);
return;
}
bool isVirginSex = is_Virgin(pawn); //need copy value before count increase.
ThoughtDef currentThought = null;
pawn.records.Increment(CountOfSex);
if (!isRape)
{
if (is_human(partner))
{
pawn.records.Increment(partner.health.Dead ? CountOfSexWithCorpse : CountOfSexWithHumanlikes);
currentThought = isLoveSex ? gave_virginity : null;
}
else if (is_insect(partner))
{
pawn.records.Increment(CountOfSexWithInsects);
}
else if (is_animal(partner))
{
pawn.records.Increment(CountOfSexWithAnimals);
currentThought = is_zoophile(pawn) ? gave_virginity : null;
}
else
{
pawn.records.Increment(CountOfSexWithOthers);
}
}
else
{
if (!pawnIsRaper)
{
currentThought = is_masochist(pawn) ? gave_virginity : lost_virginity;
}
if (is_human(partner))
{
pawn.records.Increment(pawnIsRaper ? partner.health.Dead ? CountOfSexWithCorpse : CountOfRapedHumanlikes : CountOfBeenRapedByHumanlikes);
if (pawnIsRaper && (is_rapist(pawn) || is_bloodlust(pawn)))
currentThought = gave_virginity;
}
else if (is_insect(partner))
{
pawn.records.Increment(CountOfSexWithInsects);
pawn.records.Increment(pawnIsRaper ? CountOfRapedInsects : CountOfBeenRapedByInsects);
}
else if (is_animal(partner))
{
pawn.records.Increment(CountOfSexWithAnimals);
pawn.records.Increment(pawnIsRaper ? CountOfRapedAnimals : CountOfBeenRapedByAnimals);
if (is_zoophile(pawn)) currentThought = gave_virginity;
}
else
{
pawn.records.Increment(CountOfSexWithOthers);
pawn.records.Increment(pawnIsRaper ? CountOfRapedOthers : CountOfBeenRapedByOthers);
}
}
//TODO: someday only loose virginity only during vaginal sex
//if (isVirginSex) //&& (sextype == rjwSextype.Vaginal || sextype == rjwSextype.DoublePenetration))
//{
// Log.Message(xxx.get_pawnname(pawn) + " | " + xxx.get_pawnname(partner) + " | " + currentThought);
// Log.Message("1");
// if (!is_animal(partner))//passive
// {
// if (currentThought != null)
// partner.needs.mood.thoughts.memories.TryGainMemory(currentThought);
// }
// Log.Message("2");
// if (!is_animal(pawn))//active
// {
// currentThought = took_virginity;
// pawn.needs.mood.thoughts.memories.TryGainMemory(currentThought);
// }
//}
}
//============↓======Section of processing the whoring system===============↓=============
public static Building_Bed FindBed(Pawn pawn)
{
if (pawn.ownership.OwnedBed != null && pawn.ownership.OwnedBed.MaxAssignedPawnsCount > 0)
{
return pawn.ownership.OwnedBed;
}
return null;
}
public static bool CanUse(Pawn pawn, Building_Bed bed)
{
bool flag = pawn.CanReserveAndReach(bed, PathEndMode.InteractionCell, Danger.Unspecified) && !bed.IsForbidden(pawn) && bed.AssignedPawns.Contains(pawn);
return flag;
}
public static void FailOnWhorebedNoLongerUsable(this Toil toil, TargetIndex bedIndex, Building_Bed bed)
{
if (toil == null)
{
throw new ArgumentNullException(nameof(toil));
}
toil.FailOnDespawnedOrNull(bedIndex);
toil.FailOn(bed.IsBurning);
toil.FailOn(() => HealthAIUtility.ShouldSeekMedicalRestUrgent(toil.actor));
toil.FailOn(() => toil.actor.IsColonist && !toil.actor.CurJob.ignoreForbidden && !toil.actor.Downed && bed.IsForbidden(toil.actor));
}
public static IntVec3 SleepPosOfAssignedPawn(this Building_Bed bed, Pawn pawn)
{
if (!bed.AssignedPawns.Contains(pawn))
{
Log.Error("[RJW]xxx::SleepPosOfAssignedPawn - pawn is not an owner of the bed;returning bed.position");
return bed.Position;
}
int slotIndex = 0;
for (byte i = 0; i < bed.owners.Count; i++)
{
if (bed.owners[i] == pawn)
{
slotIndex = i;
}
}
return bed.GetSleepingSlotPos(slotIndex);
}
//============↓======Section of processing the broken body system===============↓=============
public static bool BodyIsBroken(Pawn pawn)
{
return pawn.health.hediffSet.HasHediff(feelingBroken);
}
public static bool BadlyBroken(Pawn pawn)
{
if (!BodyIsBroken(pawn))
return false;
int stage = pawn.health.hediffSet.GetFirstHediffOfDef(feelingBroken).CurStageIndex;
if (stage >= 3)
{
//when broken make character masochist
//todo remove/replace social/needs dubuffs
if (!is_masochist(pawn))
{
if (!is_rapist(pawn))
{
pawn.story.traits.GainTrait(new Trait(masochist));
//Log.Message(xxx.get_pawnname(pawn) + " BadlyBroken, not masochist, adding masochist trait");
}
else
{
pawn.story.traits.allTraits.Remove(new Trait(rapist));
pawn.story.traits.GainTrait(new Trait(masochist));
//Log.Message(xxx.get_pawnname(pawn) + " BadlyBroken, switch rapist -> masochist");
}
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(got_raped);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(got_licked);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(hate_my_rapist);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(allowed_me_to_get_raped);
}
if (pawn.IsPrisonerOfColony)
{
//Log.Message(xxx.get_pawnname(pawn) + " BadlyBroken, reduce prisoner resistance");
pawn.guest.resistance = Mathf.Max(pawn.guest.resistance - 1f, 0f);
}
}
return stage > 1;
}
//add variant for eggs?
public static void processBrokenPawn(Pawn pawn)
{
// Called after rape/breed
if (pawn is null)
return;
if (is_human(pawn) && !pawn.Dead && pawn.records != null)
{
BodyPartRecord torso = pawn.RaceProps.body.AllParts.Find(bpr => String.Equals(bpr.def.defName, "Torso"));
if (torso is null)
return;
if (xxx.RoMIsActive)
if (has_traits(pawn))
if (pawn.story.traits.HasTrait(TraitDef.Named("Succubus")))
return;
pawn.health.AddHediff(feelingBroken, torso);
BadlyBroken(pawn);
}
}
public static void ExtraSatisfyForBrokenPawn(Pawn pawn)
{
if (!BodyIsBroken(pawn) || pawn.needs?.joy is null)
return;
float pawn_satisfaction = 0.2f;
//Log.Message("Current stage " + pawn.health.hediffSet.GetFirstHediffOfDef(feelingBroken).CurStageIndex);
switch (pawn.health.hediffSet.GetFirstHediffOfDef(feelingBroken).CurStageIndex)
{
case 0:
break;
case 1:
pawn.needs.TryGetNeed<Need_Sex>().CurLevel += pawn_satisfaction;
pawn.needs.joy.CurLevel += pawn_satisfaction * 0.50f; // convert half of satisfaction to joy
break;
case 2:
pawn_satisfaction *= 2f;
pawn.needs.TryGetNeed<Need_Sex>().CurLevel += pawn_satisfaction;
pawn.needs.joy.CurLevel += pawn_satisfaction * 0.50f; // convert half of satisfaction to joy
break;
}
}
//============↑======Section of processing the broken body system===============↑=============
}
}
|
Mewtopian/rjw
|
Source/Common/xxx.cs
|
C#
|
mit
| 72,093 |
using Verse;
namespace rjw
{
[StaticConstructorOnStartup]
public static class AddComp
{
static AddComp()
{
AddRJWComp();
}
/// <summary>
/// This automatically adds the comp to all races on startup.
/// </summary>
public static void AddRJWComp()
{
foreach (ThingDef thingDef in DefDatabase<ThingDef>.AllDefs)
{
if (thingDef.race == null )
continue;
thingDef.comps.Add(new CompProperties_RJW());
//Log.Message("Adding def to race " + thingDef.label);
}
}
}
}
|
Mewtopian/rjw
|
Source/Comps/CompAdder.cs
|
C#
|
mit
| 511 |
using Verse;
namespace rjw
{
public class CompProperties_RJW : CompProperties
{
public CompProperties_RJW()
{
compClass = typeof(CompRJW);
}
}
}
|
Mewtopian/rjw
|
Source/Comps/CompProperties_RJW.cs
|
C#
|
mit
| 157 |
using Psychology;
using SyrTraits;
using System.Text;
using Verse;
using RimWorld;
using Multiplayer.API;
namespace rjw
{
public enum Orientation
{
None,
Asexual,
Pansexual,
Heterosexual,
MostlyHeterosexual,
LeaningHeterosexual,
Bisexual,
LeaningHomosexual,
MostlyHomosexual,
Homosexual
}
public class CompRJW : ThingComp
{
/// <summary>
/// Core comp for genitalia and sexuality tracking.
/// </summary>
public CompRJW()
{
orientation = Orientation.None;
quirks = new StringBuilder();
}
public CompProperties_RJW Props => (CompProperties_RJW)props;
public Orientation orientation;
public StringBuilder quirks;
public string quirksave; // Not the most elegant way to do this, but it minimizes the save bloat.
public int NextHookupTick;
// This automatically checks that genitalia has been added to all freshly spawned pawns.
public override void PostSpawnSetup(bool respawningAfterLoad)
{
base.PostSpawnSetup(respawningAfterLoad);
if (!(parent is Pawn pawn))
return;
if (pawn.kindDef.race.defName.Contains("AIRobot") // No genitalia/sexuality for roombas.
|| pawn.kindDef.race.defName.Contains("AIPawn") // ...nor MAI.
|| pawn.kindDef.race.defName.Contains("RPP_Bot")
) return;
// No genitalia
//if (!pawn.RaceProps.body.AllParts.Exists(x => x.def == DefDatabase<BodyPartDef>.GetNamed("Genitals")))
// return;
if (Comp(pawn).orientation == Orientation.None)
{
Sexualize(pawn);
Sexualize(pawn, true);
}
//Log.Message("PostSpawnSetup for " + pawn?.Name);
}
public override void PostExposeData()
{
base.PostExposeData();
if (!(parent is Pawn))
return;
// Saves the data.
Scribe_Values.Look(ref orientation, "RJW_Orientation");
Scribe_Values.Look(ref quirksave, "RJW_Quirks");
Scribe_Values.Look(ref NextHookupTick, "RJW_NextHookupTick");
//Log.Message("PostExposeData for " + pawn?.Name);
// Restore quirk data from the truncated save version.
quirks = new StringBuilder(quirksave);
}
public static CompRJW Comp(Pawn pawn)
{
// Call CompRJW.Comp(pawn).<method> to check sexuality, etc.
return pawn.GetComp<CompRJW>();
}
// The main method for adding genitalia and orientation.
public void CopyPsychologySexuality(Pawn pawn)
{
try
{
int kinsey = pawn.TryGetComp<CompPsychology>().Sexuality.kinseyRating;
SetCompForKinsey(pawn, kinsey);
}
catch
{
Log.Warning("CopyPsychologySexuality " + pawn?.Name + ", def: " + pawn?.def?.defName + ", kindDef: " + pawn?.kindDef?.race.defName);
}
}
public void SetCompForKinsey(Pawn pawn, int kinsey)
{
Orientation originalOrientation = Comp(pawn).orientation;
if (kinsey == 0)
Comp(pawn).orientation = Orientation.Heterosexual;
else if (kinsey == 1)
Comp(pawn).orientation = Orientation.MostlyHeterosexual;
else if (kinsey == 2)
Comp(pawn).orientation = Orientation.LeaningHeterosexual;
else if (kinsey == 3)
Comp(pawn).orientation = Orientation.Bisexual;
else if (kinsey == 4)
Comp(pawn).orientation = Orientation.LeaningHomosexual;
else if (kinsey == 5)
Comp(pawn).orientation = Orientation.MostlyHomosexual;
else if (kinsey == 6)
Comp(pawn).orientation = Orientation.Homosexual;
/*else
Log.Error("RJW::ERRROR - unknown kinsey scale value: " + kinsey);/*
/*if (Comp(pawn).orientation != originalOrientation)
Log.Message("RJW + Psychology: Inherited pawn " + xxx.get_pawnname(pawn) + " sexuality from Psychology - " + Comp(pawn).orientation);*/
}
public void CopyIndividualitySexuality(Pawn pawn)
{
try
{
CompIndividuality.Sexuality individualitySexuality = pawn.TryGetComp<CompIndividuality>().sexuality;
Orientation originalOrientation = Comp(pawn).orientation;
if (individualitySexuality == CompIndividuality.Sexuality.Straight && Comp(pawn).orientation != Orientation.Heterosexual)
Comp(pawn).orientation = Orientation.Heterosexual;
else if (individualitySexuality == CompIndividuality.Sexuality.Bisexual && Comp(pawn).orientation != Orientation.Bisexual)
Comp(pawn).orientation = Orientation.Bisexual;
else if (individualitySexuality == CompIndividuality.Sexuality.Gay && Comp(pawn).orientation != Orientation.Homosexual)
Comp(pawn).orientation = Orientation.Homosexual;
/*if (Comp(pawn).orientation != originalOrientation)
Log.Message("RJW + [SYR]Individuality: Inherited pawn " + xxx.get_pawnname(pawn) + " sexuality from Individuality - " + Comp(pawn).orientation);*/
}
catch
{
Log.Warning("CopyIndividualitySexuality " + pawn?.Name + ", def: " + pawn?.def?.defName + ", kindDef: " + pawn?.kindDef?.race.defName);
}
}
[SyncMethod]
public void GenerateQuirks(Pawn pawn)
{
// No quirks for droids, at least not for now.
if (!AndroidsCompatibility.IsAndroid(pawn))
{
if (pawn.kindDef.race.defName.ToLower().Contains("droid") || xxx.is_mechanoid(pawn))
return;
}
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (Rand.Chance(0.025f))
quirks.AppendWithComma("Messy"); // Increased cum generation.
if (!AndroidsCompatibility.IsAndroid(pawn))
{
if (Rand.Chance(0.04f))
{
quirks.AppendWithComma("Fertile");
pawn.health.AddHediff(HediffDef.Named("IncreasedFertility"));
}
else if (Rand.Chance(0.06f))
{
quirks.AppendWithComma("Infertile");
pawn.health.AddHediff(HediffDef.Named("DecreasedFertility"));
}
}
if (Rand.Chance(0.03f) && (!xxx.has_traits(pawn) || pawn.story.traits.DegreeOfTrait(TraitDef.Named("Immunity")) != -1))
quirks.AppendWithComma("Vigorous");
if (Rand.Chance(0.0f))
{
if (pawn.gender == Gender.Female && xxx.is_insect(pawn))
quirks.AppendWithComma("Incubator");
//add checks to seed random stats with age/traits/quirks?
//pawn.records.AddTo(xxx.CountOfBirthEgg, Rand.Range(0, 1000));
//Log.Message("Gender for pawn " + xxx.get_pawnname(pawn) + " is " + pawn.gender);
}
if (Rand.Chance(0.0f))
{
if (pawn.gender == Gender.Female && xxx.is_animal(pawn) && !xxx.is_insect(pawn))
quirks.AppendWithComma("Breeder");
}
if (xxx.is_animal(pawn) || !xxx.has_traits(pawn) || Comp(pawn).orientation == Orientation.Asexual) return;
// Adjusts generation frequency by player's footjob setting.
if (Rand.Chance(0.05f * RJWPreferenceSettings.footjob))
quirks.AppendWithComma("Podophile"); // Foot fetish
if (Rand.Chance(0.02f))
quirks.AppendWithComma("Teratophile"); // Attraction to monsters/disfiguration
if (!pawn.story.traits.HasTrait(TraitDefOf.Nudist) && Rand.Chance(0.005f))
quirks.AppendWithComma("Endytophile"); // Clothed sex
if (Rand.Chance(0.055f))
quirks.AppendWithComma("Exhibitionist");
if (Rand.Chance(0.015f))
quirks.AppendWithComma("Gerontophile"); // Attraction to the elderly.
if (Rand.Chance(0.02f))
quirks.AppendWithComma("Somnophile"); // Sleep sex
if (Rand.Chance(0.06f) && !xxx.is_bloodlust(pawn))
quirks.AppendWithComma("Sapiosexual"); // Attraction to intelligence.
if (Rand.Chance(0.03f) && Comp(pawn).orientation != Orientation.Homosexual && Comp(pawn).orientation != Orientation.MostlyHomosexual)
quirks.AppendWithComma("Impregnation fetish");
if ((Genital_Helper.has_penis(pawn) && Rand.Chance(0.02f)) || Rand.Chance(0.003f))
quirks.AppendWithComma("Pregnancy fetish");
}
public static void RRTraitCheck(Pawn pawn)
{
try
{
if (pawn.story.traits.HasTrait(TraitDefOf.Gay))
Comp(pawn).orientation = Orientation.Homosexual;
else if (xxx.RomanceDiversifiedIsActive && pawn.story.traits.HasTrait(xxx.straight))
Comp(pawn).orientation = Orientation.Heterosexual;
else if (xxx.RomanceDiversifiedIsActive && pawn.story.traits.HasTrait(xxx.bisexual))
Comp(pawn).orientation = Orientation.Bisexual;
else if (xxx.RomanceDiversifiedIsActive && pawn.story.traits.HasTrait(xxx.asexual))
Comp(pawn).orientation = Orientation.Asexual;
}
catch
{
Log.Warning("RRTraitCheck " + pawn?.Name + ", def: " + pawn?.def?.defName + ", kindDef: " + pawn?.kindDef?.race.defName);
}
}
// The main method for adding genitalia and orientation.
public void Sexualize(Pawn pawn, bool reroll = false)
{
if (reroll)
{
Comp(pawn).orientation = Orientation.None;
if (xxx.has_quirk(pawn, "Fertile"))
{
Hediff fertility = pawn.health.hediffSet.GetFirstHediffOfDef(HediffDef.Named("IncreasedFertility"));
if (fertility != null )
pawn.health.RemoveHediff(fertility);
}
if (xxx.has_quirk(pawn, "Infertile"))
{
Hediff fertility = pawn.health.hediffSet.GetFirstHediffOfDef(HediffDef.Named("DecreasedFertility"));
if (fertility != null)
pawn.health.RemoveHediff(fertility);
}
quirks = new StringBuilder();
}
else if (Comp(pawn).orientation != Orientation.None)
return;
//roll random RJW orientation
Comp(pawn).orientation = xxx.is_animal(pawn) ? RollAnimalOrientation() : RollOrientation();
//Asexual nymp re-roll
if (xxx.is_nympho(pawn))
while (Comp(pawn).orientation == Orientation.Asexual)
{
Comp(pawn).orientation = RollOrientation();
}
//Log.Message("Sexualizing pawn " + pawn?.Name + ", def: " + pawn?.def?.defName);
if (!reroll)
Genital_Helper.sexualize_pawn(pawn);
//Log.Message("Orientation for pawn " + pawn?.Name + " is " + orientation);
if (xxx.has_traits(pawn) && Genital_Helper.has_genitals(pawn) && !(pawn.kindDef.race.defName.ToLower().Contains("droid") && !AndroidsCompatibility.IsAndroid(pawn)))
{
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.RationalRomance)
RRTraitCheck(pawn);
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.Psychology)
CopyPsychologySexuality(pawn);
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.SYRIndividuality)
CopyIndividualitySexuality(pawn);
}
else if ((pawn.kindDef.race.defName.ToLower().Contains("droid") && !AndroidsCompatibility.IsAndroid(pawn)) || !Genital_Helper.has_genitals(pawn))
{
// Droids with no genitalia are set as asexual.
// If player later adds genitalia to the droid, the droid 'sexuality' gets rerolled.
Comp(pawn).orientation = Orientation.Asexual;
}
GenerateQuirks(pawn);
if (quirks.Length == 0)
quirks.Append("None");
quirksave = quirks.ToString();
}
public static void CheckForMismatch(Pawn pawn)
{
if (pawn == null || !xxx.has_traits(pawn)) return;
if (pawn.story.traits.HasTrait(TraitDefOf.Gay) && Comp(pawn).orientation != Orientation.Homosexual
|| pawn.story.traits.HasTrait(xxx.straight) && Comp(pawn).orientation != Orientation.Heterosexual
|| pawn.story.traits.HasTrait(xxx.bisexual) && Comp(pawn).orientation != Orientation.Bisexual
|| pawn.story.traits.HasTrait(xxx.asexual) && Comp(pawn).orientation != Orientation.Asexual)
{
RRTraitCheck(pawn);
}
}
[SyncMethod]
public static bool CheckPreference(Pawn pawn, Pawn partner)
{
if (xxx.RomanceDiversifiedIsActive || (xxx.has_traits(pawn) && pawn.story.traits.HasTrait(TraitDefOf.Gay)))
CheckForMismatch(pawn);
//if (xxx.is_mechanoid(pawn))
// return false;
Orientation ori = Orientation.None;
try
{
ori = Comp(pawn).orientation;
}
catch
{
//Log.Message("[RJW]Error, pawn:" + pawn + " doesnt have orientation comp, modded race?");
return false;
}
if (ori == Orientation.Pansexual || ori == Orientation.Bisexual)
return true;
if (ori == Orientation.Asexual)
return false;
bool isHetero = (Genital_Helper.has_vagina(pawn) && (Genital_Helper.has_penis(partner) || Genital_Helper.has_penis_infertile(partner))) ||
(Genital_Helper.has_vagina(partner) && (Genital_Helper.has_penis(pawn) || Genital_Helper.has_penis_infertile(pawn)));
bool isHomo = (Genital_Helper.has_vagina(pawn) && Genital_Helper.has_vagina(partner)) ||
((Genital_Helper.has_penis(partner) || Genital_Helper.has_penis_infertile(partner)) && (Genital_Helper.has_penis(pawn) || Genital_Helper.has_penis_infertile(pawn)));
if (isHetero && isHomo)
{
// Oh you crazy futas. We could probably do a check against the pawn's gender, but eh. They've got so many parts available, they'll find something to do.
return true;
}
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
switch (ori)
{
case Orientation.Heterosexual:
return !isHomo;
case Orientation.MostlyHeterosexual:
return (!isHomo || Rand.Chance(0.2f));
case Orientation.LeaningHeterosexual:
return (!isHomo || Rand.Chance(0.6f));
case Orientation.LeaningHomosexual:
return (!isHetero || Rand.Chance(0.6f));
case Orientation.MostlyHomosexual:
return (!isHetero || Rand.Chance(0.2f));
case Orientation.Homosexual:
return !isHetero;
default:
Log.Error("RJW::ERROR - tried to check preference for undetermined sexuality.");
return false;
}
}
// Just an example for now. Not used anywhere yet.
[SyncMethod]
public Orientation RollOrientation()
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float random = Rand.Range(0f, 1f);
float checkpoint = RJWPreferenceSettings.asexual_ratio / RJWPreferenceSettings.GetTotal();
float checkpoint_pan = checkpoint + (RJWPreferenceSettings.pansexual_ratio / RJWPreferenceSettings.GetTotal());
float checkpoint_het = checkpoint_pan + (RJWPreferenceSettings.heterosexual_ratio / RJWPreferenceSettings.GetTotal());
float checkpoint_bi = checkpoint_het + (RJWPreferenceSettings.bisexual_ratio / RJWPreferenceSettings.GetTotal());
float checkpoint_gay = checkpoint_bi + (RJWPreferenceSettings.homosexual_ratio / RJWPreferenceSettings.GetTotal());
if (random < checkpoint)
return Orientation.Asexual;
else if (random < checkpoint_pan)
return Orientation.Pansexual;
else if (random < checkpoint_het)
return Orientation.Heterosexual;
else if (random < checkpoint_het + ((checkpoint_bi - checkpoint_het) * 0.33f))
return Orientation.MostlyHeterosexual;
else if (random < checkpoint_het + ((checkpoint_bi - checkpoint_het) * 0.66f))
return Orientation.LeaningHeterosexual;
else if (random < checkpoint_bi)
return Orientation.Bisexual;
else if (random < checkpoint_bi + ((checkpoint_gay - checkpoint_bi) * 0.33f))
return Orientation.LeaningHomosexual;
else if (random < checkpoint_bi + ((checkpoint_gay - checkpoint_bi) * 0.66f))
return Orientation.MostlyHomosexual;
else
return Orientation.Homosexual;
}
// Simpler system for animals, with most of them being heterosexual.
// Don't want to disturb player breeding projects by adding too many gay animals.
[SyncMethod]
public Orientation RollAnimalOrientation()
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float random = Rand.Range(0f, 1f);
if (random < 0.03f)
return Orientation.Asexual;
else if (random < 0.85f)
return Orientation.Heterosexual;
else if (random < 0.96f)
return Orientation.Bisexual;
else
return Orientation.Homosexual;
}
}
}
|
Mewtopian/rjw
|
Source/Comps/CompRJW.cs
|
C#
|
mit
| 15,373 |
using RimWorld;
using Verse;
namespace rjw
{
[DefOf]
public static class RJW_RecipeDefOf
{
public static RecipeDef AttachPenis;
public static RecipeDef InstallPenis;
public static RecipeDef RemovePenis;
}
}
|
Mewtopian/rjw
|
Source/DefOf/RJW_RecipeDefOf.cs
|
C#
|
mit
| 221 |
using Verse;
using RimWorld;
using Multiplayer.API;
namespace rjw
{
public static class PawnDesignations_Breedee
{
public static bool UpdateCanDesignateBreeding(this Pawn pawn)
{
//no permission to change designation for NON prisoner hero/ other player
if (!pawn.CanChangeDesignationPrisoner() && !pawn.CanChangeDesignationColonist())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = false;
//no permission to change designation for prisoner hero/ self
if (!pawn.CanChangeDesignationPrisoner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = false;
//cant have penetrative sex
if (!xxx.can_be_fucked(pawn))
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = false;
if (RJWSettings.bestiality_enabled && xxx.is_human(pawn))
{
if (!pawn.IsDesignatedHero())
{
if ((xxx.is_zoophile(pawn) || RJWSettings.override_RJW_designation_checks) && pawn.IsColonist)
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = true;
}
else if (pawn.IsHeroOwner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = true;
if (pawn.IsPrisonerOfColony || xxx.is_slave(pawn))
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = true;
}
if (RJWSettings.animal_on_animal_enabled
&& xxx.is_animal(pawn)
&& pawn.Faction == Faction.OfPlayer)
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = true;
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding = false;
}
public static bool CanDesignateBreeding(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreeding;
}
public static void ToggleBreeding(this Pawn pawn)
{
pawn.UpdateCanDesignateBreeding();
if (pawn.CanDesignateBreeding())
{
if (!pawn.IsDesignatedBreeding())
DesignateBreeding(pawn);
else
UnDesignateBreeding(pawn);
}
}
public static bool IsDesignatedBreeding(this Pawn pawn)
{
if (SaveStorage.DataStore.GetPawnData(pawn).Breeding)
if (!xxx.is_animal(pawn))
{
if (!RJWSettings.bestiality_enabled)
UnDesignateBreeding(pawn);
else if (!pawn.IsDesignatedHero())
if (!(xxx.is_zoophile(pawn) || pawn.IsPrisonerOfColony || xxx.is_slave(pawn)))
if (!(RJWSettings.WildMode || RJWSettings.override_RJW_designation_checks))
UnDesignateBreeding(pawn);
}
else
{
if (!RJWSettings.animal_on_animal_enabled)
UnDesignateBreeding(pawn);
else if (!pawn.Faction.IsPlayer)
UnDesignateBreeding(pawn);
}
return SaveStorage.DataStore.GetPawnData(pawn).Breeding;
}
[SyncMethod]
public static void DesignateBreeding(this Pawn pawn)
{
DesignatorsData.rjwBreeding.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Breeding = true;
}
[SyncMethod]
public static void UnDesignateBreeding(this Pawn pawn)
{
DesignatorsData.rjwBreeding.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Breeding = false;
}
}
}
|
Mewtopian/rjw
|
Source/Designators/Breedee.cs
|
C#
|
mit
| 3,075 |
using Verse;
using RimWorld;
using Multiplayer.API;
namespace rjw
{
public static class PawnDesignations_Breeder
{
public static bool UpdateCanDesignateBreedingAnimal(this Pawn pawn)
{
//no permission to change designation for NON prisoner hero/ other player
if (!pawn.CanChangeDesignationPrisoner() && !pawn.CanChangeDesignationColonist())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreedingAnimal = false;
//no permission to change designation for prisoner hero/ self
if (!pawn.CanChangeDesignationPrisoner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreedingAnimal = false;
//Log.Message("CanDesignateAnimal for " + xxx.get_pawnname(pawn) + " " + SaveStorage.bestiality_enabled);
//Log.Message("checking animal props " + (pawn.Faction?.IsPlayer.ToString()?? "tynanfag") + xxx.is_animal(pawn) + xxx.can_rape(pawn));
if ((RJWSettings.bestiality_enabled || RJWSettings.animal_on_animal_enabled)
&& xxx.is_animal(pawn)
&& xxx.can_fuck(pawn)
&& pawn.Faction == Faction.OfPlayer)
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreedingAnimal = true;
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreedingAnimal = false;
}
public static bool CanDesignateBreedingAnimal(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateBreedingAnimal;
}
public static void ToggleBreedingAnimal(this Pawn pawn)
{
pawn.UpdateCanDesignateBreedingAnimal();
if (pawn.CanDesignateBreedingAnimal())
{
if (!pawn.IsDesignatedBreedingAnimal())
DesignateBreedingAnimal(pawn);
else
UnDesignateBreedingAnimal(pawn);
}
}
public static bool IsDesignatedBreedingAnimal(this Pawn pawn)
{
if (SaveStorage.DataStore.GetPawnData(pawn).BreedingAnimal)
if (!pawn.Faction.IsPlayer)
UnDesignateBreedingAnimal(pawn);
return SaveStorage.DataStore.GetPawnData(pawn).BreedingAnimal;
}
[SyncMethod]
public static void DesignateBreedingAnimal(this Pawn pawn)
{
DesignatorsData.rjwBreedingAnimal.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).BreedingAnimal = true;
}
[SyncMethod]
public static void UnDesignateBreedingAnimal(this Pawn pawn)
{
DesignatorsData.rjwBreedingAnimal.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).BreedingAnimal = false;
}
}
}
|
Mewtopian/rjw
|
Source/Designators/Breeder.cs
|
C#
|
mit
| 2,353 |
using Verse;
using Multiplayer.API;
namespace rjw
{
public static class PawnDesignations_Comfort
{
public static bool UpdateCanDesignateComfort(this Pawn pawn)
{
//no permission to change designation for NON prisoner hero/ other player
if (!pawn.CanChangeDesignationPrisoner() && !pawn.CanChangeDesignationColonist())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = false;
//no permission to change designation for prisoner hero/ self
if (!pawn.CanChangeDesignationPrisoner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = false;
//cant sex
if (!(xxx.can_fuck(pawn) || xxx.can_be_fucked(pawn)))
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = false;
if (!pawn.IsDesignatedHero())
{
if ((xxx.is_masochist(pawn) || RJWSettings.override_RJW_designation_checks) && pawn.IsColonist)
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = true;
}
else if (pawn.IsHeroOwner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = true;
if (pawn.IsPrisonerOfColony || xxx.is_slave(pawn))
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = true;
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort = false;
}
public static bool CanDesignateComfort(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateComfort;
}
public static void ToggleComfort(this Pawn pawn)
{
pawn.UpdateCanDesignateComfort();
if (pawn.CanDesignateComfort())
{
if (!pawn.IsDesignatedComfort())
DesignateComfort(pawn);
else
UnDesignateComfort(pawn);
}
}
public static bool IsDesignatedComfort(this Pawn pawn)
{
if (SaveStorage.DataStore.GetPawnData(pawn).Comfort)
if (!pawn.IsDesignatedHero())
{
if (!pawn.IsPrisonerOfColony)
if (!(xxx.is_masochist(pawn) || xxx.is_slave(pawn)))
{
if (!pawn.IsColonist)
UnDesignateComfort(pawn);
else if (!(RJWSettings.WildMode || RJWSettings.override_RJW_designation_checks))
UnDesignateComfort(pawn);
}
}
return SaveStorage.DataStore.GetPawnData(pawn).Comfort;
}
[SyncMethod]
public static void DesignateComfort(this Pawn pawn)
{
DesignatorsData.rjwComfort.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Comfort = true;
}
[SyncMethod]
public static void UnDesignateComfort(this Pawn pawn)
{
DesignatorsData.rjwComfort.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Comfort = false;
}
}
}
|
Mewtopian/rjw
|
Source/Designators/Comfort.cs
|
C#
|
mit
| 2,573 |
using Verse;
using RimWorld;
using Multiplayer.API;
namespace rjw
{
public static class PawnDesignations_Hero
{
public static bool UpdateCanDesignateHero(this Pawn pawn)
{
if ((RJWSettings.RPG_hero_control)
&& xxx.is_human(pawn)
&& pawn.IsColonist)
{
if (!pawn.IsDesignatedHero())
{
foreach (Pawn item in DesignatorsData.rjwHero)
{
if (item.IsHeroOwner())
{
if (RJWSettings.RPG_hero_control_Ironman && !SaveStorage.DataStore.GetPawnData(item).Ironman)
SetHeroIronman(item);
if (item.Dead && !SaveStorage.DataStore.GetPawnData(item).Ironman)
{
UnDesignateHero(item);
//Log.Warning("CanDesignateHero:: " + MP.PlayerName + " hero is dead remove hero tag from " + item.Name);
}
else
{
//Log.Warning("CanDesignateHero:: " + MP.PlayerName + " already has hero - " + item.Name);
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateHero = false;
}
}
else
continue;
}
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateHero = true;
}
}
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateHero = false;
}
public static bool CanDesignateHero(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateHero;
}
public static void ToggleHero(this Pawn pawn)
{
pawn.UpdateCanDesignateHero();
if (pawn.CanDesignateHero() && Find.Selector.NumSelected == 1)
{
if (!pawn.IsDesignatedHero())
DesignateHero(pawn);
}
}
public static bool IsDesignatedHero(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).Hero;
}
public static void DesignateHero(this Pawn pawn)
{
MyMethod(pawn, MP.PlayerName);
}
[SyncMethod]
public static void UnDesignateHero(this Pawn pawn)
{
DesignatorsData.rjwHero.Remove(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Hero = false;
}
public static bool IsHeroOwner(this Pawn pawn)
{
if (!MP.enabled)
return SaveStorage.DataStore.GetPawnData(pawn).HeroOwner == "Player" || SaveStorage.DataStore.GetPawnData(pawn).HeroOwner == null || SaveStorage.DataStore.GetPawnData(pawn).HeroOwner == "";
else
return SaveStorage.DataStore.GetPawnData(pawn).HeroOwner == MP.PlayerName;
}
[SyncMethod]
static void MyMethod(Pawn pawn, string theName)
{
if (!MP.enabled)
theName = "Player";
SaveStorage.DataStore.GetPawnData(pawn).Hero = true;
SaveStorage.DataStore.GetPawnData(pawn).HeroOwner = theName;
SaveStorage.DataStore.GetPawnData(pawn).Ironman = RJWSettings.RPG_hero_control_Ironman;
DesignatorsData.rjwHero.Add(pawn);
string text = pawn.Name + " is now hero of " + theName;
Messages.Message(text, pawn, MessageTypeDefOf.NeutralEvent);
//Log.Message(MP.PlayerName + " set " + pawn.Name + " to hero:" + SaveStorage.DataStore.GetPawnData(pawn).Hero);
pawn.UpdateCanChangeDesignationPrisoner();
pawn.UpdateCanChangeDesignationColonist();
pawn.UpdateCanDesignateService();
pawn.UpdateCanDesignateComfort();
pawn.UpdateCanDesignateBreedingAnimal();
pawn.UpdateCanDesignateBreeding();
pawn.UpdateCanDesignateHero();
}
[SyncMethod]
public static void SetHeroIronman(this Pawn pawn)
{
SaveStorage.DataStore.GetPawnData(pawn).Ironman = true;
}
}
}
|
Mewtopian/rjw
|
Source/Designators/Hero.cs
|
C#
|
mit
| 3,328 |
using Verse;
using Multiplayer.API;
namespace rjw
{
public static class PawnDesignations_Milking
{
public static bool UpdateCanDesignateMilking(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateMilking = false;
}
public static bool CanDesignateMilking(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateMilking = false;
}
public static void ToggleMilking(this Pawn pawn)
{
if (pawn.CanDesignateMilking())
{
if (!pawn.IsDesignatedMilking())
DesignateMilking(pawn);
else
UnDesignateMilking(pawn);
}
}
public static bool IsDesignatedMilking(this Pawn pawn)
{
if (SaveStorage.DataStore.GetPawnData(pawn).Milking)
if (!pawn.IsDesignatedHero())
if (!(pawn.IsColonist || pawn.IsPrisonerOfColony || xxx.is_slave(pawn)))
UnDesignateMilking(pawn);
return SaveStorage.DataStore.GetPawnData(pawn).Milking;
}
[SyncMethod]
public static void DesignateMilking(this Pawn pawn)
{
DesignatorsData.rjwMilking.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Milking = true;
}
[SyncMethod]
public static void UnDesignateMilking(this Pawn pawn)
{
DesignatorsData.rjwMilking.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Milking = false;
}
}
}
|
Mewtopian/rjw
|
Source/Designators/Milking.cs
|
C#
|
mit
| 1,293 |
using Verse;
using Multiplayer.API;
namespace rjw
{
public static class PawnDesignations_Service
{
public static bool UpdateCanDesignateService(this Pawn pawn)
{
//no permission to change designation for NON prisoner hero/ other player
if (!pawn.CanChangeDesignationPrisoner() && !pawn.CanChangeDesignationColonist())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = false;
//no permission to change designation for prisoner hero/ self
if (!pawn.CanChangeDesignationPrisoner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = false;
//cant sex
if (!(xxx.can_fuck(pawn) || xxx.can_be_fucked(pawn)))
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = false;
if (!pawn.IsDesignatedHero())
{
if (pawn.IsColonist)
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = true;
}
else if (pawn.IsHeroOwner())
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = true;
if (pawn.IsPrisonerOfColony || xxx.is_slave(pawn))
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = true;
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService = false;
}
public static bool CanDesignateService(this Pawn pawn)
{
return SaveStorage.DataStore.GetPawnData(pawn).CanDesignateService;
}
public static void ToggleService(this Pawn pawn)
{
pawn.UpdateCanDesignateService();
if (pawn.CanDesignateService())
{
if (!pawn.IsDesignatedService())
DesignateService(pawn);
else
UnDesignateService(pawn);
}
}
public static bool IsDesignatedService(this Pawn pawn)
{
if (SaveStorage.DataStore.GetPawnData(pawn).Service)
if (!pawn.IsDesignatedHero())
if (!(pawn.IsColonist || pawn.IsPrisonerOfColony || xxx.is_slave(pawn)))
UnDesignateService(pawn);
return SaveStorage.DataStore.GetPawnData(pawn).Service;
}
[SyncMethod]
public static void DesignateService(this Pawn pawn)
{
DesignatorsData.rjwService.Add(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Service = true;
}
[SyncMethod]
public static void UnDesignateService(this Pawn pawn)
{
DesignatorsData.rjwService.Remove(pawn);
SaveStorage.DataStore.GetPawnData(pawn).Service = false;
}
}
}
|
Mewtopian/rjw
|
Source/Designators/Service.cs
|
C#
|
mit
| 2,305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.