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>
<!-- Simple prosthetic privates -->
<PegDick.label>Член-деревяшка</PegDick.label>
<PegDick.labelNoun>член-деревяшка</PegDick.labelNoun>
<PegDick.description>Отдалённо напоминающий член кусок дерева.</PegDick.description>
<PegDick.stages.0.label>Микро</PegDick.stages.0.label>
<PegDick.stages.1.label>Маленький</PegDick.stages.1.label>
<PegDick.stages.2.label>Обычный</PegDick.stages.2.label>
<PegDick.stages.3.label>Большой</PegDick.stages.3.label>
<PegDick.stages.4.label>Огромный</PegDick.stages.4.label>
<PegDick.stages.5.label>Гигантский</PegDick.stages.5.label>
<HydraulicPenis.label>Гидравлический пенис</HydraulicPenis.label>
<HydraulicPenis.labelNoun>гидравлический пенис</HydraulicPenis.labelNoun>
<HydraulicPenis.description>Отдалённое подобие пениса, способное увеличиваться за счёт гидравлики.</HydraulicPenis.description>
<HydraulicPenis.stages.0.label>Микро</HydraulicPenis.stages.0.label>
<HydraulicPenis.stages.1.label>Маленький</HydraulicPenis.stages.1.label>
<HydraulicPenis.stages.2.label>Обычный</HydraulicPenis.stages.2.label>
<HydraulicPenis.stages.3.label>Большой</HydraulicPenis.stages.3.label>
<HydraulicPenis.stages.4.label>Огромный</HydraulicPenis.stages.4.label>
<HydraulicPenis.stages.5.label>Гигантский</HydraulicPenis.stages.5.label>
<HydraulicVagina.label>Гидравлическая вагина</HydraulicVagina.label>
<HydraulicVagina.labelNoun>гидравлическая вагина</HydraulicVagina.labelNoun>
<HydraulicVagina.description>Она использует простую гидравлику, чтобы хотя бы немного приблизится к возможностям настоящей.</HydraulicVagina.description>
<HydraulicVagina.stages.0.label>Микро</HydraulicVagina.stages.0.label>
<HydraulicVagina.stages.1.label>Узкая</HydraulicVagina.stages.1.label>
<HydraulicVagina.stages.2.label>Обычная</HydraulicVagina.stages.2.label>
<HydraulicVagina.stages.3.label>Вместительная</HydraulicVagina.stages.3.label>
<HydraulicVagina.stages.4.label>Пещера</HydraulicVagina.stages.4.label>
<HydraulicVagina.stages.5.label>Бездна</HydraulicVagina.stages.5.label>
<HydraulicAnus.label>Гидравлический анус</HydraulicAnus.label>
<HydraulicAnus.labelNoun>гидравлический анус</HydraulicAnus.labelNoun>
<HydraulicAnus.description>Анус, использующий гидравлику для симуляции способностей настоящего.</HydraulicAnus.description>
<HydraulicAnus.stages.0.label>Микро</HydraulicAnus.stages.0.label>
<HydraulicAnus.stages.1.label>Узкий</HydraulicAnus.stages.1.label>
<HydraulicAnus.stages.2.label>Обычный</HydraulicAnus.stages.2.label>
<HydraulicAnus.stages.3.label>Вместительный</HydraulicAnus.stages.3.label>
<HydraulicAnus.stages.4.label>Пещера</HydraulicAnus.stages.4.label>
<HydraulicAnus.stages.5.label>Бездна</HydraulicAnus.stages.5.label>
<HydraulicBreasts.label>Гидравлическая грудь</HydraulicBreasts.label>
<HydraulicBreasts.labelNoun>гидравлическая грудь</HydraulicBreasts.labelNoun>
<HydraulicBreasts.description>Очевидно ненастоящие импланты.</HydraulicBreasts.description>
<HydraulicBreasts.stages.0.label>Соски</HydraulicBreasts.stages.0.label>
<HydraulicBreasts.stages.1.label>Плоская</HydraulicBreasts.stages.1.label>
<HydraulicBreasts.stages.2.label>Маленькая</HydraulicBreasts.stages.2.label>
<HydraulicBreasts.stages.3.label>Обычная</HydraulicBreasts.stages.3.label>
<HydraulicBreasts.stages.4.label>Большая</HydraulicBreasts.stages.4.label>
<HydraulicBreasts.stages.5.label>Огромная</HydraulicBreasts.stages.5.label>
<HydraulicBreasts.stages.6.label>Больше нормы</HydraulicBreasts.stages.6.label>
<HydraulicBreasts.stages.7.label>Массивная</HydraulicBreasts.stages.7.label>
<HydraulicBreasts.stages.8.label>Гигантская</HydraulicBreasts.stages.8.label>
<HydraulicBreasts.stages.9.label>Колоссальная</HydraulicBreasts.stages.9.label>
<!-- Bionic privates -->
<BionicPenis.label>Бионический пенис</BionicPenis.label>
<BionicPenis.labelNoun>бионический пенис</BionicPenis.labelNoun>
<BionicPenis.description>Продвинутый искусственный пенис. Он использует прекрасно откалиброванные сенсоры давления
и PID регуляцию для анализа сокращений мышц партнёра. Он может менять длину и толщину, а также вибрировать.
to adapt to its lover's preferences.</BionicPenis.description>
<BionicPenis.stages.0.label>Микро</BionicPenis.stages.0.label>
<BionicPenis.stages.1.label>Маленький</BionicPenis.stages.1.label>
<BionicPenis.stages.2.label>Обычный</BionicPenis.stages.2.label>
<BionicPenis.stages.3.label>Большой</BionicPenis.stages.3.label>
<BionicPenis.stages.4.label>Огромный</BionicPenis.stages.4.label>
<BionicPenis.stages.5.label>Гигантский</BionicPenis.stages.5.label>
<BionicVagina.label>Бионическая вагина</BionicVagina.label>
<BionicVagina.labelNoun>бионическая вагина</BionicVagina.labelNoun>
<BionicVagina.description>Продвинутая искусственная вагина. Она использует внутренние сенсоры давления для того чтобы подстроиться под размеры и скорость партнёра.
Автоматически выделяет смазку желаемой консистенции</BionicVagina.description>
<BionicVagina.stages.0.label>Микро</BionicVagina.stages.0.label>
<BionicVagina.stages.1.label>Узкая</BionicVagina.stages.1.label>
<BionicVagina.stages.2.label>Обычная</BionicVagina.stages.2.label>
<BionicVagina.stages.3.label>Вместительная</BionicVagina.stages.3.label>
<BionicVagina.stages.4.label>Пещера</BionicVagina.stages.4.label>
<BionicVagina.stages.5.label>Бездна</BionicVagina.stages.5.label>
<BionicAnus.label>Бионический анус</BionicAnus.label>
<BionicAnus.labelNoun>бионический анус</BionicAnus.labelNoun>
<BionicAnus.description>Продвинутый искусственный анус. Он использует внутренние сенсоры давления для того чтобы подстроиться под размеры и скорость партнёра.
Автоматически выделяет смазку желаемой консистенции</BionicAnus.description>
<BionicAnus.stages.0.label>Микро</BionicAnus.stages.0.label>
<BionicAnus.stages.1.label>Узкий</BionicAnus.stages.1.label>
<BionicAnus.stages.2.label>Обычный</BionicAnus.stages.2.label>
<BionicAnus.stages.3.label>Вместительный</BionicAnus.stages.3.label>
<BionicAnus.stages.4.label>Пещера</BionicAnus.stages.4.label>
<BionicAnus.stages.5.label>Бездна</BionicAnus.stages.5.label>
<BionicBreasts.label>Бионическая грудь</BionicBreasts.label>
<BionicBreasts.labelNoun>бионическая грудь</BionicBreasts.labelNoun>
<BionicBreasts.description>Продвинутая искусственная грудь. Она способна менять размеры по желанию пользователя,
а так же симулировать лактацию</BionicBreasts.description>
<BionicBreasts.stages.0.label>Соски</BionicBreasts.stages.0.label>
<BionicBreasts.stages.1.label>Плоская</BionicBreasts.stages.1.label>
<BionicBreasts.stages.2.label>Маленькая</BionicBreasts.stages.2.label>
<BionicBreasts.stages.3.label>Обычная</BionicBreasts.stages.3.label>
<BionicBreasts.stages.4.label>Большая</BionicBreasts.stages.4.label>
<BionicBreasts.stages.5.label>Огромная</BionicBreasts.stages.5.label>
<BionicBreasts.stages.6.label>Больше нормы</BionicBreasts.stages.6.label>
<BionicBreasts.stages.7.label>Массивная</BionicBreasts.stages.7.label>
<BionicBreasts.stages.8.label>Гигантская</BionicBreasts.stages.8.label>
<BionicBreasts.stages.9.label>Колоссальная</BionicBreasts.stages.9.label>
<!-- Archotech -->
<ArchotechPenis.label>Архотек пенис</ArchotechPenis.label>
<ArchotechPenis.description>Искусственный пенис, созданный по новейшим технологиям и способный доставить максимальное удовольствие обоим партнёрам.</ArchotechPenis.description>
<ArchotechPenis.stages.0.label>Микро</ArchotechPenis.stages.0.label>
<ArchotechPenis.stages.1.label>Маленький</ArchotechPenis.stages.1.label>
<ArchotechPenis.stages.2.label>Обычный</ArchotechPenis.stages.2.label>
<ArchotechPenis.stages.3.label>Большой</ArchotechPenis.stages.3.label>
<ArchotechPenis.stages.4.label>Огромный</ArchotechPenis.stages.4.label>
<ArchotechPenis.stages.5.label>Гигантский</ArchotechPenis.stages.5.label>
<ArchotechVagina.label>Архотек вагина</ArchotechVagina.label>
<ArchotechVagina.description>Искусственная вагина, созданная по новейшим технологиям и способная доставить максимальное удовольствие обоим партнёрам.</ArchotechVagina.description>
<ArchotechVagina.stages.0.label>Микро</ArchotechVagina.stages.0.label>
<ArchotechVagina.stages.1.label>Узкая</ArchotechVagina.stages.1.label>
<ArchotechVagina.stages.2.label>Обычная</ArchotechVagina.stages.2.label>
<ArchotechVagina.stages.3.label>Вместительная</ArchotechVagina.stages.3.label>
<ArchotechVagina.stages.4.label>Пещера</ArchotechVagina.stages.4.label>
<ArchotechVagina.stages.5.label>Бездна</ArchotechVagina.stages.5.label>
<ArchotechAnus.label>Архотек анус</ArchotechAnus.label>
<ArchotechAnus.description>Искусственный анус, созданный по новейшим технологиям и способный доставить максимальное удовольствие обоим партнёрам.</ArchotechAnus.description>
<ArchotechAnus.stages.0.label>Микро</ArchotechAnus.stages.0.label>
<ArchotechAnus.stages.1.label>Tight</ArchotechAnus.stages.1.label>
<ArchotechAnus.stages.2.label>Average</ArchotechAnus.stages.2.label>
<ArchotechAnus.stages.3.label>Accomodating</ArchotechAnus.stages.3.label>
<ArchotechAnus.stages.4.label>Пещера</ArchotechAnus.stages.4.label>
<ArchotechAnus.stages.5.label>Бездна</ArchotechAnus.stages.5.label>
<ArchotechBreasts.label>Архотек грудь</ArchotechBreasts.label>
<ArchotechBreasts.description>Искусственная грудь, созданная по новейшим технологиям и способная принимать любые желаемые формы.</ArchotechBreasts.description>
<ArchotechBreasts.stages.0.label>Соски</ArchotechBreasts.stages.0.label>
<ArchotechBreasts.stages.1.label>Плоская</ArchotechBreasts.stages.1.label>
<ArchotechBreasts.stages.2.label>Маленькая</ArchotechBreasts.stages.2.label>
<ArchotechBreasts.stages.3.label>Обычная</ArchotechBreasts.stages.3.label>
<ArchotechBreasts.stages.4.label>Большая</ArchotechBreasts.stages.4.label>
<ArchotechBreasts.stages.5.label>Огромная</ArchotechBreasts.stages.5.label>
<ArchotechBreasts.stages.6.label>Больше нормы</ArchotechBreasts.stages.6.label>
<ArchotechBreasts.stages.7.label>Массивная</ArchotechBreasts.stages.7.label>
<ArchotechBreasts.stages.8.label>Гигантская</ArchotechBreasts.stages.8.label>
<ArchotechBreasts.stages.9.label>Колоссальная</ArchotechBreasts.stages.9.label>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.HediffDef_PartBase/Hediffs_PrivateParts_Implants.xml
|
XML
|
mit
| 12,649 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Insect privates -->
<OvipositorF.label>Женский яйцеклад</OvipositorF.label>
<OvipositorF.labelNoun>яйцеклад</OvipositorF.labelNoun>
<OvipositorF.description>Часть тела, с помощью которой насекомое откладывает яйца в жертву.</OvipositorF.description>
<OvipositorF.stages.0.label>Микро</OvipositorF.stages.0.label>
<OvipositorF.stages.1.label>Узкий</OvipositorF.stages.1.label>
<OvipositorF.stages.2.label>Обычный</OvipositorF.stages.2.label>
<OvipositorF.stages.3.label>Вместительный</OvipositorF.stages.3.label>
<OvipositorF.stages.4.label>Пещера</OvipositorF.stages.4.label>
<OvipositorF.stages.5.label>Бездна</OvipositorF.stages.5.label>
<OvipositorM.label>Мужской яйцеклад</OvipositorM.label>
<OvipositorM.labelNoun>яйцеклад.labelNoun>
<OvipositorM.description>Часть тела, с помощью которой насекомое оплодотворяет яйца внутри жертвы.</OvipositorM.description>
<OvipositorM.stages.0.label>Микро</OvipositorM.stages.0.label>
<OvipositorM.stages.1.label>Маленький</OvipositorM.stages.1.label>
<OvipositorM.stages.2.label>Обычный</OvipositorM.stages.2.label>
<OvipositorM.stages.3.label>Большой</OvipositorM.stages.3.label>
<OvipositorM.stages.4.label>Огромный</OvipositorM.stages.4.label>
<OvipositorM.stages.5.label>Гигантский</OvipositorM.stages.5.label>
<InsectAnus.label>Жучиный анус</InsectAnus.label>
<InsectAnus.labelNoun>жучиный анус</InsectAnus.labelNoun>
<InsectAnus.description>Анус жука.</InsectAnus.description>
<InsectAnus.stages.0.label>Микро</InsectAnus.stages.0.label>
<InsectAnus.stages.1.label>Узкий</InsectAnus.stages.1.label>
<InsectAnus.stages.2.label>Обычный</InsectAnus.stages.2.label>
<InsectAnus.stages.3.label>Вместительный</InsectAnus.stages.3.label>
<InsectAnus.stages.4.label>Пещера</InsectAnus.stages.4.label>
<InsectAnus.stages.5.label>Бездна</InsectAnus.stages.5.label>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.HediffDef_PartBase/Hediffs_PrivateParts_Insect.xml
|
XML
|
mit
| 2,266 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Slime privates -->
<SlimeTentacles.label>Слизневые щупальца</SlimeTentacles.label>
<SlimeTentacles.labelNoun>слизневые щупальца</SlimeTentacles.labelNoun>
<SlimeTentacles.description>Скользкие, полупрозрачные щупальца, которые могут принять любую форму.</SlimeTentacles.description>
<SlimeTentacles.stages.0.label>Микро</SlimeTentacles.stages.0.label>
<SlimeTentacles.stages.1.label>Маленькие</SlimeTentacles.stages.1.label>
<SlimeTentacles.stages.2.label>Обычные</SlimeTentacles.stages.2.label>
<SlimeTentacles.stages.3.label>Большие</SlimeTentacles.stages.3.label>
<SlimeTentacles.stages.4.label>Огромные</SlimeTentacles.stages.4.label>
<SlimeTentacles.stages.5.label>Гигантские</SlimeTentacles.stages.5.label>
<SlimeVagina.label>Слизневая вагина</SlimeVagina.label>
<SlimeVagina.labelNoun>slime вагина</SlimeVagina.labelNoun>
<SlimeVagina.description>Скользкая, полупрозрачная вагина, которая может подстроиться под любой пенис.</SlimeVagina.description>
<SlimeVagina.stages.0.label>Микро</SlimeVagina.stages.0.label>
<SlimeVagina.stages.1.label>Узкая</SlimeVagina.stages.1.label>
<SlimeVagina.stages.2.label>Обычная</SlimeVagina.stages.2.label>
<SlimeVagina.stages.3.label>Вместительная</SlimeVagina.stages.3.label>
<SlimeVagina.stages.4.label>Пещера</SlimeVagina.stages.4.label>
<SlimeVagina.stages.5.label>Бездна</SlimeVagina.stages.5.label>
<SlimeAnus.label>Слизневый анус</SlimeAnus.label>
<SlimeAnus.labelNoun>слизневый анус</SlimeAnus.labelNoun>
<SlimeAnus.description>Скользкий, полупрозрачный анус, который буквально может вместить всё что угодно.</SlimeAnus.description>
<SlimeAnus.stages.0.label>Микро</SlimeAnus.stages.0.label>
<SlimeAnus.stages.1.label>Узкий</SlimeAnus.stages.1.label>
<SlimeAnus.stages.2.label>Обычный</SlimeAnus.stages.2.label>
<SlimeAnus.stages.3.label>Вместительный</SlimeAnus.stages.3.label>
<SlimeAnus.stages.4.label>Пещера</SlimeAnus.stages.4.label>
<SlimeAnus.stages.5.label>Бездна</SlimeAnus.stages.5.label>
<SlimeBreasts.label>Слизневая грудь</SlimeBreasts.label>
<SlimeBreasts.labelNoun>слизневая грудь</SlimeBreasts.labelNoun>
<SlimeBreasts.description>Скользкая, полупрозрачная грудь, которая сожет вырасти и уменьшиться до любого желаемого размера.</SlimeBreasts.description>
<SlimeBreasts.stages.0.label>Соски</SlimeBreasts.stages.0.label>
<SlimeBreasts.stages.1.label>Плоская</SlimeBreasts.stages.1.label>
<SlimeBreasts.stages.2.label>Маленькая</SlimeBreasts.stages.2.label>
<SlimeBreasts.stages.3.label>Обычная</SlimeBreasts.stages.3.label>
<SlimeBreasts.stages.4.label>Большая</SlimeBreasts.stages.4.label>
<SlimeBreasts.stages.5.label>Огромная</SlimeBreasts.stages.5.label>
<SlimeBreasts.stages.6.label>Больше нормы</SlimeBreasts.stages.6.label>
<SlimeBreasts.stages.7.label>Массивная</SlimeBreasts.stages.7.label>
<SlimeBreasts.stages.8.label>Гигантская</SlimeBreasts.stages.8.label>
<SlimeBreasts.stages.9.label>Колоссальная</SlimeBreasts.stages.9.label>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.HediffDef_PartBase/Hediffs_PrivateParts_Slime.xml
|
XML
|
mit
| 3,676 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<rjw_vatgrown_sex_slave.label>Вырощенный секс-раб</rjw_vatgrown_sex_slave.label>
<rjw_vatgrown_sex_slave.description>[PAWN_nameDef] создавали как игрушку, нежели как человека. Во время [PAWN_possessive] периода развития, [PAWN_pronoun] учится социальным и связаным с сексом навыкам чтобы удволетворять все потребности своих будущих хозяев.</rjw_vatgrown_sex_slave.description>
<rjw_feisty.label>Агрессивная нимфоманка Nymph</rjw_feisty.label>
<rjw_feisty.description>[PAWN_nameDef] завоеватель по своей натуре и запросто тебя изобьёт, если ты рискнёшь откатаься от [PAWN_possessive] предложения.</rjw_feisty.description>
<rjw_curious.label>Любознательная Нимфоманка</rjw_curious.label>
<rjw_curious.description>[PAWN_nameDef] любит создавать разные штуки, особенно те, которые дарят новые ощущения.</rjw_curious.description>
<rjw_tender.label>Ласковая Нимфоманка</rjw_tender.label>
<rjw_tender.description>У [PAWN_nameDef] прекрасные глаза и [PAWN_possessive] голос мягок и приятен на слух. Благодаря [PAWN_possessive] работе медсестрой, [PAWN_pronoun] крайне хорошо обходится с людьми.</rjw_tender.description>
<rjw_chatty.label>Болтливая Нимфоманка</rjw_chatty.label>
<rjw_chatty.description>Вы не найдёте на этой планете никого более шумного чем [PAWN_nameDef]. [PAWN_pronoun] обладает хорошо подвешенным языком, острым умом, и прекрасными губами.</rjw_chatty.description>
<rjw_broken.label>Сломленная Нимфоманка</rjw_broken.label>
<rjw_broken.description>[PAWN_nameDef] пришлось пережить ужасные вещи, [PAWN_pronoun] выглядит довольно истощённо.</rjw_broken.description>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.MiscTranslationDef/MiscTranslationDefs.xml
|
XML
|
mit
| 2,335 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<RandomRape.label>Случайное изнасилование</RandomRape.label>
<RandomRape.beginLetterLabel>Случайное изнасилование</RandomRape.beginLetterLabel>
<RandomRape.beginLetter>{0} чувствует острое сексуальное неудволетворение и ищет цель для утоления своих нужд.</RandomRape.beginLetter>
<RandomRape.recoveryMessage>{0} успокаивается и больше не хочет насиловать.</RandomRape.recoveryMessage>
<RandomRape.baseInspectLine>Состояние: Случайное изнасилование</RandomRape.baseInspectLine>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.SexualMentalStateDef/MentalState_Rape.xml
|
XML
|
mit
| 745 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<Whorish_Thoughts.stages.0.label>Возмущённая Проститутка</Whorish_Thoughts.stages.0.label>
<Whorish_Thoughts.stages.0.description>Нам просто нужны деньги! Я не ...</Whorish_Thoughts.stages.0.description>
<Whorish_Thoughts.stages.1.label>Проститутка</Whorish_Thoughts.stages.1.label>
<Whorish_Thoughts.stages.1.description>Ну, по крайней мере платят неплохо...</Whorish_Thoughts.stages.1.description>
<Whorish_Thoughts.stages.2.label>Шлюха</Whorish_Thoughts.stages.2.label>
<Whorish_Thoughts.stages.2.description>А эта работа мне даже нравится!</Whorish_Thoughts.stages.2.description>
<Whorish_Thoughts_Captive.stages.0.label>Проститутка по принуждению</Whorish_Thoughts_Captive.stages.0.label>
<Whorish_Thoughts_Captive.stages.0.description>Они заставляют меня быть секс-игрушкой!</Whorish_Thoughts_Captive.stages.0.description>
<Whorish_Thoughts_Captive.stages.1.label>Сомневающаяся проститутка</Whorish_Thoughts_Captive.stages.1.label>
<Whorish_Thoughts_Captive.stages.1.description>Эй, я не просто тело на прокат!</Whorish_Thoughts_Captive.stages.1.description>
<Whorish_Thoughts_Captive.stages.2.label>Привыкшая проститутка</Whorish_Thoughts_Captive.stages.2.label>
<Whorish_Thoughts_Captive.stages.2.description>Просто не бейте меня, пожалуйста.</Whorish_Thoughts_Captive.stages.2.description>
<Whorish_Thoughts_Captive.stages.3.label>Шлюха</Whorish_Thoughts_Captive.stages.3.label>
<Whorish_Thoughts_Captive.stages.3.description>А ведь сколько клиентов у меня могло быть, если бы не эти кандалы!!</Whorish_Thoughts_Captive.stages.3.description>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.ThoughtDef_Whore/Thoughts_Whore.xml
|
XML
|
mit
| 1,977 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- <ThingDef>
<defName>Simplelock</defName>
<label>Simple lock</label>
<description>A low-tech locking mechanism.</description>
<thingClass>ThingWithComps</thingClass>
<category>Item</category>
<thingCategories>
<li>Manufactured</li>
</thingCategories>
<useHitPoints>true</useHitPoints>
<selectable>true</selectable>
<generateCommonality>0.0</generateCommonality>
<statBases>
<MaxHitPoints>500</MaxHitPoints>
<Flammability>0.0</Flammability>
<DeteriorationRate>0.1</DeteriorationRate>
<Beauty>-6</Beauty>
<MarketValue>400</MarketValue>
<Mass>0.5</Mass>
</statBases>
<altitudeLayer>Item</altitudeLayer>
<tickerType>Never</tickerType>
<alwaysHaulable>true</alwaysHaulable>
<tradeTags>
<li>Exotic</li>
</tradeTags>
<comps>
<li Class="CompProperties_Forbiddable" />
</comps>
<pathCost>2</pathCost>
<graphicData>
<texPath>Things/Pawn/Humanlike/Apparel/Bondage/hololock</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<techLevel>Medieval</techLevel>
</ThingDef>
<ThingDef>
<defName>Simplekey</defName>
<label>Simple key</label>
<description>A low-tech key. Releases matching lock.</description>
<thingClass>ThingWithComps</thingClass>
<category>Item</category>
<thingCategories>
<li>Manufactured</li>
</thingCategories>
<useHitPoints>true</useHitPoints>
<selectable>true</selectable>
<generateCommonality>0.0</generateCommonality>
<statBases>
<MaxHitPoints>50</MaxHitPoints>
<Flammability>0.2</Flammability>
<DeteriorationRate>0.5</DeteriorationRate>
<Beauty>0</Beauty>
<MarketValue>1</MarketValue>
<Mass>0.1</Mass>
</statBases>
<altitudeLayer>Item</altitudeLayer>
<tickerType>Never</tickerType>
<alwaysHaulable>true</alwaysHaulable>
<tradeTags>
<li>Exotic</li>
</tradeTags>
<tradeability>Sellable</tradeability>
<comps>
<li Class="CompProperties_Forbiddable" />
<li Class="rjw.CompProperties_CryptoStamped" />
<li Class="CompProperties_Usable">
<compClass>rjw.CompStampedApparelKey</compClass>
<useJob>UnlockBondageGear</useJob>
<useLabel>Unlock apparel</useLabel>
</li>
<li Class="CompProperties_UseEffect">
<compClass>rjw.CompUnlockBondageGear</compClass>
</li>
</comps>
<pathCost>1</pathCost>
<graphicData>
<texPath>Things/Pawn/Humanlike/Apparel/Bondage/holokey</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<techLevel>Medieval</techLevel>
</ThingDef>
<ThingDef>
<defName>Genericlockpick</defName>
<label>Lock pick</label>
<description>A lock pick. Picks locks.</description>
<thingClass>ThingWithComps</thingClass>
<category>Item</category>
<thingCategories>
<li>Manufactured</li>
</thingCategories>
<useHitPoints>true</useHitPoints>
<selectable>true</selectable>
<generateCommonality>0.0</generateCommonality>
<statBases>
<MaxHitPoints>50</MaxHitPoints>
<Flammability>0.2</Flammability>
<DeteriorationRate>0.5</DeteriorationRate>
<Beauty>0</Beauty>
<MarketValue>50</MarketValue>
<Mass>0.1</Mass>
</statBases>
<altitudeLayer>Item</altitudeLayer>
<tickerType>Never</tickerType>
<alwaysHaulable>true</alwaysHaulable>
<tradeTags>
<li>Exotic</li>
</tradeTags>
<tradeability>Sellable</tradeability>
<comps>
<li Class="CompProperties_Forbiddable" />
<li Class="rjw.CompProperties_CryptoStamped" />
<li Class="CompProperties_Usable">
<compClass>rjw.CompStampedApparelKey</compClass>
<useJob>UnlockBondageGear</useJob>
<useLabel>Unlock apparel</useLabel>
</li>
<li Class="CompProperties_UseEffect">
<compClass>rjw.CompUnlockBondageGear</compClass>
</li>
</comps>
<pathCost>1</pathCost>
<graphicData>
<texPath>Things/Pawn/Humanlike/Apparel/Bondage/holokey</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<techLevel>Medieval</techLevel>
</ThingDef> -->
<PrisonerChains.label>Цепи</PrisonerChains.label>
<PrisonerChains.description>Цепи с наручниками. Полезны для ограничения чьей-то подвижности. Предотвращает* рукопашный бой.
*Для полного предотвращения рекомендуется кляп</PrisonerChains.description>
<PrisonerChains.comps.2.useLabel>Надеть</PrisonerChains.comps.2.useLabel>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.bondage_gear_def/Items_Bondage.xml
|
XML
|
mit
| 4,460 |
<?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>
<Boobitis.label>Грудит</Boobitis.label>
<Boobitis.description>Грудит - это крайне заразное заболевание, вызываемое наноботами. Оно заставляет грудь постоянно увеличиваться. если пустить болезнь на самотёк. Изначально применялась как мирная технология, но мутировала и вырвалась на свободу.</Boobitis.description>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/DefInjected/rjw.std_def/STDs.xml
|
XML
|
mit
| 2,675 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<RJW_RMB>RJW</RJW_RMB>
<RJW_RMB_Masturbate>Мастурбировать</RJW_RMB_Masturbate>
<RJW_RMB_Sex>Заняться сексом с </RJW_RMB_Sex>
<RJW_RMB_Rape>Изнасиловать </RJW_RMB_Rape>
<!--Masturbate-->
<RJW_RMB_Masturbate_Bed>Мастурбировать на стуле или кровати</RJW_RMB_Masturbate_Bed>
<RJW_RMB_Masturbate_At>Мастурбировать на</RJW_RMB_Masturbate_At>
<RJW_RMB_Masturbate_Here>Мастурбировать здесь</RJW_RMB_Masturbate_Here>
<RJW_RMB_Masturbate_With>Мастурбировать с помощью</RJW_RMB_Masturbate_With> <!-- dildoes or something like that -->
<!--Flavor text until this would actually be implemented some day if ever-->
<RJW_RMB_Masturbate_Fap>Fap with penis</RJW_RMB_Masturbate_Fap>
<RJW_RMB_Masturbate_Schlic>Schlic with vagina</RJW_RMB_Masturbate_Schlic>
<RJW_RMB_Masturbate_Breasts>Play with breasts</RJW_RMB_Masturbate_Breasts>
<RJW_RMB_Masturbate_Anal>Play with anus</RJW_RMB_Masturbate_Anal>
<RJW_RMB_Masturbate_AF>Auto-felate</RJW_RMB_Masturbate_AF>
<RJW_RMB_Masturbate_BJ>Breast job</RJW_RMB_Masturbate_BJ>
<RJW_RMB_Masturbate_TJV>Tail fuck vagina</RJW_RMB_Masturbate_TJV>
<RJW_RMB_Masturbate_TJA>Tail fuck anus</RJW_RMB_Masturbate_TJA>
<!--Have sex-->
<!--Rape-->
<RJW_RMB_RapeCP>использует для развлечения </RJW_RMB_RapeCP>
<RJW_RMB_RapeEnemy>Насилует </RJW_RMB_RapeEnemy>
<RJW_RMB_RapeCorpse>Совершает гадругательство над трупом</RJW_RMB_RapeCorpse>
<RJW_RMB_RapeAnimal>Насилует </RJW_RMB_RapeAnimal>
<!--Poses/parts?-->
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/Keyed/RMB.xml
|
XML
|
mit
| 1,746 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Mod strings -->
<!-- std -->
<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>
<RJW_VisitorSickWhore>{0} отказывается от предложения {1} т.к. клиенту явно нездоровится.</RJW_VisitorSickWhore>
<!-- Notifications on right-clicking CP -->
<PawnCantRapeCP>Цель не достаточно здорова, или данная позиция запрещена.</PawnCantRapeCP>
<PawnCantRapeCP0>Пешка не хочет секса, не здоровая, или не может насиловать.</PawnCantRapeCP0>
<PawnCantRapeCP1>Пешка находится в отношениях или партнёр находится неподалёку.</PawnCantRapeCP1>
<PawnCantRapeCP2>Пешка не зоофил и не может насиловать животных.</PawnCantRapeCP2>
<!--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_PregnantNormal>У неё здоровый малыш...</RJW_PregnantNormal>
<RJW_PregnantStrange>С ребёнком что-то не так...</RJW_PregnantStrange>
<RJW_PregnantMechStrange>Что-то ОЧЕНЬ не так с ребёнком...</RJW_PregnantMechStrange>
<RJW_GaveBirthEggTitle>Отложила яйцо.</RJW_GaveBirthEggTitle>
<RJW_GaveBirthEggText>{0} отложила яйца </RJW_GaveBirthEggText>
<RJW_EggContractions>У {0} схватки! Яйца уже выходят!</RJW_EggContractions>
<!--Breast size changes-->
<!--Should be "{PAWN_possessive} breasts..." but I couldn't get that to work correctly.-->
<RJW_BreastsHaveGrownFromBoobitis>Грудь выросла.</RJW_BreastsHaveGrownFromBoobitis>
<!--Comfort designation-->
<ForComfort>Разрешить для пешек</ForComfort>
<ForComfortDesc>Разрешить эту пешку для пользования другим</ForComfortDesc>
<ForComfortRefuseDesc>Не согласится со своей участью\nReq: черта мазохизм</ForComfortRefuseDesc>
<!--Whore-->
<ForService>Назначить проституткой</ForService> <!-- This field is not visible -->
<ForServiceDesc><![CDATA[Заставить работать проституткой
- Будет пытаться затащить гостей в постель.
- Развлекает жителей, когда нет работы.
- Восдерживается от мастурбации на работе, что может понизить настроение.
]]></ForServiceDesc>
<ForServiceRefuseDesc>Не согласиться быть проституткой</ForServiceRefuseDesc>
<!--Breeding designations-->
<ForBreeding>Разрешить для животных</ForBreeding>
<ForBreedingDesc>Отметить для спаривания с животными</ForBreedingDesc>
<ForBreedingRefuseDesc>Не согласится со своей участью\nReq: черта зоофил</ForBreedingRefuseDesc>
<ForBreedingAnimalDesc>Разрешить животному спариваться с отмеченными пешками</ForBreedingAnimalDesc>
<BreedMessage> пытается спариться с </BreedMessage>
<!--Milking-->
<ForMilking>Разрешить доить</ForMilking>
<ForMilkingDesc>Получить "биоматериал" от этого существа</ForMilkingDesc>
<!--Hero-->
<ForHero>Выбрать Героем</ForHero>
<ForHeroDesc><![CDATA[Выбрать пешку на роль игрового персонажа
-Может быть выбран только один раз.
-Нельзя отключить.
]]></ForHeroDesc>
<ForHeroRefuse1Desc>Это герой другого игрока</ForHeroRefuse1Desc>
<ForHeroRefuse2Desc>Вы не имеете права менять его выбор</ForHeroRefuse2Desc>
<RJW_hediff_braSize>Размер груди: {0}:{1} ({2} )</RJW_hediff_braSize>
<RJW_hediff_braSizeNone>Размер груди: -</RJW_hediff_braSizeNone>
<RJW_hediff_eggs>Яйца: {0}</RJW_hediff_eggs>
<RJW_hediff_fluidTypeFluidAmount>{0}: {1}</RJW_hediff_fluidTypeFluidAmount>
<RJW_hediff_girth>Обхват: {0}</RJW_hediff_girth>
<RJW_hediff_length>Длина: {0}</RJW_hediff_length>
<RJW_hediff_maxGirth>Макс. Обхват: {0}</RJW_hediff_maxGirth>
<RJW_hediff_maxLength>Макс. Длина: {0}</RJW_hediff_maxLength>
<RJW_hediff_overbust>Надгрудный обхват: {0}</RJW_hediff_overbust>
<RJW_hediff_underbust>Подгрудный обхват: {0}</RJW_hediff_underbust>
<RJW_hediff_unknownSpecies>Неизвестный вид</RJW_hediff_unknownSpecies>
<RJW_hediff_weight>Вес: {0}</RJW_hediff_weight>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/Keyed/RimJobWorldKeys.xml
|
XML
|
mit
| 6,265 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!-- Settings-->
<RJWSettingsOne>RimJobWorld - Базовые настройки</RJWSettingsOne>
<NymphTamed>Разрешить присединение нимфоманок к колонии</NymphTamed>
<NymphTamed_desc>Создаёт пешку с ('Нимфомания') и присоединяет к колонии.</NymphTamed_desc>
<NymphWild>Дикая нимфоманка</NymphWild>
<NymphWild_desc>Создаёт пешку с ('Нимфомания') и начинает атаку колонии.</NymphWild_desc>
<NymphRaidEasy>Рейд нимфоманок (easy)</NymphRaidEasy>
<NymphRaidEasy_desc>Нимфоманки решили посетить вашу колонию.\nbaseChance 0.1.</NymphRaidEasy_desc>
<NymphRaidHard>Рейд нимфоманок(hard)</NymphRaidHard>
<NymphRaidHard_desc>Нимфоманки решили что теперь это их колония.\n(Вам конец).\nbaseChance 0.01.</NymphRaidHard_desc>
<NymphPermanentManhunter>Жажда крови у нимфоманок</NymphPermanentManhunter>
<NymphPermanentManhunter_desc>Рейд нимфоманок с жаждой крови.</NymphPermanentManhunter_desc>
<FemaleFuta>Включить членодевок (фута)</FemaleFuta>
<FemaleFuta_desc>Создаёт пешек-девушек с членом</FemaleFuta_desc>
<MaleTrap>Включить трапов</MaleTrap>
<MaleTrap_desc>Создаёт пешек-мужчин с грудью</MaleTrap_desc>
<male_nymph_chance>Шанс спавна мужчины-нимфоманки</male_nymph_chance>
<male_nymph_chance_desc>Шанс спавна мужчины-нимфоманки \n\n 0 - 100\nСтандарт: 0</male_nymph_chance_desc>
<futa_nymph_chance>Фута/трап шанс спавна</futa_nymph_chance>
<futa_nymph_chance_desc>Фута/трап шанс спавна \n\n 0 - 100\nСтандарт: 0</futa_nymph_chance_desc>
<futa_natives_chance>Фута/трап шанс спавна среди живущих на планете</futa_natives_chance>
<futa_natives_chance_desc>Фута/трап шанс спавна среди живущих на планете \n(индустриального уровня и ниже) \n\n 0 - 100\nСтандарт: 0</futa_natives_chance_desc>
<futa_spacers_chance>Фута/трап шанс спавна среди прибывших из космоса</futa_spacers_chance>
<futa_spacers_chance_desc>Фута/трап шанс спавна среди прибывших из космоса \n\n 0 - 100\nСтандарт: 5</futa_spacers_chance_desc>
<sexneed_decay_rate_name>Нужда в сексе (%)</sexneed_decay_rate_name>
<sexneed_decay_rate_desc>0% для отсутствия.\n1000000% превратить планету в бордель. Рекомендованно: 50% до 200%.</sexneed_decay_rate_desc>
<SexMinimumAge>Минимальный возраст для секса</SexMinimumAge>
<SexMinimumAge_desc>Человекоподобные пешки до данного возраста не будут заниматься грязными делишками.</SexMinimumAge_desc>
<SexFreeForAllAge>Возраст согласия</SexFreeForAllAge>
<SexFreeForAllAge_desc>Человекоподобные пешки данного возраста будут заниматься сексом только с пешками у которых 2 года разницы с ними.</SexFreeForAllAge_desc>
<bestiality_enabled>Включить зоофилию</bestiality_enabled>
<bestiality_enabled_desc>Включает зоофилию. Желанную и не очень.</bestiality_enabled_desc>
<animal_on_animal_enabled>Включить спаривание животных</animal_on_animal_enabled>
<animal_on_animal_enabled_desc>Включает спаривание диких животных. Приручённые животные будут спариваться друг с другом вне зависимости от этой настройки.</animal_on_animal_enabled_desc>
<necrophilia_enabled>Включить некрофилию</necrophilia_enabled>
<necrophilia_enabled_desc>Добавляет секс с трупами. Обычно этим занимаются пешки с чертой Некрофил, но и другие смогут это делать в случае повышенной нужды в сексе.</necrophilia_enabled_desc>
<sounds_enabled>Включить звуки RJW</sounds_enabled>
<sounds_enabled_desc>Включает характерные для RJW звуки. Не имеет воздействия на настройки игры: если у вас выключен звук, то эта настройка ничего не делает.</sounds_enabled_desc>
<sounds_sex_volume>Громкость секса</sounds_sex_volume>
<sounds_sex_volume_desc>Изменить громкость</sounds_sex_volume_desc>
<sounds_cum_volume>Звуки жидкостей</sounds_cum_volume>
<sounds_cum_volume_desc>Изменить громкость</sounds_cum_volume_desc>
<sounds_voice_volume>Громкость голоса</sounds_voice_volume>
<sounds_voice_volume_desc>Изменить громкость</sounds_voice_volume_desc>
<sounds_orgasm_volume>Громкость оргазма</sounds_orgasm_volume>
<sounds_orgasm_volume_desc>Изменить громкость</sounds_orgasm_volume_desc>
<cum_filth>Включить "жидкости"-грязь</cum_filth>
<cum_filth_desc>Добавляет пятна на пол после секса. Отключение этой опции сделает игру чуть проще, так как убираться придётся меньше.</cum_filth_desc>
<cum_on_body>Включить пятна спермы на теле</cum_on_body>
<cum_on_body_desc>Включает пятна спермы на теле.</cum_on_body_desc>
<cum_on_body_amount_adjust>Количество спермы на теле</cum_on_body_amount_adjust>
<cum_on_body_amount_adjust_desc>Вся сперма на теле будет умножена на данное значение. </cum_on_body_amount_adjust_desc>
<cum_overlays>Включить оверлей спермы</cum_overlays>
<cum_overlays_desc>Может конфликтовать с модами меняющими внешность пешек.</cum_overlays_desc>
<STD_enabled>Включить ЗППП</STD_enabled>
<STD_enabled_desc>Включает заболевания передающеися половым путём.</STD_enabled_desc>
<STD_FromFloors>ЗППП от окружения</STD_FromFloors>
<STD_FromFloors_desc>Ваши пешки могут заболеть от грязного окружения. Теперь заболевания будут и вправду ПОЛОВЫЕ.</STD_FromFloors_desc>
<RPG_hero_control_name>Режим героя</RPG_hero_control_name>
<RPG_hero_control_desc>Игрок может назначить одну пешку под свой полный контроль</RPG_hero_control_desc>
<RPG_hero_control_HC_name>Режим героя (Хардкор)</RPG_hero_control_HC_name>
<RPG_hero_control_HC_desc>Игрок может контролировать ТОЛЬКО выбранную пешку. Запаситесь смазкой, она вам понадобится\n(предназначено для мультиплеера)</RPG_hero_control_HC_desc>
<RPG_hero_control_Ironman_name>Режим героя (Стальная воля)</RPG_hero_control_Ironman_name>
<RPG_hero_control_Ironman_desc>ХАРДКОР: Игрок может выбрать героя только один раз</RPG_hero_control_Ironman_desc>
<!-- Rape stuff-->
<designated_freewill>Решение отмеченной для пользования пешки</designated_freewill>
<designated_freewill_desc>Отмеченная для пользования пешка может инициировать секс сама.</designated_freewill_desc>
<rape_enabled>Включить изнасилования</rape_enabled>
<rape_enabled_desc>Кто-то приглянулся? Кого вообще интересует его согласие?</rape_enabled_desc>
<PrisonersBeating>Избиение пленников</PrisonersBeating>
<PrisonersBeating_desc>Пешка будет избивать пленного во время изнасилования.</PrisonersBeating_desc>
<GentlePrisonersBeating>Мягкий режим</GentlePrisonersBeating>
<GentlePrisonersBeating_desc>Снижает урон до ~0-1.</GentlePrisonersBeating_desc>
<rape_stripping>Strip victims</rape_stripping>
<rape_stripping_desc>Включить раздевание жертв (Неподконтрольные игроку изнасилования - животными, Врагами, итд приведут к снятию одежды у жертвы)</rape_stripping_desc>
<ColonistCanCP>Включить изнасилования отмеченных пешек</ColonistCanCP>
<ColonistCanCP_desc>Колонисты будут насиловать отмеченных вами.</ColonistCanCP_desc>
<VisitorsCanCP>Включить изнасилования отмеченных пешек гостями</VisitorsCanCP>
<VisitorsCanCP_desc>Гости будут насиловать отмеченных вами.</VisitorsCanCP_desc>
<AnimalsCanCP>Включить изнасилования отмеченных пешек животными</AnimalsCanCP>
<AnimalsCanCP_desc>Животные будут насиловать отмеченных вами. Для работы нужна включённая опция "Зоофилия".</AnimalsCanCP_desc>
<NonFutaWomenRaping_MaxVulnerability>Девушки-насильницы (%)</NonFutaWomenRaping_MaxVulnerability>
<NonFutaWomenRaping_MaxVulnerability_desc>Женщины с уязвимостью ниже указанной могут стать инициаторми изнасилования. \nAnimals vulnerability is always 100%. \nДля просмотра уязвимости откройте вкладку информации.\n\n 0 - 300%</NonFutaWomenRaping_MaxVulnerability_desc>
<Rapee_MinVulnerability_human>Минимальная уязвимость жертвы (%)</Rapee_MinVulnerability_human>
<Rapee_MinVulnerability_human_desc>Человекоподобные пешки с уязвимостью выше указанной могут быть изнасилованы. \nДля просмотра уязвимости откройте вкладку информации.\n\n 0 - 300%</Rapee_MinVulnerability_human_desc>
<Rapee_MinVulnerability_animals>Минимальная уязвимость животных (%)</Rapee_MinVulnerability_animals>
<Rapee_MinVulnerability_animals_desc>Животные пешки с уязвимостью выше указанной могут быть изнасилованы зоофилами. \nДля просмотра уязвимости откройте вкладку информации.\n\n 0 - 300%</Rapee_MinVulnerability_animals_desc>
<RJWSettingsFour>RimJobWorld - Настройки секса</RJWSettingsFour>
<SettingHookupsEnabled>Включить пик-ап (в мире)</SettingHookupsEnabled>
<SettingHookupsEnabled_desc>Могут ли одинокие пешки заниматься сексом друг с другом без отношений</SettingHookupsEnabled_desc>
<SettingQuickHookupsEnabled>Включить "быстрый" секс.</SettingQuickHookupsEnabled>
<SettingQuickHookupsEnabled_desc>Осторожно: может прерывать работу других пешек.</SettingQuickHookupsEnabled_desc>
<SettingNoHookupsDuringWorkHours>Отключить пик-ап в рабочее время</SettingNoHookupsDuringWorkHours>
<SettingNoHookupsDuringWorkHours_desc>Могут ли одинокие пешки заниматься сексом друг с другом без отношений в рабочее время.\nНимфоманки это игнорируют.</SettingNoHookupsDuringWorkHours_desc>
<SettingColonistsCanHookup>Колонисты могут пик-апить</SettingColonistsCanHookup>
<SettingColonistsCanHookup_desc>Могут ли колонисты заниматься сексом для развлечения.</SettingColonistsCanHookup_desc>
<SettingColonistsCanHookupWithVisitor>Колонисты могут пик-апить гостей</SettingColonistsCanHookupWithVisitor>
<SettingColonistsCanHookupWithVisitor_desc>Могут ли колонисты заниматься сексом для развлечения с гостями.</SettingColonistsCanHookupWithVisitor_desc>
<SettingCanHookupWithPrisoner>Секс с заключёнными</SettingCanHookupWithPrisoner>
<SettingCanHookupWithPrisoner_desc>Могут ли гости предложить заняться сексом колонисту.\nНе ограничено меткой для заключённых, так как секс считается по согласию.</SettingCanHookupWithPrisoner_desc>
<SettingVisitorsCanHookupWithColonists>Гости могут пик-апить колонистов</SettingVisitorsCanHookupWithColonists>
<SettingVisitorsCanHookupWithColonists_desc>Могут ли гости предложить заняться сексом колонисту.</SettingVisitorsCanHookupWithColonists_desc>
<SettingVisitorsCanHookupWithVisitors>Пик-ап между гостями</SettingVisitorsCanHookupWithVisitors>
<SettingVisitorsCanHookupWithVisitors_desc>Могут ли гости предложить заняться сексом другому гостю.</SettingVisitorsCanHookupWithVisitors_desc>
<SettingPrisonersCanHookupWithNonPrisoner>Заключенные пик-апят колонистов</SettingPrisonersCanHookupWithNonPrisoner>
<SettingPrisonersCanHookupWithNonPrisoner_desc>Могут ли пленные предложить заняться сексом не-пленнику.\nПешки могут заниматься сексом только в своём радиусе доступа.</SettingPrisonersCanHookupWithNonPrisoner_desc>
<SettingPrisonersCanHookupWithPrisoner>Пик-ап между пленными</SettingPrisonersCanHookupWithPrisoner>
<SettingPrisonersCanHookupWithPrisoner_desc>Могут ли заключённый предложить заняться сексом другому.\nПешки могут заниматься сексом только в своём радиусе доступа.</SettingPrisonersCanHookupWithPrisoner_desc>
<SettingNymphosCanPickAnyone>Нимфоманки могут выбрать всех</SettingNymphosCanPickAnyone>
<SettingNymphosCanPickAnyone_desc>Могут ли нимфоманки выбрать любую человекообразную пешку.\nПри этом подчиняясь правилам ниже.</SettingNymphosCanPickAnyone_desc>
<SettingNymphosCanCheat>Нимфоманки изменяют</SettingNymphosCanCheat>
<SettingNymphosCanCheat_desc>Нимфоманки могут изменять партнёрам в случае острой нужды в сексе.</SettingNymphosCanCheat_desc>
<SettingNymphosCanHomewreck>Нимфоманки могут заниматься сексом с занятыми</SettingNymphosCanHomewreck>
<SettingNymphosCanHomewreck_desc>Нимфоманки могут заниматься сексом с пешками в отношениях.</SettingNymphosCanHomewreck_desc>
<SettingNymphosCanHomewreckReverse>Предложение измены нимфоманкам</SettingNymphosCanHomewreckReverse>
<SettingNymphosCanHomewreckReverse_desc>Нимфоманки могут согласиться на секс даже если находятся в отношениях.</SettingNymphosCanHomewreckReverse_desc>
<SettingHookupChanceForNonNymphos>Шанс пик-апа в час %</SettingHookupChanceForNonNymphos>
<SettingHookupChanceForNonNymphos_desc>Шанс того, что раз в час возбуждённая пешка будет искать секс.\nРаз в час и если пешка закончила работу. Стандарт 30%</SettingHookupChanceForNonNymphos_desc>
<SettingMinimumFuckabilityToHookup>Минимальная привлекательность для пик-апа</SettingMinimumFuckabilityToHookup>
<SettingMinimumFuckabilityToHookup_desc>Привлекательность(RJW) обоих партнёров для успешного пик-апа.\n Стандарт 10%.</SettingMinimumFuckabilityToHookup_desc>
<SettingMinimumAttractivenessToHookup>Привлекательность друг к другу</SettingMinimumAttractivenessToHookup>
<SettingMinimumAttractivenessToHookup_desc>Привлекательность(Rimworld) обоих партнёров для успешного пик-апа.\n Стандарт 50%.\n Для Нимфоманок > 0.</SettingMinimumAttractivenessToHookup_desc>
<SettingMinimumRelationshipToHookup>Минимальное отношение </SettingMinimumRelationshipToHookup>
<SettingMinimumRelationshipToHookup_desc>Очки отношений нужные для пик-апа.\n Стандарт 20.\n Для Нимфоманок > 0.</SettingMinimumRelationshipToHookup_desc>
<RJWDebugSettings>RimJobWorld - Дебаг (возможны ошибки перевода)</RJWDebugSettings>
<!-- debug stuff-->
<whoringtab_enabled>Включить вкладку проституции</whoringtab_enabled>
<submit_button_enabled>Включить кнопку "сдаться"</submit_button_enabled>
<submit_button_enabled_desc>Кнопка позволяет пропустить опасную часть боя и перейти сразу к унизительной. \nВыключи, если честь тебе важнее жизни. \nЕсли передумаешь, то эта кнопка всегда тут.</submit_button_enabled_desc>
<RJW_designation_box>Показывать метки RJW</RJW_designation_box>
<RJW_designation_box_desc>Включает метки на интерфейсе.</RJW_designation_box_desc>
<StackRjwParts_name>Видимость частей</StackRjwParts_name>
<StackRjwParts_desc>Показывает rjw части тела во вкладке здоровья </StackRjwParts_desc>
<maxDistancetowalk_name>Максимальное расстояние для сексаt</maxDistancetowalk_name>
<maxDistancetowalk_desc>Устанавливает дистанцию в которой ИИ будет искать партнёра (PawnPath).\n Стандарт 250 ~20 клеток.\n\nЕсли ниже 100, используется дистанция без учёта препятствий(DistanceToSquared), но может привести к тому, что пешка решит обойти всю гору ради секса.</maxDistancetowalk_desc>
<!-- cheat stuff-->
<override_RJW_designation_checks_name>Снять ограничения меток</override_RJW_designation_checks_name>
<override_RJW_designation_checks_desc>Позволяет ставить метки на кого угодно.\n ЧИТЕР!</override_RJW_designation_checks_desc>
<override_control>Прямой контроль</override_control>
<override_control_desc>Игрок вручную контролирует секс-действия пешек.\n ЧИТЕР!</override_control_desc>
<AddTrait_Rapist>Получение черты Насильник</AddTrait_Rapist>
<AddTrait_Rapist_desc>Шанс получить черту Насильник после 10 половых актов, >12% которых являются изнасилованиями\n ЧИТЕР!</AddTrait_Rapist_desc>
<AddTrait_Masocist>Получение черты Мазохист</AddTrait_Masocist>
<AddTrait_Masocist_desc>Шанс получить черту Мазохист после изнасилования, 5% стадии "Сломанности"\n ЧИТЕР!</AddTrait_Masocist_desc>
<AddTrait_Nymphomaniac>Получение черты Нимфомания</AddTrait_Nymphomaniac>
<AddTrait_Nymphomaniac_desc>Шанс получить черту Нимфомания после 10 половых актов, при наличии зависимости от гриба-афродизиака\n ЧИТЕР!</AddTrait_Nymphomaniac_desc>
<AddTrait_Necrophiliac>Получение черты Некрофил</AddTrait_Necrophiliac>
<AddTrait_Necrophiliac_desc>Шанс получить черту Некрофил после 10 половых актов, >50% которых с трупами\n ЧИТЕР!</AddTrait_Necrophiliac_desc>
<AddTrait_Nerves>Получение черты Нервный</AddTrait_Nerves>
<AddTrait_Nerves_desc>Получение черты после изнасилования\n ЧИТЕР!</AddTrait_Nerves_desc>
<AddTrait_Zoophiliac>Получение черты Зоофил</AddTrait_Zoophiliac>
<AddTrait_Zoophiliac_desc>Шанс получить черту Зоофил после 10 половых актов, >50% которых с животными\n ЧИТЕР!</AddTrait_Zoophiliac_desc>
<!-- debug stuff-->
<ForbidKidnap>Запрет похищений</ForbidKidnap>
<ForbidKidnap_desc>Никаких похищений</ForbidKidnap_desc>
<override_lovin>Отключить секс ваниллы</override_lovin>
<override_lovin_desc>Использовать секс RJW вместо стандартного</override_lovin_desc>
<override_matin>Отключить спаривание ваниллы</override_matin>
<override_matin_desc>Использовать спаривание RJW вместо стандартного</override_matin_desc>
<WildMode_name>Дикий Режим</WildMode_name>
<WildMode_desc>ЭКСПЕРИМЕНТАЛЬНЫЙ - НЕ СООБЩАЙТЕ О БАГАХ С ВКЛЮЧЕННОЙ ОПЦИЕЙ. \n\nНет правил для секса. Большинство ограничений отключено. Наслаждайтесь дикой стороной Rimworld.</WildMode_desc>
<GenderlessAsFuta_name>Бесполые-футы</GenderlessAsFuta_name>
<GenderlessAsFuta_desc>ИСПОЛЬЗУЙТЕ НА СВОЙ РИСК. \n\nВсе бесполые пешки будут считаться Женщинами и иметь все половые органы.</GenderlessAsFuta_desc>
<DevMode_name>Режим разработчика</DevMode_name>
<DevMode_desc>Создаёт логи и прочую скучную дрянь. Лучше выключить.</DevMode_desc>
<DebugLogJoinInBed>Дебаг Пик-апа</DebugLogJoinInBed>
<DebugLogJoinInBed_desc>Добавляет в логи сообщения о поиске партнёра, что очень сильно их засоряет. \n Только для разрабодчиков и баг-хантеров.</DebugLogJoinInBed_desc>
<DebugWhoring>Дебаг проституции</DebugWhoring>
<DebugWhoring_desc>Добавляет в логи сообщения о поиске партнёра, что очень сильно их засоряет. \n Только для разрабодчиков и баг-хантеров.</DebugWhoring_desc>
<DebugRape>Дебаг изнасилованя</DebugRape>
<DebugRape_desc>Добавляет в логи сообщения о поиске партнёра, что очень сильно их засоряет. \n Только для разрабодчиков и баг-хантеров.</DebugRape_desc>
<!-- Pregnancy stuff-->
<RJWSettingsTwo>RimJobWorld - Настройки беременности</RJWSettingsTwo>
<RJWH_pregnancy>Включить беременность для людей</RJWH_pregnancy>
<RJWH_pregnancy_desc>Использовать RJW беременность для беременности типа человек-человек.</RJWH_pregnancy_desc>
<PregnantCoeffecientForHuman>Шанс беременности (%)</PregnantCoeffecientForHuman>
<PregnantCoeffecientForHuman_desc>Шанс беременности после вагинального секса.\n\n 0 - 100%</PregnantCoeffecientForHuman_desc>
<RJWB_pregnancy>Включить беременность зоофилов</RJWB_pregnancy>
<RJWB_pregnancy_desc>Использовать RJW беременность для беременности типа человек-животное.</RJWB_pregnancy_desc>
<PregnantCoeffecientForAnimals>Шанс беременности (%)</PregnantCoeffecientForAnimals>
<PregnantCoeffecientForAnimals_desc>Шанс беременности после вагинального секса.\n\n 0 - 100%</PregnantCoeffecientForAnimals_desc>
<InterspeciesImpregnantionModifier>Межвидовая беременность (%)</InterspeciesImpregnantionModifier>
<InterspeciesImpregnantionModifier_desc>Меняет шанс рождения детёныша от межвидового скрещивания. При 20% шанс уменьшается в пять раз и тд.\n\n 0 - 100%</InterspeciesImpregnantionModifier_desc>
<UseParentMethod>Наследование ДНК</UseParentMethod>
<UseParentMethod_desc>ВКЛ:Дети случайны.\nВЫКЛ:Дети вида матери.</UseParentMethod_desc>
<OffspringLookLikeTheirMother>Наследование ДНК человекообразными</OffspringLookLikeTheirMother>
<OffspringLookLikeTheirMother_desc>Управляет беременностью человекообразных. \n100% всегда даёт ребёнка расы матери. \n 0% даёт ребёнка расы отца.\n\n 0 - 100%</OffspringLookLikeTheirMother_desc>
<OffspringIsHuman>Наследование ДНК зоофилами</OffspringIsHuman>
<OffspringIsHuman_desc>Управляет беременностью зоофилов и животных.\n100% всегда даёт ребёнка расы "матери". \n 0% даёт ребёнка расы "отца".\n\n 0 - 100%</OffspringIsHuman_desc>
<OffspringIsHuman2>Наследование ДНК зоофилами</OffspringIsHuman2>
<OffspringIsHuman2_desc>Управляет беременностью зоофилов и животных.\n\n лево - дети расы животного. \n\n право - дети расы человекообразных.</OffspringIsHuman2_desc>
<RJWA_pregnancy>Включить беременность для животных</RJWA_pregnancy>
<RJWA_pregnancy_desc>Использовать RJW беременность для беременности типа животное-животное.</RJWA_pregnancy_desc>
<RJWI_pregnancy>Включить откладку яиц</RJWI_pregnancy>
<RJWI_pregnancy_desc>Использовать RJW беременность для беременности отложенными другими существами яйцами.</RJWI_pregnancy_desc>
<egg_pregnancy_implant_anyone>Фильтр откладки яиц</egg_pregnancy_implant_anyone>
<egg_pregnancy_implant_anyone_desc>ВКЛ:Все с женским яйцекладом могут откладывать яйца.\nВЫКЛ:Только предопределённый тип родителя может отложить яйца.</egg_pregnancy_implant_anyone_desc>
<egg_pregnancy_fertilize_anyone>Egg fertilizing filter</egg_pregnancy_fertilize_anyone>
<egg_pregnancy_fertilize_anyone_desc>ВКЛ:Все с мужским яйцекладом могут оплодотворять яйца.\nВЫКЛ:Только предопределённый тип родителя может оплодотворить яйца.</egg_pregnancy_fertilize_anyone_desc>
<egg_pregnancy_eggs_size>Размер яиц</egg_pregnancy_eggs_size>
<egg_pregnancy_eggs_size_desc>0 - возможна откладка бесконечного числа.</egg_pregnancy_eggs_size_desc>
<MechanoidImplanting>Включить импланты механоидов</MechanoidImplanting>
<MechanoidImplanting_desc>Позволить механоидам проводить "зондирование".</MechanoidImplanting_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_fertility_endAge_male>Мужской возраст потери фертильности </RJW_fertility_endAge_male>
<RJW_fertility_endAge_male_desc>Поднастраивается под продолжительность жизни инопланетных рас. Работает для мужского пола как животных так и людей.</RJW_fertility_endAge_male_desc>
<RJW_fertility_endAge_female_humanlike>Женский возраст потери фертильности (люди)</RJW_fertility_endAge_female_humanlike>
<RJW_fertility_endAge_female_humanlike_desc>В отличии от животных, женщины теряют фертильность гораздо раньше. Для баланса одинаков для всех рас.</RJW_fertility_endAge_female_humanlike_desc>
<RJW_fertility_endAge_female_animal>Женский возраст потери фертильности (животные)</RJW_fertility_endAge_female_animal>
<RJW_fertility_endAge_female_animal_desc>В отличии от людей многие животные фертильны до смерти.</RJW_fertility_endAge_female_animal_desc>
<In_human_years> В человеческих годах</In_human_years>
<XofLifeExpectancy>% от продолжительности жизни</XofLifeExpectancy>
<InterspeciesDisabled>Отключить межвидовую беременность.</InterspeciesDisabled>
<InterspeciesMaximum>То же самое, что и одновидовая.</InterspeciesMaximum>
<AlwaysMother>Всегда вида матери.</AlwaysMother>
<AlwaysFather>Всегда вида отца.</AlwaysFather>
<AlwaysBeast>Всегда вид зверя.</AlwaysBeast>
<AlwaysHumanlike>Всегда вид человекообразных.</AlwaysHumanlike>
<ComplexImpregnation>Включить усложнённый межвидовой расчёт</ComplexImpregnation>
<ComplexImpregnation_desc><![CDATA[Если включён, то шанс беременности высчитывается по множеству параметров вроде размеров тела и тд.
Примеры:
Человек/Крылатый гуманоид : ~95%
Человек/Гарпия : ~75%
Человек/Собака : ~30%
Человек/Курица : ~5%
Волк/Собака : ~95%
Волк/Курица : ~5%
Петух/Гарпия : ~30%
Шанс может быть изменён другими настройками беременности.
]]></ComplexImpregnation_desc>
<!-- sex types -->
<RJWSettingsThree>RimJobWorld - Настройки секс-активностей</RJWSettingsThree>
<SexTypeFrequency>Частота типа секса:\n[Выше = Более частый]</SexTypeFrequency>
<vaginal>Вагинальный</vaginal>
<vaginal_desc>Частота вагинального секса. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 120</vaginal_desc>
<cunnilingus>Куни</cunnilingus>
<cunnilingus_desc>Частота оральной стимуляции вагины. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 80</cunnilingus_desc>
<anal>Анальный</anal>
<anal_desc>Частота анального секса. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 80</anal_desc>
<rimming>Римминг</rimming>
<rimming_desc>Частота оральной стимуляции ануса. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 40</rimming_desc>
<fellatio>Минет</fellatio>
<fellatio_desc>Частота минета. Учитывайте, что частота так же подвержена другим факторам. \n\n 1 - 200\nСтандарт: 80</fellatio_desc>
<handjob>Мастурбация</handjob>
<handjob_desc>Частота мастурбации другой пешке. Требует наличия рук. Учитывайте, что частота так же подвержена другим факторам.\n\ 1 - 200\nСтандарт: 80</handjob_desc>
<mutual_masturbation>Взаимная мастурбация</mutual_masturbation>
<mutual_masturbation_desc>Частота взаимной мастурбации. Требует наличия рук . Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 70</mutual_masturbation_desc>
<double_penetration>Двойная пенетрация</double_penetration>
<double_penetration_desc>Частота одновременной стимуляции ануса и влагалища. Требует наличия мультипениса (к примеру гемипениса). Учитывайте, что частота так же подвержена другим факторам.\n\n range: 1 - 200\nСтандарт:60</double_penetration_desc>
<breastjob>Мастурбация грудью</breastjob>
<breastjob_desc>Частота мастурбации грудью. Требует наличия груди у одной пешки и пениса у второй. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 50</breastjob_desc>
<fingering>Вагинальный фингеринг</fingering>
<fingering_desc>Частота пенетрации влагалища пальцами. Требует от одной пешки наличия влагалища, а от второй наличия рабочих рук. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 50</fingering_desc>
<scissoring>Поза ножниц</scissoring>
<scissoring_desc>Частота лесбийского секса в позе ножниц. Требует от обоих пешек наличия вагин. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 50</scissoring_desc>
<footjob>Стимуляция ногами</footjob>
<footjob_desc>Частота стимуляций ногами. Учитывайте, что частота так же подвержена другим факторам. \n\n 1 - 200\nСтандарт: 30</footjob_desc>
<fisting>Анальный фистинг</fisting>
<fisting_desc>Частота анального фистинга (Вагинальный ещё не был введён). Требует от одной пешки наличия рабочей руки. Учитывайте, что частота так же подвержена другим факторам.\n\n 1 - 200\nСтандарт: 30</fisting_desc>
<sixtynine>Поза 69</sixtynine>
<sixtynine_desc>Частота позы 69. Требует наличия гениталий у обеих пешек. Учитывайте, что частота так же подвержена другим факторам. \n\n 1 - 200\nСтандарт: 69</sixtynine_desc>
<FapEverywhere>Мастурбация где угодно</FapEverywhere>
<FapEverywhere_desc>Пешка будет мастурбировать где захочет.</FapEverywhere_desc>
<FapInBed>Мастурбация в кровати</FapInBed>
<FapInBed_desc>Пешка будет мастурбировать в своей кровати</FapInBed_desc>
<Malesex>Разрешённый мужской секс: </Malesex>
<FeMalesex>Разрешённый женский секс: </FeMalesex>
<AllowedSex.All>Весь</AllowedSex.All>
<AllowedSex.Homo>Однополый</AllowedSex.Homo>
<AllowedSex.Nohomo>Разнополый</AllowedSex.Nohomo>
<SexClothing>Предпочтения в одежде: </SexClothing>
<SexClothingNude>Голышом</SexClothingNude>
<SexClothingHeadwear>Только шапка</SexClothingHeadwear>
<SexClothingFull>Полностью одет</SexClothingFull>
<RapeAttemptAlert>Звуковое оповещение об изнасиловании: </RapeAttemptAlert>
<RapeAttemptAlertAlways>Всегда ВКЛ</RapeAttemptAlertAlways>
<RapeAttemptAlertHumanlike>Только если цель является человеком</RapeAttemptAlertHumanlike>
<RapeAttemptAlertColonist>Только если цель является колонистом</RapeAttemptAlertColonist>
<RapeAttemptAlertSilent>Показывать только текст</RapeAttemptAlertSilent>
<RapeAttemptAlertDisabled>ВЫКЛ</RapeAttemptAlertDisabled>
<RapeAlert>Оповещение об изнасиловании: </RapeAlert>
<RapeAlertAlways>Всегда ВКЛ</RapeAlertAlways>
<RapeAlertHumanlike>Только если цель является человеком</RapeAlertHumanlike>
<RapeAlertColonist>Только если цель является колонистом</RapeAlertColonist>
<RapeAlertSilent>Показывать только текст</RapeAlertSilent>
<RapeAlertDisabled>ВЫКЛ</RapeAlertDisabled>
<RapeAlertCP>Оповещения для отмеченных пешек</RapeAlertCP>
<RapeAlertCP_desc>Только если пешку насилуют.</RapeAlertCP_desc>
<RapeAlertBreeding>Только если с пешкой спаривается животное</RapeAlertBreeding>
<RapeAlertBreeding_desc>Показывать если пешка обозначенная для спаривания будет изнасилована.</RapeAlertBreeding_desc>
<SexualitySpread1>Разброс ориентации: </SexualitySpread1>
<SexualitySpread2>Сгенерирована RJW.\nТОЛЬКО ДЛЯ СЕКСА\nНЕ ВЛИЯЕТ НА ОТНОШЕНИЯ</SexualitySpread2>
<SexualitySpreadVanilla>[Импорт из ваниллы]</SexualitySpreadVanilla>
<SexualitySpreadPsychology>[Импорт из мода Psychology]</SexualitySpreadPsychology>
<SexualitySpreadIndividuality>[Импорт из мода [SYR]Individuality]</SexualitySpreadIndividuality>
<SexualityAsexual> Асексуал: </SexualityAsexual>
<SexualityPansexual> Пансексуал: </SexualityPansexual>
<SexualityHeterosexual> Гетеросексуал: </SexualityHeterosexual>
<SexualityBisexual> Бисексуал: </SexualityBisexual>
<SexualityGay> Гомосексуал: </SexualityGay>
<SexualityAsexual_desc>Низкое, или вовсе отутствующее либидо. Не интересуются сексом в принципе.</SexualityAsexual_desc>
<SexualityPansexual_desc>Пансексуалам в принципе плевать на половые признаки.</SexualityPansexual_desc>
<SexualityHeterosexual_desc>Их привлекает противоположный пол.</SexualityHeterosexual_desc>
<SexualityBisexual_desc>Их привлекают и мужчины и женщины.</SexualityBisexual_desc>
<SexualityGay_desc>Их привлекает их собственный пол.</SexualityGay_desc>
<MaxQuirks>Максимально число причуд</MaxQuirks>
<MaxQuirks_desc>Кол-во причуд, которое может быть сгенерировано для пешки.</MaxQuirks_desc>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/Keyed/SettingsKeys.xml
|
XML
|
mit
| 41,506 |
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<!--Sexuality card-->
<SexcardTooltip>Show sexuality</SexcardTooltip>
<WhorePrice>Whoring price range: </WhorePrice>
<Quirks>Quirks: </Quirks>
<NoQuirks>No Quirks, vanilla.</NoQuirks>
<MessyQuirk><![CDATA[
{pawn} производит гораздо больше жидкостей при сексе и {pawn_pronoun} редко решает убрать {pawn_possessive} грязь с пола.
]]></MessyQuirk>
<PodophileQuirk><![CDATA[
{pawn} очень любит ноги и более склонен к сексу с участием ног.
]]></PodophileQuirk>
<TeratophileQuirk><![CDATA[
{pawn} предпочитает уродов. {pawn_pronoun} так же предпочитает зверей побольше и пострашнее, если {pawn_pronoun}, конечно, любит такое...
]]></TeratophileQuirk>
<EndytophileQuirk><![CDATA[
{pawn} предпочитает оставлять {pawn_possessive} одежду на себе во время секса.
]]></EndytophileQuirk>
<ExhibitionistQuirk><![CDATA[
{pawn} любит заниматься сексом на глазах у других.
]]></ExhibitionistQuirk>
<GerontophileQuirk><![CDATA[
{pawn} любит партнёров постарже (55+ по человеческим меркам).
]]></GerontophileQuirk>
<SomnophileQuirk><![CDATA[
{pawn} предпочитает видеть {pawn_possessive} партнёров спящими во время секса.
]]></SomnophileQuirk>
<SapiosexualQuirk><![CDATA[
{pawn} предпочитает умных партнёров.
]]></SapiosexualQuirk>
<FertileQuirk><![CDATA[
{pawn} имеет невероятно высокий уровень фертильности.
]]></FertileQuirk>
<InfertileQuirk><![CDATA[
{pawn} имеет невероятно низкий уровень фертильности.
]]></InfertileQuirk>
<ImpregnationFetishQuirk><![CDATA[
{pawn} возбуждается лишь от одной мысли о беременности. {pawn_pronoun} предпочитает позы, которые могут закончится беременностью.{pawn} вообще боится того что {pawn_pronoun} или {pawn_possessive} партнёр забеременнеет .
]]></ImpregnationFetishQuirk>
<PregnancyFetishQuirk><![CDATA[
{pawn} предпочитает партнёров "в положении".
]]></PregnancyFetishQuirk>
<IncubatorQuirk><![CDATA[
{pawn} успевает выносить в себе такое количество яиц, что {pawn_possessive} тело приспособилось к их вынашиванию. {pawn_possessive} скорость инкубации яиц повышена.
]]></IncubatorQuirk>
<BreederQuirk><![CDATA[
{pawn} успевает выносить в себе столько детей, что {pawn_possessive} тело приспособилось к их вынашиванию. {pawn_possessive} беременности теперь короче и дают больше потомства.
]]></BreederQuirk>
<VigorousQuirk><![CDATA[
{pawn} словно набирается сил от секса! {pawn_pronoun} практически не устаёт им заниматься.
]]></VigorousQuirk>
<ChitinLoverQuirk><![CDATA[
{pawn} возбуждается от плавных изгибов и жёсткости хитинового покрова. {pawn_pronoun} предпочитает насекомых в качестве партнёров.
]]></ChitinLoverQuirk>
<DemonLoverQuirk><![CDATA[
{pawn} любитель непослушных. {pawn_pronoun} предпочитает чтобы {pawn_possessive} партнёры выглядели словно исчадия ада. Или хотя бы некоторые их части.
]]></DemonLoverQuirk>
<FeatherLoverQuirk><![CDATA[
{pawn} любит чтобы снизу было попушистее. {pawn_pronoun} предпочитает птиц и динозавров. Потому что и у птиц и у динозавров есть перья, как объясняет {pawn}.
]]></FeatherLoverQuirk>
<FurLoverQuirk><![CDATA[
{pawn} предпочитает партнёров с густым и шелковистым словноем шерсти.
]]></FurLoverQuirk>
<PlantLoverQuirk><![CDATA[
{pawn} любит поливать цветы. Если вы понимаете о чём я.
]]></PlantLoverQuirk>
<RobotLoverQuirk><![CDATA[
Что лучше, 2D или 3D? {pawn} знает что 3D-печать может дать тебе лучшее от обоих миров.
]]></RobotLoverQuirk>
<ScaleLoverQuirk><![CDATA[
Кто бы не хотел отыметь дракона? {pawn} точно не откажется. {pawn} определённо хочет отыметь дракона.
]]></ScaleLoverQuirk>
<SkinLoverQuirk><![CDATA[
{pawn} предпочитает чтобы у {pawn_possessive} партнёров была гладкая и упругая кожа без каких либо помех вроде чешуи или шерсти. К {pawn_objective} счастью людей в этом мире полно.
]]></SkinLoverQuirk>
<SlimeLoverQuirk><![CDATA[
Из-за того что слизь очень скользкая и легко деформируется, слизни очень хороши для секса. И ты услышишь это не раз, пока {pawn} будет про них распинаться.
]]></SlimeLoverQuirk>
<SexPartWants>Хочет быть: </SexPartWants>
</LanguageData>
|
TDarksword/rjw
|
Languages/Russian/Keyed/SexualityCardKeys.xml
|
XML
|
mit
| 5,736 |
Translated by t.me/NLSHD
Fixed by some passerby
|
TDarksword/rjw
|
Languages/Russian/Readme.txt
|
Text
|
mit
| 47 |
задница
размер груди
грудь
попка
эрекция
либидо
соски
оральные навыки
пенис
размер пениса
сексуальные достижения
сексуальные навыки
язык
вагина
вместительность вагины
|
TDarksword/rjw
|
Languages/Russian/Strings/Words/Nouns/PersonalCharacteristics.txt
|
Text
|
mit
| 315 |
аборт
сексуальные практики
уход
возраст согласия
оргазм
анальный секс
гениталии животных
спаривание животных
анонимный секс
аромантичность
асексуальность
девочки
автоэротизм
самоотсос
бидоны
бороды
сексизм
секс с животными
большие попки
бифобия
бисексуальность
укусы
повязки на глаза
смазка
модификации тела
бондаж
титилис
сиськи
попки
пассивов
утяжки для груди
рост груди
гипертрофированная грудь
пытки над грудью
вылизывание груди
грудь
контроль дыхания партнёра
осеменители
буккаке
стриптизёрши-кролики
анальные пробки
пик-ак
кошкодевочки
воздержание
пояс верности
измена
гигантские сиськи
любителей толстушек
клитор
ублажение члена
ношение ошейника
религиозные взгляды на секс
неуверенное согласие
согласие
контрацептивы
межвидовой секс
сперма
куни
киберсекс
деднейминг
разврат
демисексуальность
доминация
двойное проникновение
двойные стандарты
драг квин
эджинг
съедобное бельё
согласие с энтузиазмом
эротическое прерывание секса
эротическое отшлёпывание
эротическая щекотка
эротика
эксгибиционизм
внебрачный секс
сидение на лице
оскорбления за вес
женское доминирование
девушки без секса
феменизм
теория феменизма
фетиши
финансовая доминация
фингеринг
игры с огнём
фистинг
флирт
раздевание по принуждению
предварительные ласки
дружба с "бонусами"
фурри
фурсьюты
фута
гэнг-бэнг
гей-радар
ГЕЙ-меры
геи
гендерная идентичность
гендерная нейтральность
гендерные роли
нарушение гендерных ролей
гигантомастия
гоккун
приятная боль
групповой секс
мастурбация рукой
предел терпения боли
гарем
хентай
гетеросексуальность
гомофобия
Гомосексуальность
большие сиськи
гипербеременность
отшлёпывание
импотенция
инбридинг
инцелы
инцест
вызов лактации
измена
половой акт
межкультурный секс
межкультурный секс
интерсекциональность
межвидовой брак
межвидовые отношения
непринятие своей гомосексуальности
игры с ножом
лактация
феминные лесбиянки
смазка
макрофилия
занятие любовью
менсплейнинг
мазохизм
мастурбация
механофилия
микрофилия
мисгендеринг
моногамность
взаимная мастурбация
накадаши
некрофилия
игры с иголкой
нетораре
нетори
милые парни
девятидоллоровая купюра
секс без пенетрации
пытка носа
нудизм
нагота
нимфомания
нимфоманки
объективизация
свободный брак
оральный секс
оргазмы
оргии
откладка яиц
член в штанине
любители боли
пайзури
пансексуальность
парафилия
переход
патриархат
пеггинг
пенисы
пассивная лесбиянка
полиаморность
пони-бои
пони-гёрл
порно-логика
неприкрытые плечи
порно
потенция
беременность
привилегии
подбор лифчика
проститутки
проституция
культура воздержания
пытка вагины
квир-теория
радикальный феменизм
изнасилование
культура изнасилований
фантазии об изнасиловании
секс для развлечения
боль в заднице
римминг
связывание верёвкой
садизм
садомазохизм
безопасный секс
стоп-слово
соблазнение
игра с чувствами
подчинение со службой
секс
сексуальная привлекательность
сексуальное образование
позиции в сексе
секс-игрушки
торговля сексом
секс-боты
кайфовый секс
сексизм
сексуальное насилие
возбуждение
сексуальное преступление
сексуальные предпочтения
сексуальные дисфункицц
сексуальные фантазии
мораль в сексе
мексуальная ориентация
секс-рабство
сексуальная стимуляция
ориентация
шибари
сиська-вид-с-боку
секс во сне
спит
содомия
мягкие ограничения
отшлёпывание
ЗППП
стриптиз
подчинение
сабспейс
купальники
свингинг
свитчинг
табу
технофилия
тератофилия
яички
подглядывание
тройнички
пытка груди
вести в сексе снизу
токсичная маскулинность
транс-эксклюзивный феменизм
фантазии о трансформации
transmisogyny
трансмизогиния
транссексуальность
трансвеститы
фетиши
твинки
вымя
фетиш на поглощение вагиной
обвинение жертвы
девственность
виртуальный секс
фетиш на поедание
вуайеризм
игры с воском
влажные сны
ксенофилия
яой
йифф
юри
зоофилия
|
TDarksword/rjw
|
Languages/Russian/Strings/Words/Nouns/TalkTopics_Sexual.txt
|
Text
|
mit
| 6,846 |
Multiplayer:
https://github.com/Parexy/Multiplayer
=====================================================
not working:
-whoring
desync:
-?
=====================================================
|
TDarksword/rjw
|
Multiplayer.txt
|
Text
|
mit
| 193 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!--not used, should probably remove or not-->
<BodyPartDef>
<defName>InsectGenitals</defName>
<label>insectGenitals</label>
<hitPoints>20</hitPoints>
<frostbiteVulnerability>0.1</frostbiteVulnerability>
<skinCovered>true</skinCovered>
<canSuggestAmputation>true</canSuggestAmputation>
<bleedRate>1.0</bleedRate>
<tags>
<li>RJW_FertilitySource</li>
</tags>
</BodyPartDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/BodyPartDefs/BodyParts_Insect.xml
|
XML
|
mit
| 455 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<DesignationDef>
<defName>ComfortPrisoner</defName>
<texturePath>UI/Commands/ComfortPrisoner_off</texturePath>
<targetType>Thing</targetType>
</DesignationDef>
<DesignationDef>
<defName>ComfortPrisonerNoSticky</defName>
<texturePath>UI/Commands/ComfortPrisoner_off</texturePath>
<targetType>Thing</targetType>
</DesignationDef>
<DesignationDef>
<defName>RJW_ForBreeding</defName>
<texturePath>UI/Commands/Breeding_Animal_off</texturePath>
<targetType>Thing</targetType>
</DesignationDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/DesignationDefs/Designations.xml
|
XML
|
mit
| 570 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ArchitectSense.DesignationSubCategoryDef>
<defName>SubCategory_Whore_Beds</defName>
<label>whore beds</label>
<description>Beds for whores.</description>
<defNames>
<li>WhoreSleepingSpot</li>
<li>BedWhore</li>
<li>DoubleBedWhore</li>
<li>RoyalBedWhore</li>
</defNames>
<designationCategory>Furniture</designationCategory>
</ArchitectSense.DesignationSubCategoryDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/DesignationSubCategoryDefs/RJW_SubCategory_obsolete
|
none
|
mit
| 448 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!--Pawns with ovi's plant egg.-->
<!--60,000 ticks is one in-game day regardless of game speed-->
<!--bornTick(for pre defined eggs)=450,000*adult basesize*(1+1/3)-->
<rjw.HediffDef_InsectEgg Name="RJW_ImplantEgg" Abstract="True">
<defName>RJW_InsectEgg</defName>
<hediffClass>rjw.Hediff_InsectEgg</hediffClass>
<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
<initialSeverity>0.1</initialSeverity>
<eggsize>1</eggsize> <!--eggsize 1 = 100%, 0 - can hold unlimited eggs, up to 100 eggs per sex-->
<abortTick>60000</abortTick> <!--abortTick = time to fertilize egg-->
<isBad>false</isBad>
<tendable>false</tendable>
<!--false below: only same kinddef as implanter can fertilize-->
<fertilize_animal>false</fertilize_animal> <!--any animal with ovi can fertilize, switch egg outcome to fertilizer kinddef-->
<fertilize_anyone>true</fertilize_anyone> <!--anyone with ovi can fertilize, switch egg outcome to fertilizer kinddef-->
<selffertilized>false</selffertilized> <!--egg will be implanted fertilized-->
</rjw.HediffDef_InsectEgg>
<!--Placeholder egg/unsupported races-->
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_UnknownEgg</defName>
<label>Egg</label>
<parentDef>Unknown</parentDef>
<bornTick>180001</bornTick> <!--filled by script-->
<abortTick>60001</abortTick> <!--filled by script-->
<stages>
<li>
<minSeverity>0.01</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.01</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.02</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.02</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.05</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.05</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.10</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.10</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.15</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.15</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.20</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.20</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.25</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.25</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.30</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.30</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.40</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.40</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.50</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.50</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.75</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.75</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.9</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-1.0</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<!-- remove below and remove egg recipes? -->
<!-- Vanilla -->
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_MegascarabEgg</defName>
<label>Megascarab Egg</label>
<parentDef>Megascarab</parentDef>
<bornTick>120000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.024</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_SpelopedeEgg</defName>
<label>Spelopede Egg</label>
<parentDef>Spelopede</parentDef>
<bornTick>480000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.096</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_MegaspiderEgg</defName>
<label>Megaspider Egg</label>
<parentDef>Megaspider</parentDef>
<bornTick>720000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.144</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<!-- Docile Hive -->
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_MegascarabDocileEgg</defName>
<label>Docile Megascarab Egg</label>
<parentDef>MegascarabDocile</parentDef>
<bornTick>120000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.024</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_SpelopedeDocileEgg</defName>
<label>Docile Spelopede Egg</label>
<parentDef>SpelopedeDocile</parentDef>
<bornTick>480000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.096</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_MegaspiderDocileEgg</defName>
<label>Docile Megaspider Egg</label>
<parentDef>MegaspiderDocile</parentDef>
<bornTick>720000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.144</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<!-- Rim of Madness - Arachnophobia -->
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_ROMA_SpiderEgg</defName>
<label>Spider Egg</label>
<parentDef>ROMA_SpiderRace</parentDef>
<bornTick>180000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.036</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_ROMA_GiantSpiderEgg</defName>
<label>Giant Spider Egg</label>
<parentDef>ROMA_SpiderRaceGiant</parentDef>
<bornTick>1260000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.252</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_ROMA_GiantQueenSpiderEgg</defName>
<label>Giant Spider Queen Egg</label>
<parentDef>ROMA_SpiderRaceGiantQueen</parentDef>
<bornTick>1860000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.372</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BarbslingerEgg</defName>
<label>Barbslinger Egg</label>
<parentDef>AA_Barbslinger</parentDef>
<bornTick>1500000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.3</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BedBugEgg</defName>
<label>Bedbug Egg</label>
<parentDef>AA_BedBug</parentDef>
<bornTick>300000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.06</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BlackScarabEgg</defName>
<label>Black scarab Egg</label>
<parentDef>AA_BlackScarab</parentDef>
<bornTick>180000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.036</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BlackSpelopedeEgg</defName>
<label>Black spelopede Egg</label>
<parentDef>AA_BlackSpelopede</parentDef>
<bornTick>600000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.12</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BlackSpiderEgg</defName>
<label>Blackspider Egg</label>
<parentDef>AA_BlackSpider</parentDef>
<bornTick>900000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.18</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BlizzariskEgg</defName>
<label>Blizzarisk Egg</label>
<parentDef>AA_Blizzarisk</parentDef>
<bornTick>1200000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.24</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BlizzariskClutchMotherEgg</defName>
<label>Blizzarisk clutch mother Egg</label>
<parentDef>AA_BlizzariskClutchMother</parentDef>
<bornTick>1800000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.36</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BumbledroneEgg</defName>
<label>Bumbledrone Egg</label>
<parentDef>AA_Bumbledrone</parentDef>
<bornTick>480000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.096</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_BumbledroneQueenEgg</defName>
<label>Bumbledrone queen Egg</label>
<parentDef>AA_BumbledroneQueen</parentDef>
<bornTick>600000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.12</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_DunealiskEgg</defName>
<label>Dunealisk Egg</label>
<parentDef>AA_Dunealisk</parentDef>
<bornTick>1200000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.24</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_DunealiskClutchMotherEgg</defName>
<label>Dunealisk clutch mother Egg</label>
<parentDef>AA_DunealiskClutchMother</parentDef>
<bornTick>1800000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.36</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_FeraliskEgg</defName>
<label>Feralisk Egg</label>
<parentDef>AA_Feralisk</parentDef>
<bornTick>600000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.12</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_FeraliskClutchMotherEgg</defName>
<label>Feralisk clutch mother Egg</label>
<parentDef>AA_FeraliskClutchMother</parentDef>
<bornTick>1800000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.36</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_FrostmiteEgg</defName>
<label>Frostmite Egg</label>
<parentDef>AA_Frostmite</parentDef>
<bornTick>300000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.06</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_MammothWormEgg</defName>
<label>Mammoth worm Egg</label>
<parentDef>AA_MammothWorm</parentDef>
<bornTick>1800000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.36</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_MegaLouseEgg</defName>
<label>Megalouse Egg</label>
<parentDef>AA_MegaLouse</parentDef>
<bornTick>300000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.06</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_AA_ThermadonEgg</defName>
<label>Thermadon Egg</label>
<parentDef>AA_Thermadon</parentDef>
<bornTick>900000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.18</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<!--Ni'Hal-->
<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
<defName>RJW_NiHalEgg</defName>
<label>Ni'Hal Egg</label>
<parentDef>Alien_NiHal</parentDef>
<bornTick>480000</bornTick>
<stages>
<li>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.096</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_InsectEgg>
<!--Used for JobDriver_RapeEnemyByMech. Mechs implant things when success rape.-->
<rjw.HediffDef_MechImplants Name="RJW_ImplantMech" Abstract="True">
<hediffClass>rjw.Hediff_MechImplants</hediffClass>
<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
<initialSeverity>0.1</initialSeverity>
<parentDefs>
<li>Mech_Lancer</li>
<li>Mech_Scyther</li>
<li>Mech_Centipede</li>
</parentDefs>
<tendable>false</tendable>
</rjw.HediffDef_MechImplants>
<rjw.HediffDef_MechImplants ParentName="RJW_ImplantMech">
<hediffClass>rjw.Hediff_MicroComputer</hediffClass>
<defName>RJW_MicroComputer</defName>
<tendable>false</tendable>
<isBad>true</isBad>
<label>MicroComputer</label>
<minEventInterval>30000</minEventInterval>
<maxEventInterval>90000</maxEventInterval>
<randomHediffDefs>
<li>RJW_Orgasm</li>
<li>TransportCums</li>
<li>TransportEggs</li>
</randomHediffDefs>
</rjw.HediffDef_MechImplants>
<rjw.HediffDef_EnemyImplants>
<defName>Parasite</defName>
<hediffClass>rjw.Hediff_Parasite</hediffClass>
<defaultLabelColor>(0.7, 1.0, 0.7)</defaultLabelColor>
<initialSeverity>0.1</initialSeverity>
<isBad>true</isBad>
<label>pregnant</label>
<comps>
<li Class="HediffCompProperties_Discoverable">
<sendLetterWhenDiscovered>true</sendLetterWhenDiscovered>
<discoverLetterLabel>{0} Parasited</discoverLetterLabel>
<discoverLetterText>{0} is parasited!</discoverLetterText>
</li>
</comps>
<stages>
<li>
<label>early-stage-hidden</label>
<becomeVisible>false</becomeVisible>
<vomitMtbDays>2.5</vomitMtbDays>
</li>
<li>
<label>middle-stage</label>
<minSeverity>0.333</minSeverity>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.15</offset>
</li>
</capMods>
</li>
<li>
<label>late-stage</label>
<minSeverity>0.666</minSeverity>
<vomitMtbDays>2</vomitMtbDays>
<capMods>
<li>
<capacity>Moving</capacity>
<offset>-0.30</offset>
</li>
</capMods>
</li>
</stages>
</rjw.HediffDef_EnemyImplants>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/HediffDefs/Hediffs_EnemyImplants.xml
|
XML
|
mit
| 16,020 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<RecipeDef Abstract="True" Name="RJW_RemoveEnemyImplants" ParentName="RJW_SurgeryFlesh">
<effectWorking>Surgery</effectWorking>
<soundWorking>Recipe_Surgery</soundWorking>
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
<workSkill>Medicine</workSkill>
<workSkillLearnFactor>16</workSkillLearnFactor>
<appliedOnFixedBodyParts>
<li>Genitals</li>
<li>Anus</li>
</appliedOnFixedBodyParts>
</RecipeDef>
<RecipeDef Abstract="True" Name="RJW_RemoveRestraints" ParentName="RJW_SurgeryFlesh">
<effectWorking>Surgery</effectWorking>
<soundWorking>Recipe_Surgery</soundWorking>
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
<workSkill>Medicine</workSkill>
<workSkillLearnFactor>1</workSkillLearnFactor>
<hideBodyPartNames>true</hideBodyPartNames>
<targetsBodyPart>true</targetsBodyPart>
</RecipeDef>
<RecipeDef Abstract="True" ParentName="RJW_RemoveEnemyImplants" Name="RJW_RemoveInsectEgg">
<label>remove egg</label>
<description>Removes egg.</description>
<workerClass>Recipe_RemoveHediff</workerClass>
<jobString>Removing egg.</jobString>
<workAmount>500</workAmount>
<workSkillLearnFactor>1</workSkillLearnFactor>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>InsectJelly</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Medicine</li>
</categories>
<thingDefs>
<li>InsectJelly</li>
</thingDefs>
</fixedIngredientFilter>
</RecipeDef>
<RecipeDef Abstract="True" ParentName="RJW_RemoveInsectEgg" Name="RJW_RemoveInsectEggx10">
<label>remove eggs(x10)</label>
<description>Removes eggs.</description>
<jobString>Removing eggs.</jobString>
<workAmount>1000</workAmount>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>InsectJelly</li>
</thingDefs>
</filter>
<count>10</count>
</li>
</ingredients>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveUnknownEgg</defName>
<removesHediff>RJW_UnknownEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveMegascarabEgg</defName>
<removesHediff>RJW_MegascarabEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveMegaspiderEgg</defName>
<removesHediff>RJW_MegaspiderEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveSpelopedeEgg</defName>
<removesHediff>RJW_SpelopedeEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveRJW_ROMA_SpiderEgg</defName>
<removesHediff>RJW_ROMA_SpiderEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveRJW_ROMA_GiantSpiderEgg</defName>
<removesHediff>RJW_ROMA_GiantSpiderEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveInsectEgg">
<defName>RemoveRJW_ROMA_GiantQueenSpiderEgg</defName>
<removesHediff>RJW_ROMA_GiantQueenSpiderEgg</removesHediff>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveEnemyImplants">
<defName>RemoveMicroComputer</defName>
<label>remove MicroComputer</label>
<description>Removes MicroComputer.</description>
<workerClass>Recipe_RemoveHediff</workerClass>
<jobString>Removing MicroComputer.</jobString>
<workAmount>2000</workAmount>
<removesHediff>RJW_MicroComputer</removesHediff>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>Hololock</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Medicine</li>
</categories>
<thingDefs>
<li>Hololock</li>
</thingDefs>
</fixedIngredientFilter>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveRestraints">
<defName>RJW_RemoveRestraints</defName>
<label>remove restraints</label>
<description>Removes restraints.</description>
<workerClass>rjw.Recipe_RemoveRestraints</workerClass>
<jobString>Removing restraints.</jobString>
<workAmount>1000</workAmount>
<removesHediff>RJW_Restraints</removesHediff>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Medicine</li>
</categories>
</fixedIngredientFilter>
</RecipeDef>
<RecipeDef ParentName="RJW_RemoveRestraints">
<defName>RJW_RemoveCocoon</defName>
<label>remove cocoon</label>
<description>Removes cocoon.</description>
<workerClass>rjw.Recipe_RemoveRestraints</workerClass>
<jobString>Removing cocoon.</jobString>
<workAmount>1000</workAmount>
<removesHediff>RJW_Cocoon</removesHediff>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Medicine</li>
</categories>
</fixedIngredientFilter>
</RecipeDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/HediffDefs/Recipes_RemoveEnemyImplants.xml
|
XML
|
mit
| 5,424 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ResearchProjectDef>
<defName>Whore_Sleeping_Spot</defName>
<label>Old Profession</label>
<description>The beginning of the world oldest profession.</description>
<baseCost>500</baseCost>
<techLevel>Neolithic</techLevel>
<tab>XxX</tab>
<tags>
<li>TribalStart</li>
</tags>
<researchViewX>0</researchViewX>
<researchViewY>0</researchViewY>
</ResearchProjectDef>
<ResearchProjectDef>
<defName>Bed_Whore</defName>
<label>Bed Whore</label>
<description>By making the bed more comfortable the whore can spend more time on their back or knees if thats your fancy.</description>
<baseCost>700</baseCost>
<tab>XxX</tab>
<techLevel>Medieval</techLevel>
<tags>
<li>ClassicStart</li>
</tags>
<prerequisites>
<li>Whore_Sleeping_Spot</li>
</prerequisites>
<researchViewX>1</researchViewX>
<researchViewY>0</researchViewY>
</ResearchProjectDef>
<ResearchProjectDef>
<defName>Double_Bed_Whore</defName>
<label>Double Whore Bed</label>
<description>Further increasing the size of the bed allows for threesome? foursome?Hell lets get the whole colony for a orgy.</description>
<baseCost>900</baseCost>
<tab>XxX</tab>
<prerequisites>
<li>Bed_Whore</li>
</prerequisites>
<techLevel>Medieval</techLevel>
<researchViewX>2</researchViewX>
<researchViewY>0</researchViewY>
</ResearchProjectDef>
<ResearchProjectDef>
<defName>Royal_Bed_Whore</defName>
<label>Royal Whore Bed</label>
<description>The highest comfort only for the highest costly Whore.</description>
<baseCost>2000</baseCost>
<tab>XxX</tab>
<prerequisites>
<li>Double_Bed_Whore</li>
</prerequisites>
<techLevel>Industrial</techLevel>
<researchViewX>3</researchViewX>
<researchViewY>0</researchViewY>
</ResearchProjectDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/ResearchProjectDefs/ResearchProjects_XxXx_obsolete
|
none
|
mit
| 1,830 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- To add a research tab, make a new ResearchTabDef here and then set the<tab> field of your research project to match it -->
<ResearchTabDef>
<defName>XxX</defName>
<label>XxXx</label>
</ResearchTabDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/ResearchProjectDefs/ResearchTabs_obsolete
|
none
|
mit
| 271 |
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<SkillDef>
<defName>Sexskill1</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
<SkillDef>
<defName>Sexskill2</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
<SkillDef>
<defName>Sexskill3</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
<SkillDef>
<defName>Sexskill4</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
<SkillDef>
<defName>Sexskill5</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
<SkillDef>
<defName>Sexskill6</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
<SkillDef>
<defName>Sexskill7</defName>
<description>Does stuff</description>
<skillLabel>sex</skillLabel>
<pawnCreatorSummaryVisible>true</pawnCreatorSummaryVisible>
</SkillDef>
</Defs>
|
TDarksword/rjw
|
Obsolete/Defs/SkillDefs/Skills_Sex.xml
|
XML
|
mit
| 1,387 |
<?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>
|
TDarksword/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>
|
TDarksword/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>
|
TDarksword/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>
|
TDarksword/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>
|
TDarksword/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;
}
}
|
TDarksword/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));
// }
// }
//}
|
TDarksword/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));
// }
// }
//}
|
TDarksword/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;
// }
// }
// }
//}
|
TDarksword/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;
// }
// }
// }
//}
|
TDarksword/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;
// }
// }
// }
//}
|
TDarksword/rjw
|
Obsolete/Source/Recipes/Recipe_InstallPrivates_Male.cs
|
C#
|
mit
| 749 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!--Better Infestations-->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/DutyDef[defName="BI_DefendAndExpandHive"]</xpath>
</li>
<li Class="PatchOperationInsert">
<xpath>Defs/DutyDef[defName="BI_DefendAndExpandHive"]/thinkNode/subNodes/li[@Class="ThinkNode_ChancePerHour_Constant"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</value>
</li>
</operations>
</Operation>
</Patch>
|
TDarksword/rjw
|
Patches/Better_Infestations_AiRapeEnemy.xml
|
XML
|
mit
| 558 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Animals, Insects, Birds, modded pawns -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName != "Human" and defName != "MechanicalCentipede" and defName != "Scyther" and defName != "Lancer" and defName != "Pikeman"]/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" and defName != "MechanicalCentipede" and defName != "Scyther" and defName != "Lancer" and defName != "Pikeman"]/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" and defName != "MechanicalCentipede" and defName != "Scyther" and defName != "Lancer" and defName != "Pikeman"]/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>
|
TDarksword/rjw
|
Patches/BodyParts_Animals&Aliens.xml
|
XML
|
mit
| 1,366 |
<?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>
|
TDarksword/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/li[def = "MechanicalCentipedeBodySecondRing"]/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>
<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 = "Pikeman"]/corePart/parts</xpath>
<value>
<li>
<def>MechGenitals</def>
<coverage>0.001</coverage>
<depth>Inside</depth>
</li>
</value>
</Operation>
</Patch>
|
TDarksword/rjw
|
Patches/BodyParts_Mechanoid.xml
|
XML
|
mit
| 1,091 |
<?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>RJW_Fertility</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>
|
TDarksword/rjw
|
Patches/CnP_compatibility.xml
|
XML
|
mit
| 999 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!--Rape prisoners in NonPlayerHome-->
<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>
</Patch>
|
TDarksword/rjw
|
Patches/Duty_AIRapePrisoner.xml
|
XML
|
mit
| 379 |
<?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 = "DefendHiveAggressively"]/thinkNode/subNodes/li[@Class="JobGiver_HiveDefense"]</xpath>
<value>
<li Class="rjw.JobGiver_RapeEnemy" />
</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>
<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>-->
</Patch>
|
TDarksword/rjw
|
Patches/Duty_AiRapeEnemy.xml
|
XML
|
mit
| 3,261 |
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- 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>
</Patch>
|
TDarksword/rjw
|
Patches/MentalStateCritical_AiRandomRape.xml
|
XML
|
mit
| 1,086 |
<?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>
|
TDarksword/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>
|
TDarksword/rjw
|
Patches/ModdedTraits_compatibility.xml
|
XML
|
mit
| 7,088 |
<?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>
|
TDarksword/rjw
|
Patches/Recipes_Animals.xml
|
XML
|
mit
| 419 |
<?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>
|
TDarksword/rjw
|
Patches/Recipes_PegArm_Human.xml
|
XML
|
mit
| 277 |
<?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>
|
TDarksword/rjw
|
Patches/TalkTopics_Sex.xml
|
XML
|
mit
| 961 |
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>Defs/ThoughtDef[defName="HarmedMe"]/nullifyingTraits</xpath>
<value>
<li>Masochist</li>
</value>
</li>
</operations>
</Operation>
</Patch>
|
TDarksword/rjw
|
Patches/Thought_Masochist.xml
|
XML
|
mit
| 297 |
<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>
|
TDarksword/rjw
|
Patches/Thought_Necro.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>
|
TDarksword/rjw
|
Patches/Thought_Nymph.xml
|
XML
|
mit
| 523 |
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")]
|
TDarksword/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
https://subscribestar.adult/Ed86
Mod git:
https://gitgud.io/Ed86/rjw
Discord:
https://discord.gg/CXwHhv8
LoversLab:
https://www.loverslab.com/files/file/7257-rimjobworld/
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 ;)
|
TDarksword/rjw
|
README.md
|
Markdown
|
mit
| 1,008 |
<Project ToolsVersion="12.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>v4.7.2</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>
<LangVersion>8</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>1.1\Assemblies\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<FileAlignment>4096</FileAlignment>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>1.1\Assemblies\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<RootNamespace>rjw</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="Source\Common\Helpers\CondomUtility.cs" />
<Compile Include="Source\Common\Data\DesignatorsData.cs" />
<Compile Include="Source\Common\Data\PartStagesDef.cs" />
<Compile Include="Source\Common\Data\RaceGroupDef.cs" />
<Compile Include="Source\Common\Data\RaceTag.cs" />
<Compile Include="Source\Common\Data\RacePartDef.cs" />
<Compile Include="Source\Common\Data\PawnData.cs" />
<Compile Include="Source\Common\Helpers\HediffHelper.cs" />
<Compile Include="Source\Common\Helpers\LegacySexPartAdder.cs" />
<Compile Include="Source\Common\Helpers\RacePartDef_Helper.cs" />
<Compile Include="Source\Common\Helpers\RaceGroupDef_Helper.cs" />
<Compile Include="Source\Common\Helpers\Sexualizer.cs" />
<Compile Include="Source\Common\Helpers\SexPartAdder.cs" />
<Compile Include="Source\Common\ModLog.cs" />
<Compile Include="Source\Common\Logger.cs" />
<Compile Include="Source\Common\MapCom_Injector.cs" />
<Compile Include="Source\Common\PawnExtensions.cs" />
<Compile Include="Source\Common\RMB_Menu.cs" />
<Compile Include="Source\Common\SexAppraiser.cs" />
<Compile Include="Source\Common\SexPartTypeExtensions.cs" />
<Compile Include="Source\Common\SexPartType.cs" />
<Compile Include="Source\Common\TraitComparer.cs" />
<Compile Include="Source\Comps\CompRJWHediffBodyPart.cs" />
<Compile Include="Source\Comps\CompRJWThingBodyPart.cs" />
<Compile Include="Source\Comps\Orientation.cs" />
<Compile Include="Source\Comps\QuirkAdder.cs" />
<Compile Include="Source\Comps\SexProps.cs" />
<Compile Include="Source\Comps\Quirk.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_meditate.cs" />
<Compile Include="Source\Harmony\Patch_PawnGenerator.cs" />
<Compile Include="Source\Harmony\patch_recipes.cs" />
<Compile Include="Source\Harmony\patch_selector.cs" />
<Compile Include="Source\Harmony\patch_surgery.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\HediffDef_PartBase.cs" />
<Compile Include="Source\Hediffs\Hediff_PartBaseNatural.cs" />
<Compile Include="Source\Hediffs\Hediff_PartBaseArtifical.cs" />
<Compile Include="Source\Hediffs\Hediff_PartsSizeChanger.cs" />
<Compile Include="Source\Hediffs\PartSizeExtension.cs" />
<Compile Include="Source\Interactions\InteractionExtension.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Mating.cs" />
<Compile Include="Source\JobDrivers\JobDriver_SexQuick.cs" />
<Compile Include="Source\JobDrivers\JobDriver_SexBaseInitiator.cs" />
<Compile Include="Source\JobDrivers\JobDriver_SexBaseReciever.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Sex.cs" />
<Compile Include="Source\JobGivers\JobGiver_DoQuickie.cs" />
<Compile Include="Source\MainTab\PawnColumnCheckbox_Whore.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_WhoreExperience.cs" />
<Compile Include="Source\MainTab\WhoreCheckbox.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\Nymphs\Incidents\IncidentWorker_NymphVisitor.cs" />
<Compile Include="Source\Modules\Nymphs\Incidents\IncidentWorker_NymphVisitorGroupE.cs" />
<Compile Include="Source\Modules\Pregnancy\BackstoryDef.cs" />
<Compile Include="Source\Modules\Pregnancy\Hediffs\RJWAssociatedHediffAttribute.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\MiscTranslationDef.cs" />
<Compile Include="Source\Common\Data\ModData.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.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_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_FeelingBroken.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_NymphVisitorGroupH.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_SexBaseRecieverLoved.cs" />
<Compile Include="Source\JobDrivers\JobDriver_SexBaseRecieverRaped.cs" />
<Compile Include="Source\JobDrivers\JobDriver_SexCasual.cs" />
<Compile Include="Source\JobDrivers\JobDriver_Masturbate.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeEnemyByHumanlike.cs" />
<Compile Include="Source\Modules\Whoring\JobDrivers\JobDriver_WhoreInvitingVisitors.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeComfortPawn.cs" />
<Compile Include="Source\JobDrivers\JobDriver_RapeRandom.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_RapeCorpse.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_Masturbate.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\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\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_ConditionalHornyOrFrustrated.cs" />
<Compile Include="Source\ThinkTreeNodes\ThinkNode_ConditionalMate.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_Masturbate_Chair.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Masturbate_Quick.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Masturbate_Bed.cs" />
<Compile Include="Source\WorkGivers\WorkGiver_Quickie.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" />
<Compile Include="Source\WorkGivers\WorkGiver_Solicit.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_IsPrisoner.cs" />
<Compile Include="Source\MainTab\PawnColumnWorker_EarnedMoneyByWhore.cs" />
</ItemGroup>
<ItemGroup>
<None Include="LICENSE" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Lib.Harmony.2.0.2\lib\net472\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="0MultiplayerAPI, Version=0.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\RimWorld.MultiplayerAPI.0.2.0\lib\net472\0MultiplayerAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HugsLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\UnlimitedHugs.Rimworld.HugsLib.8.0.0\lib\net472\HugsLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Psychology">
<HintPath>modpackages\Psychology.2018-11-18\Assemblies\Psychology.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RimWorldChildren">
<HintPath>modpackages\ChildrenAndPregnancy.0.4e\Assemblies\RimWorldChildren.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SyrTraits">
<HintPath>modpackages\SYR.Individuality.1.1.7\1.1\Assemblies\SyrTraits.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
<!-- RimWorld references -->
<Reference Include="Assembly-CSharp">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/Assembly-CSharp.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/Assembly-CSharp.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/Assembly-CSharp.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="ISharpZipLib">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/ISharpZipLib.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\ISharpZipLib.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\ISharpZipLib.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/ISharpZipLib.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/ISharpZipLib.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/Unity.TextMeshPro.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\Unity.TextMeshPro.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Unity.TextMeshPro.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/Unity.TextMeshPro.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/Unity.TextMeshPro.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AIModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.AIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.AIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.AIModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.AIModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.AIModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ARModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ARModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ARModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ARModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ARModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ARModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AccessibilityModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.AccessibilityModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.AccessibilityModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.AccessibilityModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.AccessibilityModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.AccessibilityModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AndroidJNIModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.AndroidJNIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.AndroidJNIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.AndroidJNIModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.AndroidJNIModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.AndroidJNIModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AnimationModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.AnimationModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.AnimationModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.AnimationModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.AssetBundleModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.AssetBundleModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.AssetBundleModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.AudioModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.AudioModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.AudioModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.AudioModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.AudioModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ClothModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ClothModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ClothModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ClothModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ClothModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ClothModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ClusterInputModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ClusterInputModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ClusterInputModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ClusterInputModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ClusterInputModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ClusterInputModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ClusterRendererModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ClusterRendererModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ClusterRendererModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ClusterRendererModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ClusterRendererModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ClusterRendererModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.CoreModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.CoreModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.CoreModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CrashReportingModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.CrashReportingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.CrashReportingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.CrashReportingModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.CrashReportingModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.CrashReportingModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.DSPGraphModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.DSPGraphModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.DSPGraphModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.DSPGraphModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.DSPGraphModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.DSPGraphModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.DirectorModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.DirectorModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.DirectorModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.DirectorModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.DirectorModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.DirectorModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.FileSystemHttpModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.FileSystemHttpModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.FileSystemHttpModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.FileSystemHttpModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.FileSystemHttpModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.FileSystemHttpModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.GameCenterModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.GameCenterModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.GameCenterModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.GameCenterModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.GameCenterModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.GameCenterModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.GridModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.GridModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.GridModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.GridModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.GridModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.GridModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.HotReloadModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.HotReloadModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.HotReloadModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.HotReloadModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.HotReloadModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.HotReloadModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.IMGUIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.IMGUIModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.IMGUIModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ImageConversionModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ImageConversionModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ImageConversionModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ImageConversionModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ImageConversionModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ImageConversionModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.InputLegacyModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.InputLegacyModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.InputLegacyModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.InputModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.InputModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.InputModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.InputModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.InputModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.InputModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.JSONSerializeModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.JSONSerializeModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.JSONSerializeModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.JSONSerializeModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.JSONSerializeModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.JSONSerializeModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.LocalizationModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.LocalizationModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.LocalizationModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.LocalizationModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.LocalizationModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.LocalizationModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ParticleSystemModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ParticleSystemModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ParticleSystemModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ParticleSystemModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ParticleSystemModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ParticleSystemModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.PerformanceReportingModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.PerformanceReportingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.PerformanceReportingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.PerformanceReportingModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.PerformanceReportingModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.PerformanceReportingModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.Physics2DModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.Physics2DModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.Physics2DModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.Physics2DModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.Physics2DModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.Physics2DModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.PhysicsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.PhysicsModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.PhysicsModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ProfilerModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ProfilerModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ProfilerModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ProfilerModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ProfilerModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ProfilerModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.ScreenCaptureModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.ScreenCaptureModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.ScreenCaptureModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.ScreenCaptureModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.ScreenCaptureModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.ScreenCaptureModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.SharedInternalsModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.SharedInternalsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.SharedInternalsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.SharedInternalsModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.SharedInternalsModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.SharedInternalsModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.SpriteMaskModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.SpriteMaskModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.SpriteMaskModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.SpriteMaskModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.SpriteMaskModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.SpriteMaskModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.SpriteShapeModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.SpriteShapeModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.SpriteShapeModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.SpriteShapeModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.SpriteShapeModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.SpriteShapeModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.StreamingModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.StreamingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.StreamingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.StreamingModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.StreamingModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.StreamingModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.SubstanceModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.SubstanceModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.SubstanceModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.SubstanceModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.SubstanceModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.SubstanceModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TLSModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.TLSModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.TLSModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TLSModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.TLSModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.TLSModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TerrainModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.TerrainModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.TerrainModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TerrainModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.TerrainModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.TerrainModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TerrainPhysicsModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.TerrainPhysicsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.TerrainPhysicsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TerrainPhysicsModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.TerrainPhysicsModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.TerrainPhysicsModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TextCoreModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.TextCoreModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.TextCoreModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TextCoreModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.TextCoreModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.TextCoreModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.TextRenderingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.TextRenderingModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.TextRenderingModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TilemapModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.TilemapModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.TilemapModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TilemapModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.TilemapModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.TilemapModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UI.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UI.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UI.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UI.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UI.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UIElementsModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UIElementsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UIElementsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UIElementsModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UIElementsModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UIElementsModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UIModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UIModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UIModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UIModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UNETModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UNETModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UNETModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UNETModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UNETModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UNETModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UmbraModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UmbraModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UmbraModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UmbraModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UmbraModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UmbraModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityAnalyticsModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityAnalyticsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityAnalyticsModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityAnalyticsModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityAnalyticsModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityAnalyticsModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityConnectModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityConnectModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityConnectModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityConnectModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityConnectModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityConnectModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityTestProtocolModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityTestProtocolModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityTestProtocolModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityTestProtocolModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityTestProtocolModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityTestProtocolModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestAssetBundleModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestAudioModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityWebRequestAudioModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestAudioModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestAudioModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityWebRequestAudioModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityWebRequestAudioModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityWebRequestModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityWebRequestModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityWebRequestModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestTextureModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityWebRequestTextureModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestTextureModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestTextureModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityWebRequestTextureModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityWebRequestTextureModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.UnityWebRequestWWWModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.UnityWebRequestWWWModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.UnityWebRequestWWWModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.VFXModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.VFXModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.VFXModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.VFXModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.VFXModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.VFXModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.VRModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.VRModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.VRModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.VRModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.VRModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.VRModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.VehiclesModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.VehiclesModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.VehiclesModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.VehiclesModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.VehiclesModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.VehiclesModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.VideoModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.VideoModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.VideoModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.VideoModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.VideoModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.VideoModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.WindModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.WindModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.WindModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.WindModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.WindModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.WindModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.XRModule">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.XRModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.XRModule.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.XRModule.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.XRModule.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.XRModule.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/UnityEngine.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/UnityEngine.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/UnityEngine.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="NAudio">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/NAudio.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\NAudio.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\NAudio.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/NAudio.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/NAudio.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<Reference Include="NVorbis">
<HintPath Condition="Exists('../_RimWorldData/Managed/')">../_RimWorldData/Managed/NVorbis.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('..\..\RimWorldWin64_Data\Managed\')">..\..\RimWorldWin64_Data\Managed\NVorbis.dll</HintPath> <!-- Custom directory -->
<HintPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\')">C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\NVorbis.dll</HintPath> <!-- Windows Steam install path -->
<HintPath Condition="Exists('$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/')">$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/NVorbis.dll</HintPath> <!-- Linux Steam install path -->
<HintPath Condition="Exists('$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/')">$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/NVorbis.dll</HintPath> <!-- macOS Steam install path -->
<Private>False</Private>
</Reference>
<!-- end RimWorld references -->
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
<ProjectExtensions>
<VisualStudio AllowExistingFolder="true" />
</ProjectExtensions>
</Project>
|
TDarksword/rjw
|
RimJobWorld.Main.csproj
|
csproj
|
mit
| 108,252 |
<?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>
|
TDarksword/rjw
|
RimJobWorld.Main.csproj.user
|
user
|
mit
| 223 |
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
|
TDarksword/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;
using rjw;
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(DefDatabase<HediffDef>.GetNamedSilentFail("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;
}
/// <summary>
/// spawn rjw parts after operation
/// </summary>
/// <param name="pawn"></param>
/// <param name="part"></param>
/// <param name="pos"></param>
/// <param name="map"></param>
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)
{
//Thing thing = GenSpawn.Spawn(current.def.spawnThingOnRemoved, pos, map);
//spawn thing
GenSpawn.Spawn(SexPartAdder.recipePartRemover(current), pos, map);
}
}
//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 && (x is Hediff_PartBaseNatural || x is Hediff_PartBaseArtifical)
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);
pawn.health.AddHediff(SexPartAdder.recipePartAdder(recipe, pawn, part, ingredients), 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 && (x is Hediff_PartBaseNatural || x is Hediff_PartBaseArtifical)
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);
pawn.health.AddHediff(SexPartAdder.recipePartAdder(recipe, pawn, part, ingredients), part, null, null);
}
}
}
}
|
TDarksword/rjw
|
Source/Common/CORE_EXPOSED/CORE_EXPOSED.cs
|
C#
|
mit
| 12,584 |
using System.Collections.Generic;
using Verse;
using RimWorld.Planet;
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 : WorldComponent
{
public DataStore(World world) : base(world)
{
}
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);
if (Scribe.mode == LoadSaveMode.LoadingVars)
{
if (PawnData == null) PawnData = new Dictionary<int, PawnData>();
}
}
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);
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/DataStore.cs
|
C#
|
mit
| 2,004 |
using Verse;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using RimWorld.Planet;
namespace rjw
{
/// <summary>
/// Collection of pawn designators lists
/// </summary>
public class DesignatorsData : WorldComponent
{
public DesignatorsData(World world) : base(world)
{
}
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 static Dictionary<string, List<Pawn>> Designators = new Dictionary<string, List<Pawn>>();
/// <summary>
/// update designators on game load
/// </summary>
public void Update()
{
rjwHero = PawnsFinder.All_AliveOrDead.Where(p => p.IsDesignatedHero()).ToList();
rjwComfort = PawnsFinder.All_AliveOrDead.Where(p => p.IsDesignatedComfort()).ToList();
rjwService = PawnsFinder.All_AliveOrDead.Where(p => p.IsDesignatedService()).ToList();
rjwMilking = PawnsFinder.All_AliveOrDead.Where(p => p.IsDesignatedMilking()).ToList();
rjwBreeding = PawnsFinder.All_AliveOrDead.Where(p => p.IsDesignatedBreeding()).ToList();
rjwBreedingAnimal = PawnsFinder.All_AliveOrDead.Where(p => p.IsDesignatedBreedingAnimal()).ToList();
//Designators = new Dictionary<string, List<Pawn>>();
//Designators.Add("rjwHero", rjwHero);
//Designators.Add("rjwComfort", rjwComfort);
//Designators.Add("rjwService", rjwService);
//Designators.Add("rjwMilking", rjwMilking);
//Designators.Add("rjwBreeding", rjwBreeding);
//Designators.Add("rjwBreedingAnimal", rjwBreedingAnimal);
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/DesignatorsData.cs
|
C#
|
mit
| 1,775 |
using HugsLib;
using RimWorld;
using Verse;
namespace rjw
{
/// <summary>
/// Rjw settings store
/// </summary>
public class SaveStorage : ModBase
{
public override string ModIdentifier => ModId;
public static string ModId => "RJW";
public static DataStore DataStore;//reference to savegame data, hopefully
public static DesignatorsData DesignatorsData;//reference to savegame data, hopefully
public override void SettingsChanged()
{
ToggleTabIfNeeded();
}
public override void WorldLoaded()
{
DataStore = Find.World.GetComponent<DataStore>();
DesignatorsData = Find.World.GetComponent<DesignatorsData>();
DesignatorsData.Update();
ToggleTabIfNeeded();
FixRjwHediffsOnlLoad();
}
protected override bool HarmonyAutoPatch { get => false; }//first.cs creates harmony and does some convoulted stuff with it
private void ToggleTabIfNeeded()
{
DefDatabase<MainButtonDef>.GetNamed("Brothel").buttonVisible = RJWSettings.whoringtab_enabled;
}
private void FixRjwHediffsOnlLoad()
{
foreach (var pawn in PawnsFinder.All_AliveOrDead)
{
foreach (var hd in pawn.health.hediffSet.hediffs)
{
if (hd is Hediff_PartBaseNatural || hd is Hediff_PartBaseArtifical)
{
hd.TryGetComp<CompHediffBodyPart>().updatepartposition();
}
}
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/ModData.cs
|
C#
|
mit
| 1,325 |
using System.Collections.Generic;
using Verse;
using System;
using System.ComponentModel;
using System.Linq;
using Verse.Noise;
namespace rjw
{
/// <summary>
/// Data about part sizes that is not tied to an individual hediffdef.
/// </summary>
public class PartStagesDef : Def
{
public float bandSizeBase;
public float bandSizeInterval;
public float cupSizeInterval;
public List<string> cupSizeLabels;
static readonly Lazy<PartStagesDef> instance = new Lazy<PartStagesDef>(() => DefDatabase<PartStagesDef>.AllDefs.Single());
public static PartStagesDef Instance
{
get
{
return instance.Value;
}
}
public static string GetCupSizeLabel(float size)
{
var i = Math.Max(0, Math.Min(Instance.cupSizeLabels.Count - 1, (int)size));
return Instance.cupSizeLabels[i];
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/PartStagesDef.cs
|
C#
|
mit
| 818 |
using System;
using Verse;
using System.Linq;
namespace rjw
{
/// <summary>
/// Utility data object and a collection of extension methods for Pawn
/// </summary>
public class PawnData : IExposable
{
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 bool ShowRMB_Menu = false;
public bool isSlime = false;
public bool isDemon = false;
public bool oviPregnancy = false;
public float raceSexDrive = 1.0f;
public PawnData() { }
public PawnData(Pawn pawn)
{
//Log.Message("Creating pawndata for " + pawn);
Pawn = pawn;
//Log.Message("This data is valid " + this.IsValid);
if (RaceGroupDef_Helper.TryGetRaceGroupDef(Pawn, out var raceGroupDef))
{
oviPregnancy = raceGroupDef.oviPregnancy;
raceSexDrive = raceGroupDef.raceSexDrive;
}
isDemon = Pawn.Has(RaceTag.Demon);
isSlime = Pawn.Has(RaceTag.Slime);
//Log.Warning("PawnData:: Pawn:" + xxx.get_pawnname(pawn));
//Log.Warning("PawnData:: isSlime:" + isSlime);
//Log.Warning("PawnData:: isDemon:" + isDemon);
//Log.Warning("PawnData:: oviPregnancy:" + oviPregnancy);
}
public void ExposeData()
{
Scribe_References.Look(ref Pawn, "Pawn");
Scribe_Values.Look(ref Comfort, "Comfort", false, true);
Scribe_Values.Look(ref Service, "Service", false, true);
Scribe_Values.Look(ref Breeding, "Breeding", false, true);
Scribe_Values.Look(ref Milking, "Milking", false, true);
Scribe_Values.Look(ref Hero, "Hero", false, true);
Scribe_Values.Look(ref Ironman, "Ironman", false, true);
Scribe_Values.Look(ref HeroOwner, "HeroOwner", "", true);
Scribe_Values.Look(ref BreedingAnimal, "BreedingAnimal", false, true);
Scribe_Values.Look(ref CanChangeDesignationColonist, "CanChangeDesignationColonist", false, true);
Scribe_Values.Look(ref CanChangeDesignationPrisoner, "CanChangeDesignationPrisoner", false, true);
Scribe_Values.Look(ref CanDesignateService, "CanDesignateService", false, true);
Scribe_Values.Look(ref CanDesignateMilking, "CanDesignateMilking", false, true);
Scribe_Values.Look(ref CanDesignateComfort, "CanDesignateComfort", false, true);
Scribe_Values.Look(ref CanDesignateBreedingAnimal, "CanDesignateBreedingAnimal", false, true);
Scribe_Values.Look(ref CanDesignateBreeding, "CanDesignateBreeding", false, true);
Scribe_Values.Look(ref CanDesignateHero, "CanDesignateHero", false, true);
Scribe_Values.Look(ref ShowRMB_Menu, "ShowRMB_Menu", false, true);
Scribe_Values.Look(ref isSlime, "isSlime", false, true);
Scribe_Values.Look(ref isDemon, "isDemon", false, true);
Scribe_Values.Look(ref oviPregnancy, "oviPregnancy", false, true);
Scribe_Values.Look(ref raceSexDrive, "raceSexDrive", 1.0f, true);
}
public bool IsValid { get { return Pawn != null; } }
}
}
|
TDarksword/rjw
|
Source/Common/Data/PawnData.cs
|
C#
|
mit
| 3,370 |
using System.Collections.Generic;
using Verse;
using System;
namespace rjw
{
/// <summary>
/// Defines all RJW configuration related to a specific race or group of races.
/// Core races should have RaceGroupDefs in RJW.
/// Non-core races should have RaceGroupDefs in the separate RJWRaceSupport mod.
/// Technically any mod could add a RaceGroupDef for its own races but we expect that to be rare.
/// </summary>
class RaceGroupDef : Def
{
public List<string> raceNames = null;
public List<string> pawnKindNames = null;
public List<string> anuses = null;
public List<float> chanceanuses = null;
public List<string> femaleBreasts = null;
public List<float> chancefemaleBreasts = null;
public List<string> femaleGenitals = null;
public List<float> chancefemaleGenitals = null;
public List<string> maleBreasts = null;
public List<float> chancemaleBreasts = null;
public List<string> maleGenitals = null;
public List<float> chancemaleGenitals = null;
public List<string> hybridRaceParents = null;
public List<string> hybridChildKindDef = null;
public List<string> tags = null;
public bool hasSingleGender = false;
public bool hasSexNeed = true;
public bool hasFertility = true;
public bool hasPregnancy = true;
public bool oviPregnancy = false;
public bool ImplantEggs = false;
[Obsolete("isDemon is obsolete, use tags instead.")]
public bool isDemon = false;
[Obsolete("isSlime is obsolete, use tags instead.")]
public bool isSlime = false;
public float raceSexDrive = 1.0f;
public List<string> GetRacePartDefNames(SexPartType sexPartType)
{
return sexPartType switch
{
SexPartType.Anus => anuses,
SexPartType.FemaleBreast => femaleBreasts,
SexPartType.FemaleGenital => femaleGenitals,
SexPartType.MaleBreast => maleBreasts,
SexPartType.MaleGenital => maleGenitals,
_ => throw new ApplicationException($"Unrecognized sexPartType: {sexPartType}"),
};
}
public List<float> GetChances(SexPartType sexPartType)
{
return sexPartType switch
{
SexPartType.Anus => chanceanuses,
SexPartType.FemaleBreast => chancefemaleBreasts,
SexPartType.FemaleGenital => chancefemaleGenitals,
SexPartType.MaleBreast => chancemaleBreasts,
SexPartType.MaleGenital => chancemaleGenitals,
_ => throw new ApplicationException($"Unrecognized sexPartType: {sexPartType}"),
};
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/RaceGroupDef.cs
|
C#
|
mit
| 2,398 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace rjw
{
/// <summary>
/// Defines how to create a single sex part on a newly created pawn.
/// </summary>
public class RacePartDef : Def
{
public bool IsNone => string.IsNullOrEmpty(hediffName);
public static readonly RacePartDef None = new RacePartDef();
/// <summary>
/// The name of the hediff to create.
/// Doesn't use the hediff directly because that causes issues when another mod wants to
/// create and reference custom parts inheriting from rjw base defs.
/// </summary>
public string hediffName;
public string fluidType;
public float? fluidModifier;
public SimpleCurve severityCurve;
public bool TryGetHediffDef(out HediffDef hediffDef)
{
hediffDef = DefDatabase<HediffDef>.GetNamedSilentFail(hediffName);
if (hediffDef == null)
{
ModLog.Error($"Could not find a HediffDef named {hediffName} referenced by RacePartDef named {defName}.");
return false;
}
else
{
return true;
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/RacePartDef.cs
|
C#
|
mit
| 1,103 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RimWorld;
using Verse;
namespace rjw
{
public class RaceTag
{
// I only created tags for RaceGroupDef properties that seemed like keywords (like slime) rather than behavior (like oviPregnancy).
public readonly static RaceTag Chitin = new RaceTag("Chitin");
public readonly static RaceTag Demon = new RaceTag("Demon");
public readonly static RaceTag Feathers = new RaceTag("Feathers");
public readonly static RaceTag Fur = new RaceTag("Fur");
public readonly static RaceTag Plant = new RaceTag("Plant");
public readonly static RaceTag Robot = new RaceTag("Robot");
public readonly static RaceTag Scales = new RaceTag("Scales");
public readonly static RaceTag Skin = new RaceTag("Skin");
public readonly static RaceTag Slime = new RaceTag("Slime");
public string Key { get; }
RaceTag(string key)
{
Key = key;
}
/// <summary>
/// For backwards compatability only. Shouldn't add more special cases here.
/// </summary>
public bool DefaultWhenNoRaceGroupDef(Pawn pawn)
{
if (this == Demon)
{
return xxx.is_demon(pawn);
}
else if (this == Slime)
{
return xxx.is_slime(pawn);
}
else if (this == Skin)
{
return true;
}
else
{
return false;
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Data/RaceTag.cs
|
C#
|
mit
| 1,337 |
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>();
}
}
|
TDarksword/rjw
|
Source/Common/Data/StringListDef.cs
|
C#
|
mit
| 249 |
///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;
// }
// }
// }
//}
|
TDarksword/rjw
|
Source/Common/ExpandedPawnCharacterCard.cs
|
C#
|
mit
| 9,613 |
using System.Collections.Generic;
using RimWorld;
using Verse;
using System.Linq;
using System;
using Multiplayer.API;
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_breastsBPR(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>
[SyncMethod]
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));
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/BreastSize_Helper.cs
|
C#
|
mit
| 2,976 |
// #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)
{
ModLog.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");
float min_fuckability = 0.10f; // Don't rape pawns with <10% fuckability
float avg_fuckability = 0f; // Average targets fuckability, choose target higher than that
var valid_targets = new Dictionary<Pawn, float>(); // Valid pawns and their fuckability
Pawn chosentarget = null; // Final target pawn
if (pawn.Faction == null)// HostileTo causes error on fresh colony(w/o name)
return null;
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)
&& !(x.IsPregnant() && xxx.is_animal(x))
&& 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 partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
var fuc = SexAppraiser.would_fuck(pawn, target, invert_opinion: true, ignore_gender: (Genital_Helper.has_penis_fertile(pawn, parts) || Genital_Helper.has_penis_infertile(pawn, parts) || xxx.is_insect(pawn)));
DebugText("BreederHelper::find_designated_breeder( " + xxx.get_pawnname(pawn) + " -> " + xxx.get_pawnname(target) + " (" + fuc.ToString() + " / " + min_fuckability.ToString() + ")");
if (fuc > min_fuckability)
valid_targets.Add(target, fuc);
}
if (valid_targets.Any())
{
//avg_fuckability = valid_targets.Average(x => x.Value);
// choose pawns to fuck with above average fuckability
var valid_targetsFilteredAnimals = valid_targets.Where(x => x.Value >= avg_fuckability);
if (valid_targetsFilteredAnimals.Any())
chosentarget = valid_targetsFilteredAnimals.RandomElement().Key;
}
return chosentarget;
}
//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 min_fuckability = 0.10f; // Don't rape pawns with <10% fuckability
float avg_fuckability = 0f; // Average targets fuckability, choose target higher than that
var valid_targets = new Dictionary<Pawn, float>(); // Valid pawns and their fuckability
Pawn chosentarget = null; // Final target 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())
{
var partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
//filter pawns for female, who can fuck her
//not sure if faction check should be but w/e
if (!Genital_Helper.has_penis_fertile(pawn, parts) && !Genital_Helper.has_penis_infertile(pawn, parts) && (Genital_Helper.has_vagina(pawn, parts) || 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))
{
min_fuckability *= 2f;
}
if (xxx.is_frustrated(pawn))
{ // Less picky when frustrated...
min_fuckability *= 0.6f;
}
else if (!xxx.is_hornyorfrustrated(pawn))
{ // ...and far more picky when satisfied.
min_fuckability *= 2.5f;
}
}
}
DebugText("[" + SaveStorage.ModId + "]BreederHelper::find_breeder_animal::" + targets.Count() + " targets found on map.");
if (!targets.Any())
{
return null; //None found.
}
foreach (Pawn target in targets)
{
DebugText("[" + SaveStorage.ModId + "]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 = SexAppraiser.would_fuck_animal(pawn, target); // 0.0 to ~3.0, orientation checks etc.
if (!(fuc > min_fuckability)) continue;
DebugText("Adding target" + target.kindDef.race.defName.ToLower());
valid_targets.Add(target, fuc);
}
DebugText(valid_targets.Count() + " valid targets found on map.");
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
if (valid_targets.Any())
{
avg_fuckability = valid_targets.Average(x => x.Value);
// choose pawns to fuck with above average fuckability
var valid_targetsFilteredAnimals = valid_targets.Where(x => x.Value >= avg_fuckability);
if (valid_targetsFilteredAnimals.Any())
chosentarget = valid_targetsFilteredAnimals.RandomElement().Key;
}
return chosentarget;
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/Breeder_Helper.cs
|
C#
|
mit
| 6,645 |
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using Verse;
namespace rjw
{
public class CondomUtility
{
public static readonly RecordDef CountOfCondomsUsed = DefDatabase<RecordDef>.GetNamed("CountOfCondomsUsed");
// TryUseCondom returns whether it was able to remove one condom from the pawn
public static bool TryUseCondom(Pawn pawn)
{
if (!xxx.is_human(pawn)) return false;
if (xxx.has_quirk(pawn, "ImpregnationFetish")) return false;
List<Thing> pawn_condoms = pawn.inventory.innerContainer.ToList().FindAll(obj => obj.def == ThingDef.Named("Condom"));
if (pawn_condoms.Any())
{
var stack = pawn_condoms.Pop();
stack.stackCount--;
if (stack.stackCount <= 0)
{
stack.Destroy();
}
return true;
}
return false;
}
// UseCondom applies the effects of having used a condom.
public static void useCondom(Pawn pawn)
{
if (!xxx.is_human(pawn)) return;
pawn.records.Increment(CountOfCondomsUsed);
pawn.needs.mood.thoughts.memories.TryGainMemory(ThoughtDef.Named("SexWithCondom"));
}
public static void GetCondomFromRoom(Pawn pawn)
{
if (!xxx.is_human(pawn)) return;
if (xxx.has_quirk(pawn, "ImpregnationFetish")) return;
List<Thing> condoms_in_room = pawn.GetRoom().ContainedAndAdjacentThings.FindAll(obj => obj.def == ThingDef.Named("Condom") && pawn.Position.DistanceToSquared(obj.Position) < 10);
//List<Thing> condoms_in_room = pawn.ownership.OwnedRoom?.ContainedAndAdjacentThings.FindAll(obj => obj.def == ThingDef.Named("Condom"));
if (condoms_in_room.Any())
{
pawn.inventory.innerContainer.TryAdd(condoms_in_room.Pop().SplitOff(1));
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/CondomUtility.cs
|
C#
|
mit
| 1,682 |
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)
{
var partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
bool has_vagina = Genital_Helper.has_vagina(pawn, parts);
bool has_penis = Genital_Helper.has_penis_fertile(pawn, parts);
bool has_penis_infertile = Genital_Helper.has_penis_infertile(pawn, parts);
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)
{
if (thought.Severity > 0.24f)
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);
try
{
ChangeSex(pawn, before, after);
}
catch
{
ModLog.Error("ChangeSex error: " + xxx.get_pawnname(pawn));
}
}
public static void ChangeSex(Pawn pawn, Sex oldsex, Sex newsex)
{
if (CompRJW.Comp(pawn) == null)
{
ModLog.Warning(" ChangeSex error: CompRJW.Comp(pawn) should not be null");
return;
}
//Log.Message("ChangeSex 1" + oldsex);
//Log.Message("ChangeSex 2" + 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)
{
// IsDesignatedHero() crash world gen when adding rjw artifical tech hediffs to royalty, assume they are happy with their implants
try
{
GiveThought(pawn, react, pawn.IsDesignatedHero());//give unhappy, if not hero}
}
catch
{
ModLog.Error(" ChangeSex error " + xxx.get_pawnname(pawn) + " faction " + pawn.Faction.Name + ". Probably tried to change sex at world gen for royalty implant, skipping");
GiveThought(pawn, react, happy: true);
}
}
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
}
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/Gender_Helper.cs
|
C#
|
mit
| 10,792 |
using System.Collections.Generic;
using System.Linq;
using Verse;
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 average_penis = HediffDef.Named("Penis");
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 average_vagina = HediffDef.Named("Vagina");
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 average_breasts = HediffDef.Named("Breasts");
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_breasts = HediffDef.Named("UdderBreasts");
public static HediffDef average_anus = HediffDef.Named("Anus");
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 BodyPartRecord get_genitalsBPR(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)
{
//--ModLog.Message(" get_genitals( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static BodyPartRecord get_breastsBPR(Pawn pawn)
{
//--ModLog.Message(" get_breasts( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName == "Chest");
if (Part == null)
{
//--ModLog.Message(" get_breasts( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static BodyPartRecord get_mouthBPR(Pawn pawn)
{
//--ModLog.Message(" get_mouth( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName.ToLower().ContainsAny("mouth", "teeth", "jaw", "beak"));
if (Part == null)
{
//--ModLog.Message(" get_mouth( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static BodyPartRecord get_tailBPR(Pawn pawn)
{
//should probably make scale race check or something
//--ModLog.Message(" get_tail( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName.ToLower().ContainsAny("tail"));
if (Part == null)
{
//--ModLog.Message(" get_tail( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
public static BodyPartRecord get_anusBPR(Pawn pawn)
{
//--ModLog.Message(" get_anus( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord Part = pawn?.RaceProps.body.AllParts.Find(bpr => bpr.def.defName == "Anus");
if (Part == null)
{
//--ModLog.Message(" get_anus( " + xxx.get_pawnname(pawn) + " ) - Part is null");
return null;
}
return Part;
}
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 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_penis || gear_def.blocks_vagina))
return true;
}
}
return false;
}
public static bool hands_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_hands))
return true;
}
}
return false;
}
public static bool penis_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_penis))
return true;
}
}
return false;
}
public static bool oral_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_oral))
return true;
}
}
return false;
}
public static bool vagina_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_vagina))
return true;
}
}
return false;
}
public static List<Hediff> get_PartsHediffList(Pawn pawn, BodyPartRecord Part)
{
if (Part is null)
return null;
return pawn.health.hediffSet.hediffs.FindAll((Hediff hed) =>
hed.Part == Part &&
(hed is Hediff_PartBaseNatural || hed is Hediff_PartBaseArtifical));
}
public static bool has_genitals(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return true;
}
public static bool has_breasts(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_breastsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
!hed.def.defName.ToLower().Contains("featureless"));
}
public static bool has_male_breasts(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_breastsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
(((hed is Hediff_PartBaseNatural) &&
(hed as Hediff_PartBaseNatural).CurStageIndex == 0)
||
((hed is Hediff_PartBaseArtifical) &&
(hed as Hediff_PartBaseArtifical).CurStageIndex == 0)
));
}
/// <summary>
/// Can do breastjob if breasts are average or bigger
/// </summary>
/// <param name="pawn"></param>
/// <returns></returns>
public static bool can_do_breastjob(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_breastsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
(((hed is Hediff_PartBaseNatural) &&
(hed as Hediff_PartBaseNatural).CurStageIndex > 1)
||
((hed is Hediff_PartBaseArtifical) &&
(hed as Hediff_PartBaseArtifical).CurStageIndex > 1)
));
}
public static bool has_tail(Pawn pawn)
{
BodyPartRecord Part = get_tailBPR(pawn);
if (Part is null)
return false;
return !pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) && (hed is Hediff_MissingPart));
}
public static bool has_mouth(Pawn pawn)
{
BodyPartRecord Part = get_mouthBPR(pawn);
if (Part is null)
return false;
return !pawn.health.hediffSet.hediffs.Any((Hediff hed) =>
(hed.Part == Part) && (hed is Hediff_MissingPart));
}
public static bool has_anus(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_anusBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
hed.def.defName.ToLower().Contains("anus"));
}
/// <summary>
/// Insertable, this is both vagina and ovipositorf
/// </summary>
/// <param name="pawn"></param>
/// <param name="parts"></param>
/// <returns></returns>
public static bool has_vagina(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
(hed.def.defName.ToLower().Contains("vagina") || hed.def.defName.ToLower().Contains("ovipositorf")));
}
public static bool has_penis_fertile(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
(hed.def.defName.ToLower().Contains("penis") || hed.def.defName.ToLower().Contains("ovipositorm")));
}
public static bool has_penis_infertile(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
(hed.def.defName.ToLower().Contains("pegdick") || (hed.def.defName.ToLower().Contains("tentacle") && !hed.def.defName.ToLower().Contains("penis"))));
}
public static bool has_multipenis(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
int count = 0;
foreach(Hediff hed in parts)
{
if (hed.def.defName.ToLower().Contains("hemipenis"))
return true;
if (hed.def.defName.ToLower().Contains("penis") ||
hed.def.defName.ToLower().Contains("pegdick") ||
hed.def.defName.ToLower().Contains("ovipositorm") ||
hed.def.defName.ToLower().Contains("tentacle")
)
count += 1;
}
return count > 1;
}
public static bool has_ovipositorM(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
hed.def.defName.ToLower().Contains("ovipositorm"));
}
public static bool has_ovipositorF(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
hed.def.defName.ToLower().Contains("ovipositorf"));
}
/// <summary>
/// Can do autofelatio if penis is huge or bigger
/// </summary>
/// <param name="pawn"></param>
/// <returns></returns>
public static bool can_do_autofelatio(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return parts.Any((Hediff hed) =>
(((hed is Hediff_PartBaseNatural) &&
(hed as Hediff_PartBaseNatural).CurStageIndex > 3)
||
((hed is Hediff_PartBaseArtifical) &&
(hed as Hediff_PartBaseArtifical).CurStageIndex > 3)) &&
(!hed.def.defName.ToLower().Contains("vagina")) &&
(
hed.def.defName.ToLower().Contains("penis") ||
hed.def.defName.ToLower().Contains("pegdick") ||
hed.def.defName.ToLower().Contains("ovipositorm") ||
hed.def.defName.ToLower().Contains("tentacle")
));
}
/// <summary>
/// Count only fertile penises
/// </summary>
/// <param name="pawn"></param>
/// <returns></returns>
public static bool is_futa(Pawn pawn, List<Hediff> parts = null)
{
if (parts == null)
{
parts = get_PartsHediffList(pawn, get_genitalsBPR(pawn));
}
if (parts.NullOrEmpty())
return false;
return (Genital_Helper.has_penis_fertile(pawn, parts) && has_vagina(pawn, parts));
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/Genital_Helper.cs
|
C#
|
mit
| 14,169 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Verse;
namespace rjw
{
public class HediffHelper
{
/// <summary>
/// Creates hediff with custom hediff class
/// </summary>
/// <typeparam name="T">hediff class. Should be class defined by hediff or subclass of that class</typeparam>
/// <param name="def">hediffDef</param>
/// <param name="pawn">owner of newly created hediff</param>
/// <param name="partRecord">bodypart heduff assigned to</param>
/// <returns>newly created hediff</returns>
public static T MakeHediff<T>(HediffDef def, Pawn pawn, BodyPartRecord partRecord = null) where T : Hediff
{
if (!def.hediffClass.IsAssignableFrom(typeof(T)))
{
throw new InvalidOperationException($"trying to create hediff with incompatible class: {typeof(T).Name} is not a {def.hediffClass.Name} or its subclass");
}
T hediff = (T)Activator.CreateInstance(typeof(T));
hediff.def = def;
hediff.pawn = pawn;
hediff.Part = partRecord;
hediff.loadID = Find.UniqueIDsManager.GetNextHediffID();
hediff.PostMake();
return hediff;
}
/// <summary>
/// Fill existing hediff class with data
/// </summary>
/// <typeparam name="T">hediff class. Should be class defined by hediff or subclass of that class</typeparam>
/// <param name="def">hediffDef</param>
/// <param name="hediff">empty hediff instance</Hediff>
/// <param name="pawn">owner of newly created hediff</param>
/// <param name="partRecord">bodypart heduff assigned to</param>
/// <returns>newly created hediff</returns>
public static T FillHediff<T>(HediffDef def, T hediff, Pawn pawn, BodyPartRecord partRecord = null) where T : Hediff
{
if (!def.hediffClass.IsAssignableFrom(typeof(T)))
{
throw new InvalidOperationException($"trying to create hediff with incompatible class: {typeof(T).Name} is not a {def.hediffClass.Name} or its subclass");
}
hediff.def = def;
hediff.pawn = pawn;
hediff.Part = partRecord;
hediff.loadID = Find.UniqueIDsManager.GetNextHediffID();
hediff.PostMake();
return hediff;
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/HediffHelper.cs
|
C#
|
mit
| 2,120 |
using Multiplayer.API;
using RimWorld;
using Verse;
namespace rjw
{
/// <summary>
/// Old, hardcoded part choosing code. Used as a fallback if no RaceGroupDef is found.
/// </summary>
static class LegacySexPartAdder
{
static bool privates_gender(Pawn pawn, Gender gender)
{
return SexPartAdder.IsAddingPenis(pawn, gender);
}
[SyncMethod]
public static double GenderTechLevelCheck(Pawn 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;
else if (pawn == null)
lowtechlevel = false;
//--save savages from inventing hydraulic and bionic genitals
while (lowtechlevel && value >= 0.90)
{
value = Rand.Value;
}
return value;
}
public static void AddBreasts(Pawn pawn, BodyPartRecord bpr, Pawn parent)
{
var temppawn = parent ?? pawn;
HediffDef part;
double value = GenderTechLevelCheck(pawn);
string racename = temppawn.kindDef.race.defName.ToLower();
part = Genital_Helper.generic_breasts;
if (xxx.is_mechanoid(pawn))
{
return;
}
if (xxx.is_insect(temppawn))
{
// this will probably need override in case there are humanoid insect race
//--ModLog.Message(" 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!
part = Genital_Helper.slime_breasts;
}
else
{
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(Genital_Helper.featureless_chest, bpr);
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"))
part = Genital_Helper.bionic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("pleasure"))
part = Genital_Helper.bionic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("idol"))
part = Genital_Helper.bionic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("social"))
part = Genital_Helper.hydraulic_breasts;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("substitute"))
part = Genital_Helper.average_breasts;
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
part = Genital_Helper.bionic_breasts;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
part = Genital_Helper.hydraulic_breasts;
}
else
return;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
part = Genital_Helper.bionic_breasts;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
part = Genital_Helper.hydraulic_breasts;
}
if (part == Genital_Helper.generic_breasts)
return;
}
//alien races - MoreMonstergirls
//alien races - Kijin
else if (racename.Contains("cowgirl") || racename.Contains("kijin"))
{
part = Genital_Helper.average_breasts;
if (value < 0.75 && racename.Contains("cowgirl"))
part = Genital_Helper.udder_breasts;
}
else
{
if (value < 0.90 || (pawn.ageTracker.AgeBiologicalYears < 2))
part = Genital_Helper.average_breasts;
else if (value < 0.95)
part = Genital_Helper.hydraulic_breasts;
else
part = Genital_Helper.bionic_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", "horse", "donkey", "yak"))
{
part = Genital_Helper.udder_breasts;
}
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(SexPartAdder.MakePart(part, pawn, bpr), bpr);
}
}
public static void AddGenitals(Pawn pawn, Pawn parent, Gender gender, BodyPartRecord bpr, HediffDef part)
{
var temppawn = parent ?? pawn;
double value = GenderTechLevelCheck(pawn);
string racename = temppawn.kindDef.race.defName.ToLower();
//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"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.ovipositorM : Genital_Helper.ovipositorF;
//override for Better infestations, since queen is male at creation
if (racename.Contains("Queen"))
part = Genital_Helper.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)
part = (privates_gender(pawn, gender)) ? Genital_Helper.feline_penis : Genital_Helper.feline_vagina;
else if (value < 0.90)
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
else
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.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)
part = (privates_gender(pawn, gender)) ? Genital_Helper.canine_penis : Genital_Helper.canine_vagina;
else if (value < 0.90)
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
else
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
}
//space horse pawns
else if (racename.Contains("equium"))
{
if ((value < 0.70) || (pawn.ageTracker.AgeBiologicalYears < 2) || !pawn.RaceProps.Humanlike)
part = (privates_gender(pawn, gender)) ? Genital_Helper.equine_penis : Genital_Helper.equine_vagina;
else if (value < 0.90)
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
else
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
}
//space raccoon pawns
else if (racename.Contains("racc") && !racename.Contains("raccoon"))
{
if ((value < 0.70) || (pawn.ageTracker.AgeBiologicalYears < 2) || !pawn.RaceProps.Humanlike)
part = (privates_gender(pawn, gender)) ? Genital_Helper.raccoon_penis : Genital_Helper.generic_vagina;
else if (value < 0.90)
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
else
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.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"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("pleasure"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("idol"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("social"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("substitute"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.average_penis : Genital_Helper.average_vagina;
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
}
else
return;
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
}
if (part == Genital_Helper.generic_penis || part == Genital_Helper.generic_vagina)
return;
}
//animal cats
else if (racename.ContainsAny("cat", "cougar", "lion", "leopard", "cheetah", "panther", "tiger", "lynx", "smilodon", "akaneko"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.feline_penis : Genital_Helper.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"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.canine_penis : Genital_Helper.canine_vagina;
}
//animal horse - MoreMonstergirls
else if (racename.ContainsAny("horse", "centaur", "zebra", "donkey", "dryad"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.equine_penis : Genital_Helper.equine_vagina;
}
//animal raccoon
else if (racename.Contains("racc"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.raccoon_penis : Genital_Helper.generic_vagina;
}
//animal crocodilian (alligator, crocodile, etc)
else if (racename.ContainsAny("alligator", "crocodile", "caiman", "totodile", "croconaw", "feraligatr", "quinkana", "purussaurus", "kaprosuchus", "sarcosuchus"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.crocodilian_penis : Genital_Helper.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"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.hemipenis : Genital_Helper.generic_vagina;
}
//animal dragon - MoreMonstergirls
else if (racename.ContainsAny("dragon", "thrumbo", "drake", "charizard", "saurus"))
{
part = (privates_gender(pawn, gender)) ? Genital_Helper.dragon_penis : Genital_Helper.dragon_vagina;
}
//animal slime - MoreMonstergirls
else if (racename.Contains("slime"))
{
// slime always futa
pawn.health.AddHediff(SexPartAdder.MakePart(privates_gender(pawn, gender) ? Genital_Helper.slime_penis : Genital_Helper.slime_vagina, pawn, bpr), bpr);
pawn.health.AddHediff(SexPartAdder.MakePart(privates_gender(pawn, gender) ? Genital_Helper.slime_vagina : Genital_Helper.slime_penis, pawn, bpr), bpr);
return;
}
//animal demons - MoreMonstergirls
else if (racename.Contains("impmother") || racename.Contains("demon"))
{
// 25% futa
pawn.health.AddHediff(SexPartAdder.MakePart(privates_gender(pawn, gender) ? Genital_Helper.demon_penis : Genital_Helper.demon_vagina, pawn, bpr), bpr);
if (Rand.Value < 0.25f)
pawn.health.AddHediff(SexPartAdder.MakePart(privates_gender(pawn, gender) ? Genital_Helper.demon_penis : Genital_Helper.demonT_penis, pawn, bpr), bpr);
return;
}
//animal demons - MoreMonstergirls
else if (racename.Contains("baphomet"))
{
if (Rand.Value < 0.50f)
pawn.health.AddHediff(SexPartAdder.MakePart(privates_gender(pawn, gender) ? Genital_Helper.demon_penis : Genital_Helper.demon_vagina, pawn, bpr), bpr);
else
pawn.health.AddHediff(SexPartAdder.MakePart(privates_gender(pawn, gender) ? Genital_Helper.equine_penis : Genital_Helper.demon_vagina, pawn, bpr), bpr);
return;
}
else if (pawn.RaceProps.Humanlike)
{
//--Log.Message("Genital_Helper::add_genitals( " + xxx.get_pawnname(pawn) + " ) - race is humanlike");
if (value < 0.90 || (pawn.ageTracker.AgeBiologicalYears < 2))
part = (privates_gender(pawn, gender)) ? Genital_Helper.average_penis : Genital_Helper.average_vagina;
else if (value < 0.95)
part = (privates_gender(pawn, gender)) ? Genital_Helper.hydraulic_penis : Genital_Helper.hydraulic_vagina;
else
part = (privates_gender(pawn, gender)) ? Genital_Helper.bionic_penis : Genital_Helper.bionic_vagina;
}
//--Log.Message("Genital_Helper::add_genitals final ( " + xxx.get_pawnname(pawn) + " ) " + part.defName);
var hd = SexPartAdder.MakePart(part, pawn, bpr);
//Log.Message("Genital_Helper::add_genitals final ( " + xxx.get_pawnname(pawn) + " ) " + hd.def.defName + " sev " + hd.Severity + " bpr " + BPR.def.defName);
pawn.health.AddHediff(hd, bpr);
//Log.Message("Genital_Helper::add_genitals final ( " + xxx.get_pawnname(pawn) + " ) " + pawn.health.hediffSet.HasHediff(hd.def));
}
public static void AddAnus(Pawn pawn, BodyPartRecord bpr, Pawn parent)
{
var temppawn = parent ?? pawn;
HediffDef part;
double value = GenderTechLevelCheck(pawn);
string racename = temppawn.kindDef.race.defName.ToLower();
part = Genital_Helper.generic_anus;
if (xxx.is_mechanoid(pawn))
{
return;
}
else if (xxx.is_insect(temppawn))
{
part = Genital_Helper.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"))
part = Genital_Helper.bionic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("pleasure"))
part = Genital_Helper.bionic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("idol"))
part = Genital_Helper.bionic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("social"))
part = Genital_Helper.hydraulic_anus;
else if (pawn.story.childhood.untranslatedTitleShort.ToLower().Contains("substitute"))
part = Genital_Helper.average_anus;
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
part = Genital_Helper.bionic_anus;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
part = Genital_Helper.hydraulic_anus;
}
}
else if (pawn.story.GetBackstory(BackstorySlot.Adulthood) != null)
{
if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("courtesan"))
part = Genital_Helper.bionic_anus;
else if (pawn.story.adulthood.untranslatedTitleShort.ToLower().Contains("social"))
part = Genital_Helper.hydraulic_anus;
}
if (part == Genital_Helper.generic_anus)
return;
}
else if (racename.Contains("slime"))
{
part = Genital_Helper.slime_anus;
}
//animal demons - MoreMonstergirls
else if (racename.Contains("impmother") || racename.Contains("baphomet") || racename.Contains("demon"))
{
part = Genital_Helper.demon_anus;
}
else if (pawn.RaceProps.Humanlike)
{
if (value < 0.90 || (pawn.ageTracker.AgeBiologicalYears < 2))
part = Genital_Helper.average_anus;
else if (value < 0.95)
part = Genital_Helper.hydraulic_anus;
else
part = Genital_Helper.bionic_anus;
}
pawn.health.AddHediff(SexPartAdder.MakePart(part, pawn, bpr), bpr);
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/LegacySexPartAdder.cs
|
C#
|
mit
| 19,520 |
using System.Collections.Generic;
using System.Linq;
using Verse;
namespace rjw
{
class RaceGroupDef_Helper
{
/// <summary>
/// Cache for TryGetRaceGroupDef.
/// </summary>
static readonly IDictionary<PawnKindDef, RaceGroupDef> RaceGroupByPawnKind = new Dictionary<PawnKindDef, RaceGroupDef>();
public static bool TryGetRaceGroupDef(Pawn pawn, out RaceGroupDef raceGroupDef)
{
if (RaceGroupByPawnKind.TryGetValue(pawn.kindDef, out raceGroupDef))
{
return raceGroupDef != null;
}
else
{
raceGroupDef = GetRaceGroupDefInternal(pawn);
RaceGroupByPawnKind.Add(pawn.kindDef, raceGroupDef);
return raceGroupDef != null;
}
}
/// <summary>
/// Returns the best match RaceGroupDef for the given pawn, or null if none is found.
/// </summary>
static RaceGroupDef GetRaceGroupDefInternal(Pawn pawn)
{
var kindDef = pawn.kindDef;
var raceName = kindDef.race.defName;
var pawnKindName = kindDef.defName;
var groups = DefDatabase<RaceGroupDef>.AllDefs;
var kindMatches = groups.Where(group => group.pawnKindNames?.Contains(pawnKindName) ?? false).ToList();
var raceMatches = groups.Where(group => group.raceNames?.Contains(raceName) ?? false).ToList();
var count = kindMatches.Count() + raceMatches.Count();
if (count == 0)
{
//ModLog.Message($"Pawn named '{pawn.Name}' matched no RaceGroupDef. If you want to create a matching RaceGroupDef you can use the raceName '{raceName}' or the pawnKindName '{pawnKindName}'.");
return null;
}
else if (count == 1)
{
// ModLog.Message($"Pawn named '{pawn.Name}' matched 1 RaceGroupDef.");
return kindMatches.Concat(raceMatches).Single();
}
else
{
// ModLog.Message($"Pawn named '{pawn.Name}' matched {count} RaceGroupDefs.");
// If there are multiple RaceGroupDef matches, choose one of them.
// First prefer defs NOT defined in rjw.
// Then prefer a match by kind over a match by race.
return kindMatches.FirstOrDefault(match => !IsThisMod(match))
?? raceMatches.FirstOrDefault(match => !IsThisMod(match))
?? kindMatches.FirstOrDefault()
?? raceMatches.FirstOrDefault();
}
}
static bool IsThisMod(Def def)
{
var rjwContent = LoadedModManager.RunningMods.Single(pack => pack.Name == "RimJobWorld");
return rjwContent.AllDefs.Contains(def);
}
/// <summary>
/// Returns true if a race part was chosen (even if that part is "no part").
/// </summary>
public static bool TryAddRacePart(Pawn pawn, SexPartType sexPartType)
{
if (!TryGetRaceGroupDef(pawn, out var raceGroupDef))
{
// No race, so nothing was chosen.
return false;
}
if (!RacePartDef_Helper.TryChooseRacePartDef(raceGroupDef, sexPartType, out var racePartDef))
{
// Failed to find a part, so nothing was chosen.
return false;
}
if (racePartDef.IsNone)
{
// "no part" was explicitly chosen.
return true;
}
var target = sexPartType.GetBodyPartDef();
var bodyPartRecord = pawn.RaceProps.body.AllParts.Find(bpr => bpr.def == target);
if (!racePartDef.TryGetHediffDef(out var hediffDef))
{
// Failed to find hediffDef.
return false;
}
var hediff = RacePartDef_Helper.MakePart(hediffDef, pawn, bodyPartRecord, racePartDef);
pawn.health.AddHediff(hediff, bodyPartRecord);
// A part was chosen and added.
return true;
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/RaceGroupDef_Helper.cs
|
C#
|
mit
| 3,388 |
using Multiplayer.API;
using System.Linq;
using Verse;
namespace rjw
{
class RacePartDef_Helper
{
/// <summary>
/// Returns true if a race part was chosen (even if that part is "no part").
/// </summary>
[SyncMethod]
public static bool TryChooseRacePartDef(RaceGroupDef raceGroupDef, SexPartType sexPartType, out RacePartDef racePartDef)
{
var partNames = raceGroupDef.GetRacePartDefNames(sexPartType);
if (partNames == null)
{
// Missing list, so nothing was chosen.
racePartDef = null;
return false;
}
else if (!partNames.Any())
{
// Empty list, so "no part" was chosen.
racePartDef = RacePartDef.None;
return true;
}
var chances = raceGroupDef.GetChances(sexPartType);
var hasChances = chances != null && chances.Count() > 0;
if (hasChances && chances.Count() != partNames.Count())
{
// No need for this to be runtime, should probably be a config error in RaceGroupDef.
ModLog.Error($"RaceGroupDef named {raceGroupDef.defName} has {partNames.Count()} parts but {chances.Count()} chances for {sexPartType}.");
racePartDef = null;
return false;
}
string partName;
if (hasChances)
{
var indexes = partNames.Select((x, i) => i);
partName = partNames[indexes.RandomElementByWeight(i => chances[i])];
}
else
{
partName = partNames.RandomElement();
}
racePartDef = DefDatabase<RacePartDef>.GetNamedSilentFail(partName);
if (racePartDef == null)
{
ModLog.Error($"Could not find a RacePartDef named {partName} referenced by RaceGroupDef named {raceGroupDef.defName}.");
return false;
}
else
{
return true;
}
}
[SyncMethod]
public static Hediff MakePart(HediffDef hediffDef, Pawn pawn, BodyPartRecord bodyPartRecord, RacePartDef racePartDef)
{
var hediff = HediffMaker.MakeHediff(hediffDef, pawn, bodyPartRecord);
var compHediff = hediff.TryGetComp<CompHediffBodyPart>();
if (compHediff != null)
{
compHediff.initComp(pawn);
if (racePartDef.fluidType != null)
{
compHediff.FluidType = racePartDef.fluidType;
}
if (racePartDef.fluidModifier != null)
{
compHediff.FluidModifier = racePartDef.fluidModifier.Value;
}
if (racePartDef.severityCurve != null && racePartDef.severityCurve.Any())
{
// Size math is in flux right now, but the idea is that for an individual pawn
// the size chosen in the RaceGroupDef is the size reported in the UI regardless of pawn's BodySize.
// Check for males to only get nipple sized (flat) breasts
// Trap calculation is done in initComp method above, by this point only pawns with SizeBase of 0.01
// should be those that failed the Trap calc, are male, or are very unlucky on their breast size roll
// Check for is male at the end because its possible (though very unlikely) for a female to roll a 0.01, and
// the severity curve for that race's breasts may actually have it as impossible for a female to be that small
if (compHediff.SizeBase == 0.01f && hediff.def.defName.ToLower().Contains("breast") && pawn.gender == Gender.Male)
{
compHediff.updatesize();
}
else
{
var severity = racePartDef.severityCurve.Evaluate(Rand.Value);
compHediff.SizeBase = severity;
compHediff.EffSize = severity;
compHediff.updatesize(severity);
}
}
else
{
compHediff.updatesize();
}
}
return hediff;
}
/// <summary>
/// Generates and logs RacePartDef xml shells for each RJW hediff so they can be manually saved as a def file and referenced by RaceGroupDefs.
/// In theory this could be done automatically at run time. But then we also might want to add real configuration
/// to the shells so for now just checking in the shells.
/// </summary>
public static void GeneratePartShells()
{
var defs = DefDatabase<HediffDef_PartBase>.AllDefs.OrderBy(def => def.defName);
var template = "\t<rjw.RacePartDef>\n\t\t<defName>{0}</defName>\n\t\t<hediffName>{0}</hediffName>\n\t</rjw.RacePartDef>";
var strings = defs.Select(def => string.Format(template, def.defName));
ModLog.Message(" RacePartDef shells:\n" + string.Join("\n", strings));
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/RacePartDef_Helper.cs
|
C#
|
mit
| 4,235 |
using Multiplayer.API;
using RimWorld;
using Verse;
using System.Collections.Generic;
namespace rjw
{
class SexPartAdder
{
/// <summary>
/// return true if going to set penis,
/// return false for vagina
/// </summary>
public static bool IsAddingPenis(Pawn pawn, Gender gender)
{
return (pawn.gender == Gender.Male) ? (gender != Gender.Female) : (gender == Gender.Male);
}
/// <summary>
/// generate part hediff
/// </summary>
public static Hediff MakePart(HediffDef def, Pawn pawn, BodyPartRecord bpr)
{
//Log.Message("SexPartAdder::PartMaker ( " + xxx.get_pawnname(pawn) + " ) " + def.defName);
Hediff hd = HediffMaker.MakeHediff(def, pawn, bpr);
//Log.Message("SexPartAdder::PartMaker ( " + xxx.get_pawnname(pawn) + " ) " + hd.def.defName);
CompHediffBodyPart compHediff = hd.TryGetComp<CompHediffBodyPart>();
if (compHediff != null)
{
//Log.Message("SexPartAdder::PartMaker init comps");
compHediff.initComp(pawn);
compHediff.updatesize();
}
return hd;
}
/// <summary>
/// operation - move part data from thing to hediff
/// </summary>
public static Hediff recipePartAdder(RecipeDef recipe, Pawn pawn, BodyPartRecord part, List<Thing> ingredients)
{
Hediff hd = HediffMaker.MakeHediff(recipe.addsHediff, pawn, part);
Thing thing = ingredients.Find(x => x.def.defName == recipe.addsHediff.defName);
CompThingBodyPart CompThing = thing.TryGetComp<rjw.CompThingBodyPart>();
CompHediffBodyPart CompHediff = hd.TryGetComp<rjw.CompHediffBodyPart>();
if (CompHediff != null && CompThing != null)
if (CompThing.SizeBase > 0)
{
CompHediff.FluidType = CompThing.FluidType;
CompHediff.FluidAmmount = CompThing.FluidAmmount;
CompHediff.FluidModifier = CompThing.FluidModifier;
CompHediff.SizeBase = CompThing.SizeBase;
CompHediff.SizeOwner = CompThing.SizeOwner;
CompHediff.RaceOwner = CompThing.RaceOwner;
CompHediff.PreviousOwner = CompThing.PreviousOwner;
CompHediff.Eggs = CompThing.Eggs;
CompHediff.updatesize();
}
else //not initialised things, drop pods, trader? //TODO: figure out how to populate rjw parts at gen
hd = MakePart(hd.def, pawn, part);
return hd;
}
/// <summary>
/// operation - move part data from hediff to thing
/// </summary>
public static Thing recipePartRemover(Hediff hd)
{
Thing thing = ThingMaker.MakeThing(hd.def.spawnThingOnRemoved);
CompThingBodyPart CompThing = thing.TryGetComp<rjw.CompThingBodyPart>();
CompHediffBodyPart CompHediff = hd.TryGetComp<rjw.CompHediffBodyPart>();
if (CompThing != null && CompHediff != null)
{
CompThing.FluidType = CompHediff.FluidType;
CompThing.FluidAmmount = CompHediff.FluidAmmount;
CompThing.FluidModifier = CompHediff.FluidModifier;
CompThing.Size = CompHediff.Size;
CompThing.SizeBase = CompHediff.SizeBase;
CompThing.SizeOwner = CompHediff.SizeOwner;
CompThing.RaceOwner = CompHediff.RaceOwner;
CompThing.PreviousOwner = xxx.get_pawnname(CompHediff.Pawn);
CompThing.Eggs = CompHediff.Eggs;
}
return thing;
}
[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 partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
//--Log.Message("Genital_Helper::add_genitals( " + xxx.get_pawnname(pawn) + " ) - checking genitals");
if (partBPR == null)
{
//--ModLog.Message(" add_genitals( " + xxx.get_pawnname(pawn) + " ) doesn't have a genitals");
return;
}
else if (pawn.health.hediffSet.PartIsMissing(partBPR))
{
//--ModLog.Message(" add_genitals( " + xxx.get_pawnname(pawn) + " ) had a genital but was removed.");
return;
}
if (Genital_Helper.has_genitals(pawn, parts) && gender == Gender.None)//allow to add gender specific genitals(futa)
{
//--ModLog.Message(" add_genitals( " + xxx.get_pawnname(pawn) + " ) already has genitals");
return;
}
HediffDef part;
// 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");
part = (IsAddingPenis(pawn, gender)) ? Genital_Helper.generic_penis : Genital_Helper.generic_vagina;
if (Genital_Helper.has_vagina(pawn, parts) && part == Genital_Helper.generic_vagina)
{
//--ModLog.Message(" add_genitals( " + xxx.get_pawnname(pawn) + " ) already has vagina");
return;
}
if ((Genital_Helper.has_penis_fertile(pawn, parts) || Genital_Helper.has_penis_infertile(pawn, parts)) && part == Genital_Helper.generic_penis)
{
//--ModLog.Message(" add_genitals( " + xxx.get_pawnname(pawn) + " ) already has penis");
return;
}
//override race genitals
if (part == Genital_Helper.generic_vagina && pawn.TryAddRacePart(SexPartType.FemaleGenital))
{
return;
}
if (part == Genital_Helper.generic_penis && pawn.TryAddRacePart(SexPartType.MaleGenital))
{
return;
}
LegacySexPartAdder.AddGenitals(pawn, parent, gender, partBPR, part);
}
public static void add_breasts(Pawn pawn, Pawn parent = null, Gender gender = Gender.None)
{
//--ModLog.Message(" add_breasts( " + xxx.get_pawnname(pawn) + " ) called");
BodyPartRecord partBPR = Genital_Helper.get_breastsBPR(pawn);
if (partBPR == null)
{
//--ModLog.Message(" add_breasts( " + xxx.get_pawnname(pawn) + " ) - pawn doesn't have a breasts");
return;
}
else if (pawn.health.hediffSet.PartIsMissing(partBPR))
{
//--ModLog.Message(" add_breasts( " + xxx.get_pawnname(pawn) + " ) had breasts but were removed.");
return;
}
if (Genital_Helper.has_breasts(pawn))
{
//--ModLog.Message(" add_breasts( " + xxx.get_pawnname(pawn) + " ) - pawn already has breasts");
return;
}
//TODO: figure out how to add (flat) breasts to males
//Check for (flat) breasts to males done in RacepartDef_Helper.cs when severity curve checked
var racePartType = (pawn.gender == Gender.Female || gender == Gender.Female)
? SexPartType.FemaleBreast
: SexPartType.MaleBreast;
if (pawn.TryAddRacePart(racePartType))
{
return;
}
LegacySexPartAdder.AddBreasts(pawn, partBPR, parent);
}
public static void add_anus(Pawn pawn, Pawn parent = null)
{
BodyPartRecord partBPR = Genital_Helper.get_anusBPR(pawn);
if (partBPR == null)
{
//--ModLog.Message(" add_anus( " + xxx.get_pawnname(pawn) + " ) doesn't have an anus");
return;
}
else if (pawn.health.hediffSet.PartIsMissing(partBPR))
{
//--ModLog.Message(" add_anus( " + xxx.get_pawnname(pawn) + " ) had an anus but was removed.");
return;
}
if (Genital_Helper.has_anus(pawn))
{
//--ModLog.Message(" add_anus( " + xxx.get_pawnname(pawn) + " ) already has an anus");
return;
}
if (pawn.TryAddRacePart(SexPartType.Anus))
{
return;
}
LegacySexPartAdder.AddAnus(pawn, partBPR, parent);
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/SexPartAdder.cs
|
C#
|
mit
| 7,228 |
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 HarmonyLib;
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;
private const float base_sat_per_quirk = 0.20f;
//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 requestVaginalBreeding = 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");
public 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 },
{requestVaginalBreeding, 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.
};
// same as below but most rape/breed interactions removed as they make no sence
public static readonly InteractionDef[,] rmb_dictionarykeys =
{
// 1: Interactions_Sex (consensual), 2: Interactions_Rape (forced), 3: Interactions_Breed (animals)
{vaginalSex, vaginalRape, vaginalBreeding }, // Vaginal - giving (fuck victim)
{vaginalSex, null, requestVaginalBreeding }, // Vaginal - receiving (female force victim to fuck her vaginally sex)
{analSex, analRape, analBreeding }, // Anal
{analSex, null, requestAnalBreeding }, // Anal - reseiving
{cunnilingus, null, oralBreeding }, // Cunnilingus
{cunnilingus, null, null }, // Cunnilingus - receiving
{rimming, null, null }, // Rimming
{rimming, null, null }, // Rimming - receiving
{fellatio, null, oralBreeding }, // Fellatio
{fellatio, null, null }, // Fellatio - receiving
{doublePenetration, vaginalRape, vaginalBreeding }, // Double penetration
{doublePenetration, null, requestVaginalBreeding }, // Double penetration - receiving
{breastjob, null, null }, // Breastjob
{breastjob, null, null }, // Breastjob - receiving
{handjob, handRape, null }, // Handjob
{handjob, null, null }, // Handjob - receiving
{footjob, null, null }, // Footjob
{footjob, null, null }, // Footjob - receiving
{fingering, fingeringRape, fingeringBreeding }, // Fingering
{fingering, null, null }, // Fingering - receiving
{scissoring, scissoring, null }, // Scissoring
{scissoring, scissoring, null }, // Scissoring - receiving
{mutualMasturbation, null, null }, // Mutual Masturbation
{mutualMasturbation, null, null }, // Mutual Masturbation - receiving
{fisting, null, null }, // Fisting
{fisting, null, null }, // Fisting - receiving
{sixtynine, null, null }, // 69
{sixtynine, null, null }, // 69 - receiving
};
// This and the following array are used to generate text from interactions.
public static readonly InteractionDef[,] dictionarykeys =
{
// 1: Interactions_Sex (consensual), 2: Interactions_Rape (forced), 3: Interactions_Breed (animals)
{vaginalSex, vaginalRape, vaginalBreeding }, // Vaginal
{vaginalSex, vaginalRape, requestVaginalBreeding }, // 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, requestVaginalBreeding }, // 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
};
public 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.
// notification in top left corner
// rape attempt
public static void RapeTargetAlert(Pawn rapist, Pawn target)
{
if (target.IsDesignatedComfort() && rapist.jobs.curDriver.GetType() == typeof(JobDriver_RapeComfortPawn))
if (!RJWPreferenceSettings.ShowForCP)
return;
if (target.IsDesignatedComfort() && rapist.jobs.curDriver.GetType() == typeof(JobDriver_Breeding))
if (target.IsDesignatedBreeding())
if (!RJWPreferenceSettings.ShowForBreeding)
return;
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_attempt_alert)
{
case RJWPreferenceSettings.RapeAlert.Enabled:
break;
case RJWPreferenceSettings.RapeAlert.Humanlikes:
if (!xxx.is_human(target))
return;
break;
case RJWPreferenceSettings.RapeAlert.Colonists:
if (!target.IsColonist)
return;
break;
case RJWPreferenceSettings.RapeAlert.Silent:
silent = true;
break;
default:
return;
}
if (!silent)
{
Messages.Message(message, rapist, MessageTypeDefOf.NegativeEvent);
}
else
{
Messages.Message(message, rapist, MessageTypeDefOf.SilentInput);
}
}
// Alert checker that is called from several jobs.
// notification in top left corner
// rape started
public static void BeeingRapedAlert(Pawn rapist, Pawn target)
{
if (target.IsDesignatedComfort() && rapist.jobs.curDriver.GetType() == typeof(JobDriver_RapeComfortPawn))
if (!RJWPreferenceSettings.ShowForCP)
return;
if (target.IsDesignatedComfort() && rapist.jobs.curDriver.GetType() == typeof(JobDriver_Breeding))
if (target.IsDesignatedBreeding())
if (!RJWPreferenceSettings.ShowForBreeding)
return;
bool silent = false;
switch (RJWPreferenceSettings.rape_alert)
{
case RJWPreferenceSettings.RapeAlert.Enabled:
break;
case RJWPreferenceSettings.RapeAlert.Humanlikes:
if (!xxx.is_human(target))
return;
break;
case RJWPreferenceSettings.RapeAlert.Colonists:
if (!target.IsColonist)
return;
break;
case RJWPreferenceSettings.RapeAlert.Silent:
silent = true;
break;
default:
return;
}
if (!silent)
{
Messages.Message(xxx.get_pawnname(target) + " is getting raped.", target, MessageTypeDefOf.NegativeEvent);
}
else
{
Messages.Message(xxx.get_pawnname(target) + " is getting raped.", target, 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;
var partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
if (Genital_Helper.has_vagina(pawn, parts))
FilthMaker.TryMakeFilth(pawn.PositionHeld, pawn.MapHeld, girlcum, pawn.LabelIndefinite(), (int)Math.Max(pawn_cum/2, 1.0f));
if (Genital_Helper.has_penis_fertile(pawn, parts))
FilthMaker.TryMakeFilth(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.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(xxx.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]
public static void Aftersex(Pawn pawn, Pawn partner, bool usedCondom = false, 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);
}
if (!usedCondom)
{
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);
}
}
else
{
var newCondom = GenSpawn.Spawn(ThingDef.Named("UsedCondom"), pawn.Position, pawn.Map);
CondomUtility.useCondom(pawn);
CondomUtility.useCondom(partner);
}
//TODO: below is fucked up, unfuck it someday
xxx.UpdateRecords(pawn, partner, sextype, rape, isCoreLovin);
Satisfy(pawn, partner, sextype, rape);
CheckTraitGain(pawn, partner, rape);
CheckTraitGain(partner, pawn, rape);
}
// <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 partner'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));
//ModLog.Message(" 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> { };
//ModLog.Message("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;
//ModLog.Message("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;
var quirkCount = Quirk.CountSatisfiedQuirks(pawn, partner, sextype, violent);
satisfaction += quirkCount * base_sat_per_quirk;
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")))
{
//ModLog.Message("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
}
if (quirkCount > 0)
{
Quirk.AddThought(pawn);
}
}
[SyncMethod]
private static void CheckTraitGain(Pawn pawn, Pawn partner, bool rape = false)
{
if (!xxx.has_traits(pawn) || pawn.records.GetValue(xxx.CountOfSex) <= 10) return;
if (RJWSettings.AddTrait_Necrophiliac && !xxx.is_necrophiliac(pawn) && partner.Dead && 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 (RJWSettings.AddTrait_Rapist && !xxx.is_rapist(pawn) && !xxx.is_masochist(pawn) && rape && 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 (RJWSettings.AddTrait_Zoophiliac && !xxx.is_zoophile(pawn) && xxx.is_animal(partner) && (pawn.records.GetValue(xxx.CountOfSexWithAnimals) + pawn.records.GetValue(xxx.CountOfSexWithInsects) > 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");
}
if (RJWSettings.AddTrait_Nymphomaniac && !xxx.is_nympho(pawn))
{
if (pawn.health.hediffSet.HasHediff(HediffDef.Named("HumpShroomAddiction")))
{
pawn.story.traits.GainTrait(new Trait(xxx.nymphomaniac));
//Log.Message(xxx.get_pawnname(pawn) + " is HumpShroomAddicted, not nymphomaniac, adding nymphomaniac 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))
{
//var mateMtbHours = pawn.RaceProps.mateMtbHours / 24 * 60000;
//if (mateMtbHours > 0)
// interval = mateMtbHours
tick = 0.75f;
}
else if (xxx.is_prude(pawn))
tick = 1.5f;
if (pawn.Has(Quirk.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 usedCondom = false, bool rape = false, bool isCoreLovin = false, bool whoring = false, xxx.rjwSextype sextype = xxx.rjwSextype.None)
{
//Log.Message("usedCondom=" + usedCondom);
if (pawn == null || partner == null)
{
if (pawn == null)
ModLog.Error("[SexUtility] ERROR: pawn is null.");
if (partner == null)
ModLog.Error("[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;
if(sextype == xxx.rjwSextype.None)
sextype = DetermineSextype(pawn, partner, rape, whoring, receiving);
Aftersex(pawn, partner, usedCondom, 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);
}
public static Dictionary<string, bool> DetermineSexParts(Pawn pawn)
{
var result = new Dictionary<string, bool>();
var pawnpartBPR = Genital_Helper.get_genitalsBPR(pawn);
var pawnparts = Genital_Helper.get_PartsHediffList(pawn, pawnpartBPR);
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 pawnHasBigBreasts = pawnHasBreasts && Genital_Helper.can_do_breastjob(pawn);
bool pawnHasVagina = Genital_Helper.has_vagina(pawn, pawnparts) && !Genital_Helper.vagina_blocked(pawn);
bool pawnHasPenis = (Genital_Helper.has_penis_fertile(pawn, pawnparts) || Genital_Helper.has_penis_infertile(pawn, pawnparts) || Genital_Helper.has_ovipositorF(pawn, pawnparts)) && !Genital_Helper.penis_blocked(pawn);
bool pawnHasBigPenis = (pawnHasPenis && pawnparts.Where(x => x.Severity > 0.8f && x.def.defName.ToLower().Contains("penis")).Any());
bool pawnHasMultiPenis = pawnHasPenis && Genital_Helper.has_multipenis(pawn, pawnparts);
bool pawnHasTail = Genital_Helper.has_tail(pawn);
bool pawnHasMouth = Genital_Helper.has_mouth(pawn) && !Genital_Helper.oral_blocked(pawn);
bool pawnHasHands = pawn.health.hediffSet.GetNotMissingParts().Any(part => part.IsInGroup(BodyPartGroupDefOf.RightHand) || part.IsInGroup(BodyPartGroupDefOf.LeftHand)) && !Genital_Helper.hands_blocked(pawn);
if (pawnHasHands)
pawnHasHands = pawn.health?.capacities?.GetLevel(PawnCapacityDefOf.Manipulation) > 0;
result.Add("HasMouth", pawnHasMouth);
result.Add("HasAnus", pawnHasAnus);
result.Add("HasBreasts", pawnHasBreasts);
result.Add("HasBigBreasts", pawnHasBigBreasts);
result.Add("HasVagina", pawnHasVagina);
result.Add("HasPenis", pawnHasPenis);
result.Add("HasBigPenis", pawnHasBigPenis); // masturbation autofelatio, self brestjob
result.Add("HasMultiPenis", pawnHasMultiPenis);
result.Add("HasHands", pawnHasHands);
result.Add("HasTail", pawnHasTail); // masturbation, tail fuck
return result;
}
public static SexProps SelectSextype(Pawn pawn, Pawn partner, bool rape, bool whoring, Pawn receiving, List<float> sexScores = null)
{
if (sexScores.NullOrEmpty())
sexScores = DetermineSexScores(pawn, partner, rape, whoring, receiving);
// Bit of randomization..
RandomizeSexTypes(ref sexScores);
float maxValue = sexScores.Max();
Pawn giving = pawn;
if (sexScores.IndexOf(maxValue) % 2 != 0 && !rape)
{
giving = partner;
receiving = pawn;
}
if (!(maxValue > 0f))
{
ModLog.Warning(" ERROR: No available sex types for " + xxx.get_pawnname(pawn) + " and " + xxx.get_pawnname(partner));
ModLog.Warning(" ERROR: your pawns missing parts hediffs?");
return new SexProps(pawn, partner, xxx.rjwSextype.None, rape, giving, receiving, null, null);
}
string rulepack = null; //defName of the rulePackDef (see RulePacks_Sex.xml, etc.)
InteractionDef dictionaryKey = null;
//List<InteractionDef> rnwintdefs = DefDatabase<InteractionDef>.AllDefsListForReading;
//var f1 = rnwintdefs.Where(x => x.HasModExtension<InteractionExtension>());
//foreach (InteractionDef d in f1)
//{
// var f2 = d.GetModExtension<InteractionExtension>();
// string f3;
// if (!f2.forced_rulepack_def.NullOrEmpty())
// {
// f3 = f2.forced_rulepack_def.RandomElement();
// //rulepack = DefDatabase<RulePackDef>.AllDefs.FirstOrDefault(x => x.defName == f3)?.defName;
// }
//}
int typeIndex = sexScores.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.RapeCorpse)
dictionaryKey = violateCorpse;
//LogSextype(giving, receiving, rulepack, dictionaryKey);
return new SexProps(pawn, partner, sexActs[dictionaryKey], rape, giving, receiving, rulepack, dictionaryKey);
}
public static void LogSextype(Pawn giving, Pawn receiving, string rulepack, InteractionDef dictionaryKey)
{
List<RulePackDef> extraSentencePacks = new List<RulePackDef>();
extraSentencePacks.Add(RulePackDef.Named(rulepack));
PlayLogEntry_Interaction playLogEntry = new PlayLogEntry_Interaction(dictionaryKey, giving, receiving, extraSentencePacks);
Find.PlayLog.Add(playLogEntry);
}
public static xxx.rjwSextype DetermineSextype(Pawn pawn, Pawn partner, bool rape, bool whoring, Pawn receiving)
{
List<float> sexScores = DetermineSexScores(pawn, partner, rape, whoring, receiving);
// Bit of randomization..
RandomizeSexTypes(ref sexScores);
float maxValue = sexScores.Max();
if (!(maxValue > 0f))
{
ModLog.Warning(" ERROR: No available sex types for " + xxx.get_pawnname(pawn) + " and " + xxx.get_pawnname(partner));
ModLog.Warning(" ERROR: your pawns missing parts hediffs");
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 (sexScores.IndexOf(maxValue) % 2 != 0 && !rape)
{
giving = partner;
receiving = pawn;
}
int typeIndex = sexScores.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;
}
}
xxx.rjwSextype sextype = sexActs[dictionaryKey];
// Text override for corpse violation.
if (pawn.CurJob.def == xxx.RapeCorpse)
dictionaryKey = violateCorpse;
extraSentencePacks.Add(RulePackDef.Named(rulepack));
PlayLogEntry_Interaction playLogEntry = new PlayLogEntry_Interaction(dictionaryKey, giving, receiving, extraSentencePacks);
Find.PlayLog.Add(playLogEntry);
return sextype;
}
public static List<float> DetermineSexScores(Pawn pawn, Pawn partner, bool rape, bool whoring, Pawn receiving)
{
//--ModLog.Message("SexUtility::processSex is called for pawn" + xxx.get_pawnname(pawn) + " and partner " + xxx.get_pawnname(partner));
var pawnDic = DetermineSexParts(pawn);
var partenerDic = DetermineSexParts(partner);
bool pawnHasMouth = pawnDic.TryGetValue("HasMouth");
bool pawnHasAnus = pawnDic.TryGetValue("HasAnus");
bool pawnHasBigBreasts = pawnDic.TryGetValue("HasBigBreasts");
bool pawnHasVagina = pawnDic.TryGetValue("HasVagina");
bool pawnHasPenis = pawnDic.TryGetValue("HasPenis");
bool pawnHasMultiPenis = pawnDic.TryGetValue("HasMultiPenis");
bool pawnHasHands = pawnDic.TryGetValue("HasHands");
bool partnerHasMouth = partenerDic.TryGetValue("HasMouth");
bool partnerHasAnus = partenerDic.TryGetValue("HasAnus");
bool partnerHasBigBreasts = partenerDic.TryGetValue("HasBigBreasts");
bool partnerHasVagina = partenerDic.TryGetValue("HasVagina");
bool partnerHasPenis = partenerDic.TryGetValue("HasPenis");
bool partnerHasMultiPenis = partenerDic.TryGetValue("HasMultiPenis");
bool partnerHasHands = partenerDic.TryGetValue("HasHands");
//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;
if (Genital_Helper.has_ovipositorF(pawn) || Genital_Helper.has_ovipositorM(pawn))// insect dont care where to lay eggs?
analIni *= 1.8f;
else
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 big enough boobs
if (!pawnHasBigBreasts)
{
bresIni = 0f;
}
if (!partnerHasBigBreasts)
{
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;
}
// Pawn lacks mouth
if (!pawnHasMouth)
{
cunnIni = 0f;
rimmIni = 0f;
fellIni = 0f;
sixtIni = 0f;
}
if (!partnerHasMouth)
{
cunnIni = 0f;
rimmIni = 0f;
fellIni = 0f;
sixtIni = 0f;
}
List<float> sexScores = 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
};
return sexScores;
}
[SyncMethod]
private static void RandomizeSexTypes(ref List<float> sexTypes)
{
for (int i = 0; i < sexTypes.Count; i++)
{
sexTypes[i] = Rand.Range(0f, sexTypes[i]);
}
}
[SyncMethod]
public static void Sex_Beatings(Pawn pawn, Pawn partner, bool isRape = false)
{
if (isRape && !RJWSettings.rape_beating || (xxx.is_animal(pawn) && xxx.is_animal(partner)))
return;
//dont remember what it does, probably manhunter stuff or not? disable and wait reports
//if (!xxx.is_human(pawn))
// return;
//If a pawn is incapable of violence/has low melee, they most likely won't beat their partner
if (pawn.skills?.GetSkill(SkillDefOf.Melee).Level < 1)
return;
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float rand_value = Rand.Value;
//float rand_value = RJW_Multiplayer.RJW_MP_RAND();
float victim_pain = partner.health.hediffSet.PainTotal;
// bloodlust makes the aggressor more likely to hit the prisoner
float beating_chance = xxx.config.base_chance_to_hit_prisoner * (xxx.is_bloodlust(pawn) ? 1.5f : 1.0f);
// psychopath makes the aggressor more likely to hit the prisoner past the significant_pain_threshold
float beating_threshold = xxx.is_psychopath(pawn) ? xxx.config.extreme_pain_threshold : pawn.HostileTo(partner) ? xxx.config.significant_pain_threshold : xxx.config.minor_pain_threshold;
//--Log.Message("roll_to_hit: rand = " + rand_value + ", beating_chance = " + beating_chance + ", victim_pain = " + victim_pain + ", beating_threshold = " + beating_threshold);
if ((victim_pain < beating_threshold && rand_value < beating_chance) || (rand_value < (beating_chance / 2) && xxx.is_bloodlust(pawn)))
{
//--Log.Message(" done told her twice already...");
if (InteractionUtility.TryGetRandomVerbForSocialFight(pawn, out Verb v))
{
//Log.Message(" v. : " + v);
//Log.Message(" v.GetDamageDef : " + v.GetDamageDef());
//Log.Message(" v.v.tool - " + v.tool.label);
//Log.Message(" v.v.tool.power base - " + v.tool.power);
var orgpower = v.tool.power;
//in case something goes wrong
try
{
//Log.Message(" v.v.tool.power base - " + v.tool.power);
if (RJWSettings.gentle_rape_beating)
{
v.tool.power = 0;
//partner.stances.stunner.StunFor(600, pawn);
}
//Log.Message(" v.v.tool.power mod - " + v.tool.power);
pawn.meleeVerbs.TryMeleeAttack(partner, v);
}
catch
{ }
v.tool.power = orgpower;
//Log.Message(" v.v.tool.power reset - " + v.tool.power);
}
}
}
// 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 (!xxx.is_human(pawn)) return;
if (pawn.Map != Find.CurrentMap) return;
if (RJWPreferenceSettings.sex_wear == RJWPreferenceSettings.Clothing.Clothed) return;
//undress
pawn.Drawer.renderer.graphics.ClearCache();
pawn.Drawer.renderer.graphics.apparelGraphics.Clear();
//pawn.Drawer.renderer.graphics.ResolveApparelGraphics();
//add "clothes"
foreach (Apparel current in pawn.apparel.WornApparel.Where(x
=> x.def is bondage_gear_def
|| x.def.thingCategories.Any(x=> x.defName.ToLower().ContainsAny("vibrator", "piercing", "strapon"))
|| RJWPreferenceSettings.sex_wear == RJWPreferenceSettings.Clothing.Headgear
|| keep_hat_on
&& (x.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.FullHead)
|| x.def.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.UpperHead))))
{
ApparelGraphicRecord item;
if (ApparelGraphicRecordGetter.TryGetGraphicApparel(current, pawn.story.bodyType, out item))
{
pawn.Drawer.renderer.graphics.apparelGraphics.Add(item);
}
}
pawn.Draw();
}
public static void reduce_rest(Pawn pawn, float x = 1f)
{
if (pawn.Has(Quirk.Vigorous)) x -= x/2;
Need_Rest need_rest = pawn.needs.TryGetNeed<Need_Rest>();
if (need_rest == null)
return;
need_rest.CurLevel -= need_rest.RestFallPerTick * x;
}
public static void OffsetPsyfocus(Pawn pawn, float x = 0)//0-1
{
if (ModsConfig.RoyaltyActive)
{
//pawn.psychicEntropy.Notify_Meditated();
if (pawn.HasPsylink)
{
pawn.psychicEntropy.OffsetPsyfocusDirectly(x);
}
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/SexUtility.cs
|
C#
|
mit
| 61,662 |
using Multiplayer.API;
using Verse;
namespace rjw
{
public static class Sexualizer
{
static void SexualizeSingleGenderPawn(Pawn pawn)
{
// Single gender is futa without the female gender change.
SexPartAdder.add_genitals(pawn, null, Gender.Male);
SexPartAdder.add_genitals(pawn, null, Gender.Female);
SexPartAdder.add_breasts(pawn, null, Gender.Female);
SexPartAdder.add_anus(pawn, null);
}
static void SexualizeGenderlessPawn(Pawn pawn)
{
if (RJWSettings.GenderlessAsFuta && !xxx.is_mechanoid(pawn) && (pawn.RaceProps.Animal || pawn.RaceProps.Humanlike))
{
ModLog.Message(" SexualizeGenderlessPawn() - genderless pawn, treating Genderless pawn As Futa" + xxx.get_pawnname(pawn));
//set gender to female for futas
pawn.gender = Gender.Female;
SexPartAdder.add_genitals(pawn, null, Gender.Male);
SexPartAdder.add_genitals(pawn, null, Gender.Female);
SexPartAdder.add_breasts(pawn, null, Gender.Female);
SexPartAdder.add_anus(pawn, null);
}
else
{
ModLog.Message(" SexualizeGenderlessPawn() - unable to sexualize genderless pawn " + xxx.get_pawnname(pawn) + " gender: " + pawn.gender);
}
}
[SyncMethod]
static void SexualizeGenderedPawn(Pawn pawn)
{
//apply normal gender
SexPartAdder.add_genitals(pawn, null, pawn.gender);
//apply futa gender
//if (pawn.gender == Gender.Female) // changing male to futa will break pawn generation due to relations
if (pawn.Faction != null && !xxx.is_animal(pawn)) //null faction throws error
{
//ModLog.Message(" SexualizeGenderedPawn( " + xxx.get_pawnname(pawn) + " ) techLevel: " + (int)pawn.Faction.def.techLevel);
//ModLog.Message(" SexualizeGenderedPawn( " + 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;
// ModLog.Message($"SexualizeGenderedPawn {chance} from {RJWSettings.futa_nymph_chance} {RJWSettings.futa_natives_chance} {RJWSettings.futa_spacers_chance}");
if (Rand.Chance(chance))
{
//make futa
if (pawn.gender == Gender.Female && RJWSettings.FemaleFuta)
SexPartAdder.add_genitals(pawn, null, Gender.Male);
//make trap
else if (pawn.gender == Gender.Male && RJWSettings.MaleTrap)
SexPartAdder.add_breasts(pawn, null, Gender.Female);
}
}
SexPartAdder.add_breasts(pawn, null, pawn.gender);
SexPartAdder.add_anus(pawn, null);
}
[SyncMethod]
public static void sexualize_pawn(Pawn pawn)
{
//ModLog.Message(" sexualize_pawn( " + xxx.get_pawnname(pawn) + " ) called");
if (pawn == null)
{
return;
}
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef) &&
raceGroupDef.hasSingleGender)
{
ModLog.Message($"sexualize_pawn() - sexualizing single gender pawn {xxx.get_pawnname(pawn)} race: {raceGroupDef.defName}");
SexualizeSingleGenderPawn(pawn);
}
else if (pawn.RaceProps.hasGenders)
{
SexualizeGenderedPawn(pawn);
}
else
{
if (Current.ProgramState == ProgramState.Playing) // DO NOT run at world generation, throws error in generating relationship stuff
{
SexualizeGenderlessPawn(pawn);
return;
}
}
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));
//ModLog.Message(" 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);
}
}
}
}
}
}
|
TDarksword/rjw
|
Source/Common/Helpers/Sexualizer.cs
|
C#
|
mit
| 4,498 |
using System;
using System.Diagnostics;
using UnityEngine;
using Verse;
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;
}
}
}
|
TDarksword/rjw
|
Source/Common/Logger.cs
|
C#
|
mit
| 1,190 |
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()
{
}
}
}
|
TDarksword/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)
{
ModLog.Error($"Invalid data in MiscTranslationDef {defName}: {errorMessage}");
}
}
public override void PostLoad()
{
Assert(targetClass != null, "targetClass field must be set");
}
public override void ResolveReferences()
{
base.ResolveReferences();
}
}
}
|
TDarksword/rjw
|
Source/Common/MiscTranslationDef.cs
|
C#
|
mit
| 584 |
using Verse;
namespace rjw
{
public static class ModLog
{
/// <summary>
/// Logs the given message with [SaveStorage.ModId] appended.
/// </summary>
public static void Error(string message)
{
Log.Error($"[{SaveStorage.ModId}] {message}");
}
/// <summary>
/// Logs the given message with [SaveStorage.ModId] appended.
/// </summary>
public static void Message(string message)
{
Log.Message($"[{SaveStorage.ModId}] {message}");
}
/// <summary>
/// Logs the given message with [SaveStorage.ModId] appended.
/// </summary>
public static void Warning(string message)
{
Log.Warning($"[{SaveStorage.ModId}] {message}");
}
}
}
|
TDarksword/rjw
|
Source/Common/ModLog.cs
|
C#
|
mit
| 673 |
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Verse;
namespace rjw
{
public static class PawnExtensions
{
public static bool RaceHasFertility(this Pawn pawn)
{
// True by default.
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef))
return raceGroupDef.hasFertility;
return true;
}
public static bool RaceHasPregnancy(this Pawn pawn)
{
// True by default.
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef))
return raceGroupDef.hasPregnancy;
return true;
}
public static bool RaceHasOviPregnancy(this Pawn pawn)
{
// False by default.
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef))
return raceGroupDef.oviPregnancy;
return false;
}
public static bool RaceImplantEggs(this Pawn pawn)
{
// False by default.
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef))
return raceGroupDef.ImplantEggs;
return false;
}
public static bool RaceHasSexNeed(this Pawn pawn)
{
// True by default.
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef))
return raceGroupDef.hasSexNeed;
return true;
}
public static bool TryAddRacePart(this Pawn pawn, SexPartType sexPartType)
{
return RaceGroupDef_Helper.TryAddRacePart(pawn, sexPartType);
}
public static bool Has(this Pawn pawn, Quirk quirk)
{
return xxx.has_quirk(pawn, quirk.Key);
}
public static bool Has(this Pawn pawn, RaceTag tag)
{
if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGroupDef))
{
return raceGroupDef.tags != null && raceGroupDef.tags.Contains(tag.Key);
}
else
{
return tag.DefaultWhenNoRaceGroupDef(pawn);
}
}
public static void Add(this Pawn pawn, Quirk quirk)
{
QuirkAdder.Add(pawn, quirk);
}
public static bool IsSexyRobot(this Pawn pawn)
{
return AndroidsCompatibility.IsAndroid(pawn);
}
// In theory I think this should involve RaceGroupDef.
public static bool IsUnsexyRobot(this Pawn pawn)
{
return !IsSexyRobot(pawn)
&& (xxx.is_mechanoid(pawn) || pawn.kindDef.race.defName.ToLower().Contains("droid"));
}
public static bool IsAnimal(this Pawn pawn)
{
return xxx.is_animal(pawn);
}
public static bool IsVisiblyPregnant(this Pawn pawn)
{
return pawn.IsPregnant(true);
}
public static bool IsPregnant(this Pawn pawn, bool mustBeVisible = false)
{
var set = pawn.health.hediffSet;
return set.HasHediff(HediffDefOf.Pregnant, mustBeVisible) ||
Hediff_BasePregnancy.KnownPregnancies().Any(x => set.HasHediff(HediffDef.Named(x), mustBeVisible));
}
}
}
|
TDarksword/rjw
|
Source/Common/PawnExtensions.cs
|
C#
|
mit
| 2,713 |
using HarmonyLib;
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine;
using Verse;
using Verse.AI;
namespace rjw
{
[StaticConstructorOnStartup]
static class RMB_Menu
{
static RMB_Menu()
{
Harmony harmony = new Harmony("rjw");
//start sex options
harmony.Patch(AccessTools.Method(typeof(FloatMenuMakerMap), "AddHumanlikeOrders"), prefix: null,
postfix: new HarmonyMethod(typeof(RMB_Menu), nameof(SexFloatMenuOption)));
//change sex options
//harmony.Patch(AccessTools.Method(typeof(FloatMenuMakerMap), "AddHumanlikeOrders"), prefix: null,
// postfix: new HarmonyMethod(typeof(RMB_Menu), nameof(SexFloatMenuOption)));
}
//show rmb on
public static TargetingParameters TargetParameters
{
get
{
if (targetParameters == null)
{
targetParameters = new TargetingParameters()
{
canTargetHumans = true,
canTargetAnimals = true,
canTargetItems = true,
mapObjectTargetsMustBeAutoAttackable = false,
};
}
return targetParameters;
}
}
private static TargetingParameters targetParameters = null;
public static TargetingParameters TargetParemetersMasturbationChairOrBed(LocalTargetInfo target)
{
return new TargetingParameters()
{
canTargetBuildings = true,
mapObjectTargetsMustBeAutoAttackable = false,
validator = (TargetInfo target) =>
{
if (!target.HasThing)
return false;
Building building = target.Thing as Building;
if (building == null)
return false;
if (building.def.building.isSittable)
return true;
if (building is Building_Bed)
return true;
return false;
}
};
}
public static TargetingParameters TargetParemetersMasturbationLoc(LocalTargetInfo target)
{
return new TargetingParameters()
{
canTargetLocations = true,
mapObjectTargetsMustBeAutoAttackable = false,
validator = (TargetInfo target) =>
{
if (!target.HasThing)
return true;
return false;
}
};
}
//TODO: dildo selection for masturbation/sex
public static TargetingParameters TargetParemetersDildos(LocalTargetInfo target)
{
return new TargetingParameters()
{
canTargetItems = true,
mapObjectTargetsMustBeAutoAttackable = false,
validator = ((TargetInfo target) =>
{
if (!target.HasThing)
return false;
Thing dildo = target.Thing as Thing;
if (dildo == null)
return false;
return true;
})
};
}
public static void SexFloatMenuOption(Vector3 clickPos, Pawn pawn, List<FloatMenuOption> opts)
{
// If the pawn in question cannot take jobs, don't bother.
if (pawn.jobs == null)
return;
// If the pawn is drafted - quit.
if (pawn.Drafted)
return;
// No menu for you - quit.
//if (!SaveStorage.DataStore.GetPawnData(pawn).ShowRMB_Menu)
// return;
// Getting raped - no control
if (pawn.jobs.curDriver is JobDriver_SexBaseRecieverRaped)
return;
//is colonist?, is hospitality colonist/guest?, no control for guests
if (!pawn.IsFreeColonist || pawn.Faction == null || pawn.GetExtraHomeFaction(null) != null)
return;
//TODO: move checks below into ShowRMB_Menu
//not heromode or override_control - quit
if (!(RJWSettings.RPG_hero_control || RJWSettings.override_control))
return;
var HeroOK0 = false; //is hero
var HeroOK1 = false; //owned hero?
var HeroOK2 = false; //not owned hero? maybe prison check etc in future
// || xxx.is_slave(pawn)
if (RJWSettings.RPG_hero_control)
{
HeroOK0 = pawn.IsDesignatedHero();
HeroOK1 = HeroOK0 && pawn.IsHeroOwner();
HeroOK2 = HeroOK0 && !pawn.IsHeroOwner();
}
else if (!RJWSettings.override_control)
return;
//not hero, not override_control - quit
if (!HeroOK0 && !RJWSettings.override_control)
return;
//Log.Message("show options HeroOK0 " + HeroOK0);
//Log.Message("show options HeroOK1 " + HeroOK1);
//Log.Message("show options HeroOK2 " + HeroOK2);
//not owned hero - quit
if (HeroOK0 && HeroOK2)
return;
//Log.Message("show options");
// Find valid targets for sex.
var validtargets = GenUI.TargetsAt(clickPos, TargetParameters);
//Log.Message("targets count " + validtargets.Count());
//var t = DefDatabase<InteractionDef>.AllDefs;
//Log.Message("count 1 " + t.Count());
//var t1 = t.Where(x => !x.modExtensions.NullOrEmpty());
//Log.Message("count 2 " + t1.Count());
//foreach (var tt in t1)
//{
// Log.Message("def " + tt.defName);
// if (tt.HasModExtension<InteractionExtension>())
// {
// Log.Message("rjw InteractionExtension def ");
// var ttt = tt.GetModExtension<InteractionExtension>();
// var tags = ttt.tags.ToCommaList();
// Log.Message("tags " + tags);
// }
//}
foreach (LocalTargetInfo target in validtargets)
{
if (target.Pawn != null && target.Pawn.Drafted)
continue;
// Ensure target is reachable.
if (!pawn.CanReach(target, PathEndMode.ClosestTouch, Danger.Deadly))
{
//option = new FloatMenuOption("CannotReach".Translate(target.Thing.LabelCap, target.Thing) + " (" + "NoPath".Translate() + ")", null);
continue;
}
//Log.Message("target " + target.Label);
opts.AddRange(GenerateSexOptions(pawn, target).Where(x => x.action != null));
//sex-role?-pose ?
//rjw?-sex(do fuck/rape checks)-role?-pose ?
}
}
public static List<FloatMenuOption> GenerateSexOptions(Pawn pawn, LocalTargetInfo target)
{
List<FloatMenuOption> opts = new List<FloatMenuOption>();
FloatMenuOption option = null;
// Already doing sex.
// Pose switch
if (pawn.jobs.curDriver is JobDriver_Sex)
{
// Masturbating
if (target.Pawn == pawn)
{
if (pawn.jobs.curDriver is JobDriver_Masturbate)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate".Translate(), delegate ()
{
FloatMenuUtility.MakeMenu(GenerateSoloSexPoseOptions(pawn, target).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
}
// TODO: Add pose switch
return opts;
}
// Stary
// Add menu options to masturbate, if self
if (target.Pawn == pawn)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate".Translate(), delegate ()
{
FloatMenuUtility.MakeMenu(GenerateSoloSexRoleOptions(pawn, target).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
// Add menu options for con sex, if not self
if (target.Thing != pawn as Thing)
{
if (target.Pawn != null)
if (!target.Pawn.HostileTo(pawn) && !target.Pawn.Downed && (xxx.can_be_fucked(target.Pawn) || xxx.can_fuck(target.Pawn)))
{
//TODO change whore JD to work manually
// Add menu option to whore sex with target
//option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("Solicit " + target.Pawn.Name, delegate ()
//{
// if (!target.Pawn.IsColonist && !target.Pawn.IsPrisoner && pawn.CurrentBed() != null)
// pawn.jobs.TryTakeOrderedJob(new Job(xxx.whore_is_serving_visitors, target.Pawn, pawn.CurrentBed()));
//}, MenuOptionPriority.High), pawn, target);
//opts.AddDistinct(option);
// Add menu option to have sex with target, if target finds you sexy enough
if (xxx.is_human(target.Pawn) && SexAppraiser.would_fuck(target.Pawn, pawn) > 0.1f)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Sex".Translate() + target.Pawn.NameShortColored, delegate ()
{
Job job = null;
if (target.Pawn.InBed())
job = new Job(xxx.casual_sex, target, target.Pawn.CurrentBed());
else
job = new Job(xxx.quick_sex, target);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, false, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
else if (xxx.is_animal(target.Pawn) && RJWSettings.bestiality_enabled && target.Pawn.Faction == pawn.Faction)
{
if (pawn.ownership.OwnedBed != null && target.Pawn.CanReach(pawn.ownership.OwnedBed, PathEndMode.OnCell, Danger.Some))
{
// Add menu option to have sex with animal(invite to bed)
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Sex".Translate() + target.Pawn.NameShortColored, delegate ()
{
Job job = new Job(xxx.bestialityForFemale, target, pawn.ownership.OwnedBed);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, false, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
//pawn.jobs.TryTakeOrderedJob(new Job(xxx.quick_sex, target.Pawn));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
// // Add menu option to have sex with animal(service animal on spot)
// option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Sex".Translate() + target.Pawn.NameShortColored, delegate ()
// {
// pawn.jobs.TryTakeOrderedJob(new Job(xxx.bestialityForFemale, target.Pawn, pawn.ownership.OwnedBed));
// //pawn.jobs.TryTakeOrderedJob(new Job(xxx.quick_sex, target.Pawn));
// }, MenuOptionPriority.High), pawn, target);
// opts.AddDistinct(option);
}
}
// Add menu options for non con sex, if not self
if (xxx.can_rape(pawn, true))
{
//Log.Message("targets can_rape " + target.Label);
string text = null;
Action action = null;
if (target.Thing is Corpse && RJWSettings.necrophilia_enabled)
{
text = "RJW_RMB_RapeCorpse".Translate() + ((Corpse)target.Thing).InnerPawn.NameShortColored;
action = delegate ()
{
Job job = new Job(xxx.RapeCorpse, target);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, true, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
};
}
else if (target.Pawn != null && xxx.can_be_fucked(target.Pawn) && (xxx.is_human(target.Pawn) || (xxx.is_animal(target.Pawn) && RJWSettings.bestiality_enabled)))
{
//Log.Message("targets can_rape 1 " + target.Label);
if (target.Pawn.HostileTo(pawn))
{
//Log.Message("targets can_rape HostileTo " + target.Label);
if (target.Pawn.Downed)
{
text = "RJW_RMB_RapeEnemy".Translate() + target.Pawn.NameShortColored;
action = delegate ()
{
Job job = new Job(xxx.RapeEnemy, target);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, true, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
};
}
}
else if (xxx.is_animal(target.Pawn) && xxx.can_fuck(pawn))
{
text = "RJW_RMB_RapeAnimal".Translate() + target.Pawn.NameShortColored;
action = delegate ()
{
Job job = new Job(xxx.bestiality, target);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, true, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
};
}
else if (target.Pawn.IsDesignatedComfort())
{
//Log.Message("targets can_rape IsDesignatedComfort " + target.Label);
text = "RJW_RMB_RapeCP".Translate() + target.Pawn.NameShortColored;
action = delegate ()
{
Job job = new Job(xxx.RapeCP, target);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, true, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
};
}
else if (xxx.can_get_raped(target.Pawn) && (xxx.get_vulnerability(target.Pawn) >= xxx.get_vulnerability(pawn)))
{
//Log.Message("targets can_rape else " + target.Label);
text = "RJW_RMB_Rape".Translate() + target.Pawn.NameShortColored;
action = delegate ()
{
Job job = new Job(xxx.RapeRandom, target);
FloatMenuUtility.MakeMenu(GenerateSexRoleOptions(pawn, target, true, job).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
//pawn.jobs.TryTakeOrderedJob(new Job(xxx.RapeRandom, target.Pawn));
};
}
}
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption(text, action, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
}
return opts;
}
public static List<FloatMenuOption> GenerateSexRoleOptions(Pawn pawn, LocalTargetInfo target, bool rape, Job job)
{
List<FloatMenuOption> opts = new List<FloatMenuOption>();
FloatMenuOption option = null;
var partner = target.Pawn;
if (target.Thing is Corpse)
partner = (target.Thing as Corpse).InnerPawn;
var sexScores = SexUtility.DetermineSexScores(pawn, partner, false, false, pawn);
var arraytype = 0;
if (xxx.is_animal(partner) && !rape)
{
arraytype = 2;
}
else if (rape)
{
arraytype = 1;
}
for (int i = 0; i < SexUtility.rmb_dictionarykeys.GetLength(0); i++)
{
InteractionDef dictionaryKey = null;
if (sexScores[i] > 0)
dictionaryKey = SexUtility.rmb_dictionarykeys[i, arraytype];
if (dictionaryKey != null)
{
//Log.Message("dictionarykeys id: " + i);
//Log.Message("dictionaryKey " + dictionaryKey);
var prefix = "Do ";
var postfix = "";
//if (rape)
// prefix = " - Rape";
var t2 = i;
var giving = pawn;
var receiving = partner;
if (t2 % 2 != 0 && !rape)
{
giving = partner;
receiving = pawn;
prefix = "Ask for ";
if(arraytype == 2)
prefix = "Provide for ";
postfix = "";
}
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption(prefix + dictionaryKey.label + postfix, delegate ()
//option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("Commit " + dictionaryKey.LabelCap + t1, delegate ()
{
pawn.jobs.TryTakeOrderedJob(job);
//if (pawn.jobs.TryTakeOrderedJob(new Job(xxx.quick_sex, partner)))
//{
//if (t1 == " - Recieve")
//{
//Log.Message("i: " + t2 + " arraytype: " + arraytype);
//Log.Message("job: " + pawn.jobs.curDriver);
var rulepack = SexUtility.rulepacks[t2, arraytype];
//Log.Message("rulepack: " + rulepack);
var props = new SexProps(pawn, partner, SexUtility.sexActs[dictionaryKey], rape, giving, receiving, rulepack, dictionaryKey);
//Log.Message("props: " + props);
(pawn.jobs.curDriver as JobDriver_Sex).Sexprops = props;
//Log.Message("fin: " + pawn.jobs.curDriver);
//}
//}
//FloatMenuUtility.MakeMenu(GenerateSexPoseOptions(pawn, target).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
}
if (opts.NullOrEmpty())
opts.AddDistinct(new FloatMenuOption("none", null));
return opts;
}
public static List<FloatMenuOption> GenerateSexPoseOptions(Pawn pawn, LocalTargetInfo target)
{
List<FloatMenuOption> opts = new List<FloatMenuOption>();
FloatMenuOption option = null;
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("give".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("recieve".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
return opts;
}
//this options probably can be merged into 1, but for now/testing keep it separate
public static List<FloatMenuOption> GenerateSoloSexRoleOptions(Pawn pawn, LocalTargetInfo target)
{
List<FloatMenuOption> opts = new List<FloatMenuOption>();
FloatMenuOption option = null;
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_Bed".Translate(), delegate ()
{
Find.Targeter.BeginTargeting(TargetParemetersMasturbationChairOrBed(target), (LocalTargetInfo targetThing) =>
{
FloatMenuUtility.MakeMenu(GenerateSoloSexPoseOptions(pawn, targetThing).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
});
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_At".Translate(), delegate ()
{
Find.Targeter.BeginTargeting(TargetParemetersMasturbationLoc(target), (LocalTargetInfo targetThing) =>
{
FloatMenuUtility.MakeMenu(GenerateSoloSexPoseOptions(pawn, targetThing).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
});
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_Here".Translate(), delegate ()
{
FloatMenuUtility.MakeMenu(GenerateSoloSexPoseOptions(pawn, target).Where(x => x.action != null), (FloatMenuOption opt) => opt.Label, (FloatMenuOption opt) => opt.action);
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
return opts;
}
public static List<FloatMenuOption> GenerateSoloSexPoseOptions(Pawn pawn, LocalTargetInfo target)
{
List<FloatMenuOption> opts = new List<FloatMenuOption>();
FloatMenuOption option = null;
var pawnDic = SexUtility.DetermineSexParts(pawn);
bool pawnHasMouth = pawnDic.TryGetValue("HasMouth");
bool pawnHasAnus = pawnDic.TryGetValue("HasAnus");
bool pawnHasBigBreasts = pawnDic.TryGetValue("HasBigBreasts");
bool pawnHasVagina = pawnDic.TryGetValue("HasVagina");
bool pawnHasPenis = pawnDic.TryGetValue("HasPenis");
bool pawnHasBigPenis = pawnDic.TryGetValue("HasBigPenis");
bool pawnHasMultiPenis = pawnDic.TryGetValue("HasMultiPenis");
bool pawnHasHands = pawnDic.TryGetValue("HasHands");
bool pawnHasTail = pawnDic.TryGetValue("HasTail");
if (pawnHasPenis && pawnHasHands)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_Fap".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
if (pawnHasPenis && pawnHasMouth && pawnHasBigPenis)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_AF".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
if (pawnHasVagina && pawnHasHands)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_Schlic".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
if (pawnHasVagina && pawnHasTail)
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_TJV".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
if (pawnHasBigBreasts)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_Breasts".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
if (pawnHasBigBreasts && pawnHasBigPenis)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_BJ".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
if (pawnHasAnus && pawnHasHands)
{
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_Anal".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
}
if (pawnHasAnus && pawnHasTail)
option = FloatMenuUtility.DecoratePrioritizedTask(new FloatMenuOption("RJW_RMB_Masturbate_TJA".Translate(), delegate ()
{
pawn.jobs.TryTakeOrderedJob(new Job(xxx.Masturbate, null, null, target.Cell));
}, MenuOptionPriority.High), pawn, target);
opts.AddDistinct(option);
return opts;
}
}
}
|
TDarksword/rjw
|
Source/Common/RMB_Menu.cs
|
C#
|
mit
| 21,703 |
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;
}
}
}
*/
}
|
TDarksword/rjw
|
Source/Common/RandomDialogues.cs
|
C#
|
mit
| 2,988 |
using HarmonyLib;
using Multiplayer.API;
using RimWorld;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Verse;
using Verse.AI;
namespace rjw
{
/// <summary>
/// Responsible for judging the sexiness of potential partners.
/// </summary>
public static class SexAppraiser
{
public const float base_sat_per_fuck = 0.40f;
public const float base_attraction = 0.60f;
public const float no_partner_ability = 0.8f;
static readonly SimpleCurve fuckability_per_reserved = new SimpleCurve
{
new CurvePoint(0f, 1.0f),
new CurvePoint(0.3f, 0.4f),
new CurvePoint(1f, 0.2f)
};
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.
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)
};
/// <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 = xxx.get_vulnerability(rapist); //0 to 3
float vulnerabilityPartner = xxx.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 (!xxx.is_animal(rapist) && horniness?.CurLevel <= horniness?.thresh_horny())
{
rape_factor += 0.25f;
}
if (xxx.is_animal(rapist))
{
if (vulnerabilityFucker < vulnerabilityPartner)
rape_factor -= 0.1f;
else
rape_factor += 0.25f;
}
else if (xxx.is_animal(rapee))
{
if (xxx.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 (xxx.is_rapist(rapist))
rape_factor *= 1.5f;
if (xxx.is_nympho(rapist))
rape_factor *= 1.25f;
if (xxx.is_bloodlust(rapist))
rape_factor *= 1.2f;
if (xxx.is_psychopath(rapist))
rape_factor *= 1.2f;
if (xxx.is_masochist(rapee))
rape_factor *= 1.2f;
// Lower factor from traits.
if (xxx.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 || xxx.is_animal(rapist)) return Rand.Chance(rape_factor);
int opinion = rapist.relations.OpinionOf(rapee);
// Won't rape friends, unless rapist or psychopath.
if (xxx.is_kind(rapist))
{ //<-80: 1f /-40: 0.5f / 0+: 0f
rape_factor *= 1f - Mathf.Pow(GenMath.InverseLerp(-80, 0, opinion), 2);
}
else if (xxx.is_rapist(rapist) || xxx.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 = 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;
}
var partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
if (Genital_Helper.has_vagina(pawn, parts) || Genital_Helper.has_anus(pawn))
{
if (!(Genital_Helper.has_penis_fertile(pawn, parts) || Genital_Helper.has_penis_infertile(pawn, parts)))
{
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 (xxx.has_traits(pawn))
{
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);
//ModLog.Message("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)
{
//ModLog.Message("would_fuck_animal(NT):: base: " + fuc + ", bound1: " + fuc * 0.75f);
//ModLog.Message("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))
{
//ModLog.Message("would_fuck_animal(T):: base: " + fuc + ", bound1: " + fuc * 1.25f);
//ModLog.Message("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)
{
//--ModLog.Message("would_fuck("+xxx.get_pawnname(fucker)+","+xxx.get_pawnname(fucked)+","+invert_opinion.ToString()+") is called");
if (!xxx.is_healthy_enough(fucker) && !xxx.is_psychopath(fucker)) // Not healthy enough to have sex, shouldn't have got this far.
return 0f;
if ((xxx.is_animal(fucker) || xxx.is_animal(fucked)) && (!xxx.is_animal(fucker) || !xxx.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 (xxx.is_starved(fucked) && fucked.Faction == fucker.Faction && !xxx.is_psychopath(fucker) && !xxx.is_rapist(fucker))
return 0f;
if (!ignore_bleeding && !xxx.is_not_dying(fucked) && !xxx.is_psychopath(fucker) && !xxx.is_rapist(fucker) && !xxx.is_bloodlust(fucker))
return 0f; // Most people wouldn't fuck someone who's dying.
if (!IsGenderOk(fucker, fucked))
{
return 0.0f;
}
int fucker_age = fucker.ageTracker.AgeBiologicalYears;
string fucker_quirks = CompRJW.Comp(fucker).quirks.ToString();
int p_age = fucked.ageTracker.AgeBiologicalYears;
// --- Age checks ---
if (!IsAgeOk(fucker, fucked, fucker_age, p_age))
{
return 0.0f;
}
float age_factor = GetAgeFactor(fucker, fucked, p_age);
// --- Orientation checks ---
float orientation_factor = GetOrientationFactor(fucker, fucked, ignore_gender);
if (orientation_factor == 0.0f)
{
orientation_factor = fucker.relations.SecondaryLovinChanceFactor(fucked);
//Log.Message("would_fuck() SecondaryLovinChanceFactor:" + orientation_factor);
if (orientation_factor <= 0)
return 0.0f;
}
// --- Body and appearance checks ---
float body_factor = GetBodyFactor(fucker, fucked);
// --- Opinion checks ---
float opinion_factor = GetOpinionFactor(fucker, fucked, invert_opinion);
float horniness_factor = GetHorninessFactor(fucker);
float reservedPercentage = (fucked.Dead ? 1f : fucked.ReservedCount()) / xxx.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 = !(xxx.is_nympho(fucker) || fucker.health.hediffSet.HasHediff(HediffDef.Named("HumpShroomEffect"))) ? 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 bool IsGenderOk(Pawn fucker, Pawn fucked)
{
if (fucker.gender == Gender.Male)
{
switch (RJWPreferenceSettings.Malesex)
{
case RJWPreferenceSettings.AllowedSex.All:
break;
case RJWPreferenceSettings.AllowedSex.Homo:
if (fucked.gender != Gender.Male)
return false;
break;
case RJWPreferenceSettings.AllowedSex.Nohomo:
if (fucked.gender == Gender.Male)
return false;
break;
}
}
if (fucker.gender == Gender.Female)
{
switch (RJWPreferenceSettings.FeMalesex)
{
case RJWPreferenceSettings.AllowedSex.All:
break;
case RJWPreferenceSettings.AllowedSex.Homo:
if (fucked.gender != Gender.Female)
return false;
break;
case RJWPreferenceSettings.AllowedSex.Nohomo:
if (fucked.gender == Gender.Female)
return false;
break;
}
}
return true;
}
private static float GetHorninessFactor(Pawn fucker)
{
float horniness_factor; // 1 to 1.6
{
float need_sex = xxx.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());
return horniness_factor;
}
private static float GetOpinionFactor(Pawn fucker, Pawn fucked, bool invert_opinion)
{
float opinion_factor;
{
if (fucked.relations != null && fucker.relations != null && !xxx.is_animal(fucker) && !xxx.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 ((xxx.is_animal(fucker) || xxx.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() && xxx.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 (Quirk.Sapiosexual.IsSatisfiedBy(fucker, fucked))
{
opinion_factor *= 1.4f;
}
}
//Log.Message("would_fuck() - opinion_factor = " + opinion_factor.ToString());
return opinion_factor;
}
private static float GetBodyFactor(Pawn fucker, Pawn fucked)
{
float body_factor; //0.4 to 1.6
{
if (fucker.health.hediffSet.HasHediff(HediffDef.Named("AlcoholHigh")))
{
if (!xxx.is_zoophile(fucker) && xxx.is_animal(fucked))
body_factor = 0.8f;
else
body_factor = 1.25f; //beer lens
}
else if (xxx.is_zoophile(fucker) && !xxx.is_animal(fucked))
{
body_factor = 0.7f;
}
else if (!xxx.is_zoophile(fucker) && xxx.is_animal(fucked))
{
body_factor = 0.45f;
}
else if (Quirk.Teratophile.IsSatisfiedBy(fucker, fucked))
{
body_factor = 1.4f;
}
else if (fucked.story != null)
{
if (fucked.story.bodyType == BodyTypeDefOf.Female) body_factor = 1.25f;
else if (fucked.story.bodyType == BodyTypeDefOf.Fat) body_factor = 1.0f;
else body_factor = 1.1f;
if (fucked.story.traits.HasTrait(TraitDefOf.CreepyBreathing))
body_factor *= 0.9f;
//if (fucked.story.traits.HasTrait(TraitDefOf.Beauty))
//{
// switch (fucked.story.traits.DegreeOfTrait(TraitDefOf.Beauty))
// {
// case 2: // Beautiful
// body_factor *= 1.25f;
// break;
// case 1: // Pretty
// body_factor *= 1.1f;
// break;
// case -1: // Ugly
// body_factor *= 0.8f;
// break;
// case -2: // Staggeringly Ugly
// body_factor *= 0.5f;
// break;
// }
//}
if (fucked.GetStatValue(StatDefOf.PawnBeauty) >= 2)
body_factor *= 1.25f;
else if (fucked.GetStatValue(StatDefOf.PawnBeauty) >= 1)
body_factor *= 1.1f;
else if (fucked.GetStatValue(StatDefOf.PawnBeauty) < 0)
if (fucked.GetStatValue(StatDefOf.PawnBeauty) >= -1)
body_factor *= 0.8f;
else
body_factor *= 0.5f;
if (RelationsUtility.IsDisfigured(fucked))
{
body_factor *= 0.8f;
}
// Nude target is more tempting.
if (!fucked.Dead && fucked.apparel.PsychologicallyNude && fucker.CanSee(fucked))
body_factor *= 1.1f;
}
else
{
body_factor = 1.1f;
}
if (Quirk.Somnophile.IsSatisfiedBy(fucker, fucked))
{
body_factor *= 1.25f;
}
if (Quirk.PregnancyFetish.IsSatisfiedBy(fucker, fucked))
{
body_factor *= 1.25f;
}
if (Quirk.ImpregnationFetish.IsSatisfiedBy(fucker, fucked))
{
body_factor *= 1.25f;
}
if (xxx.AlienFrameworkIsActive && !xxx.is_animal(fucker))
{
if (xxx.is_xenophile(fucker))
{
if (fucker.def.defName == fucked.def.defName)
body_factor *= 0.5f; // Same species, xenophile less interested.
}
else if (xxx.is_xenophobe(fucker))
{
if (fucker.def.defName != fucked.def.defName)
body_factor *= 0.25f; // Different species, xenophobe less interested.
}
}
if (fucked.Dead && !xxx.is_necrophiliac(fucker))
{
body_factor *= 0.5f;
}
}
//Log.Message("would_fuck() - body_factor = " + body_factor.ToString());
return body_factor;
}
private static float GetOrientationFactor(Pawn fucker, Pawn fucked, bool ignore_gender)
{
float orientation_factor; //0 or 1
{
orientation_factor = 1.0f;
if (!ignore_gender && !xxx.is_animal(fucker))
{
if (!CompRJW.CheckPreference(fucker, fucked))
{
//Log.Message("would_fuck( " + xxx.get_pawnname(fucker) + ", " + xxx.get_pawnname(fucked) + " )");
//Log.Message("would_fuck() - preference fail");
orientation_factor = 0.0f;
}
}
}
//Log.Message("would_fuck() - orientation_factor = " + orientation_factor.ToString());
return orientation_factor;
}
private static float GetAgeFactor(Pawn fucker, Pawn fucked, int p_age)
{
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 (xxx.is_animal(fucker))
{
age_factor = 1.0f; //using flat factors, since human age is not comparable to animal ages
}
else if (xxx.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 (Quirk.Gerontophile.IsSatisfiedBy(fucker, fucked))
{
age_factor = 1.0f;
}
return age_factor;
}
private static bool IsAgeOk(Pawn fucker, Pawn fucked, int fucker_age, int p_age)
{
bool age_ok;
{
if (xxx.is_animal(fucker) && p_age >= RJWSettings.sex_minimum_age)
{
age_ok = true;
}
else if (xxx.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;
}
}
//Log.Message("would_fuck() - age_ok = " + age_ok.ToString());
return age_ok;
}
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)
{
ModLog.Warning(e.ToString());
}
return ret;
}
}
}
|
TDarksword/rjw
|
Source/Common/SexAppraiser.cs
|
C#
|
mit
| 21,221 |
namespace rjw
{
public enum SexPartType : byte
{
Anus = 0,
FemaleBreast = 1,
FemaleGenital = 2,
MaleBreast = 3,
MaleGenital = 4
}
}
|
TDarksword/rjw
|
Source/Common/SexPartType.cs
|
C#
|
mit
| 148 |
using System;
using Verse;
namespace rjw
{
public static class SexPartTypeExtensions
{
public static BodyPartDef GetBodyPartDef(this SexPartType sexPartType)
{
return sexPartType switch
{
SexPartType.Anus => xxx.anusDef,
SexPartType.FemaleBreast => xxx.breastsDef,
SexPartType.FemaleGenital => xxx.genitalsDef,
SexPartType.MaleBreast => xxx.breastsDef,
SexPartType.MaleGenital => xxx.genitalsDef,
_ => throw new ArgumentException($"Unrecognized sexPartType: {sexPartType}")
};
}
}
}
|
TDarksword/rjw
|
Source/Common/SexPartTypeExtensions.cs
|
C#
|
mit
| 529 |
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace rjw
{
/// <summary>
/// Compares traits for equality but ignores forsed flag
/// </summary>
class TraitComparer : IEqualityComparer<Trait>
{
bool ignoreForced;
bool ignoreDegree;
public TraitComparer(bool ignoreDegree = false, bool ignoreForced = true)
{
this.ignoreDegree = ignoreDegree;
this.ignoreForced = ignoreForced;
}
public bool Equals(Trait x, Trait y)
{
return
x.def == y.def &&
(ignoreDegree || (x.Degree == y.Degree)) &&
(ignoreForced || (x.ScenForced == y.ScenForced));
}
public int GetHashCode(Trait obj)
{
return
(obj.def.GetHashCode() << 5) +
(ignoreDegree ? 0 : obj.Degree) +
((ignoreForced || obj.ScenForced) ? 0 : 0x10);
}
}
}
|
TDarksword/rjw
|
Source/Common/TraitComparer.cs
|
C#
|
mit
| 829 |
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);
}
}
}
}
}
|
TDarksword/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");
}
}
*/
}
|
TDarksword/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 HarmonyLib;
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 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");
//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;
//CombatExtended
public static bool CombatExtendedIsActive;
public static HediffDef MuscleSpasms;
//RomanceDiversified
public static bool RomanceDiversifiedIsActive; //A dirty way to check if the mod is active
public static TraitDef straight;
public static TraitDef faithful;
public static TraitDef philanderer;
public static TraitDef polyamorous;
//Psychology
public static bool PsychologyIsActive;
public static TraitDef prude;
public static TraitDef lecher;
public static TraitDef polygamous;
//[SYR] Individuality
public static bool IndividualityIsActive;
public static TraitDef SYR_CreativeThinker;
public static TraitDef SYR_Haggler;
//Rimworld of Magic
public static bool RoMIsActive;
public static TraitDef Succubus;
public static TraitDef Warlock;
public static NeedDef TM_Mana;
public static HediffDef TM_ShapeshiftHD;
//Nightmare Incarnation
public static bool NightmareIncarnationIsActive;
public static NeedDef NI_Need_Mana;
//Consolidated
public static bool CTIsActive;
public static TraitDef RCT_NeatFreak;
public static TraitDef RCT_Savant;
public static TraitDef RCT_Inventor;
public static TraitDef RCT_AnimalLover;
//SimpleSlavery
public static bool SimpleSlaveryIsActive;
public static HediffDef Enslaved;
//Dubs Bad Hygiene
public static bool DubsBadHygieneIsActive;
public static NeedDef DBHThirst;
//Alien Framework
public static bool AlienFrameworkIsActive;
public static TraitDef xenophobia; // Degrees: 1: xenophobe, -1: xenophile
//Immortals
public static bool ImmortalsIsActive;
public static HediffDef IH_Immortal;
//Children&Pregnancy
public static bool RimWorldChildrenIsActive;
public static HediffDef BabyState;
public static HediffDef PostPregnancy;
public static HediffDef Lactating;
public static HediffDef NoManipulationFlag;
public static ThoughtDef IGaveBirthFirstTime;
public static ThoughtDef IGaveBirth;
public static ThoughtDef PartnerGaveBirth;
//Babies and Children(pretty much above + this)
public static HediffDef BnC_RJW_PostPregnancy;
//RJW Children
public static HediffDef RJW_BabyState = DefDatabase<HediffDef>.GetNamed("RJW_BabyState");
public static HediffDef RJW_NoManipulationFlag = DefDatabase<HediffDef>.GetNamed("RJW_NoManipulationFlag");
//rjw
public static readonly TraitDef nymphomaniac = DefDatabase<TraitDef>.GetNamed("Nymphomaniac");
public static readonly TraitDef rapist = DefDatabase<TraitDef>.GetNamed("Rapist");
public static readonly TraitDef masochist = DefDatabase<TraitDef>.GetNamed("Masochist");
public static readonly TraitDef necrophiliac = DefDatabase<TraitDef>.GetNamed("Necrophiliac");
public static readonly TraitDef zoophile = DefDatabase<TraitDef>.GetNamed("Zoophile");
//The Hediff to prevent reproduction
public static readonly HediffDef sterilized = DefDatabase<HediffDef>.GetNamed("Sterilized");
//The Hediff for broken body(resulted from being raped as CP for too many times)
public static readonly HediffDef feelingBroken = DefDatabase<HediffDef>.GetNamed("FeelingBroken");
public static PawnCapacityDef reproduction = DefDatabase<PawnCapacityDef>.GetNamed("RJW_Fertility");
//rjw Body parts
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");
//STDs
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_anal_raped = DefDatabase<ThoughtDef>.GetNamed("GotAnalRaped");
public static readonly ThoughtDef got_anal_raped_byfemale = DefDatabase<ThoughtDef>.GetNamed("GotAnalRapedByFemale");
public static readonly ThoughtDef got_raped_unconscious = DefDatabase<ThoughtDef>.GetNamed("GotRapedUnconscious");
public static readonly ThoughtDef masochist_got_raped_unconscious = DefDatabase<ThoughtDef>.GetNamed("MasochistGotRapedUnconscious");
public static readonly ThoughtDef got_bred = DefDatabase<ThoughtDef>.GetNamed("GotBredByAnimal");
public static readonly ThoughtDef got_anal_bred = DefDatabase<ThoughtDef>.GetNamed("GotAnalBredByAnimal");
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_anal_raped = DefDatabase<ThoughtDef>.GetNamed("MasochistGotAnalRaped");
public static readonly ThoughtDef masochist_got_anal_raped_byfemale = DefDatabase<ThoughtDef>.GetNamed("MasochistGotAnalRapedByFemale");
public static readonly ThoughtDef masochist_got_bred = DefDatabase<ThoughtDef>.GetNamed("MasochistGotAnalBredByAnimal");
public static readonly ThoughtDef masochist_got_anal_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_anal_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 took_virginity = DefDatabase<ThoughtDef>.GetNamed("TookVirginity");
public static readonly JobDef Masturbate = DefDatabase<JobDef>.GetNamed("RJW_Masturbate");
public static readonly JobDef casual_sex = DefDatabase<JobDef>.GetNamed("JoinInBed");
public static readonly JobDef gettin_loved = DefDatabase<JobDef>.GetNamed("GettinLoved");
public static readonly JobDef gettin_raped = DefDatabase<JobDef>.GetNamed("GettinRaped");
public static readonly JobDef gettin_bred = DefDatabase<JobDef>.GetNamed("GettinBred");
public static readonly JobDef RapeCP = DefDatabase<JobDef>.GetNamed("RapeComfortPawn");
public static readonly JobDef RapeEnemy = DefDatabase<JobDef>.GetNamed("RapeEnemy");
public static readonly JobDef RapeRandom = DefDatabase<JobDef>.GetNamed("RandomRape");
public static readonly JobDef RapeCorpse = 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 whore_inviting_visitors = DefDatabase<JobDef>.GetNamed("WhoreInvitingVisitors");
public static readonly JobDef whore_is_serving_visitors = DefDatabase<JobDef>.GetNamed("WhoreIsServingVisitors");
public static readonly JobDef animalMate = DefDatabase<JobDef>.GetNamed("RJW_Mate");
public static readonly JobDef animalBreed = DefDatabase<JobDef>.GetNamed("Breed");
public static readonly JobDef quick_sex = DefDatabase<JobDef>.GetNamed("Quickie");
public static readonly JobDef getting_quickie = DefDatabase<JobDef>.GetNamed("GettingQuickie");
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 ThingDef mote_noheart = DefDatabase<ThingDef>.GetNamed("Mote_NoHeart");
public static readonly StatDef sex_stat = DefDatabase<StatDef>.GetNamed("SexAbility");
public static readonly StatDef vulnerability_stat = DefDatabase<StatDef>.GetNamed("Vulnerability");
public static readonly StatDef sex_drive_stat = DefDatabase<StatDef>.GetNamed("SexFrequency");
public static readonly RecordDef GetRapedAsComfortPawn = 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 }
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"));
}
/// <summary>
/// Returns true if the given pawn has the nymphomaniac trait.
/// This may or may not be a nymph pawnKind.
/// </summary>
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) ModLog.Message(" 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) ModLog.Message(" 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(xxx.Enslaved) ?? false;
else
return false;
}
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() && !pawn.story.traits.HasTrait(TraitDefOf.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?.Animal ?? false;
}
public static bool is_insect(Pawn pawn)
{
if (pawn == null) return false;
bool isit = pawn.RaceProps.FleshType == FleshTypeDefOf.Insectoid
|| pawn.RaceProps.FleshType.corpseCategory.ToString().Contains("CorpsesInsect")
//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)
{
if (pawn == null) return false;
if (AndroidsCompatibility.IsAndroid(pawn)) return false;
bool isit = pawn.RaceProps.IsMechanoid
|| pawn.RaceProps.FleshType == FleshTypeDefOf.Mechanoid
|| pawn.RaceProps.FleshType.corpseCategory.ToString().Contains("CorpsesMechanoid")
//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;
}
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;
}
/// <summary>
/// not going to die soon
/// </summary>
/// <param name="pawn"></param>
/// <returns></returns>
public static bool is_healthy_enough(Pawn pawn)
{
return !pawn.Dead &&
pawn.health.capacities.CanBeAwake &&
pawn.health.hediffSet.BleedRateTotal <= 0.1f;
}
/// <summary>
/// pawn can initiate action or respond - whoring, etc
/// </summary>
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) ModLog.Message("xxx::is_Virgin check:" +get_pawnname(pawn));
if (pawn.relations != null)
if (pawn.relations.ChildrenCount > 0)
{
//if (RJWSettings.DevMode) ModLog.Message("xxx::is_Virgin " + " ChildrenCount " + pawn.relations.ChildrenCount);
return false;
}
if (!(
pawn.records.GetValue(GetRapedAsComfortPawn) == 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) ModLog.Message("xxx::is_Virgin " + "records check fail");
return false;
}
return true;
}
public static string get_pawnname(Pawn who)
{
//ModLog.Message("xxx::get_pawnname is "+ who.KindLabelDefinite());
//ModLog.Message("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_rapedNow(Pawn pawn)
{
if (pawn?.jobs?.curDriver != null)
{
return pawn.jobs.curDriver.GetType() == typeof(JobDriver_SexBaseRecieverRaped);
}
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 pathing
bool canit = true;
PawnPath pawnPath = pawn.Map.pathFinder.FindPath(pawn.Position, Position, pawn);
if (pawnPath.TotalCost > RJWSettings.maxDistancetowalk)
canit = false;// too far
pawnPath.Dispose();
return canit;
}
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 enum SexNeed
{
Frustrated,
Horny,
Neutral,
Satisfied
};
public static SexNeed need_sex(Pawn pawn)
{
// 3=> always horny for non humanlikes
Need_Sex need_sex = pawn.needs.TryGetNeed<Need_Sex>();
if (need_sex == null) return SexNeed.Frustrated;
if (need_sex.CurLevel >= need_sex.thresh_satisfied())
return SexNeed.Satisfied;
else if (need_sex.CurLevel >= need_sex.thresh_neutral())
return SexNeed.Neutral;
else if (need_sex.CurLevel >= need_sex.thresh_horny())
return SexNeed.Horny;
else
return SexNeed.Frustrated;
}
public static bool is_frustrated(Pawn pawn)
{
return need_sex(pawn) == SexNeed.Frustrated;
}
public static bool is_horny(Pawn pawn)
{
return need_sex(pawn) == SexNeed.Horny;
}
public static bool is_hornyorfrustrated(Pawn pawn)
{
return (need_sex(pawn) == SexNeed.Horny || need_sex(pawn) == SexNeed.Frustrated);
}
public static bool is_normal(Pawn pawn)
{
return need_sex(pawn) == SexNeed.Neutral;
}
public static bool is_satisfied(Pawn pawn)
{
return need_sex(pawn) == SexNeed.Satisfied;
}
/// <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;
}
}
//TODO: change to take parts into account during sex
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) * (SaveStorage.DataStore.GetPawnData(pawn).raceSexDrive);
}
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;
}
//base check
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 true;
}
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 (!can_do_loving(pawn))
return false;
var partBPR = Genital_Helper.get_genitalsBPR(pawn);
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
if (Genital_Helper.penis_blocked(pawn) || (!Genital_Helper.has_penis_fertile(pawn, parts) && !Genital_Helper.has_penis_infertile(pawn, parts) && !Genital_Helper.has_ovipositorF(pawn, parts))) return false;
return true;
}
// Orifice check.
public static bool can_be_fucked(Pawn pawn)
{
if (is_mechanoid(pawn))
return false;
if (!can_do_loving(pawn))
return false;
if (Genital_Helper.has_anus(pawn) && !Genital_Helper.anus_blocked(pawn))
return true;
if (Genital_Helper.has_vagina(pawn) && !Genital_Helper.vagina_blocked(pawn))
return true;
if (Genital_Helper.has_mouth(pawn) && !Genital_Helper.oral_blocked(pawn))
return true;
//not sure about below, when female rape male, need to check all code so meh
//if ((Genital_Helper.has_penis(pawn) || Genital_Helper.has_penis_infertile(pawn) || Genital_Helper.has_ovipositorF(pawn)) && !Genital_Helper.penis_blocked(pawn))
// return true;
//if (Genital_Helper.has_breasts(pawn) && !Genital_Helper.breasts_blocked(pawn))
// return true;
//if (pawn.health.hediffSet.GetNotMissingParts().Any(part => part.IsInGroup(BodyPartGroupDefOf.RightHand) || part.IsInGroup(BodyPartGroupDefOf.LeftHand)) && !Genital_Helper.hands_blocked(pawn))
// return true;
return false;
}
public static bool can_rape(Pawn pawn, bool forced = false)
{
if (!RJWSettings.rape_enabled)
return false;
if (is_mechanoid(pawn))
return true;
if (!(can_fuck(pawn) ||
(!is_male(pawn) && get_vulnerability(pawn) < RJWSettings.nonFutaWomenRaping_MaxVulnerability && can_be_fucked(pawn))))
return false;
if (is_human(pawn))
{
if (RJWSettings.WildMode || forced)
return true;
return need_some_sex(pawn) > 0;
}
return true;
}
public static bool can_get_raped(Pawn pawn)
{
if (!RJWSettings.rape_enabled)
return false;
if (!can_be_fucked(pawn))
return false;
if (is_human(pawn))
{
if (RJWSettings.WildMode)
return true;
if (!(RJWSettings.rapee_MinVulnerability_human >= 0 && get_vulnerability(pawn) > RJWSettings.rapee_MinVulnerability_human))
return false;
}
return true;
}
//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 (pawn?.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_fertile(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 == xxx.DBHThirst);
if (DBHThirst != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " decreasing thirst");
partner.needs.TryGetNeed(DBHThirst.def).CurLevel += 0.1f;
}
}
}
if ((sextype == xxx.rjwSextype.Oral || sextype == xxx.rjwSextype.Vaginal || sextype == xxx.rjwSextype.Anal || sextype == xxx.rjwSextype.DoublePenetration))
{
if (has_traits(partner))
{
bool gainrest = false;
if (xxx.RoMIsActive && (partner.story.traits.HasTrait(xxx.Succubus) || partner.story.traits.HasTrait(xxx.Warlock)))
{
Need TM_Mana = partner?.needs?.AllNeeds.Find(x => x.def == xxx.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;
}
gainrest = true;
}
if (xxx.NightmareIncarnationIsActive)
{
foreach (var x in partner.AllComps?.Where(x => x.props.ToString() == "NightmareIncarnation.CompProperties_SuccubusRace"))
{
Need NI_Need_Mana = partner?.needs?.AllNeeds.Find(x => x.def == xxx.NI_Need_Mana);
if (NI_Need_Mana != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " increase mana");
partner.needs.TryGetNeed(NI_Need_Mana.def).CurLevel += 0.1f;
}
gainrest = true;
break;
}
}
if (gainrest)
{
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))
{
bool gainrest = false;
if (xxx.RoMIsActive && (pawn.story.traits.HasTrait(xxx.Succubus) || pawn.story.traits.HasTrait(xxx.Warlock)))
{
Need TM_Mana = pawn?.needs?.AllNeeds.Find(x => x.def == xxx.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;
}
}
if (xxx.NightmareIncarnationIsActive)
{
foreach (var x in pawn.AllComps?.Where(x => x.props.ToString() == "NightmareIncarnation.CompProperties_SuccubusRace"))
{
Need NI_Need_Mana = pawn?.needs?.AllNeeds.Find(x => x.def == xxx.NI_Need_Mana);
if (NI_Need_Mana != null)
{
//Log.Message("xxx::TransferNutrition() " + xxx.get_pawnname(partner) + " increase mana");
pawn.needs.TryGetNeed(NI_Need_Mana.def).CurLevel += 0.1f;
}
gainrest = true;
break;
}
}
if (gainrest)
{
Need_Rest need = partner.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;
}
//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)
{
ModLog.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;
bool masochist = is_masochist(pawn);
bool zoophile = is_zoophile(pawn);
if (pawn.health.hediffSet.hediffs.Any((Hediff h) => h.def == HediffDefOf.LoveEnhancer) || partner.health.hediffSet.hediffs.Any((Hediff h) => h.def == HediffDefOf.LoveEnhancer))
{
masochist = true;
zoophile = true;
}
if (masochist)
{
if(RJWSettings.rape_beating)
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDefWhereOtherPawnIs(ThoughtDefOf.HarmedMe, partner);
}
//--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) ? masochist_got_raped_unconscious : got_raped_unconscious;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
return;
}
// Thoughts for animal-on-colonist.
if (is_animal(partner) && isReceiving)
{
if (!zoophile && !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 (!zoophile)
{
if (sextype == rjwSextype.Oral)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(masochist ? masochist_got_licked : got_licked);
}
else if (sextype == rjwSextype.Vaginal)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(masochist ? masochist_got_bred : got_bred);
}
else if (sextype == rjwSextype.Anal)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(masochist ? masochist_got_anal_bred : got_anal_bred);
}
else //Other types
{
pawn.needs.mood.thoughts.memories.TryGainMemory(masochist ? masochist_got_groped : got_groped);
}
}
else
{
if (sextype == rjwSextype.Oral)
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_licked);
else if (sextype == rjwSextype.Vaginal)
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_bred);
else if (sextype == rjwSextype.Anal)
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_anal_bred);
else //Other types
pawn.needs.mood.thoughts.memories.TryGainMemory(zoophile_got_groped);
}
}
if (!partner.Dead && zoophile && 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))
{
if (sextype == rjwSextype.Anal)
{
if (is_female(partner))
{
ThoughtDef pawn_thought = masochist ? masochist_got_anal_raped_byfemale : got_anal_raped_byfemale;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
}
else
{
ThoughtDef pawn_thought = masochist ? masochist_got_anal_raped : got_anal_raped;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
}
}
else
{
ThoughtDef pawn_thought = masochist ? masochist_got_raped : got_raped;
pawn.needs.mood.thoughts.memories.TryGainMemory(pawn_thought);
}
ThoughtDef pawn_thought_about_rapist = masochist ? 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 && !masochist && !(is_animal(partner) && zoophile))
{
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
Thought_Memory thought_Memory = (Thought_Memory)ThoughtMaker.MakeThought(ThoughtDefOf.GotSomeLovin);
if (pawn.health.hediffSet.hediffs.Any((Hediff h) => h.def == HediffDefOf.LoveEnhancer) || partner.health.hediffSet.hediffs.Any((Hediff h) => h.def == HediffDefOf.LoveEnhancer))
{
thought_Memory.moodPowerFactor = 1.5f;
}
if (pawn.needs.mood != null)
{
pawn.needs.mood.thoughts.memories.TryGainMemory(thought_Memory, 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);
partner.needs.mood.thoughts.memories.TryGainMemory(memory, pawn);
}
// <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);
bool masochist = is_masochist(pawn);
bool zoophile = is_zoophile(pawn);
if (pawn.health.hediffSet.hediffs.Any((Hediff h) => h.def == HediffDefOf.LoveEnhancer) || partner.health.hediffSet.hediffs.Any((Hediff h) => h.def == HediffDefOf.LoveEnhancer))
{
masochist = true;
zoophile = true;
}
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 = zoophile ? gave_virginity : null;
}
else
{
pawn.records.Increment(CountOfSexWithOthers);
}
}
else
{
if (!pawnIsRaper)
{
currentThought = masochist ? 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 (zoophile) 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)
{
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.OwnersForReading.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.OwnersForReading.Contains(pawn))
{
ModLog.Error("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.OwnersForReading.Count; i++)
{
if (bed.OwnersForReading[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);
}
[SyncMethod]
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 (RJWSettings.AddTrait_Masocist && !is_masochist(pawn))
{
var chance = 0.05f;
if (Rand.Chance(chance))
{
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(pawn.story.traits.GetTrait(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);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(got_anal_raped);
pawn.needs.mood.thoughts.memories.RemoveMemoriesOfDef(got_anal_raped_byfemale);
}
}
if (pawn.IsPrisonerOfColony)
{
pawn.guest.resistance = Mathf.Max(pawn.guest.resistance - 1f, 0f);
//Log.Message(xxx.get_pawnname(pawn) + " BadlyBroken, reduce prisoner resistance");
}
}
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)
{
if (has_traits(pawn))
{
if (xxx.is_slime(pawn))
return;
if (!BodyIsBroken(pawn))
pawn.health.AddHediff(feelingBroken);
else
{
float num = feelingBroken.initialSeverity;
int feelingBrokenStage = pawn.health.hediffSet.GetFirstHediffOfDef(feelingBroken).CurStageIndex;
if (xxx.RoMIsActive)
if (pawn.story.traits.HasTrait(xxx.Succubus))
num *= 0.25f;
if (pawn.story.traits.HasTrait(TraitDefOf.Tough))
{
num *= 0.5f;
}
if (pawn.story.traits.HasTrait(TraitDef.Named("Wimp")))
{
num *= 2.0f;
}
if (pawn.story.traits.HasTrait(TraitDefOf.Nerves))
{
int td = pawn.story.traits.DegreeOfTrait(TraitDefOf.Nerves);
if (RJWSettings.AddTrait_Nerves && feelingBrokenStage >= 2 && td > -1)
{
pawn.story.traits.allTraits.Remove(pawn.story.traits.GetTrait(TraitDefOf.Nerves));
pawn.story.traits.GainTrait(new Trait(TraitDefOf.Nerves, -1));
}
if (RJWSettings.AddTrait_Nerves && feelingBrokenStage >= 3 && td > -2)
{
pawn.story.traits.allTraits.Remove(pawn.story.traits.GetTrait(TraitDefOf.Nerves));
pawn.story.traits.GainTrait(new Trait(TraitDefOf.Nerves, -2));
}
switch (td)
{
case -2:
num *= 2.0f;
break;
case -1:
num *= 1.5f;
break;
case 1:
num *= 0.5f;
break;
case 2:
num *= 0.25f;
break;
}
}
else if (RJWSettings.AddTrait_Nerves && feelingBrokenStage > 1)
{
pawn.story.traits.GainTrait(new Trait(TraitDefOf.Nerves, -1));
}
pawn.health.hediffSet.GetFirstHediffOfDef(feelingBroken).Severity += num;
}
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===============↑=============
}
}
|
TDarksword/rjw
|
Source/Common/xxx.cs
|
C#
|
mit
| 55,722 |
using Verse;
using System.Linq;
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.Where(thingDef =>
thingDef.race != null))
{
thingDef.comps.Add(new CompProperties_RJW());
//Log.Message("AddRJWComp to race " + thingDef.label);
}
}
}
}
|
TDarksword/rjw
|
Source/Comps/CompAdder.cs
|
C#
|
mit
| 528 |
using Verse;
namespace rjw
{
public class CompProperties_RJW : CompProperties
{
public CompProperties_RJW()
{
compClass = typeof(CompRJW);
}
}
public class CompProperties_HediffBodyPart : HediffCompProperties
{
public CompProperties_HediffBodyPart()
{
compClass = typeof(CompHediffBodyPart);
}
}
public class CompProperties_ThingBodyPart : CompProperties
{
public CompProperties_ThingBodyPart()
{
compClass = typeof(CompThingBodyPart);
}
}
}
|
TDarksword/rjw
|
Source/Comps/CompProperties.cs
|
C#
|
mit
| 480 |
using Psychology;
using SyrTraits;
using System.Text;
using Verse;
using RimWorld;
using Multiplayer.API;
namespace rjw
{
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>();
}
public static void CopyPsychologySexuality(Pawn pawn)
{
try
{
int kinsey = pawn.TryGetComp<CompPsychology>().Sexuality.kinseyRating;
//Orientation originalOrientation = Comp(pawn).orientation;
if (!Genital_Helper.has_genitals(pawn) && pawn.kindDef.race.defName.ToLower().Contains("droid"))
Comp(pawn).orientation = Orientation.Asexual;
else 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
Comp(pawn).orientation = Orientation.Asexual;
/*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);*/
}
catch
{
if (!pawn.IsAnimal())
ModLog.Warning("CopyPsychologySexuality " + pawn?.Name + ", def: " + pawn?.def?.defName + ", kindDef: " + pawn?.kindDef?.race.defName);
}
}
public static void CopyIndividualitySexuality(Pawn pawn)
{
try
{
CompIndividuality.Sexuality individualitySexuality = pawn.TryGetComp<CompIndividuality>().sexuality;
//Orientation originalOrientation = Comp(pawn).orientation;
if (individualitySexuality == CompIndividuality.Sexuality.Asexual)
Comp(pawn).orientation = Orientation.Asexual;
else if (!Genital_Helper.has_genitals(pawn) && pawn.kindDef.race.defName.ToLower().Contains("droid"))
Comp(pawn).orientation = Orientation.Asexual;
else if (individualitySexuality == CompIndividuality.Sexuality.Straight)
Comp(pawn).orientation = Orientation.Heterosexual;
else if (individualitySexuality == CompIndividuality.Sexuality.Bisexual)
Comp(pawn).orientation = Orientation.Bisexual;
else if (individualitySexuality == CompIndividuality.Sexuality.Gay)
Comp(pawn).orientation = Orientation.Homosexual;
else
Comp(pawn).orientation = Orientation.Asexual;
/*if (Comp(pawn).orientation != originalOrientation)
Log.Message("RJW + [SYR]Individuality: Inherited pawn " + xxx.get_pawnname(pawn) + " sexuality from Individuality - " + Comp(pawn).orientation);*/
}
catch
{
if (!pawn.IsAnimal())
ModLog.Warning("CopyIndividualitySexuality " + pawn?.Name + ", def: " + pawn?.def?.defName + ", kindDef: " + pawn?.kindDef?.race.defName);
}
}
[SyncMethod]
public static void VanillaTraitCheck(Pawn pawn)
{
//Orientation originalOrientation = Comp(pawn).orientation;
if (pawn.story.traits.HasTrait(TraitDefOf.Asexual))
Comp(pawn).orientation = Orientation.Asexual;
else if (!Genital_Helper.has_genitals(pawn) && pawn.kindDef.race.defName.ToLower().Contains("droid"))
Comp(pawn).orientation = Orientation.Asexual;
else if(pawn.story.traits.HasTrait(TraitDefOf.Gay))
Comp(pawn).orientation = Orientation.Homosexual;
else if (pawn.story.traits.HasTrait(TraitDefOf.Bisexual))
Comp(pawn).orientation = Orientation.Bisexual;
else
Comp(pawn).orientation = Orientation.Heterosexual;
}
// 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(pawn) : RollOrientation(pawn);
//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)
Sexualizer.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.Vanilla)
VanillaTraitCheck(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;
}
QuirkAdder.Generate(pawn);
if (quirks.Length == 0)
{
quirks.Append("None");
quirksave = quirks.ToString();
}
}
[SyncMethod]
public static bool CheckPreference(Pawn pawn, Pawn partner)
{
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.Vanilla)
{
if (xxx.has_traits(pawn))
VanillaTraitCheck(pawn);
if (xxx.has_traits(partner))
VanillaTraitCheck(partner);
}
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.SYRIndividuality)
{
CopyIndividualitySexuality(pawn);
CopyIndividualitySexuality(partner);
}
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.Psychology)
{
if (RJWPreferenceSettings.sexuality_distribution == RJWPreferenceSettings.Rjw_sexuality.Psychology)
CopyPsychologySexuality(pawn);
CopyPsychologySexuality(partner);
}
//if (xxx.is_mechanoid(pawn))
// return false;
Orientation ori = Orientation.None;
try
{
ori = Comp(pawn).orientation;
}
catch
{
//ModLog.Message("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;
var pawnpartBPR = Genital_Helper.get_genitalsBPR(pawn);
var pawnparts = Genital_Helper.get_PartsHediffList(pawn, pawnpartBPR);
var pawn_has_vagina = Genital_Helper.has_vagina(pawn, pawnparts);
var pawn_has_penis_fertile = Genital_Helper.has_penis_fertile(pawn, pawnparts);
var pawn_has_penis_infertile = Genital_Helper.has_penis_infertile(pawn, pawnparts);
var partnerpartBPR = Genital_Helper.get_genitalsBPR(partner);
var partnerparts = Genital_Helper.get_PartsHediffList(partner, partnerpartBPR);
var partner_has_vagina = Genital_Helper.has_vagina(partner, partnerparts);
var partner_has_penis_fertile = Genital_Helper.has_penis_fertile(partner, partnerparts);
var partner_has_penis_infertile = Genital_Helper.has_penis_infertile(partner, partnerparts);
bool isHetero = (pawn_has_vagina && (partner_has_penis_fertile || partner_has_penis_infertile)) ||
(partner_has_vagina && (pawn_has_penis_fertile || pawn_has_penis_infertile));
bool isHomo = (pawn_has_vagina && partner_has_vagina) ||
((partner_has_penis_fertile || partner_has_penis_infertile) && (pawn_has_penis_fertile || pawn_has_penis_infertile));
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:
ModLog.Error("ERROR - tried to check preference for undetermined sexuality.");
return false;
}
}
[SyncMethod]
public Orientation RollOrientation(Pawn pawn)
{
//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 || !Genital_Helper.has_genitals(pawn))
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(Pawn pawn)
{
//Rand.PopState();
//Rand.PushState(RJW_Multiplayer.PredictableSeed());
float random = Rand.Range(0f, 1f);
if (random < 0.03f || !Genital_Helper.has_genitals(pawn))
return Orientation.Asexual;
else if (random < 0.85f)
return Orientation.Heterosexual;
else if (random < 0.96f)
return Orientation.Bisexual;
else
return Orientation.Homosexual;
}
}
}
|
TDarksword/rjw
|
Source/Comps/CompRJW.cs
|
C#
|
mit
| 13,448 |
using System.Text;
using Verse;
using RimWorld;
using Multiplayer.API;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using HugsLib.Utils;
using System.Linq;
using HugsLib;
namespace rjw
{
/// <summary>
/// Comp for rjw hediff parts
/// </summary>
public class CompHediffBodyPart : HediffComp
{
public string Size => parent.CurStage?.label ?? "";
public string RaceOwner = "Unknows species"; //base race when part created
public string PreviousOwner = "Unknows"; //base race when part created
public float SizeBase; //base size when part created, someday alter by operation
public float SizeOwner = 0; //modifier of 1st owner race body size
public float EffSize; //SizeBase x SizeOwner = current size | hediff.severity
public string FluidType = ""; //cummies/milk - insectjelly/honey etc
public float FluidAmmount; //ammount of Milk/Ejaculation/Wetness
public float FluidModifier = 1f; //
public string Eggs; //for ovi eggs, maybe
/// <summary>
/// part size in labels
/// </summary>
//public override string CompLabelInBracketsExtra
//{
// get
// {
// if (Size != "")
// return Size;
// return null;
// }
//}
/// <summary>
/// save data
/// </summary>
public override void CompExposeData()
{
base.CompExposeData();
Scribe_Values.Look(ref SizeBase, "SizeBase");
Scribe_Values.Look(ref SizeOwner, "SizeOwner");
Scribe_Values.Look(ref RaceOwner, "RaceOwner");
Scribe_Values.Look(ref PreviousOwner, "PreviousOwner");
Scribe_Values.Look(ref FluidType, "FluidType");
Scribe_Values.Look(ref FluidAmmount, "FluidAmmount");
Scribe_Values.Look(ref FluidModifier, "FluidModifier");
Scribe_Values.Look(ref Eggs, "Eggs");
}
/// <summary>
/// show part info in healthab
/// </summary>
public override string CompTipStringExtra
{
get
{
if (SizeOwner == 0)
{
ModLog.Warning(" " + xxx.get_pawnname(Pawn) + " part " + parent.def.defName + " is broken, resetting");
initComp();
updatesize();
updatepartposition();
}
// In theory the tip should be a condensed form and the longer form should be elsewhere, but where?
return GetTipString(true).Join("\n");
}
}
IEnumerable<string> GetTipString(bool extended)
{
//ModLog.Message(" CompTipStringExtra " + xxx.get_pawnname(Pawn) + " " + parent.def.defName);
// TODO: Part type should be a property in the extension.
//StringBuilder defstringBuilder = new StringBuilder();
if (parent.def.defName.ToLower().Contains("breasts"))
{
return GetBreastTip(extended);
}
else if (parent.def.defName.ToLower().Contains("penis"))
{
return GetPenisTip(extended);
}
else if (parent.def.defName.ToLower().Contains("anus") || parent.def.defName.ToLower().Contains("vagina"))
{
return GetOrificeTip(extended);
}
else if (parent.def.defName.ToLower().Contains("ovi"))
{
return GetEggTip(extended);
}
return Enumerable.Empty<string>();
}
IEnumerable<string> GetEggTip(bool extended)
{
if (Eggs != "")
{
yield return "RJW_hediff_eggs".Translate(Eggs);
}
}
IEnumerable<string> GetPenisTip(bool extended)
{
if (PartSizeExtension.TryGetLength(parent, out float length))
{
yield return "RJW_hediff_length".Translate(length.ToString("F1"));
}
if (!extended)
{
yield break;
}
if (PartSizeExtension.TryGetGirth(parent, out float girth))
{
yield return "RJW_hediff_girth".Translate(girth.ToString("F1"));
}
if (PartSizeExtension.TryGetPenisWeight(parent, out float weight))
{
yield return "RJW_hediff_weight".Translate(weight.ToString("F1"));
}
foreach (var line in GetFluidTip())
{
yield return line;
}
}
IEnumerable<string> GetOrificeTip(bool extended)
{
if (!extended)
{
yield break;
}
//defstringBuilder.Append(this.Def.description);
//defstringBuilder.AppendLine("Cum: " + FluidType);
//defstringBuilder.AppendLine("Ejaculation: " + (FluidAmmount * FluidModifier).ToString("F2") + "ml");
// TODO: Should be scaled bigger than penis size either in xml or here.
if (PartSizeExtension.TryGetLength(parent, out float length))
{
yield return "RJW_hediff_maxLength".Translate(length.ToString("F1"));
}
if (PartSizeExtension.TryGetGirth(parent, out float girth))
{
yield return "RJW_hediff_maxGirth".Translate(girth.ToString("F1"));
}
foreach (var line in GetFluidTip())
{
yield return line;
}
}
IEnumerable<string> GetBreastTip(bool extended)
{
foreach (var line in GetBraSizeTip())
{
yield return line;
}
if (!extended)
{
yield break;
}
if (PartSizeExtension.TryGetCupSize(parent, out float size))
{
var cupSize = (int)size;
if (cupSize > 0)
{
if (PartSizeExtension.TryGetOverbustSize(parent, out float overbust))
{
var underbust = PartSizeExtension.GetUnderbustSize(parent);
yield return "RJW_hediff_underbust".Translate(underbust.ToString("F1"));
yield return "RJW_hediff_overbust".Translate(overbust.ToString("F1"));
}
if (PartSizeExtension.TryGetBreastWeight(parent, out float weight))
{
yield return "RJW_hediff_weight".Translate(weight.ToString("F1"));
}
}
}
foreach (var line in GetFluidTip())
{
yield return line;
}
}
IEnumerable<string> GetBraSizeTip()
{
if (PartSizeExtension.TryGetCupSize(parent, out float size))
{
var bandSize = PartSizeExtension.GetBandSize(parent);
var cupSize = (int)size;
if (cupSize > 0)
{
yield return "RJW_hediff_braSize".Translate(
bandSize,
cupSize,
PartStagesDef.GetCupSizeLabel(cupSize));
}
else
{
yield return "RJW_hediff_braSizeNone".Translate();
}
}
}
IEnumerable<string> GetFluidTip()
{
if (FluidAmmount != 0 && FluidType != "")
{
yield return "RJW_hediff_fluidTypeFluidAmount".Translate(
FluidType,
(FluidAmmount * FluidModifier).ToString("F1"));
}
}
//TODO: somday part enlager operations
public void updatesize(float value = 0)
{
if (value == 0)
{
// CompHediff.Size = CompThing.Size;
//Log.Message("CompHediffBodyPart::updatesize increase( " + (SizeOwner > parent.pawn.BodySize) + " )");
if (SizeOwner > parent.pawn.BodySize)
{
// decrease
value = (SizeOwner - parent.pawn.BodySize) / SizeOwner;
//Log.Message("CompHediffBodyPart::updatesize - decrease");
//Log.Message("CompHediffBodyPart::updatesize( " + SizeOwner + " )");
//Log.Message("CompHediffBodyPart::updatesize( " + parent.pawn.BodySize + " )");
//Log.Message("CompHediffBodyPart::updatesize - value");
//Log.Message("CompHediffBodyPart::updatesize( " + value + " )");
value = SizeBase * (1 + value);
}
else
{
// increase
value = (parent.pawn.BodySize - SizeOwner) / parent.pawn.BodySize;
//Log.Message("CompHediffBodyPart::updatesize - increase");
//Log.Message("CompHediffBodyPart::updatesize( " + SizeOwner + " )");
//Log.Message("CompHediffBodyPart::updatesize( " + parent.pawn.BodySize + " )");
//Log.Message("CompHediffBodyPart::updatesize - value");
//Log.Message("CompHediffBodyPart::updatesize( " + value + " )");
value = SizeBase * (1 - value);
}
//Log.Message("CompHediffBodyPart::updatesize - value offset");
//Log.Message("CompHediffBodyPart::updatesize( " + value + " )");
}
else
{
// idk do something here? (operation etc)
}
//Log.Message("CompHediffBodyPart::updatesize - severity");
//Log.Message("CompHediffBodyPart::updatesize( " + parent.Severity + " )");
if (value <= 0)
{
//Log.Message("CompHediffBodyPart::updatesize( " + parent.pawn.Name + " )");
value = 0.01f;
}
parent.Severity = value;
//Log.Message("CompHediffBodyPart::updatesize( " + parent.Severity + " )");
//Log.Message("CompHediffBodyPart::updatesize( " + xxx.get_pawnname(parent.pawn) + " ) kinddef: " + parent.pawn.kindDef.defName + " ) def: " + parent.def.defName);
}
public void updatepartposition()
{
var partBase = parent.def as HediffDef_PartBase;
if (partBase != null)
{
if (parent.Part == null || partBase.DefaultBodyPart != "" && parent.Part.def.defName != partBase.DefaultBodyPart)
{
ModLog.Warning(" " + xxx.get_pawnname(Pawn) + " part " + parent.def.defName + " is in wrong BodyPart position, resetting to default");
var bp = parent.pawn.RaceProps.body.AllParts.Find(x => x.def.defName.Contains(partBase.DefaultBodyPart));
//if (pawn.IsColonist)
//{
// Log.Message(xxx.get_pawnname(pawn) + " has broken hediffs, removing " + this.ToString());
// Log.Message(Part.ToString());
// Log.Message(bp.def.defName);
// Log.Message(partBase.DefaultBodyPart.ToString());
//}
parent.Part = bp;
}
}
}
/// <summary>
/// fill comp data
/// </summary>
[SyncMethod]
public void initComp(Pawn pawn = null, bool reroll = false)
{
if (pawn == null)
pawn = parent.pawn;
double value = Rand.Range(0.01f, 1);
bool trap = false;
if (reroll == true)
value = SizeBase;
{
if (parent.def.defName.ToLower().Contains("breast"))
{
//FluidType = "Milk";
FluidAmmount = 0;
if (pawn != null)
{
if (pawn.gender == Gender.Male && RJWSettings.MaleTrap)
if (pawn.Faction != null && !xxx.is_animal(pawn)) //null faction throws error
{
//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 trap
trap = true;
}
}
if (pawn.gender == Gender.Male && !trap && reroll == false)
value = 0.01f;
}
}
else if (parent.def.defName.ToLower().Contains("penis"))
{
FluidAmmount = (float)value * pawn.RaceProps.baseBodySize * pawn.RaceProps.baseBodySize * 10 * 2 * Rand.Range(0.75f, 1.25f);
}
else if (parent.def.defName.ToLower().Contains("vagina"))
{
FluidAmmount = (float)value * pawn.RaceProps.baseBodySize * pawn.RaceProps.baseBodySize * 10 * Rand.Range(0.75f, 1.25f);
}
else if (parent.def.defName.ToLower().Contains("anus"))
{
FluidAmmount = 0;
}
else if (parent.def.defName.ToLower().Contains("tentacle"))
{
value *= 2;
FluidAmmount = (float)value * pawn.RaceProps.baseBodySize * pawn.RaceProps.baseBodySize * 10 * 2 * Rand.Range(0.75f, 1.25f);
}
else if (parent.def.defName.ToLower().Contains("ovi"))
{
Eggs = pawn?.kindDef?.label ?? "";
FluidAmmount = 0;
}
FluidType = (parent.def as HediffDef_PartBase).FluidType;
SizeBase = (float)value;
SizeOwner = pawn?.BodySize ?? 1.0f;
RaceOwner = pawn?.kindDef?.race.LabelCap ?? "RJW_hediff_unknownSpecies".Translate();
PreviousOwner = xxx.get_pawnname(pawn);
EffSize = SizeOwner*SizeBase;
FluidModifier = 1f;
}
}
}
}
|
TDarksword/rjw
|
Source/Comps/CompRJWHediffBodyPart.cs
|
C#
|
mit
| 11,254 |
using System.Text;
using Verse;
using RimWorld;
using Multiplayer.API;
namespace rjw
{
/// <summary>
/// Comp for things
/// </summary>
public class CompThingBodyPart : ThingComp
{
/// <summary>
/// Comp for rjw Thing parts.
/// </summary>
public string Size; //eventually replace with below, maybe
public float SizeBase; //base size when part created, someday alter by operation
public float SizeOwner = 0; //modifier of 1st owner race body size
public string RaceOwner = "Unknows species"; //race of 1st owner race
public string PreviousOwner = "Unknown"; //erm
public float EffSize; //SizeBase x SizeOwner
public string FluidType; //cummies/milk - insectjelly/honey etc
public float FluidAmmount; //ammount of Milk/Ejaculation/Wetness
public float FluidModifier; //
public string Eggs; //for ovi eggs, maybe
/// <summary>
/// Thing/part size in labels, init comp on select
/// </summary>
//public override string CompInspectStringExtra()
//{
// if (Size != "")
// return Translator.Translate("Size") + ": " + Size;
// else
// return null;
// return base.CompInspectStringExtra();
//}
/// <summary>
/// Thing/part size in label
/// </summary>
public override string TransformLabel(string label)
{
if (SizeOwner == 0)
InitComp();
if (Size != "")
return label + " (" + Size + ")" + " (" + SizeOwner + ")";
//this.parent.GetStatValue(StatDefOf.Nutrition);
return label;
}
/// <summary>
/// Thing/part description + comp description
/// </summary>
public override string GetDescriptionPart()
{
//ModLog.Message(" CompTipStringExtra " + xxx.get_pawnname(Pawn) + " " + parent.def.defName);
StringBuilder stringBuilder = new StringBuilder();
if (SizeOwner == 0)
InitComp();
stringBuilder.AppendLine("Previous owner: " + PreviousOwner);
stringBuilder.AppendLine("Original owner race: " + RaceOwner);
stringBuilder.AppendLine("Original owner race size: " + SizeOwner);
if (parent.def.defName.ToLower().Contains("breasts"))
{
if (FluidType != "")
stringBuilder.AppendLine("Producing: " + FluidType);
if (FluidAmmount != 0)
{
stringBuilder.AppendLine("Amount: " + FluidAmmount.ToString("F2"));
}
if (Size != "")
stringBuilder.AppendLine("Size: " + Size);
}
else if (parent.def.defName.ToLower().Contains("penis") || parent.def.defName.ToLower().Contains("vagina"))
{
if (FluidAmmount != 0)
{
if (FluidType != "")
stringBuilder.AppendLine("Cum: " + FluidType);
if (parent.def.defName.ToLower().Contains("penis"))
stringBuilder.AppendLine("Ejaculation: " + FluidAmmount.ToString("F2") + "ml");
if (parent.def.defName.ToLower().Contains("vagina"))
stringBuilder.AppendLine("Wetness: " + FluidAmmount.ToString("F2"));
}
if (Size != "")
stringBuilder.AppendLine("Size: " + Size);
}
else if (parent.def.defName.ToLower().Contains("anus"))
{
if (FluidType != "" && FluidAmmount != 0)
{
stringBuilder.AppendLine("Lube: " + FluidType);
if (parent.def.defName.ToLower().Contains("anus"))
stringBuilder.AppendLine("Wetness: " + FluidAmmount.ToString("F2"));
}
if (Size != "")
stringBuilder.AppendLine("Size: " + Size);
}
else if (parent.def.defName.ToLower().Contains("ovi"))
{
if (Eggs != "")
stringBuilder.AppendLine("Eggs: " + Eggs);
}
return stringBuilder.ToString();
}
public override void PostExposeData()
{
base.PostExposeData();
Scribe_Values.Look(ref Size, "Size");
Scribe_Values.Look(ref SizeBase, "SizeBase");
Scribe_Values.Look(ref SizeOwner, "SizeOwner");
Scribe_Values.Look(ref RaceOwner, "RaceOwner");
Scribe_Values.Look(ref PreviousOwner, "PreviousOwner");
Scribe_Values.Look(ref FluidType, "FluidType");
Scribe_Values.Look(ref FluidAmmount, "FluidAmmount");
Scribe_Values.Look(ref FluidModifier, "FluidModifier");
Scribe_Values.Look(ref Eggs, "Eggs");
}
/// <summary>
/// fill comp data
/// </summary>
[SyncMethod]
public void InitComp(Pawn pawn = null)
{
var def = DefDatabase<HediffDef>.GetNamed(parent.def.defName);
//pick random pawn to create temp hediff
pawn = PawnsFinder.AllMaps_FreeColonistsAndPrisonersSpawned.RandomElement();
//pawn = PawnsFinder.All_AliveOrDead.RandomElement(); //TODO: maybe some day add immobilizing size?
Hediff hd = HediffMaker.MakeHediff(def, pawn);
CompHediffBodyPart CompHediff = hd.TryGetComp<CompHediffBodyPart>();
if (CompHediff != null)
{
CompHediff.initComp(pawn);
CompHediff.updatesize();
FluidType = CompHediff.FluidType;
FluidAmmount = CompHediff.FluidAmmount;
FluidModifier = CompHediff.FluidModifier;
Size = CompHediff.Size;
SizeBase = CompHediff.SizeBase;
SizeOwner = CompHediff.SizeOwner;
RaceOwner = "Unknown";
PreviousOwner = "Unknown";
Eggs = CompHediff.Eggs;
}
}
}
}
|
TDarksword/rjw
|
Source/Comps/CompRJWThingBodyPart.cs
|
C#
|
mit
| 5,014 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace rjw
{
public enum Orientation
{
None,
Asexual,
Pansexual,
Heterosexual,
MostlyHeterosexual,
LeaningHeterosexual,
Bisexual,
LeaningHomosexual,
MostlyHomosexual,
Homosexual
}
}
|
TDarksword/rjw
|
Source/Comps/Orientation.cs
|
C#
|
mit
| 298 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Verse;
using Verse.AI;
using RimWorld;
namespace rjw
{
public class Quirk
{
public static List<Quirk> All = new List<Quirk>();
public static readonly Quirk Breeder = new Quirk(
"Breeder",
"BreederQuirk");
public static readonly Quirk Endytophile = new Quirk(
"Endytophile",
"EndytophileQuirk",
(pawn, partner) => !partner.apparel.PsychologicallyNude,
sexProps => !sexProps.Pawn.apparel.PsychologicallyNude
);
public static readonly Quirk Exhibitionist = new Quirk(
"Exhibitionist",
"ExhibitionistQuirk",
null,
SatisfiesExhibitionist
);
public static readonly Quirk Fertile = new Quirk(
"Fertile",
"FertileQuirk");
public static readonly Quirk Gerontophile = new Quirk(
"Gerontophile",
"GerontophileQuirk",
(pawn, partner) => SexUtility.ScaleToHumanAge(partner) > 55,
sexProps => sexProps.HasPartner && SexUtility.ScaleToHumanAge(sexProps.Partner) > 55
);
public static readonly Quirk ImpregnationFetish = new Quirk(
"Impregnation fetish",
"ImpregnationFetishQuirk",
(pawn, partner) =>
PregnancyHelper.CanImpregnate(pawn, partner)
|| PregnancyHelper.CanImpregnate(partner, pawn),
sexProps =>
sexProps.HasPartner
&& (PregnancyHelper.CanImpregnate(sexProps.Pawn, sexProps.Partner, sexProps.SexType)
|| PregnancyHelper.CanImpregnate(sexProps.Partner, sexProps.Pawn, sexProps.SexType))
);
public static readonly Quirk Incubator = new Quirk(
"Incubator",
"IncubatorQuirk");
public static readonly Quirk Infertile = new Quirk(
"Infertile",
"InfertileQuirk");
public static readonly Quirk Messy = new Quirk(
"Messy",
"MessyQuirk");
public static readonly Quirk Podophile = new Quirk(
"Podophile",
"PodophileQuirk",
null,
sexProps => sexProps.HasPartner && sexProps.SexType == xxx.rjwSextype.Footjob
);
public static readonly Quirk PregnancyFetish = new Quirk(
"Pregnancy fetish",
"PregnancyFetishQuirk",
(pawn, partner) => partner.IsVisiblyPregnant(),
sexProps => sexProps.HasPartner && sexProps.Partner.IsVisiblyPregnant()
);
public static readonly Quirk Sapiosexual = new Quirk(
"Sapiosexual",
"SapiosexualQuirk",
(pawn, partner) => SatisfiesSapiosexual(partner),
null
);
public static readonly Quirk Somnophile = new Quirk(
"Somnophile",
"SomnophileQuirk",
(pawn, partner) => !partner.Awake(),
sexProps => sexProps.HasPartner && !sexProps.Partner.Awake()
);
public static readonly Quirk Teratophile = new Quirk(
"Teratophile",
"TeratophileQuirk",
(pawn, partner) => SatisfiesTeratophile(partner),
null
);
public static readonly Quirk Vigorous = new Quirk(
"Vigorous",
"VigorousQuirk");
// There might be too many of these I dunno.
// People have expressed "special interest" in some of them so I thought
// it would be cool to have them in the game but since people are weird you end up with a lot of fetishes.
public static readonly Quirk ChitinLover = MakeTagBasedQuirk("Chitin lover", "ChitinLoverQuirk", RaceTag.Chitin);
public static readonly Quirk DemonLover = MakeTagBasedQuirk("Demon lover", "DemonLoverQuirk", RaceTag.Demon);
public static readonly Quirk FeatherLover = MakeTagBasedQuirk("Feather lover", "FeatherLoverQuirk", RaceTag.Feathers);
public static readonly Quirk FurLover = MakeTagBasedQuirk("Fur lover", "FurLoverQuirk", RaceTag.Fur);
public static readonly Quirk PlantLover = MakeTagBasedQuirk("Plant lover", "PlantLoverQuirk", RaceTag.Plant);
public static readonly Quirk RobotLover = MakeTagBasedQuirk("Robot lover", "RobotLoverQuirk", RaceTag.Robot);
public static readonly Quirk ScaleLover = MakeTagBasedQuirk("Scale lover", "ScaleLoverQuirk", RaceTag.Scales);
public static readonly Quirk SkinLover = MakeTagBasedQuirk("Skin lover", "SkinLoverQuirk", RaceTag.Skin);
public static readonly Quirk SlimeLover = MakeTagBasedQuirk("Slime lover", "SlimeLoverQuirk", RaceTag.Slime);
public string Key { get; }
public string LocaliztionKey { get; }
// Hack, quirk generation logic should be in the quirk not based on flags on the quirk.
public RaceTag RaceTag { get; }
readonly Func<Pawn, Pawn, bool> PawnSatisfiesFunc;
readonly Func<SexProps, bool> SexSatisfiesFunc;
readonly Action<Pawn> AfterAddFunc;
public static Quirk MakeTagBasedQuirk(string key, string localizationKey, RaceTag tag)
{
return new Quirk(
key,
localizationKey,
(pawn, partner) => partner.Has(tag),
sexProps => sexProps.HasPartner && sexProps.Partner.Has(tag),
null,
tag);
}
Quirk(
string key,
string localizationKey,
Func<Pawn, Pawn, bool> pawnSatisfies = null,
Func<SexProps, bool> sexSatisfies = null,
Action<Pawn> afterAdd = null,
RaceTag raceTag = null)
{
Key = key;
LocaliztionKey = localizationKey;
PawnSatisfiesFunc = pawnSatisfies;
SexSatisfiesFunc = sexSatisfies;
AfterAddFunc = afterAdd;
RaceTag = raceTag;
All.Add(this);
}
public bool IsSatisfiedBy(Pawn pawn, Pawn partner)
{
return pawn != null
&& partner != null
&& pawn.Has(this)
&& PawnSatisfiesFunc != null
&& PawnSatisfiesFunc(pawn, partner);
}
public static int CountSatisfiedQuirks(Pawn pawn, Pawn partner, xxx.rjwSextype sexType, bool violent)
{
var props = new SexProps(pawn, partner, sexType, violent);
var satisfies = All.Where(quirk =>
quirk.SexSatisfiesFunc != null
&& pawn.Has(quirk)
&& quirk.SexSatisfiesFunc(props));
return satisfies.Count();
}
public void DoAfterAdd(Pawn pawn)
{
AfterAddFunc?.Invoke(pawn);
}
public static bool SatisfiesExhibitionist(SexProps sexProps)
{
var zoo = xxx.is_zoophile(sexProps.Pawn);
return sexProps.Pawn.Map.mapPawns.AllPawnsSpawned.Any(x =>
x != sexProps.Pawn
&& x != sexProps.Partner
&& !x.Dead
&& (zoo || !xxx.is_animal(x))
&& x.CanSee(sexProps.Pawn));
}
public static bool SatisfiesSapiosexual(Pawn partner)
{
if (!xxx.has_traits(partner)) return false;
return partner.story.traits.HasTrait(TraitDefOf.TooSmart)
|| (xxx.CTIsActive && partner.story.traits.HasTrait(xxx.RCT_Savant))
|| (xxx.IndividualityIsActive && partner.story.traits.HasTrait(xxx.SYR_CreativeThinker))
|| (xxx.CTIsActive && partner.story.traits.HasTrait(xxx.RCT_Inventor))
|| partner.story.traits.HasTrait(TraitDefOf.GreatMemory)
|| partner.story.traits.HasTrait(TraitDefOf.Transhumanist)
|| partner.skills.GetSkill(SkillDefOf.Intellectual).levelInt >= 15;
}
public static bool SatisfiesTeratophile(Pawn partner)
{
if (partner.story == null) return false;
var story = partner.story;
return RelationsUtility.IsDisfigured(partner)
|| story.bodyType == BodyTypeDefOf.Fat
|| story.traits.HasTrait(TraitDefOf.CreepyBreathing)
|| (story.traits.HasTrait(TraitDefOf.Beauty) && story.traits.DegreeOfTrait(TraitDefOf.Beauty) < 0)
|| partner.GetStatValue(StatDefOf.PawnBeauty) < 0;
}
public static void AddThought(Pawn pawn)
{
var thoughtDef = DefDatabase<ThoughtDef>.GetNamed("ThatsMyFetish");
pawn.needs.mood.thoughts.memories.TryGainMemory(thoughtDef);
}
}
}
|
TDarksword/rjw
|
Source/Comps/Quirk.cs
|
C#
|
mit
| 7,243 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.