-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1779e17
commit 3afb708
Showing
36 changed files
with
280 additions
and
318 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ModMetaData> | ||
<name>[XND] Proper Shotguns</name> | ||
<description>Pump shotguns and chain shotguns will fire actual buckshots rather than single slug-like shots.</description> | ||
<author>XeoNovaDan</author> | ||
<url>https://ludeon.com/forums/index.php?topic=29503.0</url> | ||
<packageId>XeoNovaDan.ProperShotguns</packageId> | ||
<url>https://steamcommunity.com/sharedfiles/filedetails/?id=1438488634</url> | ||
<supportedVersions> | ||
<li>1.0</li> | ||
<li>1.1</li> | ||
</supportedVersions> | ||
<description>Pump shotguns and chain shotguns will fire actual buckshots rather than single slug-like shots.</description> | ||
<modDependencies> | ||
<li> | ||
<packageId>brrainz.harmony</packageId> | ||
<displayName>Harmony</displayName> | ||
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> | ||
<steamWorkshopUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</steamWorkshopUrl> | ||
</li> | ||
</modDependencies> | ||
<loadAfter> | ||
<li>Ludeon.RimWorld</li> | ||
<li>Ludeon.RimWorld.Royalty</li> | ||
<li>brrainz.harmony</li> | ||
</loadAfter> | ||
</ModMetaData> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
<LanguageData> | ||
|
||
<ProperShotgunsSettingsCategory>Proper Shotguns</ProperShotgunsSettingsCategory> | ||
<DamageRoundingMode>Damage Rounding Mode</DamageRoundingMode> | ||
<ProperShotguns.SettingsCategory>Proper Shotguns</ProperShotguns.SettingsCategory> | ||
|
||
<ProperShotguns.ShotgunDamageRounding>Shotgun pellet damage rounding</ProperShotguns.ShotgunDamageRounding> | ||
<ProperShotguns.ShotgunDamageRounding_Random>Random</ProperShotguns.ShotgunDamageRounding_Random> | ||
<ProperShotguns.ShotgunDamageRounding_Random_Desc>Pellet damage will randomly be rounded up or down depending on decimal value - 3.7 has a 70% chance of being rounded up to 4, and a 30% chance of being rounded down to 3.</ProperShotguns.ShotgunDamageRounding_Random_Desc> | ||
<ProperShotguns.ShotgunDamageRounding_Standard>Standard</ProperShotguns.ShotgunDamageRounding_Standard> | ||
<ProperShotguns.ShotgunDamageRounding_Standard_Desc>Pellet damage will follow standard rounding rules - down if decimal value is less than 0.5, otherwise up.</ProperShotguns.ShotgunDamageRounding_Standard_Desc> | ||
<ProperShotguns.ShotgunDamageRounding_Floor>Down</ProperShotguns.ShotgunDamageRounding_Floor> | ||
<ProperShotguns.ShotgunDamageRounding_Floor_Desc>Pellet damage will always be rounded down.</ProperShotguns.ShotgunDamageRounding_Floor_Desc> | ||
<ProperShotguns.ShotgunDamageRounding_Ceil>Up</ProperShotguns.ShotgunDamageRounding_Ceil> | ||
<ProperShotguns.ShotgunDamageRounding_Ceil_Desc>Pellet damage will always be rounded up.</ProperShotguns.ShotgunDamageRounding_Ceil_Desc> | ||
|
||
</LanguageData> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,24 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Patch> | ||
|
||
<Operation Class="PatchOperationFindMod"> | ||
<mods> | ||
<li>Vanilla Factions Expanded - Settlers</li> | ||
</mods> | ||
<match Class="PatchOperationSequence"> | ||
<success>Always</success> | ||
<operations> | ||
|
||
<!-- general verb patching --> | ||
<li Class="PatchOperationReplace"> | ||
<xpath>/Defs/ThingDef[defName="VFES_Gun_DoubleBarreledShotgun"]/verbs/li/verbClass</xpath> | ||
<value> | ||
<verbClass>ProperShotguns.Verb_ShootShotgun</verbClass> | ||
</value> | ||
</li> | ||
|
||
</operations> | ||
</match> | ||
</Operation> | ||
|
||
</Patch> |
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,53 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Patch> | ||
|
||
<Operation Class="PatchOperationFindMod"> | ||
<mods> | ||
<li>Vanilla Weapons Expanded - Laser</li> | ||
</mods> | ||
<match Class="PatchOperationSequence"> | ||
<success>Always</success> | ||
<operations> | ||
|
||
<!-- general verb patching --> | ||
<li Class="PatchOperationReplace"> | ||
<xpath>/Defs/ThingDef[defName="VWEL_Gun_LaserShotgun" or defName="VWEL_Gun_SalvagedLaserShotgun"]/verbs/li/verbClass</xpath> | ||
<value> | ||
<verbClass>ProperShotguns.Verb_ShootShotgun</verbClass> | ||
</value> | ||
</li> | ||
<li Class="PatchOperationRemove"> | ||
<xpath>/Defs/ThingDef[defName="VWEL_Gun_LaserShotgun" or defName="VWEL_Gun_SalvagedLaserShotgun"]/verbs/li/burstShotCount</xpath> | ||
</li> | ||
|
||
<!-- projectile patching --> | ||
<li Class="PatchOperationAddModExtension"> | ||
<xpath>/Defs/ThingDef[defName="VWEL_Bullet_LaserShotgun" or defName="VWEL_Bullet_SalvagedLaserShotgun"]</xpath> | ||
<value> | ||
<li Class="ProperShotguns.ShotgunExtension"> | ||
<pelletCount>4</pelletCount> | ||
</li> | ||
</value> | ||
</li> | ||
|
||
<!-- ===== Laser Shotgun ===== --> | ||
<li Class="PatchOperationReplace"> | ||
<xpath>/Defs/ThingDef[defName="VWEL_Bullet_LaserShotgun"]/projectile/damageAmountBase</xpath> | ||
<value> | ||
<damageAmountBase>28</damageAmountBase> | ||
</value> | ||
</li> | ||
|
||
<!-- ===== Salvaged Laser Shotgun ===== --> | ||
<li Class="PatchOperationReplace"> | ||
<xpath>/Defs/ThingDef[defName="VWEL_Bullet_SalvagedLaserShotgun"]/projectile/damageAmountBase</xpath> | ||
<value> | ||
<damageAmountBase>16</damageAmountBase> | ||
</value> | ||
</li> | ||
|
||
</operations> | ||
</match> | ||
</Operation> | ||
|
||
</Patch> |
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
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,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Reflection; | ||
using System.Reflection.Emit; | ||
using System.Runtime.CompilerServices; | ||
using RimWorld; | ||
using Verse; | ||
using HarmonyLib; | ||
using UnityEngine; | ||
|
||
namespace ProperShotguns | ||
{ | ||
|
||
public enum ShotgunDamageRoundMode | ||
{ | ||
|
||
Random, | ||
Standard, | ||
Floor, | ||
Ceil | ||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.