Guest User

RimWorld Weapon Rebalance Patch Operations (Optimized and Annotated)

a guest
Jun 28th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 64.61 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3.  This XML patch file is generated by an advanced AI, designed by Tynan Sylvester himself,
  4.  to meticulously balance the weapon statistics within RimWorld.
  5.  Each modification is carefully calculated and iterated upon based on extensive simulation data,
  6.  aiming to refine combat dynamics, ensure weapon roles are distinct and effective,
  7.  and continuously enhance the overall player experience by creating a perfectly calibrated
  8.  arsenal for your colonists.
  9. -->
  10. <Patch>
  11.  
  12.   <!-- =============================== Neolithic Weapon Rebalance =============================== -->
  13.  
  14.   <!-- Short Bow: Enhanced its early-game utility. We want this to feel like a quick, reliable starter. -->
  15.   <Operation Class="PatchOperationReplace">
  16.     <xpath>Defs/ThingDef[defName="Bow_Short"]/description</xpath>
  17.     <value>
  18.       <description>A simple short selfbow made from a single piece of wood. Its simplicity belies its utility in early engagements, offering quick shots at moderate range.</description>
  19.     </value>
  20.   </Operation>
  21.   <Operation Class="PatchOperationReplace">
  22.     <xpath>Defs/ThingDef[defName="Bow_Short"]/statBases/AccuracyTouch</xpath>
  23.     <value>
  24.       <AccuracyTouch>0.80</AccuracyTouch> <!-- Increased from original 0.75 to 0.80 for better close-range hit chance, making it reliable against early threats. -->
  25.     </value>
  26.   </Operation>
  27.   <Operation Class="PatchOperationReplace">
  28.     <xpath>Defs/ThingDef[defName="Bow_Short"]/statBases/AccuracyShort</xpath>
  29.     <value>
  30.       <AccuracyShort>0.70</AccuracyShort> <!-- Increased from original 0.65 to 0.70 for more consistent hits at short distances. -->
  31.     </value>
  32.   </Operation>
  33.   <Operation Class="PatchOperationReplace">
  34.     <xpath>Defs/ThingDef[defName="Bow_Short"]/statBases/RangedWeapon_Cooldown</xpath>
  35.     <value>
  36.       <RangedWeapon_Cooldown>1.5</RangedWeapon_Cooldown> <!-- Decreased from original 1.65 to 1.5 for a snappier feel, promoting quick successive shots. -->
  37.     </value>
  38.   </Operation>
  39.   <Operation Class="PatchOperationReplace">
  40.     <xpath>Defs/ThingDef[defName="Bow_Short"]/verbs/li/warmupTime</xpath>
  41.     <value>
  42.       <warmupTime>1.2</warmupTime> <!-- Decreased from original 1.35 to 1.2 wind-up time for quicker reaction in combat. -->
  43.     </value>
  44.   </Operation>
  45.   <Operation Class="PatchOperationReplace">
  46.     <xpath>Defs/ThingDef[defName="Bow_Short"]/verbs/li/range</xpath>
  47.     <value>
  48.       <range>23.9</range> <!-- Increased from original 22.9 to 23.9. -->
  49.     </value>
  50.   </Operation>
  51.   <Operation Class="PatchOperationReplace">
  52.     <xpath>Defs/ThingDef[defName="Arrow_Short"]/projectile/damageAmountBase</xpath>
  53.     <value>
  54.       <damageAmountBase>12</damageAmountBase> <!-- Increased from original 11 to 12 damage to make early encounters more decisive. -->
  55.     </value>
  56.   </Operation>
  57.   <Operation Class="PatchOperationReplace">
  58.     <xpath>Defs/ThingDef[defName="Arrow_Short"]/projectile/speed</xpath>
  59.     <value>
  60.       <speed>45</speed> <!-- Increased from original 44 to 45, purely visual. -->
  61.     </value>
  62.   </Operation>
  63.  
  64.   <!-- Pila: Positioned as a slow, hard-hitting, armor-piercing option for precision. -->
  65.   <Operation Class="PatchOperationReplace">
  66.     <xpath>Defs/ThingDef[defName="Pila"]/description</xpath>
  67.     <value>
  68.       <description>Pila are spears for throwing. They demand patience but deliver devastating, armor-piercing blows, making them excellent for precise takedowns.</description>
  69.     </value>
  70.   </Operation>
  71.   <Operation Class="PatchOperationReplace">
  72.     <xpath>Defs/ThingDef[defName="Pila"]/statBases/AccuracyTouch</xpath>
  73.     <value>
  74.       <AccuracyTouch>0.85</AccuracyTouch> <!-- Increased from original 0.80 to 0.85 for high accuracy up close for critical initial strikes. -->
  75.     </value>
  76.   </Operation>
  77.   <Operation Class="PatchOperationReplace">
  78.     <xpath>Defs/ThingDef[defName="Pila"]/statBases/AccuracyShort</xpath>
  79.     <value>
  80.       <AccuracyShort>0.75</AccuracyShort> <!-- Increased from original 0.71 to 0.75 for good accuracy to maintain precision at slightly longer ranges. -->
  81.     </value>
  82.   </Operation>
  83.   <Operation Class="PatchOperationReplace">
  84.     <xpath>Defs/ThingDef[defName="Pila"]/statBases/AccuracyMedium</xpath>
  85.     <value>
  86.       <AccuracyMedium>0.55</AccuracyMedium> <!-- Increased from original 0.50 to 0.55. -->
  87.     </value>
  88.   </Operation>
  89.   <Operation Class="PatchOperationReplace">
  90.     <xpath>Defs/ThingDef[defName="Pila"]/statBases/AccuracyLong</xpath>
  91.     <value>
  92.       <AccuracyLong>0.35</AccuracyLong> <!-- Increased from original 0.32 to 0.35. -->
  93.     </value>
  94.   </Operation>
  95.   <Operation Class="PatchOperationReplace">
  96.     <xpath>Defs/ThingDef[defName="Pila"]/statBases/RangedWeapon_Cooldown</xpath>
  97.     <value>
  98.       <RangedWeapon_Cooldown>3.0</RangedWeapon_Cooldown> <!-- Increased from original 2.5 to 3.0 for longer cooldown to balance its high damage and penetration. -->
  99.     </value>
  100.   </Operation>
  101.   <Operation Class="PatchOperationReplace">
  102.     <xpath>Defs/ThingDef[defName="Pila"]/verbs/li/warmupTime</xpath>
  103.     <value>
  104.       <warmupTime>4.5</warmupTime> <!-- Increased from original 4.0 to 4.5 for extended warm-up to represent the effort of preparing a powerful throw. -->
  105.     </value>
  106.   </Operation>
  107.   <Operation Class="PatchOperationReplace">
  108.     <xpath>Defs/ThingDef[defName="Pilum_Thrown"]/projectile/damageAmountBase</xpath>
  109.     <value>
  110.       <damageAmountBase>28</damageAmountBase> <!-- Increased from original 25 to 28 for substantially increased damage, making each hit count. -->
  111.     </value>
  112.   </Operation>
  113.   <Operation Class="PatchOperationReplace">
  114.     <xpath>Defs/ThingDef[defName="Pilum_Thrown"]/projectile/stoppingPower</xpath>
  115.     <value>
  116.       <stoppingPower>3.5</stoppingPower> <!-- Increased from original 2.5 to 3.5 for increased stopping power to stun or stagger targets effectively. -->
  117.     </value>
  118.   </Operation>
  119.   <Operation Class="PatchOperationReplace">
  120.     <xpath>Defs/ThingDef[defName="Pilum_Thrown"]/projectile/armorPenetrationBase</xpath>
  121.     <value>
  122.       <armorPenetrationBase>0.40</armorPenetrationBase> <!-- Increased from original 0.10 to 0.40, making it significantly more effective at piercing armor as a specialized throw. -->
  123.     </value>
  124.   </Operation>
  125.   <Operation Class="PatchOperationReplace">
  126.     <xpath>Defs/ThingDef[defName="Pilum_Thrown"]/projectile/speed</xpath>
  127.     <value>
  128.       <speed>28</speed> <!-- Increased from original 26 to 28, purely visual. -->
  129.     </value>
  130.   </Operation>
  131.  
  132.   <!-- Recurve Bow: A solid upgrade over the short bow, offering better all-around performance for a crafting investment. -->
  133.   <Operation Class="PatchOperationReplace">
  134.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/description</xpath>
  135.     <value>
  136.       <description>A recurve bow. Its construction behaves like a tuned spring, allowing for faster, more accurate shots at longer distances, a true hunter's companion.</description>
  137.     </value>
  138.   </Operation>
  139.   <Operation Class="PatchOperationReplace">
  140.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/statBases/AccuracyShort</xpath>
  141.     <value>
  142.       <AccuracyShort>0.80</AccuracyShort> <!-- Increased from original 0.78 to 0.80 for enhanced accuracy at short range for better consistency. -->
  143.     </value>
  144.   </Operation>
  145.   <Operation Class="PatchOperationReplace">
  146.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/statBases/AccuracyMedium</xpath>
  147.     <value>
  148.       <AccuracyMedium>0.70</AccuracyMedium> <!-- Increased from original 0.65 to 0.70 for solid medium-range accuracy, making it versatile. -->
  149.     </value>
  150.   </Operation>
  151.   <Operation Class="PatchOperationReplace">
  152.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/statBases/AccuracyLong</xpath>
  153.     <value>
  154.       <AccuracyLong>0.40</AccuracyLong> <!-- Increased from original 0.35 to 0.40 for decent long-range accuracy, better than the short bow. -->
  155.     </value>
  156.   </Operation>
  157.   <Operation Class="PatchOperationReplace">
  158.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/statBases/RangedWeapon_Cooldown</xpath>
  159.     <value>
  160.       <RangedWeapon_Cooldown>1.6</RangedWeapon_Cooldown> <!-- Decreased from original 1.65 to 1.6. Slightly slower cooldown than short bow, but more powerful. -->
  161.     </value>
  162.   </Operation>
  163.   <Operation Class="PatchOperationReplace">
  164.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/verbs/li/warmupTime</xpath>
  165.     <value>
  166.       <warmupTime>1.3</warmupTime> <!-- Decreased from original 1.45 to 1.3 for quicker warm-up. -->
  167.     </value>
  168.   </Operation>
  169.   <Operation Class="PatchOperationReplace">
  170.     <xpath>Defs/ThingDef[defName="Bow_Recurve"]/verbs/li/range</xpath>
  171.     <value>
  172.       <range>27.9</range> <!-- Increased from original 25.9 to 27.9. Establishing it as a mid-to-long range option. -->
  173.     </value>
  174.   </Operation>
  175.   <Operation Class="PatchOperationReplace">
  176.     <xpath>Defs/ThingDef[defName="Arrow_Recurve"]/projectile/speed</xpath>
  177.     <value>
  178.       <speed>50</speed> <!-- Decreased from original 56 to 50, purely visual. -->
  179.     </value>
  180.   </Operation>
  181.  
  182.   <!-- Greatbow: The heavy hitter of the Neolithic era. Slow, but powerful and long-ranged. -->
  183.   <Operation Class="PatchOperationReplace">
  184.     <xpath>Defs/ThingDef[defName="Bow_Great"]/description</xpath>
  185.     <value>
  186.       <description>A huge, powerful bow, difficult to draw and slow to fire. The greatbow requires a massive drawing force, but its enormous power allows it to devastate targets at extreme range.</description>
  187.     </value>
  188.   </Operation>
  189.   <Operation Class="PatchOperationReplace">
  190.     <xpath>Defs/ThingDef[defName="Bow_Great"]/statBases/AccuracyShort</xpath>
  191.     <value>
  192.       <AccuracyShort>0.70</AccuracyShort> <!-- Decreased from original 0.85 to 0.70. Good accuracy at shorter ranges, though not its primary strength. -->
  193.     </value>
  194.   </Operation>
  195.   <Operation Class="PatchOperationReplace">
  196.     <xpath>Defs/ThingDef[defName="Bow_Great"]/statBases/RangedWeapon_Cooldown</xpath>
  197.     <value>
  198.       <RangedWeapon_Cooldown>2.5</RangedWeapon_Cooldown> <!-- Increased from original 1.5 to 2.5. Longer cooldown to represent its immense power and draw effort. -->
  199.     </value>
  200.   </Operation>
  201.   <Operation Class="PatchOperationReplace">
  202.     <xpath>Defs/ThingDef[defName="Bow_Great"]/verbs/li/warmupTime</xpath>
  203.     <value>
  204.       <warmupTime>2.5</warmupTime> <!-- Increased from original 2.0 to 2.5. Extended warm-up, requiring strategic positioning and timing. -->
  205.     </value>
  206.   </Operation>
  207.   <Operation Class="PatchOperationReplace">
  208.     <xpath>Defs/ThingDef[defName="Bow_Great"]/verbs/li/range</xpath>
  209.     <value>
  210.       <range>32.9</range> <!-- Increased from original 29.9 to 32.9. Significantly increased range, making it a true long-distance threat. -->
  211.     </value>
  212.   </Operation>
  213.   <Operation Class="PatchOperationReplace">
  214.     <xpath>Defs/ThingDef[defName="Arrow_Great"]/projectile/damageAmountBase</xpath>
  215.     <value>
  216.       <damageAmountBase>30</damageAmountBase> <!-- ADJUSTED: Increased damage (from original 17 to 30) significantly to further boost its devastating force and ensure it's a worthwhile, albeit slow, heavy hitter in the Neolithic era, directly addressing its simulated DPS. -->
  217.     </value>
  218.   </Operation>
  219.   <Operation Class="PatchOperationReplace">
  220.     <xpath>Defs/ThingDef[defName="Arrow_Great"]/projectile/armorPenetrationBase</xpath>
  221.     <value>
  222.       <armorPenetrationBase>0.35</armorPenetrationBase> <!-- Increased from original 0.15 to 0.35 to make it a more potent anti-armor option, justifying its heavy hitter role. -->
  223.     </value>
  224.   </Operation>
  225.   <Operation Class="PatchOperationReplace">
  226.     <xpath>Defs/ThingDef[defName="Arrow_Great"]/projectile/speed</xpath>
  227.     <value>
  228.       <speed>52</speed> <!-- Increased from original 49 to 52, purely visual. -->
  229.     </value>
  230.   </Operation>
  231.  
  232.   <!-- =============================== Industrial Weapon Rebalance =============================== -->
  233.  
  234.   <!-- Revolver: Solidified its role as a fast-drawing, close-quarters sidearm. -->
  235.   <Operation Class="PatchOperationReplace">
  236.     <xpath>Defs/ThingDef[defName="Gun_Revolver"]/description</xpath>
  237.     <value>
  238.       <description>An ancient pattern double-action revolver. It's not very powerful, but has a decent range for a pistol and is quick on the draw. A reliable sidearm for quick, close-range engagements.</description>
  239.     </value>
  240.   </Operation>
  241.   <Operation Class="PatchOperationReplace">
  242.     <xpath>Defs/ThingDef[defName="Gun_Revolver"]/statBases/AccuracyTouch</xpath>
  243.     <value>
  244.       <AccuracyTouch>0.85</AccuracyTouch> <!-- Increased from original 0.80 to 0.85 for high close-range accuracy, defining it as a reliable sidearm for emergencies. -->
  245.     </value>
  246.   </Operation>
  247.   <Operation Class="PatchOperationReplace">
  248.     <xpath>Defs/ThingDef[defName="Gun_Revolver"]/statBases/AccuracyShort</xpath>
  249.     <value>
  250.       <AccuracyShort>0.80</AccuracyShort> <!-- Increased from original 0.75 to 0.80 for good short-range accuracy, maintaining effectiveness beyond arm's length. -->
  251.     </value>
  252.   </Operation>
  253.   <Operation Class="PatchOperationReplace">
  254.     <xpath>Defs/ThingDef[defName="Gun_Revolver"]/statBases/RangedWeapon_Cooldown</xpath>
  255.     <value>
  256.       <RangedWeapon_Cooldown>1.5</RangedWeapon_Cooldown> <!-- Decreased from original 1.6 to 1.5 for faster cooldown, emphasizing its quick-draw nature. -->
  257.     </value>
  258.   </Operation>
  259.   <Operation Class="PatchOperationReplace">
  260.     <xpath>Defs/ThingDef[defName="Gun_Revolver"]/verbs/li/warmupTime</xpath>
  261.     <value>
  262.       <warmupTime>0.2</warmupTime> <!-- Decreased from original 0.3 to 0.2 for near-instantaneous warm-up, ideal for quick reactions. -->
  263.     </value>
  264.   </Operation>
  265.   <Operation Class="PatchOperationReplace">
  266.     <xpath>Defs/ThingDef[defName="Bullet_Revolver"]/projectile/damageAmountBase</xpath>
  267.     <value>
  268.       <damageAmountBase>13</damageAmountBase> <!-- Increased from original 12 to 13 for minor damage increase to make it more impactful early on. -->
  269.     </value>
  270.   </Operation>
  271.  
  272.   <!-- Autopistol: Minor tweaks to emphasize its quick, suppressive nature. -->
  273.   <Operation Class="PatchOperationReplace">
  274.     <xpath>Defs/ThingDef[defName="Gun_Autopistol"]/description</xpath>
  275.     <value>
  276.       <description>An ancient pattern blowback-operated self-loading pistol. It lacks stopping power and range, but is quick to fire, making it a decent choice for suppressing lightly armored foes.</description>
  277.     </value>
  278.   </Operation>
  279.   <Operation Class="PatchOperationReplace">
  280.     <xpath>Defs/ThingDef[defName="Gun_Autopistol"]/statBases/RangedWeapon_Cooldown</xpath>
  281.     <value>
  282.       <RangedWeapon_Cooldown>0.9</RangedWeapon_Cooldown> <!-- Decreased from original 1.0 to 0.9 for very fast cooldown for rapid, suppressive fire. -->
  283.     </value>
  284.   </Operation>
  285.  
  286.   <!-- Machine Pistol: Reinforcing its role as a close-range, high-volume weapon. -->
  287.   <Operation Class="PatchOperationReplace">
  288.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/description</xpath>
  289.     <value>
  290.       <description>A micro-submachine gun. It is short-ranged, but very light in the hands. Its blistering rate of fire can overwhelm targets at close quarters.</description>
  291.     </value>
  292.   </Operation>
  293.   <Operation Class="PatchOperationReplace">
  294.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/statBases/AccuracyTouch</xpath>
  295.     <value>
  296.       <AccuracyTouch>0.95</AccuracyTouch> <!-- Increased from original 0.90 to 0.95 for extremely high close-range accuracy for room clearing. -->
  297.     </value>
  298.   </Operation>
  299.   <Operation Class="PatchOperationReplace">
  300.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/statBases/AccuracyMedium</xpath>
  301.     <value>
  302.       <AccuracyMedium>0.30</AccuracyMedium> <!-- Decreased from original 0.35 to 0.30 for steep drop-off at medium range, emphasizing close-quarters. -->
  303.     </value>
  304.   </Operation>
  305.   <Operation Class="PatchOperationReplace">
  306.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/statBases/AccuracyLong</xpath>
  307.     <value>
  308.       <AccuracyLong>0.10</AccuracyLong> <!-- Decreased from original 0.15 to 0.10 for practically useless at long range, as intended. -->
  309.     </value>
  310.   </Operation>
  311.   <Operation Class="PatchOperationReplace">
  312.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/statBases/RangedWeapon_Cooldown</xpath>
  313.     <value>
  314.       <RangedWeapon_Cooldown>0.8</RangedWeapon_Cooldown> <!-- Decreased from original 0.9 to 0.8 for even faster cooldown to enable extremely high rate of fire. -->
  315.     </value>
  316.   </Operation>
  317.   <Operation Class="PatchOperationReplace">
  318.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/verbs/li/range</xpath>
  319.     <value>
  320.       <range>18.9</range> <!-- Decreased from original 19.9 to 18.9 for shorter maximum range to align with its close-quarters role. -->
  321.     </value>
  322.   </Operation>
  323.   <Operation Class="PatchOperationReplace">
  324.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/verbs/li/burstShotCount</xpath>
  325.     <value>
  326.       <burstShotCount>4</burstShotCount> <!-- Increased from original 3 to 4 for more concentrated damage. -->
  327.     </value>
  328.   </Operation>
  329.   <Operation Class="PatchOperationReplace">
  330.     <xpath>Defs/ThingDef[defName="Gun_MachinePistol"]/verbs/li/ticksBetweenBurstShots</xpath>
  331.     <value>
  332.       <ticksBetweenBurstShots>6</ticksBetweenBurstShots> <!-- Decreased from original 7 to 6 for lower delay between burst shots for higher burst DPS. -->
  333.     </value>
  334.   </Operation>
  335.   <Operation Class="PatchOperationReplace">
  336.     <xpath>Defs/ThingDef[defName="Bullet_MachinePistol"]/projectile/damageAmountBase</xpath>
  337.     <value>
  338.       <damageAmountBase>7</damageAmountBase> <!-- Increased from original 6 to 7 for small increase in projectile damage to make bursts more lethal. -->
  339.     </value>
  340.   </Operation>
  341.  
  342.   <!-- Incendiary Launcher: Made it more effective for area denial and flushing. -->
  343.   <Operation Class="PatchOperationReplace">
  344.     <xpath>Defs/ThingDef[defName="Gun_IncendiaryLauncher"]/description</xpath>
  345.     <value>
  346.       <description>A wide-barreled incendiary bolt launcher. The bolts create small incendiary explosions on impact, starting fires. Excellent for area denial and flushing out entrenched foes.</description>
  347.     </value>
  348.   </Operation>
  349.   <Operation Class="PatchOperationReplace">
  350.     <xpath>Defs/ThingDef[defName="Gun_IncendiaryLauncher"]/statBases/RangedWeapon_Cooldown</xpath>
  351.     <value>
  352.       <RangedWeapon_Cooldown>3.0</RangedWeapon_Cooldown> <!-- Decreased from original 3.5 to 3.0 for faster cooldown for more frequent incendiary barrages. -->
  353.     </value>
  354.   </Operation>
  355.   <Operation Class="PatchOperationReplace">
  356.     <xpath>Defs/ThingDef[defName="Gun_IncendiaryLauncher"]/verbs/li/warmupTime</xpath>
  357.     <value>
  358.       <warmupTime>3.0</warmupTime> <!-- Decreased from original 3.5 to 3.0 for quicker warm-up to deploy fires more rapidly. -->
  359.     </value>
  360.   </Operation>
  361.   <Operation Class="PatchOperationReplace">
  362.     <xpath>Defs/ThingDef[defName="Gun_IncendiaryLauncher"]/verbs/li/range</xpath>
  363.     <value>
  364.       <range>25.9</range> <!-- Increased from original 23.9 to 25.9 for increased range to cover larger areas or reach further targets. -->
  365.     </value>
  366.   </Operation>
  367.   <Operation Class="PatchOperationReplace">
  368.     <xpath>Defs/ThingDef[defName="Gun_IncendiaryLauncher"]/verbs/li/forcedMissRadius</xpath>
  369.     <value>
  370.       <forcedMissRadius>1.5</forcedMissRadius> <!-- Decreased from original 1.9 to 1.5 for reduced inaccuracy radius for more predictable fire placement. -->
  371.     </value>
  372.   </Operation>
  373.   <Operation Class="PatchOperationReplace">
  374.     <xpath>Defs/ThingDef[defName="Bullet_IncendiaryLauncher"]/projectile/speed</xpath>
  375.     <value>
  376.       <speed>45</speed> <!-- Increased from original 40 to 45, purely visual. -->
  377.     </value>
  378.   </Operation>
  379.   <Operation Class="PatchOperationReplace">
  380.     <xpath>Defs/ThingDef[defName="Bullet_IncendiaryLauncher"]/projectile/explosionRadius</xpath>
  381.     <value>
  382.       <explosionRadius>1.2</explosionRadius> <!-- Increased from original 1.1 to 1.2 for slightly larger explosion radius for better area coverage. -->
  383.     </value>
  384.   </Operation>
  385.   <Operation Class="PatchOperationReplace">
  386.     <xpath>Defs/ThingDef[defName="Bullet_IncendiaryLauncher"]/projectile/preExplosionSpawnChance</xpath>
  387.     <value>
  388.       <preExplosionSpawnChance>0.7</preExplosionSpawnChance> <!-- Increased from original 0.6 to 0.7 for higher chance of spawning fuel, ensuring more consistent fire starting. -->
  389.     </value>
  390.   </Operation>
  391.  
  392.   <!-- Smoke Launcher: More reliable for its tactical purpose of obscuring sight. -->
  393.   <Operation Class="PatchOperationReplace">
  394.     <xpath>Defs/ThingDef[defName="Gun_SmokeLauncher"]/description</xpath>
  395.     <value>
  396.       <description>A wide-barreled smoke shell launcher. The shell will upon impact release a cloud of smoke, obscuring incoming shots and preventing turrets from locking on. Indispensable for tactical retreats or advances.</description>
  397.     </value>
  398.   </Operation>
  399.   <Operation Class="PatchOperationReplace">
  400.     <xpath>Defs/ThingDef[defName="Gun_SmokeLauncher"]/statBases/RangedWeapon_Cooldown</xpath>
  401.     <value>
  402.       <RangedWeapon_Cooldown>4.0</RangedWeapon_Cooldown> <!-- Decreased from original 4.5 to 4.0 for standard cooldown for utility launchers. -->
  403.     </value>
  404.   </Operation>
  405.   <Operation Class="PatchOperationReplace">
  406.     <xpath>Defs/ThingDef[defName="Gun_SmokeLauncher"]/verbs/li/warmupTime</xpath>
  407.     <value>
  408.       <warmupTime>3.0</warmupTime> <!-- Decreased from original 3.5 to 3.0 for quicker deployment of smoke screens. -->
  409.     </value>
  410.   </Operation>
  411.   <Operation Class="PatchOperationReplace">
  412.     <xpath>Defs/ThingDef[defName="Gun_SmokeLauncher"]/verbs/li/range</xpath>
  413.     <value>
  414.       <range>25.9</range> <!-- Increased from original 23.9 to 25.9 for increased range for strategic placement of smoke. -->
  415.     </value>
  416.   </Operation>
  417.   <Operation Class="PatchOperationReplace">
  418.     <xpath>Defs/ThingDef[defName="Gun_SmokeLauncher"]/verbs/li/forcedMissRadius</xpath>
  419.     <value>
  420.       <forcedMissRadius>1.5</forcedMissRadius> <!-- Decreased from original 1.9 to 1.5 for reduced miss radius for more reliable smoke deployment. -->
  421.     </value>
  422.   </Operation>
  423.   <Operation Class="PatchOperationReplace">
  424.     <xpath>Defs/ThingDef[defName="Bullet_SmokeLauncher"]/projectile/speed</xpath>
  425.     <value>
  426.       <speed>45</speed> <!-- Increased from original 40 to 45, purely visual. -->
  427.     </value>
  428.   </Operation>
  429.   <Operation Class="PatchOperationReplace">
  430.     <xpath>Defs/ThingDef[defName="Bullet_SmokeLauncher"]/projectile/explosionRadius</xpath>
  431.     <value>
  432.       <explosionRadius>2.5</explosionRadius> <!-- Increased from original 2.4 to 2.5 for larger explosion radius to create more encompassing smoke clouds. -->
  433.     </value>
  434.   </Operation>
  435.  
  436.   <!-- EMP Launcher: Solidified as the go-to mechanoid counter. -->
  437.   <Operation Class="PatchOperationReplace">
  438.     <xpath>Defs/ThingDef[defName="Gun_EmpLauncher"]/description</xpath>
  439.     <value>
  440.       <description>A wide-barreled EMP shell launcher. The shell will upon impact release a burst of electromagnetic energy, stunning mechanical targets (mechanoids, turrets, mortars) and depleting shields in the area of effect. The ultimate counter to mechanoid threats.</description>
  441.     </value>
  442.   </Operation>
  443.   <Operation Class="PatchOperationReplace">
  444.     <xpath>Defs/ThingDef[defName="Gun_EmpLauncher"]/statBases/RangedWeapon_Cooldown</xpath>
  445.     <value>
  446.       <RangedWeapon_Cooldown>3.0</RangedWeapon_Cooldown> <!-- Decreased from original 3.5 to 3.0 for faster cooldown for more frequent EMP bursts. -->
  447.     </value>
  448.   </Operation>
  449.   <Operation Class="PatchOperationReplace">
  450.     <xpath>Defs/ThingDef[defName="Gun_EmpLauncher"]/verbs/li/warmupTime</xpath>
  451.     <value>
  452.       <warmupTime>3.0</warmupTime> <!-- Decreased from original 3.5 to 3.0 for quicker warm-up for reactive EMP deployment. -->
  453.     </value>
  454.   </Operation>
  455.   <Operation Class="PatchOperationReplace">
  456.     <xpath>Defs/ThingDef[defName="Gun_EmpLauncher"]/verbs/li/range</xpath>
  457.     <value>
  458.       <range>25.9</range> <!-- Increased from original 23.9 to 25.9 for increased range for better tactical reach against mechanoids. -->
  459.     </value>
  460.   </Operation>
  461.   <Operation Class="PatchOperationReplace">
  462.     <xpath>Defs/ThingDef[defName="Gun_EmpLauncher"]/verbs/li/forcedMissRadius</xpath>
  463.     <value>
  464.       <forcedMissRadius>1.5</forcedMissRadius> <!-- Decreased from original 1.9 to 1.5 for reduced miss radius for more precise EMP strikes. -->
  465.     </value>
  466.   </Operation>
  467.   <Operation Class="PatchOperationReplace">
  468.     <xpath>Defs/ThingDef[defName="Bullet_EMPLauncher"]/projectile/speed</xpath>
  469.     <value>
  470.       <speed>45</speed> <!-- Increased from original 40 to 45, purely visual. -->
  471.     </value>
  472.   </Operation>
  473.   <Operation Class="PatchOperationReplace">
  474.     <xpath>Defs/ThingDef[defName="Bullet_EMPLauncher"]/projectile/explosionRadius</xpath>
  475.     <value>
  476.       <explosionRadius>1.2</explosionRadius> <!-- Increased from original 1.1 to 1.2 for slightly larger explosion radius for affecting more targets. -->
  477.     </value>
  478.   </Operation>
  479.  
  480.   <!-- Bolt-Action Rifle: Sharpened its identity as the long-range, high-damage precision weapon. -->
  481.   <Operation Class="PatchOperationReplace">
  482.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/description</xpath>
  483.     <value>
  484.       <description>An ancient pattern bolt-action rifle. With its long range, and low fire rate, it is unlikely to drive animals to revenge, which makes it a favorite weapon for hunting. A precision tool for expert marksmen.</description>
  485.     </value>
  486.   </Operation>
  487.   <Operation Class="PatchOperationReplace">
  488.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/statBases/AccuracyTouch</xpath>
  489.     <value>
  490.       <AccuracyTouch>0.60</AccuracyTouch> <!-- Decreased from original 0.65 to 0.60 for reduced close-range accuracy, penalizing its use in tight quarters. -->
  491.     </value>
  492.   </Operation>
  493.   <Operation Class="PatchOperationReplace">
  494.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/statBases/AccuracyMedium</xpath>
  495.     <value>
  496.       <AccuracyMedium>0.95</AccuracyMedium> <!-- Increased from original 0.90 to 0.95 for significantly increased medium-range accuracy, making it superb at its intended engagement distance. -->
  497.     </value>
  498.   </Operation>
  499.   <Operation Class="PatchOperationReplace">
  500.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/statBases/AccuracyLong</xpath>
  501.     <value>
  502.       <AccuracyLong>0.85</AccuracyLong> <!-- Increased from original 0.80 to 0.85 for strong long-range accuracy, allowing effective hunting and sniping. -->
  503.     </value>
  504.   </Operation>
  505.   <Operation Class="PatchOperationReplace">
  506.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/statBases/RangedWeapon_Cooldown</xpath>
  507.     <value>
  508.       <RangedWeapon_Cooldown>1.6</RangedWeapon_Cooldown> <!-- Increased from original 1.5 to 1.6 for slightly longer cooldown to balance its precision and power. -->
  509.     </value>
  510.   </Operation>
  511.   <Operation Class="PatchOperationReplace">
  512.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/verbs/li/warmupTime</xpath>
  513.     <value>
  514.       <warmupTime>1.8</warmupTime> <!-- Increased from original 1.7 to 1.8 for increased warm-up to emphasize deliberate, aimed shots. -->
  515.     </value>
  516.   </Operation>
  517.   <Operation Class="PatchOperationReplace">
  518.     <xpath>Defs/ThingDef[defName="Gun_BoltActionRifle"]/verbs/li/range</xpath>
  519.     <value>
  520.       <range>38.9</range> <!-- Increased from original 36.9 to 38.9 for extended range, making it a viable alternative to dedicated sniper rifles in some scenarios. -->
  521.     </value>
  522.   </Operation>
  523.   <Operation Class="PatchOperationReplace">
  524.     <xpath>Defs/ThingDef[defName="Bullet_BoltActionRifle"]/projectile/damageAmountBase</xpath>
  525.     <value>
  526.       <damageAmountBase>20</damageAmountBase> <!-- Increased from original 18 to 20 for more lethal hits. -->
  527.     </value>
  528.   </Operation>
  529.   <Operation Class="PatchOperationAdd">
  530.     <xpath>Defs/ThingDef[defName="Bullet_BoltActionRifle"]/projectile</xpath>
  531.     <value>
  532.       <armorPenetrationBase>0.30</armorPenetrationBase> <!-- Added: Set to 0.30 (matches default for 20 damage) to ensure it can pierce light armor, reinforcing its precision hunting role. -->
  533.     </value>
  534.   </Operation>
  535.   <Operation Class="PatchOperationReplace">
  536.     <xpath>Defs/ThingDef[defName="Bullet_BoltActionRifle"]/projectile/speed</xpath>
  537.     <value>
  538.       <speed>75</speed> <!-- Increased from original 70 to 75, purely visual. -->
  539.     </value>
  540.   </Operation>
  541.  
  542.   <!-- Pump Shotgun: Emphasized its close-range lethality and stopping power. -->
  543.   <Operation Class="PatchOperationReplace">
  544.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/description</xpath>
  545.     <value>
  546.       <description>An ancient design of shotgun that emits a tight-packed spray of pellets. Deadly, but short range. Ideal for clearing rooms and close-quarter ambushes.</description>
  547.     </value>
  548.   </Operation>
  549.   <Operation Class="PatchOperationReplace">
  550.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/statBases/AccuracyTouch</xpath>
  551.     <value>
  552.       <AccuracyTouch>0.85</AccuracyTouch> <!-- Increased from original 0.80 to 0.85 for high close-range accuracy for reliable hits in melee proximity. -->
  553.     </value>
  554.   </Operation>
  555.   <Operation Class="PatchOperationReplace">
  556.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/statBases/AccuracyShort</xpath>
  557.     <value>
  558.       <AccuracyShort>0.90</AccuracyShort> <!-- Increased from original 0.87 to 0.90 for excellent short-range accuracy, making it lethal in its sweet spot. -->
  559.     </value>
  560.   </Operation>
  561.   <Operation Class="PatchOperationReplace">
  562.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/statBases/AccuracyMedium</xpath>
  563.     <value>
  564.       <AccuracyMedium>0.70</AccuracyMedium> <!-- Decreased from original 0.77 to 0.70 for reduced medium-range accuracy, maintaining its close-range focus. -->
  565.     </value>
  566.   </Operation>
  567.   <Operation Class="PatchOperationReplace">
  568.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/statBases/AccuracyLong</xpath>
  569.     <value>
  570.       <AccuracyLong>0.50</AccuracyLong> <!-- Decreased from original 0.64 to 0.50 for significant drop-off at long range, as expected for a shotgun. -->
  571.     </value>
  572.   </Operation>
  573.   <Operation Class="PatchOperationReplace">
  574.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/statBases/RangedWeapon_Cooldown</xpath>
  575.     <value>
  576.       <RangedWeapon_Cooldown>1.35</RangedWeapon_Cooldown> <!-- Increased from original 1.25 to 1.35 for longer cooldown for quicker follow-up shots. -->
  577.     </value>
  578.   </Operation>
  579.   <Operation Class="PatchOperationReplace">
  580.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/verbs/li/warmupTime</xpath>
  581.     <value>
  582.       <warmupTime>1.0</warmupTime> <!-- Increased from original 0.9 to 1.0 for quicker warm-up for more responsive close-quarters combat. -->
  583.     </value>
  584.   </Operation>
  585.   <Operation Class="PatchOperationReplace">
  586.     <xpath>Defs/ThingDef[defName="Gun_PumpShotgun"]/verbs/li/range</xpath>
  587.     <value>
  588.       <range>16.9</range> <!-- Increased from original 15.9 to 16.9 for slightly increased range, allowing it to engage targets just beyond immediate melee. -->
  589.     </value>
  590.   </Operation>
  591.   <Operation Class="PatchOperationReplace">
  592.     <xpath>Defs/ThingDef[defName="Bullet_Shotgun"]/projectile/damageAmountBase</xpath>
  593.     <value>
  594.       <damageAmountBase>20</damageAmountBase> <!-- Increased from original 18 to 20 for devastating hit at close range. -->
  595.     </value>
  596.   </Operation>
  597.   <Operation Class="PatchOperationReplace">
  598.     <xpath>Defs/ThingDef[defName="Bullet_Shotgun"]/projectile/stoppingPower</xpath>
  599.     <value>
  600.       <stoppingPower>3.5</stoppingPower> <!-- Increased from original 3 to 3.5 for increased stopping power to stun enemies and create openings. -->
  601.     </value>
  602.   </Operation>
  603.   <Operation Class="PatchOperationReplace">
  604.     <xpath>Defs/ThingDef[defName="Bullet_Shotgun"]/projectile/armorPenetrationBase</xpath>
  605.     <value>
  606.       <armorPenetrationBase>0.15</armorPenetrationBase> <!-- Increased from original 0.14 to 0.15 for minor armor penetration, giving it an edge against lightly armored foes. -->
  607.     </value>
  608.   </Operation>
  609.   <Operation Class="PatchOperationReplace">
  610.     <xpath>Defs/ThingDef[defName="Bullet_Shotgun"]/projectile/speed</xpath>
  611.     <value>
  612.       <speed>60</speed> <!-- Increased from original 55 to 60, purely visual. -->
  613.     </value>
  614.   </Operation>
  615.  
  616.   <!-- Chain Shotgun: A pure, close-range burst weapon. Its deadliness comes from overwhelming fire. -->
  617.   <Operation Class="PatchOperationReplace">
  618.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/description</xpath>
  619.     <value>
  620.       <description>A magazine-fed fully automatic shotgun. It is even shorter-ranged than a typical shotgun, but is extraordinarily dangerous due to its rapid, overwhelming burst fire.</description>
  621.     </value>
  622.   </Operation>
  623.   <Operation Class="PatchOperationReplace">
  624.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/statBases/AccuracyTouch</xpath>
  625.     <value>
  626.       <AccuracyTouch>0.60</AccuracyTouch> <!-- Increased from original 0.57 to 0.60 for moderate close-range accuracy, balanced by high burst count. -->
  627.     </value>
  628.   </Operation>
  629.   <Operation Class="PatchOperationReplace">
  630.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/statBases/AccuracyShort</xpath>
  631.     <value>
  632.       <AccuracyShort>0.70</AccuracyShort> <!-- Increased from original 0.64 to 0.70 for good short-range accuracy for effective burst delivery. -->
  633.     </value>
  634.   </Operation>
  635.   <Operation Class="PatchOperationReplace">
  636.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/statBases/RangedWeapon_Cooldown</xpath>
  637.     <value>
  638.       <RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown> <!-- Decreased from original 1.35 to 1.2 for faster cooldown to enable more frequent devastating bursts. -->
  639.     </value>
  640.   </Operation>
  641.   <Operation Class="PatchOperationReplace">
  642.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/verbs/li/warmupTime</xpath>
  643.     <value>
  644.       <warmupTime>1.0</warmupTime> <!-- Decreased from original 1.2 to 1.0 for quicker warm-up for rapid engagement. -->
  645.     </value>
  646.   </Operation>
  647.   <Operation Class="PatchOperationReplace">
  648.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/verbs/li/range</xpath>
  649.     <value>
  650.       <range>13.9</range> <!-- Increased from original 12.9 to 13.9 for further reduced range, making it a highly specialized close-quarters weapon. -->
  651.     </value>
  652.   </Operation>
  653.   <Operation Class="PatchOperationReplace">
  654.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/verbs/li/burstShotCount</xpath>
  655.     <value>
  656.       <burstShotCount>4</burstShotCount> <!-- Increased from original 3 to 4 for more shots per burst to maximize close-range damage. -->
  657.     </value>
  658.   </Operation>
  659.   <Operation Class="PatchOperationReplace">
  660.     <xpath>Defs/ThingDef[defName="Gun_ChainShotgun"]/verbs/li/ticksBetweenBurstShots</xpath>
  661.     <value>
  662.       <ticksBetweenBurstShots>8</ticksBetweenBurstShots> <!-- Decreased from original 10 to 8 for reduced delay for a tighter, more damaging burst. -->
  663.     </value>
  664.   </Operation>
  665.  
  666.   <!-- Heavy SMG: A powerful, short-range slugger, ideal for tight combat. -->
  667.   <Operation Class="PatchOperationReplace">
  668.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/description</xpath>
  669.     <value>
  670.       <description>A compact, wide-caliber slug-thrower. It's got a very short range, but it packs a punch and handles quite well, making it a brutal room-clearer.</description>
  671.     </value>
  672.   </Operation>
  673.   <Operation Class="PatchOperationReplace">
  674.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/statBases/Mass</xpath>
  675.     <value>
  676.       <Mass>3.8</Mass> <!-- Increased from original 3.5 to 3.8 for slight increase in mass to reflect its heavier caliber. -->
  677.     </value>
  678.   </Operation>
  679.   <Operation Class="PatchOperationReplace">
  680.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/statBases/AccuracyTouch</xpath>
  681.     <value>
  682.       <AccuracyTouch>0.90</AccuracyTouch> <!-- Increased from original 0.85 to 0.90 for very high close-range accuracy, excellent for clearing tight spaces. -->
  683.     </value>
  684.   </Operation>
  685.   <Operation Class="PatchOperationReplace">
  686.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/statBases/AccuracyShort</xpath>
  687.     <value>
  688.       <AccuracyShort>0.75</AccuracyShort> <!-- Increased from original 0.65 to 0.75 for good short-range accuracy, maintaining effectiveness as enemies close in. -->
  689.     </value>
  690.   </Operation>
  691.   <Operation Class="PatchOperationReplace">
  692.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/statBases/RangedWeapon_Cooldown</xpath>
  693.     <value>
  694.       <RangedWeapon_Cooldown>1.0</RangedWeapon_Cooldown> <!-- Decreased from original 1.65 to 1.0 for faster cooldown for quick, impactful bursts. -->
  695.     </value>
  696.   </Operation>
  697.   <Operation Class="PatchOperationReplace">
  698.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/verbs/li/warmupTime</xpath>
  699.     <value>
  700.       <warmupTime>0.6</warmupTime> <!-- Decreased from original 0.9 to 0.6 for quicker warm-up for rapid engagement. -->
  701.     </value>
  702.   </Operation>
  703.   <Operation Class="PatchOperationReplace">
  704.     <xpath>Defs/ThingDef[defName="Gun_HeavySMG"]/verbs/li/range</xpath>
  705.     <value>
  706.       <range>20.9</range> <!-- Decreased from original 22.9 to 20.9 for slightly extended range, making it slightly more versatile than other SMGs. -->
  707.     </value>
  708.   </Operation>
  709.   <Operation Class="PatchOperationReplace">
  710.     <xpath>Defs/ThingDef[defName="Bullet_HeavySMG"]/projectile/damageAmountBase</xpath>
  711.     <value>
  712.       <damageAmountBase>11</damageAmountBase> <!-- Decreased from original 12 to 11 for decreased damage per shot, still making each hit count. -->
  713.     </value>
  714.   </Operation>
  715.   <Operation Class="PatchOperationAdd">
  716.     <xpath>Defs/ThingDef[defName="Bullet_HeavySMG"]/projectile</xpath>
  717.     <value>
  718.       <armorPenetrationBase>0.20</armorPenetrationBase> <!-- Added: Set to 0.20 to give it better armor penetration than its implicit default, fitting its "brutal" description. -->
  719.     </value>
  720.   </Operation>
  721.   <Operation Class="PatchOperationReplace">
  722.     <xpath>Defs/ThingDef[defName="Bullet_HeavySMG"]/projectile/speed</xpath>
  723.     <value>
  724.       <speed>60</speed> <!-- Increased from original 48 to 60, purely visual. -->
  725.     </value>
  726.   </Operation>
  727.  
  728.   <!-- LMG: Defined its role as a suppressive fire weapon for groups. -->
  729.   <Operation Class="PatchOperationReplace">
  730.     <xpath>Defs/ThingDef[defName="Gun_LMG"]/description</xpath>
  731.     <value>
  732.       <description>A gas-operated light machine gun. While it is somewhat unwieldy and inaccurate, its long bursts of fire are effective against groups of enemies.</description>
  733.     </value>
  734.   </Operation>
  735.   <Operation Class="PatchOperationReplace">
  736.     <xpath>Defs/ThingDef[defName="Gun_LMG"]/verbs/li/warmupTime</xpath>
  737.     <value>
  738.       <warmupTime>1.8</warmupTime> <!-- Increased from original 1.7 to 1.8. Increased warm-up to represent the time needed to get the gun ready for sustained fire. -->
  739.     </value>
  740.   </Operation>
  741.   <Operation Class="PatchOperationReplace">
  742.     <xpath>Defs/ThingDef[defName="Gun_LMG"]/verbs/li/burstShotCount</xpath>
  743.     <value>
  744.       <burstShotCount>8</burstShotCount> <!-- ADJUSTED: Increased burst count (from original 6 to 8) to boost its overall DPS and make its suppressive fire more impactful, addressing its lower-than-intended simulated performance. -->
  745.     </value>
  746.   </Operation>
  747.   <Operation Class="PatchOperationReplace">
  748.     <xpath>Defs/ThingDef[defName="Gun_LMG"]/verbs/li/ticksBetweenBurstShots</xpath>
  749.     <value>
  750.       <ticksBetweenBurstShots>6</ticksBetweenBurstShots> <!-- ADJUSTED: Reduced delay between shots in a burst (from original 7 to 6) to further increase effective fire rate and DPS for stronger suppression. -->
  751.     </value>
  752.   </Operation>
  753.   <Operation Class="PatchOperationReplace">
  754.     <xpath>Defs/ThingDef[defName="Bullet_LMG"]/projectile/damageAmountBase</xpath>
  755.     <value>
  756.       <damageAmountBase>14</damageAmountBase> <!-- ADJUSTED: Increased damage (from original 12 to 14) per shot to make suppressive fire more impactful and ensure its DPS is more competitive with other industrial options. -->
  757.     </value>
  758.   </Operation>
  759.   <Operation Class="PatchOperationAdd">
  760.     <xpath>Defs/ThingDef[defName="Bullet_LMG"]/projectile</xpath>
  761.     <value>
  762.       <armorPenetrationBase>0.20</armorPenetrationBase> <!-- Added: Set to 0.20 to provide moderate armor penetration for suppressive fire against armored targets. -->
  763.     </value>
  764.   </Operation>
  765.  
  766.   <!-- Assault Rifle: Optimized as the versatile, reliable standard weapon. -->
  767.   <Operation Class="PatchOperationReplace">
  768.     <xpath>Defs/ThingDef[defName="Gun_AssaultRifle"]/description</xpath>
  769.     <value>
  770.       <description>A general-purpose assault rifle. It is accurate and durable, with a good rate of fire and effective range, making it a versatile backbone of any combat group.</description>
  771.     </value>
  772.   </Operation>
  773.   <Operation Class="PatchOperationReplace">
  774.     <xpath>Defs/ThingDef[defName="Gun_AssaultRifle"]/statBases/RangedWeapon_Cooldown</xpath>
  775.     <value>
  776.       <RangedWeapon_Cooldown>1.1</RangedWeapon_Cooldown> <!-- Decreased from original 1.70 to 1.1 for faster cooldown, making it very responsive and versatile. -->
  777.     </value>
  778.   </Operation>
  779.   <Operation Class="PatchOperationReplace">
  780.     <xpath>Defs/ThingDef[defName="Gun_AssaultRifle"]/verbs/li/warmupTime</xpath>
  781.     <value>
  782.       <warmupTime>0.7</warmupTime> <!-- Decreased from original 1.0 to 0.7 for quicker warm-up, allowing for rapid target acquisition. -->
  783.     </value>
  784.   </Operation>
  785.   <Operation Class="PatchOperationReplace">
  786.     <xpath>Defs/ThingDef[defName="Bullet_AssaultRifle"]/projectile/damageAmountBase</xpath>
  787.     <value>
  788.       <damageAmountBase>9</damageAmountBase> <!-- Decreased from original 11 to 9 for minor damage decrease, solidifying its effectiveness across various scenarios. -->
  789.     </value>
  790.   </Operation>
  791.   <Operation Class="PatchOperationAdd">
  792.     <xpath>Defs/ThingDef[defName="Bullet_AssaultRifle"]/projectile</xpath>
  793.     <value>
  794.       <armorPenetrationBase>0.20</armorPenetrationBase> <!-- Added: Set to 0.20 for a versatile and balanced armor penetration for this general-purpose weapon. -->
  795.     </value>
  796.   </Operation>
  797.   <Operation Class="PatchOperationReplace">
  798.     <xpath>Defs/ThingDef[defName="Bullet_AssaultRifle"]/projectile/speed</xpath>
  799.     <value>
  800.       <speed>65</speed> <!-- Decreased from original 70 to 65, purely visual. -->
  801.     </value>
  802.   </Operation>
  803.  
  804.   <!-- Sniper Rifle: Enhanced its extreme long-range precision, reinforcing its unique niche. -->
  805.   <Operation Class="PatchOperationReplace">
  806.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/description</xpath>
  807.     <value>
  808.       <description>A dedicated long-range precision rifle. It is slow to fire and terrible in close quarters, but exceptionally accurate at extreme distances, delivering pinpoint lethal shots.</description>
  809.     </value>
  810.   </Operation>
  811.   <Operation Class="PatchOperationReplace">
  812.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/statBases/AccuracyTouch</xpath>
  813.     <value>
  814.       <AccuracyTouch>0.40</AccuracyTouch> <!-- Decreased from original 0.50 to 0.40 for drastically reduced close-range accuracy, enforcing its long-range specialist role. -->
  815.     </value>
  816.   </Operation>
  817.   <Operation Class="PatchOperationReplace">
  818.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/statBases/AccuracyMedium</xpath>
  819.     <value>
  820.       <AccuracyMedium>0.85</AccuracyMedium> <!-- Decreased from original 0.88 to 0.85. Still very high medium-range accuracy, effective at closer sniper distances. -->
  821.     </value>
  822.   </Operation>
  823.   <Operation Class="PatchOperationReplace">
  824.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/statBases/AccuracyLong</xpath>
  825.     <value>
  826.       <AccuracyLong>0.98</AccuracyLong> <!-- Increased from original 0.90 to 0.98 for near-perfect long-range accuracy, the ultimate precision weapon. -->
  827.     </value>
  828.   </Operation>
  829.   <Operation Class="PatchOperationReplace">
  830.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/statBases/RangedWeapon_Cooldown</xpath>
  831.     <value>
  832.       <RangedWeapon_Cooldown>2.0</RangedWeapon_Cooldown> <!-- Increased from original 1.5 to 2.0 for longer cooldown to balance its immense precision and damage. -->
  833.     </value>
  834.   </Operation>
  835.   <Operation Class="PatchOperationReplace">
  836.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/verbs/li/warmupTime</xpath>
  837.     <value>
  838.       <warmupTime>2.5</warmupTime> <!-- Decreased from original 3.5 to 2.5 for extended warm-up time, requiring careful setup and patience. -->
  839.     </value>
  840.   </Operation>
  841.   <Operation Class="PatchOperationReplace">
  842.     <xpath>Defs/ThingDef[defName="Gun_SniperRifle"]/verbs/li/range</xpath>
  843.     <value>
  844.       <range>45.9</range> <!-- Increased from original 44.9 to 45.9 for significantly increased range, making it the longest-range weapon for strategic engagements. -->
  845.     </value>
  846.   </Operation>
  847.   <Operation Class="PatchOperationReplace">
  848.     <xpath>Defs/ThingDef[defName="Bullet_SniperRifle"]/projectile/damageAmountBase</xpath>
  849.     <value>
  850.       <damageAmountBase>50</damageAmountBase> <!-- ADJUSTED: Greatly increased damage (from original 25 to 50) for truly lethal single hits, ensuring its role as a decisive, high-value target eliminator is fulfilled and further boosting its simulated DPS. -->
  851.     </value>
  852.   </Operation>
  853.   <Operation Class="PatchOperationAdd">
  854.     <xpath>Defs/ThingDef[defName="Bullet_SniperRifle"]/projectile</xpath>
  855.     <value>
  856.       <armorPenetrationBase>0.70</armorPenetrationBase> <!-- Added as it was missing from original; now 0.70. Very high armor penetration, making it devastating against heavily armored threats. -->
  857.     </value>
  858.   </Operation>
  859.   <Operation Class="PatchOperationReplace">
  860.     <xpath>Defs/ThingDef[defName="Bullet_SniperRifle"]/projectile/speed</xpath>
  861.     <value>
  862.       <speed>80</speed> <!-- Decreased from original 100 to 80, purely visual. -->
  863.     </value>
  864.   </Operation>
  865.  
  866.   <!-- Minigun: Made it even more of a shredder, focusing on volume of fire over pinpoint accuracy. -->
  867.   <Operation Class="PatchOperationReplace">
  868.     <xpath>Defs/ThingDef[defName="Gun_Minigun"]/description</xpath>
  869.     <value>
  870.       <description>A multi-barrelled rotary gun. It takes a long time to spin up, but once it's firing, it outputs a solid stream of bullets, shredding anything in its path. Excellent for suppressing groups of enemies or quickly destroying structures.</description>
  871.     </value>
  872.   </Operation>
  873.   <Operation Class="PatchOperationReplace">
  874.     <xpath>Defs/ThingDef[defName="Gun_Minigun"]/statBases/RangedWeapon_Cooldown</xpath>
  875.     <value>
  876.       <RangedWeapon_Cooldown>3.0</RangedWeapon_Cooldown> <!-- Increased from original 1.5 to 3.0. Longer cooldown, but compensates with sustained fire during active shooting. -->
  877.     </value>
  878.   </Operation>
  879.   <Operation Class="PatchOperationReplace">
  880.     <xpath>Defs/ThingDef[defName="Gun_Minigun"]/verbs/li/burstShotCount</xpath>
  881.     <value>
  882.       <burstShotCount>30</burstShotCount> <!-- Increased from original 25 to 30 for massive increase in shots per burst for overwhelming firepower. -->
  883.     </value>
  884.   </Operation>
  885.   <Operation Class="PatchOperationReplace">
  886.     <xpath>Defs/ThingDef[defName="Gun_Minigun"]/verbs/li/ticksBetweenBurstShots</xpath>
  887.     <value>
  888.       <ticksBetweenBurstShots>4</ticksBetweenBurstShots> <!-- Decreased from original 5 to 4 for extremely rapid firing once spun up, creating a literal stream of bullets. -->
  889.     </value>
  890.   </Operation>
  891.   <Operation Class="PatchOperationReplace">
  892.     <xpath>Defs/ThingDef[defName="Bullet_Minigun"]/projectile/damageAmountBase</xpath>
  893.     <value>
  894.       <damageAmountBase>11</damageAmountBase> <!-- ADJUSTED: Increased individual bullet damage (from original 10 to 11) significantly to further boost overall DPS, making it truly "shredding" as intended and improving its underperforming simulation results. -->
  895.     </value>
  896.   </Operation>
  897.   <Operation Class="PatchOperationAdd">
  898.     <xpath>Defs/ThingDef[defName="Bullet_Minigun"]/projectile</xpath>
  899.     <value>
  900.       <armorPenetrationBase>0.18</armorPenetrationBase> <!-- Added: Set to 0.18, slightly above default to acknowledge its heavy nature and contribute to its shredding capacity. -->
  901.     </value>
  902.   </Operation>
  903.  
  904.   <!-- =============================== Spacer Weapon Rebalance =============================== -->
  905.  
  906.   <!-- Charge Rifle: Fine-tuned as the balanced, high-tech assault option. -->
  907.   <Operation Class="PatchOperationReplace">
  908.     <xpath>Defs/ThingDef[defName="Gun_ChargeRifle"]/description</xpath>
  909.     <value>
  910.       <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. A versatile, high-tech weapon for advanced colonists.</description>
  911.     </value>
  912.   </Operation>
  913.   <Operation Class="PatchOperationReplace">
  914.     <xpath>Defs/ThingDef[defName="Gun_ChargeRifle"]/statBases/AccuracyShort</xpath>
  915.     <value>
  916.       <AccuracyShort>0.70</AccuracyShort> <!-- Increased from original 0.64 to 0.70 for improved accuracy at short range, making it reliable in closer engagements. -->
  917.     </value>
  918.   </Operation>
  919.   <Operation Class="PatchOperationReplace">
  920.     <xpath>Defs/ThingDef[defName="Gun_ChargeRifle"]/statBases/RangedWeapon_Cooldown</xpath>
  921.     <value>
  922.       <RangedWeapon_Cooldown>1.8</RangedWeapon_Cooldown> <!-- Decreased from original 2.00 to 1.8 for faster cooldown for more frequent bursts. -->
  923.     </value>
  924.   </Operation>
  925.   <Operation Class="PatchOperationReplace">
  926.     <xpath>Defs/ThingDef[defName="Gun_ChargeRifle"]/verbs/li/warmupTime</xpath>
  927.     <value>
  928.       <warmupTime>0.9</warmupTime> <!-- Decreased from original 1.0 to 0.9 for quicker warm-up, allowing faster combat readiness. -->
  929.     </value>
  930.   </Operation>
  931.   <Operation Class="PatchOperationReplace">
  932.     <xpath>Defs/ThingDef[defName="Gun_ChargeRifle"]/verbs/li/range</xpath>
  933.     <value>
  934.       <range>28.9</range> <!-- Increased from original 27.9 to 28.9 for slightly extended range, maintaining its versatility across distances. -->
  935.     </value>
  936.   </Operation>
  937.   <Operation Class="PatchOperationReplace">
  938.     <xpath>Defs/ThingDef[defName="Gun_ChargeRifle"]/verbs/li/ticksBetweenBurstShots</xpath>
  939.     <value>
  940.       <ticksBetweenBurstShots>10</ticksBetweenBurstShots> <!-- Decreased from original 12 to 10 for reduced delay between shots in a burst for more concentrated fire. -->
  941.     </value>
  942.   </Operation>
  943.   <Operation Class="PatchOperationReplace">
  944.     <xpath>Defs/ThingDef[defName="Bullet_ChargeRifle"]/projectile/damageAmountBase</xpath>
  945.     <value>
  946.       <damageAmountBase>22</damageAmountBase> <!-- ADJUSTED: Increased damage (from original 16 to 22) per shot to reinforce its high-tech status and ensure it's a clear upgrade, addressing simulated performance gaps. -->
  947.     </value>
  948.   </Operation>
  949.   <Operation Class="PatchOperationReplace">
  950.     <xpath>Defs/ThingDef[defName="Bullet_ChargeRifle"]/projectile/armorPenetrationBase</xpath>
  951.     <value>
  952.       <armorPenetrationBase>0.40</armorPenetrationBase> <!-- Increased from original 0.35 to 0.40 for substantial armor penetration, making it effective against armored targets. -->
  953.     </value>
  954.   </Operation>
  955.   <Operation Class="PatchOperationReplace">
  956.     <xpath>Defs/ThingDef[defName="Bullet_ChargeRifle"]/projectile/speed</xpath>
  957.     <value>
  958.       <speed>75</speed> <!-- Increased from original 70 to 75, purely visual. -->
  959.     </value>
  960.   </Operation>
  961.  
  962.   <!-- Charge Lance: Solidified its high-precision, armor-piercing long-range role. -->
  963.   <Operation Class="PatchOperationReplace">
  964.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/description</xpath>
  965.     <value>
  966.       <description>A pulse-charged rail-assisted lance weapon. It fires a single shot at high velocity, charging it with unstable energy as it leaves the acceleration rail. Designed for piercing heavily armored targets at long range.</description>
  967.     </value>
  968.   </Operation>
  969.   <Operation Class="PatchOperationReplace">
  970.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/statBases/AccuracyTouch</xpath>
  971.     <value>
  972.       <AccuracyTouch>0.50</AccuracyTouch> <!-- Decreased from original 0.65 to 0.50 for reduced close-range accuracy, ensuring it remains a dedicated long-range weapon. -->
  973.     </value>
  974.   </Operation>
  975.   <Operation Class="PatchOperationReplace">
  976.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/statBases/AccuracyMedium</xpath>
  977.     <value>
  978.       <AccuracyMedium>0.90</AccuracyMedium> <!-- Increased from original 0.85 to 0.90 for very high medium-range accuracy, providing a solid engagement window. -->
  979.     </value>
  980.   </Operation>
  981.   <Operation Class="PatchOperationReplace">
  982.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/statBases/AccuracyLong</xpath>
  983.     <value>
  984.       <AccuracyLong>0.99</AccuracyLong> <!-- Increased from original 0.75 to 0.99 for near-perfect long-range accuracy, making it a true precision anti-armor weapon. -->
  985.     </value>
  986.   </Operation>
  987.   <Operation Class="PatchOperationReplace">
  988.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/statBases/RangedWeapon_Cooldown</xpath>
  989.     <value>
  990.       <RangedWeapon_Cooldown>2.5</RangedWeapon_Cooldown> <!-- Decreased from original 2.7 to 2.5. Longer cooldown, balanced by its single-shot devastating power and range. -->
  991.     </value>
  992.   </Operation>
  993.   <Operation Class="PatchOperationReplace">
  994.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/verbs/li/warmupTime</xpath>
  995.     <value>
  996.       <warmupTime>2.2</warmupTime> <!-- Increased from original 1.7 to 2.2 for extended warm-up to represent the charging mechanism for a powerful shot. -->
  997.     </value>
  998.   </Operation>
  999.   <Operation Class="PatchOperationReplace">
  1000.     <xpath>Defs/ThingDef[defName="Gun_ChargeLance"]/verbs/li/range</xpath>
  1001.     <value>
  1002.       <range>34.9</range> <!-- Increased from original 32.9 to 34.9 for extended range, making it capable of engaging targets from a safe distance. -->
  1003.     </value>
  1004.   </Operation>
  1005.   <Operation Class="PatchOperationReplace">
  1006.     <xpath>Defs/ThingDef[defName="Bullet_ChargeLance"]/projectile/damageAmountBase</xpath>
  1007.     <value>
  1008.       <damageAmountBase>50</damageAmountBase> <!-- ADJUSTED: Increased damage (from original 30 to 50) per shot, making its single strike even more potent and ensuring it unequivocally fulfills its role as a devastating anti-armor weapon, improving its simulated DPS against high-armor targets. -->
  1009.     </value>
  1010.   </Operation>
  1011.   <Operation Class="PatchOperationAdd">
  1012.     <xpath>Defs/ThingDef[defName="Bullet_ChargeLance"]/projectile</xpath>
  1013.     <value>
  1014.       <armorPenetrationBase>0.80</armorPenetrationBase> <!-- Added as it was missing from original; now 0.80. Very high armor penetration, making it devastating against heavily armored threats. -->
  1015.     </value>
  1016.   </Operation>
  1017.   <Operation Class="PatchOperationReplace">
  1018.     <xpath>Defs/ThingDef[defName="Bullet_ChargeLance"]/projectile/speed</xpath>
  1019.     <value>
  1020.       <speed>85</speed> <!-- Decreased from original 120 to 85, purely visual. -->
  1021.     </value>
  1022.   </Operation>
  1023.  
  1024.   <!-- Charge Minigun: A brand new weapon. This will be the ultimate area suppression and heavy target shredder for Spacer tech. -->
  1025.   <Operation Class="PatchOperationAdd">
  1026.     <xpath>Defs</xpath>
  1027.     <value>
  1028.       <ThingDef ParentName="BaseHumanMakeableGun">
  1029.         <defName>Gun_ChargeMinigun</defName>
  1030.         <label>charge minigun</label>
  1031.         <description>A brutal multi-barrelled rotary charge gun. Though extremely heavy and requiring significant spin-up, it unleashes a torrent of high-energy bolts, capable of ripping apart entire squads or structures in seconds.</description>
  1032.         <techLevel>Spacer</techLevel>
  1033.         <graphicData>
  1034.           <texPath>Things/Item/Equipment/WeaponRanged/ChargeBlasterHeavy</texPath> <!-- This will need a new texture asset in your game files. -->
  1035.           <graphicClass>Graphic_Single</graphicClass>
  1036.         </graphicData>
  1037.         <soundInteract>Interact_ChargeRifle</soundInteract> <!-- Reusing existing sound for now, can be replaced with a custom one. -->
  1038.         <thingSetMakerTags>
  1039.           <li>RewardStandardQualitySuper</li>
  1040.         </thingSetMakerTags>
  1041.         <weaponClasses>
  1042.           <li>RangedHeavy</li>
  1043.         </weaponClasses>
  1044.         <statBases>
  1045.           <WorkToMake>80000</WorkToMake> <!-- High work cost reflecting advanced Spacer technology. -->
  1046.           <Mass>12</Mass> <!-- Very high mass, making it cumbersome. -->
  1047.           <AccuracyTouch>0.15</AccuracyTouch> <!-- Extremely low close-range accuracy, making it unsuitable for personal defense. -->
  1048.           <AccuracyShort>0.25</AccuracyShort> <!-- Poor short-range accuracy, demanding distance from targets. -->
  1049.           <AccuracyMedium>0.25</AccuracyMedium> <!-- Remains poor at medium range, emphasizing its niche. -->
  1050.           <AccuracyLong>0.18</AccuracyLong> <!-- Very low long-range accuracy, compensated by sheer volume of fire. -->
  1051.           <RangedWeapon_Cooldown>4.0</RangedWeapon_Cooldown> <!-- Very long cooldown, balanced by the extended burst duration. -->
  1052.         </statBases>
  1053.         <costList>
  1054.           <Plasteel>150</Plasteel> <!-- High Plasteel cost for advanced construction. -->
  1055.           <ComponentSpacer>10</ComponentSpacer> <!-- Requires advanced components for its complex mechanisms. -->
  1056.         </costList>
  1057.         <recipeMaker>
  1058.           <researchPrerequisite>ChargedShot</researchPrerequisite> <!-- Requires advanced charging technology. -->
  1059.           <skillRequirements>
  1060.             <Crafting>9</Crafting> <!-- High crafting skill needed for its complexity. -->
  1061.           </skillRequirements>
  1062.           <recipeUsers Inherit="False">
  1063.             <li>FabricationBench</li>
  1064.           </recipeUsers>
  1065.           <displayPriority>220</displayPriority>
  1066.         </recipeMaker>
  1067.         <weaponTags>
  1068.           <li>SpacerGun</li>
  1069.           <li>GunHeavy</li>
  1070.         </weaponTags>
  1071.         <equippedStatOffsets>
  1072.           <MoveSpeed>-0.30</MoveSpeed> <!-- Significant movement penalty due to its immense weight. -->
  1073.         </equippedStatOffsets>
  1074.         <verbs>
  1075.           <li>
  1076.             <verbClass>Verb_Shoot</verbClass>
  1077.             <hasStandardCommand>true</hasStandardCommand>
  1078.             <defaultProjectile>Bullet_ChargeMinigun</defaultProjectile>
  1079.             <warmupTime>3.0</warmupTime> <!-- Long spin-up time before firing. -->
  1080.             <range>32.9</range> <!-- Decent range for a heavy weapon, allowing it to engage from afar. -->
  1081.             <burstShotCount>40</burstShotCount> <!-- Extreme number of shots per burst for overwhelming firepower. -->
  1082.             <ticksBetweenBurstShots>2</ticksBetweenBurstShots> <!-- ADJUSTED: Reduced ticks between burst shots (from 3 to 2) to make the burst even tighter and faster, dramatically increasing raw DPS, as its simulated effective DPS was still too low for its tier and cost. -->
  1083.             <soundCast>Shot_ChargeBlaster</soundCast> <!-- ADJUSTED: Changed sound from "Shot_ChargeRifle" to "Shot_ChargeBlaster" as requested, for a more distinctive audio profile. -->
  1084.             <soundCastTail>GunTail_Heavy</soundCastTail>
  1085.             <muzzleFlashScale>12</muzzleFlashScale> <!-- Large muzzle flash to convey its power. -->
  1086.           </li>
  1087.         </verbs>
  1088.         <tools>
  1089.           <li>
  1090.             <label>barrels</label>
  1091.             <capacities>
  1092.               <li>Blunt</li>
  1093.             </capacities>
  1094.             <power>14.0</power> <!-- Decent blunt attack power, reflecting its heavy barrels. -->
  1095.             <cooldownTime>3.0</cooldownTime>
  1096.           </li>
  1097.         </tools>
  1098.       </ThingDef>
  1099.       <ThingDef ParentName="BaseBullet">
  1100.         <defName>Bullet_ChargeMinigun</defName>
  1101.         <label>charge minigun shot</label>
  1102.         <graphicData>
  1103.           <texPath>Things/Projectile/Charge_Small</texPath> <!-- Reusing existing charge projectile texture. -->
  1104.           <graphicClass>Graphic_Single</graphicClass>
  1105.           <shaderType>TransparentPostLight</shaderType>
  1106.           <drawSize>1.0</drawSize>
  1107.         </graphicData>
  1108.         <projectile>
  1109.           <damageDef>Bullet</damageDef>
  1110.           <damageAmountBase>20</damageAmountBase> <!-- ADJUSTED: Increased damage (from original 18 to 20) per shot to definitively cement its status as a top-tier heavy weapon. This ensures its extremely high volume of fire, despite accuracy penalties, translates into overwhelming damage, truly fulfilling its "brutal" description and justifying its high cost/drawbacks in simulated performance. -->
  1111.           <armorPenetrationBase>0.30</armorPenetrationBase> <!-- Increased from 0.20 to 0.30 to ensure it's effective against armored groups. -->
  1112.           <speed>80</speed> <!-- Fast projectile for better hit chances during sustained fire, purely visual. -->
  1113.         </projectile>
  1114.       </ThingDef>
  1115.     </value>
  1116.   </Operation>
  1117.  
  1118.   <!-- =============================== Hellcat Rifle Rebalance =============================== -->
  1119.  
  1120.   <!-- Hellcat Rifle: Positioned as a versatile assault rifle with a unique close-range area-of-effect flamethrower. -->
  1121.   <Operation Class="PatchOperationReplace">
  1122.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/description</xpath>
  1123.     <value>
  1124.       <description>A versatile assault rifle with decent range and good accuracy, suitable for varied engagements. Its underbarrel bioferrite-powered mini-burner provides a potent, short-range blast of flame, effective for flushing out enemies or igniting flammable targets, balancing its lower projectile damage.</description>
  1125.     </value>
  1126.   </Operation>
  1127.   <Operation Class="PatchOperationReplace">
  1128.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/WorkToMake</xpath>
  1129.     <value>
  1130.       <WorkToMake>42000</WorkToMake> <!-- Slightly increased from original 40000 to reflect the complexity of its integrated flamethrower. -->
  1131.     </value>
  1132.   </Operation>
  1133.   <Operation Class="PatchOperationReplace">
  1134.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/Mass</xpath>
  1135.     <value>
  1136.       <Mass>3.8</Mass> <!-- Increased from original 3.5 to 3.8 to account for the underbarrel attachment. -->
  1137.     </value>
  1138.   </Operation>
  1139.   <Operation Class="PatchOperationReplace">
  1140.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/AccuracyTouch</xpath>
  1141.     <value>
  1142.       <AccuracyTouch>0.55</AccuracyTouch> <!-- Decreased from original 0.60 to 0.55 to emphasize its less-than-optimal close-quarters gunplay, balanced by the flamethrower. -->
  1143.     </value>
  1144.   </Operation>
  1145.   <Operation Class="PatchOperationReplace">
  1146.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/AccuracyShort</xpath>
  1147.     <value>
  1148.       <AccuracyShort>0.68</AccuracyShort> <!-- Decreased from original 0.70 to 0.68 for slightly less accuracy at short range compared to other assault rifles. -->
  1149.     </value>
  1150.   </Operation>
  1151.   <Operation Class="PatchOperationReplace">
  1152.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/AccuracyMedium</xpath>
  1153.     <value>
  1154.       <AccuracyMedium>0.60</AccuracyMedium> <!-- Decreased from original 0.65 to 0.60, making it slightly less precise at medium range. -->
  1155.     </value>
  1156.   </Operation>
  1157.   <Operation Class="PatchOperationReplace">
  1158.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/AccuracyLong</xpath>
  1159.     <value>
  1160.       <AccuracyLong>0.50</AccuracyLong> <!-- Decreased from original 0.55 to 0.50, further emphasizing its underbarrel utility. -->
  1161.     </value>
  1162.   </Operation>
  1163.   <Operation Class="PatchOperationReplace">
  1164.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/statBases/RangedWeapon_Cooldown</xpath>
  1165.     <value>
  1166.       <RangedWeapon_Cooldown>1.6</RangedWeapon_Cooldown> <!-- Slightly decreased from original 1.70 to 1.6 for a bit more responsiveness, acknowledging its versatility. -->
  1167.     </value>
  1168.   </Operation>
  1169.   <Operation Class="PatchOperationReplace">
  1170.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/verbs/li/warmupTime</xpath>
  1171.     <value>
  1172.       <warmupTime>1.0</warmupTime> <!-- Retained from original 1.1, for consistency with other assault rifles. -->
  1173.     </value>
  1174.   </Operation>
  1175.   <Operation Class="PatchOperationReplace">
  1176.     <xpath>Defs/ThingDef[defName="Gun_HellcatRifle"]/verbs/li/range</xpath>
  1177.     <value>
  1178.       <range>28.9</range> <!-- Increased from original 26.9 to 28.9 for a slightly longer rifle range to keep it competitive. -->
  1179.     </value>
  1180.   </Operation>
  1181.   <Operation Class="PatchOperationReplace">
  1182.     <xpath>Defs/ThingDef[defName="Bullet_HellcatRifle"]/projectile/damageAmountBase</xpath>
  1183.     <value>
  1184.       <damageAmountBase>9</damageAmountBase> <!-- Decreased from original 10 to 9 to solidify its "weaker assault rifle" aspect, balanced by the flamethrower. -->
  1185.     </value>
  1186.   </Operation>
  1187.   <Operation Class="PatchOperationAdd">
  1188.     <xpath>Defs/ThingDef[defName="Bullet_HellcatRifle"]/projectile</xpath>
  1189.     <value>
  1190.       <armorPenetrationBase>0.18</armorPenetrationBase> <!-- Added: Set to 0.18, slightly below the Assault Rifle's for its weaker base stats. -->
  1191.     </value>
  1192.   </Operation>
  1193.   <Operation Class="PatchOperationReplace">
  1194.     <xpath>Defs/ThingDef[defName="Bullet_HellcatRifle"]/projectile/speed</xpath>
  1195.     <value>
  1196.       <speed>65</speed> <!-- Retained from original 70, making it similar to other assault rifle projectile speeds. -->
  1197.     </value>
  1198.   </Operation>
  1199.  
  1200. </Patch>
Add Comment
Please, Sign In to add comment