-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
426 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Defs> | ||
|
||
<ThingCategoryDef> | ||
<defName>Ammo_GolfBall</defName> | ||
<label>Golf Balls</label> | ||
<parent>Ammo</parent> | ||
<iconPath>Things/Ammo/Ammo_GolfBall</iconPath> | ||
</ThingCategoryDef> | ||
|
||
<!-- ==================== AmmoSet ========================== --> | ||
|
||
<CombatExtended.AmmoSetDef> | ||
<defName>AmmoSet_GolfBalls</defName> | ||
<label>golf balls</label> | ||
<ammoTypes> | ||
<Ammo_GolfBall>Projectile_GolfBall</Ammo_GolfBall> | ||
</ammoTypes> | ||
</CombatExtended.AmmoSetDef> | ||
|
||
<!-- ==================== Ammo ========================== --> | ||
|
||
<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerSmallAmmoBase"> | ||
<defName>Ammo_GolfBall</defName> | ||
<label>golf balls</label> | ||
<description>A package containing golf balls.\n\nSimple, but effective.</description> | ||
<statBases> | ||
<Mass>0.015</Mass> | ||
<Bulk>0.01</Bulk> | ||
<MarketValue>0.25</MarketValue> | ||
</statBases> | ||
<tradeTags> | ||
<li>CE_AutoEnableTrade</li> | ||
<!--<li>CE_AutoEnableCrafting_FabricationBench</li>--> | ||
</tradeTags> | ||
<thingCategories> | ||
<li>Ammo_GolfBall</li> | ||
</thingCategories> | ||
<graphicData> | ||
<texPath>Things/Ammo/Ammo_GolfBall</texPath> | ||
<graphicClass>Graphic_Single</graphicClass> | ||
</graphicData> | ||
<ammoClass>FullMetalJacket</ammoClass> | ||
</ThingDef> | ||
|
||
<!-- Projectile is already defined elsewhere --> | ||
|
||
<!-- Recipes --> | ||
|
||
<RecipeDef ParentName="ChargeAmmoRecipeBase"> | ||
<defName>MakeAmmo_GolfBall</defName> | ||
<label>make golf ball x50</label> | ||
<description>Craft a box of 50 golf balls.</description> | ||
<jobString>Making golf balls.</jobString> | ||
<workAmount>600</workAmount> | ||
<recipeUsers> | ||
<li>CraftingSpot</li> | ||
<li>ElectricSmithy</li> | ||
<li>FueledSmithy</li> | ||
</recipeUsers> | ||
<ingredients> | ||
<li> | ||
<filter> | ||
<thingDefs> | ||
<li>Steel</li> | ||
</thingDefs> | ||
</filter> | ||
<count>5</count> | ||
</li> | ||
</ingredients> | ||
<fixedIngredientFilter> | ||
<thingDefs> | ||
<li>Steel</li> | ||
</thingDefs> | ||
</fixedIngredientFilter> | ||
<products> | ||
<Ammo_GolfBall>50</Ammo_GolfBall> | ||
</products> | ||
</RecipeDef> | ||
|
||
</Defs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<Patch> | ||
|
||
<!--MELEE--> | ||
|
||
<Operation Class="PatchOperationReplace"> | ||
<xpath>Defs/ThingDef[defName="MeleeWeapon_GolfClub"]/tools</xpath> | ||
<value> | ||
<tools> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>shaft</label> | ||
<capacities> | ||
<li>Blunt</li> | ||
</capacities> | ||
<power>2</power> | ||
<chanceFactor>0.25</chanceFactor> | ||
<cooldownTime>2</cooldownTime> | ||
<armorPenetrationBlunt>0.125</armorPenetrationBlunt> | ||
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup> | ||
</li> | ||
<li Class="CombatExtended.ToolCE"> | ||
<label>head</label> | ||
<capacities> | ||
<li>Blunt</li> | ||
</capacities> | ||
<power>6.5</power> | ||
<cooldownTime>2.5</cooldownTime> | ||
<armorPenetrationBlunt>0.25</armorPenetrationBlunt> | ||
<linkedBodyPartsGroup>Head</linkedBodyPartsGroup> | ||
</li> | ||
</tools> | ||
</value> | ||
</Operation> | ||
|
||
<!--RANGED--> | ||
|
||
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible"> | ||
<defName>GolfClub_Ranged</defName> | ||
<statBases> | ||
<Mass>2</Mass> | ||
<AccuracyTouch>0.15</AccuracyTouch> | ||
<AccuracyShort>0.25</AccuracyShort> | ||
<AccuracyMedium>0.55</AccuracyMedium> | ||
<AccuracyLong>0.60</AccuracyLong> | ||
<RangedWeapon_Cooldown>3</RangedWeapon_Cooldown> | ||
<SightsEfficiency>0.3</SightsEfficiency> | ||
<ShotSpread>0.5</ShotSpread> | ||
<SwayFactor>2</SwayFactor> | ||
<Bulk>3</Bulk> | ||
<!-- <ToughnessRating>2.5</ToughnessRating> --> <!-- Base toughness rating of a weapon --> | ||
<WorkToMake>900</WorkToMake> | ||
</statBases> | ||
<costStuffCount>125</costStuffCount> | ||
<stuffCategories> | ||
<li>Metallic</li> | ||
<li>Woody</li> | ||
</stuffCategories> | ||
<Properties> | ||
<recoilAmount>3</recoilAmount> | ||
<verbClass>CombatExtended.Verb_ShootCE</verbClass> | ||
<hasStandardCommand>true</hasStandardCommand> | ||
<defaultProjectile>Projectile_GolfBall</defaultProjectile> | ||
<warmupTime>2</warmupTime> | ||
<range>25</range> | ||
<soundCast>ThrowGrenade</soundCast> | ||
<soundCastTail>GunTail_Light</soundCastTail> | ||
<muzzleFlashScale>0</muzzleFlashScale> | ||
</Properties> | ||
<AmmoUser> | ||
<magazineSize>1</magazineSize> | ||
<reloadTime>3</reloadTime> | ||
<ammoSet>AmmoSet_GolfBall</ammoSet> | ||
</AmmoUser> | ||
<FireModes> | ||
<aiUseBurstMode>FALSE</aiUseBurstMode> | ||
<aiAimMode>Snapshot</aiAimMode> | ||
</FireModes> | ||
<weaponTags> | ||
<li>SimpleGun</li> | ||
<li>CE_AI_BROOM</li> | ||
</weaponTags> | ||
</Operation> | ||
|
||
</Patch> |
Oops, something went wrong.