Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rheirman authored May 9, 2019
1 parent 51e335d commit 80e004c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Translations are always very welcome. Just create a pull request. For other chan
This mod is shipped with advanced settings that allow you to configure how weapons are drawn when dual wielded. The mod has reasonable defaults, but these defaults may not be perfect for your weapon-adding mod. I therefore added a patching hook so you can set better defaults for your weapon mod. **Do mind that if users already configured their settings, the defaults won't be used! (otherwise they wouldn't be defaults :))**. DefModExtensions are used as patching hooks, you can read more about those here: https://rimworldwiki.com/wiki/Modding_Tutorials/DefModExtension.


# Setting a custom rotation
### Setting a custom rotation
The following example patch ensures the spear is drawn with an 45 degree extra angle when viewed in the frontal view, using DefModExtension_CustomRotation.
```
<?xml version="1.0" encoding="utf-8" ?>
Expand All @@ -31,7 +31,7 @@ The following example patch ensures the spear is drawn with an 45 degree extra a
</Patch>
```

# Setting defaults for weapons being secondary, or two-handed
### Setting defaults for weapons being secondary, or two-handed
In the following example DefModExtension_DefaultSettings is used to set all weapons to be dual wieldable.
```
<Operation Class ="PatchOperationAddModExtension">
Expand Down

0 comments on commit 80e004c

Please sign in to comment.