Skip to content

Commit

Permalink
Merge pull request #2854 from CombatExtended-Continued/Misc-Fixes
Browse files Browse the repository at this point in the history
Various XML Fixes
  • Loading branch information
N7Huntsman authored Nov 2, 2023
2 parents b7a6941 + 9d0ec58 commit 8940202
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Defs/Ammo/Advanced/164x284mmDemoShell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ammoTypes>
<Ammo_164x284mmDemo>Bullet_164x284mmDemo</Ammo_164x284mmDemo>
</ammoTypes>
<similarTo>AmmoSet_MechShell</similarTo>
<similarTo>AmmoSet_MechShell_Demo</similarTo>
</CombatExtended.AmmoSetDef>

<!-- ==================== Ammo ========================== -->
Expand Down
87 changes: 84 additions & 3 deletions Defs/Ammo/Generic/Mech.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
</ammoTypes>
</CombatExtended.AmmoSetDef>

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_MechShell_Demo</defName>
<label>mech shell</label>
<ammoTypes>
<Ammo_MechShell_Demo>Bullet_164x284mmDemo</Ammo_MechShell_Demo>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<!-- ============= Ammo ============= -->

<!-- Mech Charged -->
Expand Down Expand Up @@ -87,7 +95,7 @@

<ThingDef Class="CombatExtended.AmmoDef" ParentName="MechShellAmmo">
<defName>Ammo_MechShell</defName>
<label>Mechanoid shell</label>
<label>mechanoid shell</label>
<graphicData>
<texPath>Things/Ammo/FuelCell/Large</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
Expand All @@ -107,6 +115,32 @@
</comps>
</ThingDef>

<ThingDef Class="CombatExtended.AmmoDef" ParentName="164x284mmDemoBase">
<defName>Ammo_MechShell_Demo</defName>
<label>mech shell (demo)</label>
<graphicData>
<texPath>Things/Ammo/FuelCell/Large</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<MarketValue>10.97</MarketValue>
</statBases>
<ammoClass>Demolition</ammoClass>
<detonateProjectile>Bullet_164x284mmDemo</detonateProjectile>
<comps>
<li Class="CompProperties_Explosive">
<explosiveRadius>1</explosiveRadius>
<damageAmountBase>18</damageAmountBase>
<explosiveDamageType>Thermobaric</explosiveDamageType>
<explosiveExpandPerStackcount>0.10</explosiveExpandPerStackcount>
<startWickHitPointsPercent>0.33</startWickHitPointsPercent>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<explodeOnKilled>True</explodeOnKilled>
<wickTicks>60~300</wickTicks>
</li>
</comps>
</ThingDef>

<!-- ==================== Recipes ========================== -->

<RecipeDef ParentName="ChargeAmmoRecipeBase" MayRequire="Ludeon.RimWorld.Biotech">
Expand Down Expand Up @@ -148,7 +182,7 @@
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_12x64mmCharged>200</Ammo_12x64mmCharged>
<Ammo_MechCharged>200</Ammo_MechCharged>
</products>
<skillRequirements>
<Crafting>8</Crafting>
Expand Down Expand Up @@ -195,7 +229,54 @@
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_80x256mmFuel_Incendiary>5</Ammo_80x256mmFuel_Incendiary>
<Ammo_MechShell>5</Ammo_MechShell>
</products>
<skillRequirements>
<Crafting>8</Crafting>
</skillRequirements>
<workAmount>3730</workAmount><!-- 10% more work -->
</RecipeDef>

<RecipeDef ParentName="ChargeAmmoRecipeBase" MayRequire="Ludeon.RimWorld.Biotech">
<defName>MakeAmmo_MechShell_Demo</defName>
<label>make Mech Shell (Demo) x5</label>
<description>Craft 5 Mech Shells (Demo).</description>
<jobString>Making Mech Shells (Demo).</jobString>
<ingredients>
<li>
<filter>
<thingDefs>
<li>FSX</li>
</thingDefs>
</filter>
<count>3</count>
</li>
<li>
<filter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</filter>
<count>10</count>
</li>
<li>
<filter>
<thingDefs>
<li>ComponentIndustrial</li>
</thingDefs>
</filter>
<count>2</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>FSX</li>
<li>Steel</li>
<li>ComponentIndustrial</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_MechShell_Demo>5</Ammo_MechShell_Demo>
</products>
<skillRequirements>
<Crafting>8</Crafting>
Expand Down
10 changes: 0 additions & 10 deletions Defs/Ammo/Lasers/BaseLaserProjectiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@
<isInstant>true</isInstant>
<damageDef>Bullet</damageDef>
</projectile>
<modExtensions>
<li Class="ProjectileImpactFX.EffectProjectileExtension">
<explosionMote>true</explosionMote>
<explosionMoteSize>0.25</explosionMoteSize>
<ImpactMoteDef>Mote_YellowSparkFlash</ImpactMoteDef>
<ImpactMoteSize>1</ImpactMoteSize>
<ImpactGlowMoteDef>Mote_ExplosionFlash</ImpactGlowMoteDef>
<ImpactGlowMoteSize>2.5</ImpactGlowMoteSize>
</li>
</modExtensions>
</ThingDef>

<!-- ================== White Laser ================== -->
Expand Down
1 change: 1 addition & 0 deletions Defs/HediffDefs/Hediffs_CE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<description>Wearing a gas mask</description>
<makesSickThought>false</makesSickThought>
<scenarioCanAdd>false</scenarioCanAdd>
<everCurableByItem>false</everCurableByItem>
<stages>
<li>
<label>wearing</label>
Expand Down
10 changes: 0 additions & 10 deletions Patches/Halo - UNSC Armoury/Weapons_Laser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,6 @@
<armorPenetrationBlunt>0.001</armorPenetrationBlunt>
</projectile>
<seam>2</seam>
<modExtensions>
<li Class="ProjectileImpactFX.EffectProjectileExtension">
<explosionMote>true</explosionMote>
<explosionMoteSize>1</explosionMoteSize>
<ImpactMoteDef>Mote_SparkFlash</ImpactMoteDef>
<ImpactMoteSize>1</ImpactMoteSize>
<ImpactGlowMoteDef>Mote_ExplosionFlash</ImpactGlowMoteDef>
<ImpactGlowMoteSize>2.5</ImpactGlowMoteSize>
</li>
</modExtensions>
</ThingDef>

<!-- === Spartan Laser Battery === -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
<ammoTypes>
<Ammo_FletcherDart>Bullet_FletchlingDart</Ammo_FletcherDart>
</ammoTypes>
<similarTo>AmmoSet_ChargedHeavy</similarTo>
</CombatExtended.AmmoSetDef>

<ThingDef ParentName="BaseBulletCE">
Expand Down
8 changes: 0 additions & 8 deletions Patches/Warcaskets - Adeptus Astartes/Ammo/MeltaGun.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@
<armorPenetrationSharp>500</armorPenetrationSharp>
<armorPenetrationBlunt>0.001</armorPenetrationBlunt><!-- The overall pressure exerted by a laser beam striking something is, unsuprisingly, negligable. -->
</projectile>
<modExtensions>
<li Class="ProjectileImpactFX.EffectProjectileExtension">
<explosionMote>true</explosionMote>
<explosionMoteSize>0.5</explosionMoteSize>
<ImpactMoteDef>Mote_MeltaFlash</ImpactMoteDef>
<ImpactMoteSize>2.5</ImpactMoteSize>
</li>
</modExtensions>
</ThingDef>

</value>
Expand Down

0 comments on commit 8940202

Please sign in to comment.