Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profaned Patch #3370

Merged
7 changes: 4 additions & 3 deletions About/About.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>

<name>Combat Extended</name>
Expand Down Expand Up @@ -55,7 +55,7 @@
<li>TheKingInYellow.Lope</li>
<li>Ludeon.RimWorld</li>
<li>Ludeon.RimWorld.Royalty</li>
<li>Ludeon.RimWorld.Anomaly</li>
<li>Ludeon.RimWorld.Anomaly</li>
<li>RunneLatki.RabbieRaceMod</li>
<li>HC.GiantRace</li>
<li>neronix17.fr.compilation</li>
Expand Down Expand Up @@ -87,7 +87,8 @@
<li>Argon.VMEu</li>
<li>Bonible.rimsenalfactions</li>
<li>kentington.saveourship2</li>
<li>botchjob.profaned</li>
<li>oskarpotocki.vfe.mechanoid</li>
</loadAfter>

</ModMetaData>
</ModMetaData>
1 change: 1 addition & 0 deletions LoadFolders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
<li IfModActive="JangoDsoul.T45b.PowerArmor">ModPatches/PowerArmour T-45b</li>
<li IfModActive="Pratt.RaW.WWIIWeaponsPackVanilla">ModPatches/Pratt WWII Weapons Pack</li>
<li IfModActive="PrestigePhoenix.maltum">ModPatches/Prestige Specialist Armor</li>
<li IfModActive="botchjob.profaned">ModPatches/Profaned</li>
<li IfModActive="PRF.Materials">ModPatches/Project RimFactory - Materials</li>
<li IfModActive="DimonSever000.ProsthesesPlus13.Specific">ModPatches/Prostheses+</li>
<li IfModActive="bonible.protoswords">ModPatches/Protoswords</li>
Expand Down
104 changes: 104 additions & 0 deletions ModPatches/Profaned/Defs/Profaned/PossessedWeapons_Ammo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<CombatExtended.AmmoCategoryDef>
<defName>Profaned_RotStinkArrow</defName>
<label>rot stink arrow</label>
<labelShort>rot stink</labelShort>
<description>The arrow head is made from steel to enhance armor penetration. Attached is rotting meat to inflict dangerous infection.</description>
</CombatExtended.AmmoCategoryDef>

<!-- Profaned Greatbow Arrow -->
<CombatExtended.AmmoSetDef>
<defName>AmmoSet_ProfanedGreatbowArrow</defName>
<label>great arrows</label>
<ammoTypes>
<Ammo_GreatArrow_Stone>Projectile_GreatArrow_Stone</Ammo_GreatArrow_Stone>
<Ammo_GreatArrow_Steel>Projectile_GreatArrow_Steel</Ammo_GreatArrow_Steel>
<Ammo_GreatArrow_Plasteel>Projectile_GreatArrow_Plasteel</Ammo_GreatArrow_Plasteel>
<Ammo_GreatArrow_Venom>Projectile_GreatArrow_Venom</Ammo_GreatArrow_Venom>
<Ammo_GreatArrow_Flame>Projectile_GreatArrow_Flame</Ammo_GreatArrow_Flame>
<Ammo_ProfanedGreatbowArrow>Projectile_ProfanedGreatbowArrow</Ammo_ProfanedGreatbowArrow>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoGreatArrowBase">
<defName>Ammo_ProfanedGreatbowArrow</defName>
<label>great arrow (rot stink)</label>
<graphicData>
<texPath>Things/Ammo/Neolithic/Arrow/Venom</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<Mass>0.045</Mass>
<MarketValue>0.26</MarketValue>
</statBases>
<ammoClass>Profaned_RotStinkArrow</ammoClass>
<tradeTags>
<li>CE_AutoEnableCrafting_CraftingSpot</li>
</tradeTags>
</ThingDef>

<ThingDef ParentName="BaseGreatArrowProjectile">
<defName>Projectile_ProfanedGreatbowArrow</defName>
<label>greatbow arrow</label>
<graphicData>
<texPath>Things/Projectiles/ProfanedGreatbowArrow</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<speed>26</speed>
<damageDef>BotchJob_RotArrow</damageDef>
<damageAmountBase>12</damageAmountBase>
<armorPenetrationBlunt>2.96</armorPenetrationBlunt>
<armorPenetrationSharp>3</armorPenetrationSharp>
</projectile>
</ThingDef>

<RecipeDef ParentName="AmmoRecipeNeolithicBase">
<defName>MakeAmmo_ProfanedGreatbowArrow</defName>
<label>make rot stink arrows x10</label>
<description>Craft 10 rot stink great arrows.</description>
<jobString>Making rot stink great arrows.</jobString>
<workAmount>1600</workAmount>
<ingredients>
<li>
<filter>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</filter>
<count>2</count>
</li>
<li>
<filter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</filter>
<count>2</count>
</li>
<li>
<filter>
<categories>
<li>MeatRaw</li>
</categories>
</filter>
<count>3</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>WoodLog</li>
<li>Steel</li>
</thingDefs>
<categories>
<li>MeatRaw</li>
</categories>
</fixedIngredientFilter>
<products>
<Ammo_ProfanedGreatbowArrow>10</Ammo_ProfanedGreatbowArrow>
</products>
</RecipeDef>

</Defs>
36 changes: 36 additions & 0 deletions ModPatches/Profaned/Defs/Profaned/Profaned_CE_Projectiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<ThingDef ParentName="BaseBulletCE">
<defName>Projectile_ProfanedDragon_ToxicBreath_CE</defName>
<label>toxic dragon breath</label>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<!-- Not sure if comps is needed, only kept for the MoteGlow -->
<comps>
<li Class="CompProperties_Glower">
<overlightRadius>1.0</overlightRadius>
<glowRadius>1</glowRadius>
<glowColor>(255, 161, 0, 0.19)</glowColor>
</li>
</comps>
<graphicData>
<texPath>Things/Projectiles/ToxicflameSurge/ToxicflameSurgeA</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>MoteGlow</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<flyOverhead>false</flyOverhead>
<damageDef>BotchJob_DragonToxicBreathDamage</damageDef>
<explosionRadius>3</explosionRadius>
<suppressionFactor>3.0</suppressionFactor>
<dangerFactor>2.0</dangerFactor>
<damageAmountBase>30</damageAmountBase>
<stoppingPower>3.5</stoppingPower>
<ai_IsIncendiary>true</ai_IsIncendiary>
<preExplosionSpawnThingDef>Filth_Ash</preExplosionSpawnThingDef>
<preExplosionSpawnChance>.3</preExplosionSpawnChance>
<speed>30</speed>
</projectile>
</ThingDef>

</Defs>
19 changes: 19 additions & 0 deletions ModPatches/Profaned/Defs/Profaned/Profaned_DamageDef.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<DamageDef ParentName="CutBase">
<defName>BotchJob_CE_RotStabDamage</defName>
<label>rot stab</label>
<additionalHediffs>
<li>
<hediff>LungRotExposure</hediff>
<severityPerDamageDealt>0.005</severityPerDamageDealt>
<victimSeverityScaling>ToxicResistance</victimSeverityScaling>
<inverseStatScaling>true</inverseStatScaling>
<victimSeverityScalingByInvBodySize>true</victimSeverityScalingByInvBodySize>
</li>
</additionalHediffs>
<applyAdditionalHediffsIfHuntingForFood>false</applyAdditionalHediffsIfHuntingForFood>
</DamageDef>

</Defs>
18 changes: 18 additions & 0 deletions ModPatches/Profaned/Defs/Profaned/Profaned_ManueverDef.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<ManeuverDef>
<defName>BotchJob_CE_RotStabManeuver</defName>
<requiredCapacity>BotchJob_CE_RotStab</requiredCapacity>
<verb>
<verbClass>Verb_MeleeAttackDamage</verbClass>
<meleeDamageDef>BotchJob_CE_RotStabDamage</meleeDamageDef>
</verb>
<logEntryDef>MeleeAttack</logEntryDef>
<combatLogRulesHit>Maneuver_Slash_MeleeHit</combatLogRulesHit>
<combatLogRulesDeflect>Maneuver_Slash_MeleeDeflect</combatLogRulesDeflect>
<combatLogRulesMiss>Maneuver_Slash_MeleeMiss</combatLogRulesMiss>
<combatLogRulesDodge>Maneuver_Slash_MeleeDodge</combatLogRulesDodge>
</ManeuverDef>

</Defs>
141 changes: 141 additions & 0 deletions ModPatches/Profaned/Defs/Profaned/Profaned_PawnKindDef.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<PawnKindDef ParentName="BotchJob_ProfanedPawnKindBase">
<defName>BotchJob_ProfanedDrudge_Ranged</defName>
<label>profaned drudge</label>
<backstoryFilters>
<li>
<categories>
<li>Tribal</li>
</categories>
</li>
</backstoryFilters>
<combatPower>50</combatPower>
<isFighter>true</isFighter>
<gearHealthRange>
<min>0.2</min>
<max>1.1</max>
</gearHealthRange>
<apparelTags>
<li>BotchJob_TatteredUndershirt</li>
<li>BotchJob_TatteredCowl</li>
<li>BotchJob_RaggedLegwraps</li>
<li>BotchJob_ProfanedApparel</li>
</apparelTags>
<apparelMoney>60~300</apparelMoney>
<apparelRequired>
<li>CE_Apparel_TribalBackpack</li>
</apparelRequired>
<weaponMoney>45~300</weaponMoney>
<weaponTags>
<li>BotchJob_WeatheredShortbow</li>
</weaponTags>
<techHediffsMoney>
<min>50</min>
<max>50</max>
</techHediffsMoney>
<techHediffsTags>
<li>Poor</li>
</techHediffsTags>
<techHediffsChance>0.15</techHediffsChance>
<initialWillRange>1~2</initialWillRange>
<initialResistanceRange>3~8</initialResistanceRange>
<modExtensions>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>15</min>
<max>30</max>
</primaryMagazineCount>
<forcedSidearm>
<sidearmMoney>
<min>150</min>
<max>350</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Tribal</li>
</weaponTags>
</forcedSidearm>
</li>
</modExtensions>
</PawnKindDef>

<PawnKindDef ParentName="BotchJob_ProfanedPawnKindBase">
<defName>BotchJob_ScourgeLord_Ranged</defName>
<label>scourge lord</label>
<combatPower>200</combatPower>
<isFighter>true</isFighter>
<itemQuality>Masterwork</itemQuality>
<minGenerationAge>50</minGenerationAge>
<apparelTags>
<li>BotchJob_TatteredUndershirt</li>
<li>BotchJob_RaggedLegwraps</li>
<li>BotchJob_ProfanedApparel</li>
</apparelTags>
<apparelMoney>3000~9999</apparelMoney>
<apparelRequired>
<li>CE_Apparel_TribalBackpack</li>
</apparelRequired>
<weaponTags>
<li>BotchJob_SpectralGreatbow</li>
</weaponTags>
<weaponMoney>1000~5000</weaponMoney>
<initialWillRange>4~5</initialWillRange>
<initialResistanceRange>25~30</initialResistanceRange>
<skills>
<li>
<skill>Melee</skill>
<range>8~18</range>
</li>
<li>
<skill>Shooting</skill>
<range>8~18</range>
</li>
</skills>
<specificApparelRequirements>
<li>
<bodyPartGroup>UpperHead</bodyPartGroup>
<requiredTag>BotchJob_BoneCrown</requiredTag>
<color>(51, 51, 51)</color>
</li>
<li>
<bodyPartGroup>Torso</bodyPartGroup>
<requiredTag>BotchJob_ScourgeknightArmor</requiredTag>
<color>(51, 51, 51)</color>
</li>
<li>
<bodyPartGroup>Legs</bodyPartGroup>
<requiredTag>BotchJob_RaggedLegwraps</requiredTag>
</li>
</specificApparelRequirements>
<requiredWorkTags>
<li>Violent</li>
</requiredWorkTags>
<inventoryOptions>
<subOptionsChooseOne>
<li>
<thingDef>BotchJob_SoulGem</thingDef>
<countRange>1~3</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
<modExtensions>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>15</min>
<max>30</max>
</primaryMagazineCount>
<forcedSidearm>
<sidearmMoney>
<min>150</min>
<max>350</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Tribal</li>
</weaponTags>
</forcedSidearm>
</li>
</modExtensions>
</PawnKindDef>

</Defs>
30 changes: 30 additions & 0 deletions ModPatches/Profaned/Defs/Profaned/Profaned_ToolCapacityDef.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<ToolCapacityDef>
<defName>BotchJob_CE_RotStab</defName>
<label>rot stab</label>
</ToolCapacityDef>

<SoundDef>
<defName>BotchJob_CE_ProfanedStaffCast</defName>
<context>MapOnly</context>
<maxVoices>2</maxVoices>
<sustain>True</sustain>
<priorityMode>PrioritizeNearest</priorityMode>
<subSounds>
<li>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>Misc/BotchJob_ProfanedStaffCast</clipPath>
</li>
</grains>
<volumeRange>30~30</volumeRange>
<pitchRange>0.95~1.05</pitchRange>
<distRange>0~70</distRange>
<sustainLoop>False</sustainLoop>
</li>
</subSounds>
</SoundDef>

</Defs>
Loading
Loading