# Where is the code that handles the sheaths/holsters

**URL:** https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687
**Category:** The Toolbox
**Created:** [June 13, 2018, 8:59pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687 "2018-06-13T20:59:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stone/32/2507_2.png) [@Stone](https://discourse.cataclysmdda.org/u/Stone)
#### Post date: [June 13, 2018, 8:59pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/1 "2018-06-13T20:59:42Z")

</div>

I’ve scoured over 50k lines of code and used the search function for just about anything that would be related but alas it has alluded me. I intend to make a holster item for spears and quarter staves but not halberds and i’m not sure if i can do it through JSON only or if i need to go through the code.

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [June 13, 2018, 9:47pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/2 "2018-06-13T21:47:41Z")

</div>

src/iuse\_actor.cpp lines 1952-2088 look like a good place to start, as well as data/json/items/armor/holster.json

You did try `git grep holster src` right? Because the relevant functions show up pretty clearly there.

---

<div class="post-metadata">

### Author: ![Stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stone/32/2507_2.png) [@Stone](https://discourse.cataclysmdda.org/u/Stone)
#### Post date: [June 13, 2018, 9:51pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/3 "2018-06-13T21:51:23Z")

</div>

Im a github newb ive been learning c++ and c# for the last year coming back from a 3 month break 🙂

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [June 14, 2018, 12:52am UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/4 "2018-06-14T00:52:15Z")

</div>

As a professional programmer, congratulations on teaching yourself!

But really, clone the repo to your local machine - and if that doesn’t make sense to you, learn enough git to understand it. github does a lot to make collaborating with git fairly easy, but for actual development, you want a local repository and access to the command line tools like grep and blame.

---

<div class="post-metadata">

### Author: ![Stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stone/32/2507_2.png) [@Stone](https://discourse.cataclysmdda.org/u/Stone)
#### Post date: [June 14, 2018, 1:32am UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/5 "2018-06-14T01:32:39Z")

</div>

I’ve used a few different source control options before, i used github for a little while but never had to do anything beyond push and pull. I’ll figure it out though. If not ill pick up a tutorial or an extra course online.

---

<div class="post-metadata">

### Author: ![Stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stone/32/2507_2.png) [@Stone](https://discourse.cataclysmdda.org/u/Stone)
#### Post date: [June 14, 2018, 2:33pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/6 "2018-06-14T14:33:01Z")

</div>

so i just used git grep and omg i love you this thing is AMAZING! also starting to like this linux thing more then my windows haha.EDIT\*\* The spear holster is made yay! thanks for the help.

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [June 14, 2018, 5:12pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/7 "2018-06-14T17:12:28Z")

</div>

You can install cygwin ([cygwin.org](http://cygwin.org)) to get a Linux style bash command line and Linux tools on Windows.

If you think grep is cool, wait until you start having to do code archaeology with git blame.

---

<div class="post-metadata">

### Author: ![Stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stone/32/2507_2.png) [@Stone](https://discourse.cataclysmdda.org/u/Stone)
#### Post date: [June 14, 2018, 5:15pm UTC](https://discourse.cataclysmdda.org/t/where-is-the-code-that-handles-the-sheaths-holsters/15687/8 "2018-06-14T17:15:33Z")

</div>

I dual booted Ubuntu on my PC because my Windows installation has too many things to distract me, its essentially my quiet space. I’m comfortable learning a new OS and all the ?FUN? that comes with it.
