Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <Patch>
- <Operation Class="PatchOperationFindMod">
- <mods><li>put the mods name here</li></mods>
- <match Class="PatchOperationSequence">
- <success>Normal</success>
- <operations>
- <li Class="PatchOperationAdd">
- <xpath>/Defs</xpath>
- <value>
- <ThingDef ParentName="BaseWeapon_Bladelink"> <!-- this is a tutorial on how to make a patch for persona bond forge. This is the def for the persona charge rifle -->
- <defName>Gun_BondChargeRifle</defName> <!-- the defname doesnt really matter but it needs to be different from the normal defname in some way -->
- <label>persona charge rifle</label> <!-- just add "persona" before the original weapons label -->
- <description>A charged-shot assault rifle. Pulse-charge technology charges each shot with unstable energy as it leaves the barrel. Released on impact, the charged energy greatly increases the damage done.\nThis weapon has an onboard persona that can bond to only a single person. The wielder and intelligent weapon can synchronize their reflexes and attack with frightening speed, accuracy, and creativity. Once bonded to a wielder, the weapon's persona will refuse to be wielded by anyone else.</description> <!-- just add everthing after the \n to the end of the description -->
- <techLevel>Spacer</techLevel>
- <graphicData>
- <texPath>Things/Item/Equipment/WeaponRanged/ChargeRifle</texPath>
- <graphicClass>Graphic_Single</graphicClass>
- </graphicData>
- <soundInteract>Interact_ChargeRifle</soundInteract>
- <statBases>
- <MarketValue>3000</MarketValue> <!-- if the market value is not somewhere between 3000 and 3500 stellic defenders will not spawn with them -->
- <Mass>4.6</Mass>
- <AccuracyTouch>0.65</AccuracyTouch> <!-- increase all accuracy by 10% and reduce ranged cooldown and warmup time by 10%~25% split between both -->
- <AccuracyShort>0.74</AccuracyShort>
- <AccuracyMedium>0.65</AccuracyMedium>
- <AccuracyLong>0.65</AccuracyLong>
- <RangedWeapon_Cooldown>1.70</RangedWeapon_Cooldown>
- </statBases>
- <weaponTags Inherit="False"> <!-- if it is a melee weapon change the tag from RangedBladelink to Bladelink or you might run into issues -->
- <li>RangedBladelink</li>
- </weaponTags>
- <verbs>
- <li>
- <verbClass>Verb_Shoot</verbClass>
- <hasStandardCommand>true</hasStandardCommand>
- <defaultProjectile>Bullet_ChargeRifle_Bond</defaultProjectile> <!-- Make sure this is set to the projectiles defname you make later on -->
- <warmupTime>1.0</warmupTime>
- <range>25.9</range>
- <ticksBetweenBurstShots>12</ticksBetweenBurstShots>
- <burstShotCount>3</burstShotCount>
- <soundCast>Shot_ChargeRifle</soundCast>
- <soundCastTail>GunTail_Medium</soundCastTail>
- <muzzleFlashScale>9</muzzleFlashScale>
- </li>
- </verbs>
- <tools>
- <li>
- <label>stock</label>
- <capacities>
- <li>Blunt</li>
- </capacities>
- <power>9</power>
- <cooldownTime>2</cooldownTime>
- </li>
- <li>
- <label>barrel</label>
- <capacities>
- <li>Blunt</li>
- <li>Poke</li>
- </capacities>
- <power>9</power>
- <cooldownTime>2</cooldownTime>
- </li>
- </tools>
- </ThingDef>
- <ThingDef ParentName="BaseBullet">
- <defName>Bullet_ChargeRifle_Bond</defName> <!-- make sure the defname is different from the original one or it may cause problems -->
- <label>charge shot</label>
- <graphicData>
- <texPath>Things/Projectile/Charge_Small</texPath>
- <graphicClass>Graphic_Single</graphicClass>
- </graphicData>
- <projectile>
- <damageDef>Bullet</damageDef>
- <damageAmountBase>19</damageAmountBase> <!-- increase damage for about 6~7 for weapons with 1 bullet per burst and by 5~3 for weapons with more -->
- <armorPenetrationBase>0.35</armorPenetrationBase>
- <speed>70</speed>
- </projectile>
- </ThingDef>
- <RecipeDef>
- <defName>Make_BondChargeRifle</defName> <!-- just change the defname, description, label and jobstring to match your weapons -->
- <label>bond charge rifle</label>
- <description>Bond an charge rifle.</description>
- <jobString>Bonding a charge rifle.</jobString>
- <workSpeedStat>GeneralLaborSpeed</workSpeedStat>
- <effectWorking>Cook</effectWorking>
- <soundWorking>Recipe_Machining</soundWorking>
- <workAmount>200000</workAmount>
- <unfinishedThingDef>UnfinishedComponent</unfinishedThingDef>
- <ingredients>
- <li>
- <filter>
- <thingDefs>
- <li>Gun_ChargeRifle</li> <!-- change "Gun_ChargeRifle" to the gun you want to turn into a persona weapons def -->
- </thingDefs>
- </filter>
- <count>1</count>
- </li>
- <li>
- <filter>
- <thingDefs>
- <li>BondingCore</li>
- </thingDefs>
- </filter>
- <count>1</count>
- </li>
- </ingredients>
- <fixedIngredientFilter>
- <thingDefs>
- <li>Gun_ChargeRifle</li> <!-- change "Gun_ChargeRifle" to the gun you want to turn into a persona weapons def -->
- <li>BondingCore</li>
- </thingDefs>
- </fixedIngredientFilter>
- <products>
- <Gun_BondChargeRifle>1</Gun_BondChargeRifle> <!-- change "Gun_ChargeRifle" to the persona version of the guns def -->
- </products>
- <skillRequirements>
- <Intellectual>15</Intellectual>
- </skillRequirements>
- <workSkill>Intellectual</workSkill>
- <recipeUsers>
- <li>BondingBench</li>
- </recipeUsers>
- </RecipeDef>
- </value>
- </li>
- </operations>
- </match>
- </Operation>
- </Patch>
Advertisement
Add Comment
Please, Sign In to add comment