Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Changed recipe, bulk and mass of Phosphate ammo #1218

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
322 changes: 161 additions & 161 deletions Patches/Vanilla Weapons Expanded/Ammo/FireExtinguisher.xml
Original file line number Diff line number Diff line change
@@ -1,162 +1,162 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Vanilla Weapons Expanded</li>
</mods>

<match Class="PatchOperationSequence">
<operations>

<!-- === Thing Category & Ammo Def === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>

<value>
<ThingCategoryDef>
<defName>AmmoVWEExtinguisher</defName>
<label>flame suppressant</label>
<parent>AmmoAdvanced</parent>
<iconPath>UI/Icons/ThingCategories/CaliberFuel</iconPath>
</ThingCategoryDef>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs</xpath>

<value>
<CombatExtended.AmmoSetDef>
<defName>AmmoSet_VWE_Extinguisher</defName>
<label>extinguisher fuel</label>
<ammoTypes>
<Ammo_VWE_Extinguisher>Bullet_VWE_Extinguisher</Ammo_VWE_Extinguisher>
</ammoTypes>
</CombatExtended.AmmoSetDef>
</value>
</li>

<!-- === Ammo === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>

<value>
<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerSmallAmmoBase">
<defName>Ammo_VWE_Extinguisher</defName>
<label>Flame Suppressant</label>
<description>Flame suppressant used by the Fire Extinguisher</description>
<graphicData>
<texPath>Things/Ammo/FuelCell/Foam</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<MarketValue>0.50</MarketValue>
<MaxHitPoints>70</MaxHitPoints>
<Flammability>1.0</Flammability>
<Mass>0.05</Mass>
<Bulk>0.1</Bulk>
</statBases>
<tradeTags>
<li>CE_AutoEnableTrade</li>
<li>CE_AutoEnableCrafting_DrugLab</li>
</tradeTags>
<thingCategories>
<li>AmmoVWEExtinguisher</li>
</thingCategories>
<stackLimit>400</stackLimit>
<ammoClass>FoamFuel</ammoClass>
<generateAllowChance>0</generateAllowChance>
</ThingDef>
</value>
</li>

<!-- === Projectile === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>

<value>
<ThingDef Class="CombatExtended.AmmoDef" ParentName="BaseBullet">
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<defName>Bullet_VWE_Extinguisher</defName>
<label>flame suppressant</label>
<graphicData>
<texPath>Things/Projectile/Proj_FireExtinguisher/Proj_FireExtinguisherA</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>VWE_Extinguish</damageDef>
<damageAmountBase>50</damageAmountBase>
<explosionRadius>1</explosionRadius>
<preExplosionSpawnThingDef>Filth_FireFoam</preExplosionSpawnThingDef>
<preExplosionSpawnChance>1</preExplosionSpawnChance>
<soundExplode>VWE_Explosion_FireExtinguisher</soundExplode>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<speed>30</speed>
<flyOverhead>false</flyOverhead>
</projectile>
</ThingDef>
</value>
</li>

<!-- === Recipe === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>

<value>
<RecipeDef Name="ExtinguisherAmmoRecipeBase" ParentName="AmmoRecipeBase" Abstract="true">
<workSpeedStat>DrugSynthesisSpeed</workSpeedStat>
<effectWorking>Cook</effectWorking>
<soundWorking>Recipe_CookMeal</soundWorking>
<workSkill>Intellectual</workSkill>
</RecipeDef>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs</xpath>

<value>
<RecipeDef ParentName="ExtinguisherAmmoRecipeBase">
<defName>MakeAmmo_VWE_Extinguisher</defName>
<label>make phosphate x400</label>
<description>Craft 400 units of Phosphate.</description>
<jobString>Making Phosphate.</jobString>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Chemfuel</li>
</thingDefs>
</filter>
<count>20</count>
</li>
<li>
<filter>
<categories>
<li>MeatRaw</li>
</categories>
</filter>
<count>20</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Chemfuel</li>
</thingDefs>
<categories>
<li>MeatRaw</li>
</categories>
</fixedIngredientFilter>
<products>
<Ammo_VWE_Extinguisher>500</Ammo_VWE_Extinguisher>
</products>
</RecipeDef>
</value>
</li>
</operations>
</match>
</Operation>

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Vanilla Weapons Expanded</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<!-- === Thing Category & Ammo Def === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<ThingCategoryDef>
<defName>AmmoVWEExtinguisher</defName>
<label>flame suppressant</label>
<parent>AmmoAdvanced</parent>
<iconPath>UI/Icons/ThingCategories/CaliberFuel</iconPath>
</ThingCategoryDef>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<CombatExtended.AmmoSetDef>
<defName>AmmoSet_VWE_Extinguisher</defName>
<label>extinguisher fuel</label>
<ammoTypes>
<Ammo_VWE_Extinguisher>Bullet_VWE_Extinguisher</Ammo_VWE_Extinguisher>
</ammoTypes>
</CombatExtended.AmmoSetDef>
</value>
</li>
<!-- === Ammo === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerSmallAmmoBase">
<defName>Ammo_VWE_Extinguisher</defName>
<label>Flame Suppressant</label>
<description>Flame suppressant used by the Fire Extinguisher</description>
<graphicData>
<texPath>Things/Ammo/FuelCell/Foam</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<MarketValue>0.50</MarketValue>
<MaxHitPoints>70</MaxHitPoints>
<Flammability>1.0</Flammability>
<Mass>0.03</Mass>
<Bulk>0.03</Bulk>
</statBases>
<tradeTags>
<li>CE_AutoEnableTrade</li>
<li>CE_AutoEnableCrafting_DrugLab</li>
</tradeTags>
<thingCategories>
<li>AmmoVWEExtinguisher</li>
</thingCategories>
<stackLimit>500</stackLimit>
<ammoClass>FoamFuel</ammoClass>
<generateAllowChance>0</generateAllowChance>
</ThingDef>
</value>
</li>
<!-- === Projectile === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<ThingDef Class="CombatExtended.AmmoDef" ParentName="BaseBullet">
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<defName>Bullet_VWE_Extinguisher</defName>
<label>flame suppressant</label>
<graphicData>
<texPath>Things/Projectile/Proj_FireExtinguisher/Proj_FireExtinguisherA</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>VWE_Extinguish</damageDef>
<damageAmountBase>50</damageAmountBase>
<explosionRadius>1</explosionRadius>
<preExplosionSpawnThingDef>Filth_FireFoam</preExplosionSpawnThingDef>
<preExplosionSpawnChance>1</preExplosionSpawnChance>
<soundExplode>VWE_Explosion_FireExtinguisher</soundExplode>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<speed>30</speed>
<flyOverhead>false</flyOverhead>
</projectile>
</ThingDef>
</value>
</li>
<!-- === Recipe === -->
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<RecipeDef Name="ExtinguisherAmmoRecipeBase" ParentName="AmmoRecipeBase" Abstract="true">
<workSpeedStat>DrugSynthesisSpeed</workSpeedStat>
<effectWorking>Cook</effectWorking>
<soundWorking>Recipe_CookMeal</soundWorking>
<workSkill>Intellectual</workSkill>
</RecipeDef>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<RecipeDef ParentName="ExtinguisherAmmoRecipeBase">
<defName>MakeAmmo_VWE_Extinguisher</defName>
<label>make phosphate x500</label>
<description>Craft 500 units of Phosphate.</description>
<jobString>Making Phosphate.</jobString>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Chemfuel</li>
</thingDefs>
</filter>
<count>20</count>
</li>
<li>
<filter>
<categories>
<li>MeatRaw</li>
</categories>
</filter>
<count>20</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Chemfuel</li>
</thingDefs>
<categories>
<li>MeatRaw</li>
</categories>
</fixedIngredientFilter>
<products>
<Ammo_VWE_Extinguisher>500</Ammo_VWE_Extinguisher>
</products>
</RecipeDef>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>