Skip to content

Commit

Permalink
Merge pull request #14 from Rim-Of-Madness-Team/dev
Browse files Browse the repository at this point in the history
Updated for RW 1.4; Added Werewolf genes
  • Loading branch information
jecrell authored Oct 31, 2022
2 parents fff00b9 + d97fbc2 commit 589d270
Show file tree
Hide file tree
Showing 79 changed files with 2,628 additions and 888 deletions.
Binary file added 1.4/Assemblies/Werewolf.dll
Binary file not shown.
11 changes: 11 additions & 0 deletions 1.4/Defs/ConceptDefs/ROMWW_Concepts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<!--===================== Concepts taught through the learning readout, when opportunities arise ===================-->
<ConceptDef>
<defName>ROMWW_ConceptBionics</defName>
<label>Werewolf: Bionics</label>
<priority>50</priority>
<needsOpportunity>True</needsOpportunity>
<helpText>Fledgling werewolves cannot properly control their transformations and shed their implants and added parts when transforming. However, after reaching level 5 in any werewolf form, they will master more self control and no longer push off efficient bionics during regeneration except for those that replace their most vital werewolf parts, namely their jaws and claws.</helpText>
</ConceptDef>
</Defs>
18 changes: 18 additions & 0 deletions 1.4/Defs/DamageDefs/Werewolf_Damages.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<JecsTools.DamageDefCleave>
<defName>ROM_CrinosSlash</defName>
<label>slash</label>
<description>slash</description>
<workerClass>JecsTools.DamageWorker_Cleave</workerClass>
<externalViolence>true</externalViolence>
<deathMessage>{0} has been slashed to death.</deathMessage>
<hediff>Scratch</hediff>
<hediffSolid>Crack</hediffSolid>
<harmAllLayersUntilOutside>true</harmAllLayersUntilOutside>
<impactSoundType>Slice</impactSoundType>
<armorCategory>Sharp</armorCategory>
<cleaveFactor>0.8</cleaveFactor>
<cleaveDamage>Scratch</cleaveDamage>
</JecsTools.DamageDefCleave>
</Defs>
21 changes: 21 additions & 0 deletions 1.4/Defs/DutyDefs/Werewolf_Duties.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<DutyDef>
<defName>ROM_WerewolfAssault</defName>
<alwaysShowWeapon>true</alwaysShowWeapon>
<thinkNode Class="ThinkNode_Priority">
<subNodes>
<li Class="Werewolf.JobGiver_AttackAndTransform">
<targetAcquireRadius>65</targetAcquireRadius>
<targetKeepRadius>72</targetKeepRadius>
</li>
<li Class="JobGiver_AIGotoNearestHostile" />
<li Class="JecsTools.JobGiver_AIFirelessTrashColonyClose" />
<li Class="JecsTools.JobGiver_AIFirelessTrashColonyDistant" />
<li Class="JobGiver_AISapper">
<canMineNonMineables>false</canMineNonMineables>
</li>
</subNodes>
</thinkNode>
</DutyDef>
</Defs>
119 changes: 119 additions & 0 deletions 1.4/Defs/FactionDefs/FactionDefs_Werewolf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<FactionDef ParentName="FactionBase">
<defName>ROM_WerewolfClan</defName>
<label>wolf clan</label>
<description>A mysterious collective of individuals from different walks of life. Why they come together is a mystery. However, nearby townsfolk claim that when the moon shows its face, strange howls entwined with screams and whimpers echo from their encampments.</description>
<pawnsPlural>wolf clan</pawnsPlural>
<settlementGenerationWeight>0.001</settlementGenerationWeight>
<requiredCountAtGameStart>1</requiredCountAtGameStart>
<maxCountAtGameStart>1</maxCountAtGameStart>
<maxConfigurableAtWorldCreation>9999</maxConfigurableAtWorldCreation>
<canMakeRandomly>true</canMakeRandomly>
<maxPawnCostPerTotalPointsCurve>
<points>
<li>(0,35)</li>
<li>(70, 50)</li>
<li>(800, 100)</li>
<li>(1300, 150)</li>
<li>(100000, 10000)</li>
</points>
</maxPawnCostPerTotalPointsCurve>
<raidCommonalityFromPointsCurve>
<points>
<li>(1000, 0.3)</li>
<li>(2500, 0.8)</li>
</points>
</raidCommonalityFromPointsCurve>
<canSiege>true</canSiege>
<canStageAttacks>true</canStageAttacks>
<factionIconPath>World/WorldObjects/Expanding/WolfPack</factionIconPath>
<colorSpectrum>
<li>(0.7, 1, 0.7)</li>
<li>(1, 1, 0.7)</li>
<li>(1, 1, 0.1)</li>
</colorSpectrum>
<mustStartOneEnemy>false</mustStartOneEnemy>
<factionNameMaker>ROM_NamerFactionWerewolf</factionNameMaker>
<settlementNameMaker>NamerSettlementTribal</settlementNameMaker>
<techLevel>Neolithic</techLevel>
<backstoryCategories>
<li>Tribal</li>
</backstoryCategories>
<leaderTitle>alpha</leaderTitle>
<allowedCultures>
<li>Corunan</li>
</allowedCultures>
<allowedArrivalTemperatureRange>
<min>-40</min>
<max>45</max>
</allowedArrivalTemperatureRange>
<caravanTraderKinds>
<li>Caravan_Neolithic_BulkGoods</li>
<li>Caravan_Neolithic_WarMerchant</li>
<li>Caravan_Neolithic_Slaver</li>
<li>Caravan_Neolithic_ShamanMerchant</li>
</caravanTraderKinds>
<visitorTraderKinds>
<li>Visitor_Neolithic_Standard</li>
</visitorTraderKinds>
<baseTraderKinds>
<li>Base_Neolithic_Standard</li>
</baseTraderKinds>
<pawnGroupMakers>
<li>
<kindDef>Trader</kindDef>
<traders>
<Tribal_Trader>1</Tribal_Trader>
</traders>
<carriers>
<Muffalo>1</Muffalo>
<Dromedary>1</Dromedary>
</carriers>
<guards>
<ROM_WolfHandler>60</ROM_WolfHandler>
<Tribal_Archer>100</Tribal_Archer>
<Tribal_Warrior>1</Tribal_Warrior>
</guards>
</li>
<li>
<!-- Normal, standard mix -->
<kindDef>Combat</kindDef>
<commonality>100</commonality>
<options>
<ROM_WerewolfNewBlood>15</ROM_WerewolfNewBlood>
<ROM_WolfHandler>60</ROM_WolfHandler>
<ROM_Werewolf>100</ROM_Werewolf>
<ROM_WerewolfFang>60</ROM_WerewolfFang>
<ROM_WerewolfAlpha>5</ROM_WerewolfAlpha>
</options>
</li>
<li>
<!-- Normal, standard mix -->
<kindDef>Peaceful</kindDef>
<options>
<ROM_WerewolfNewBlood>15</ROM_WerewolfNewBlood>
<ROM_WolfHandler>20</ROM_WolfHandler>
<ROM_Werewolf>50</ROM_Werewolf>
<ROM_WerewolfFang>20</ROM_WerewolfFang>
<ROM_WerewolfAlpha>5</ROM_WerewolfAlpha>
<Tribal_Archer>80</Tribal_Archer>
<Tribal_Warrior>10</Tribal_Warrior>
</options>
</li>
<li>
<!-- Base defense -->
<kindDef>Settlement</kindDef>
<options>
<ROM_WerewolfStraggler>15</ROM_WerewolfStraggler>
<ROM_WerewolfNewBlood>25</ROM_WerewolfNewBlood>
<ROM_WolfHandler>35</ROM_WolfHandler>
<ROM_Werewolf>50</ROM_Werewolf>
<ROM_WerewolfFang>100</ROM_WerewolfFang>
<ROM_WerewolfAlpha>1</ROM_WerewolfAlpha>
</options>
</li>
</pawnGroupMakers>
<settlementTexturePath>World/WorldObjects/DefaultSettlement</settlementTexturePath>
</FactionDef>
</Defs>
19 changes: 19 additions & 0 deletions 1.4/Defs/GameConditionDefs/MoonCycle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<GameConditionDef>
<defName>ROM_MoonCycle</defName>
<conditionClass>Werewolf.GameCondition_MoonCycle</conditionClass>
<label>moon cycle</label>
<description>Moon cycle affecting werewolves.</description>
<canBePermanent>true</canBePermanent>
</GameConditionDef>

<GameConditionDef>
<defName>ROM_FullMoon</defName>
<conditionClass>Werewolf.GameCondition_FullMoon</conditionClass>
<label>full moon</label>
<description>A full moon is lighting up the sky.</description>
<endMessage>The full moon is ending.</endMessage>
</GameConditionDef>

</Defs>
8 changes: 8 additions & 0 deletions 1.4/Defs/JobDefs/Werewolf_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<JobDef>
<defName>ROM_ApplySilverTreatment</defName>
<driverClass>Werewolf.JobDriver_ApplySilverTreatment</driverClass>
<reportString>applying silver treatment.</reportString>
</JobDef>
</Defs>
34 changes: 34 additions & 0 deletions 1.4/Defs/MentalStateDefs/Werewolf_MentalStates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<MentalStateDef Abstract="True" Name="ROMWW_BaseMentalState">
<minTicksBeforeRecovery>10000</minTicksBeforeRecovery>
<recoveryMtbDays>0.3</recoveryMtbDays>
</MentalStateDef>
<!-- Mental breaks: extreme -->
<MentalBreakDef>
<defName>ROM_WerewolfFury</defName>
<mentalState>ROM_WerewolfFury</mentalState>
<baseCommonality>0.00001</baseCommonality>
<intensity>Extreme</intensity>
</MentalBreakDef>
<MentalStateDef ParentName="ROMWW_BaseMentalState">
<defName>ROM_WerewolfFury</defName>
<stateClass>Werewolf.MentalState_WerewolfFury</stateClass>
<label>werewolf fury</label>
<category>Aggro</category>
<moodRecoveryThought>Catharsis</moodRecoveryThought>
<blockNormalThoughts>true</blockNormalThoughts>
<nameColor>(0.9,0.2,0.5)</nameColor>
<beginLetterLabel>werewolf fury</beginLetterLabel>
<beginLetter>{0} has become a maddened werewolf!</beginLetter>
<beginLetterDef>ThreatBig</beginLetterDef>
<minTicksBeforeRecovery>10000</minTicksBeforeRecovery>
<recoveryMtbDays>0.3</recoveryMtbDays>
<maxTicksBeforeRecovery>60000</maxTicksBeforeRecovery>
<recoveryMessage>{0}'s fury has come to an end.</recoveryMessage>
<baseInspectLine>Mental state: Berserk</baseInspectLine>
<stateEffecter>Berserk</stateEffecter>
<tale>MentalStateBerserk</tale>
<recoverFromSleep>true</recoverFromSleep>
</MentalStateDef>
</Defs>
Loading

0 comments on commit 589d270

Please sign in to comment.