# Stabing weapons training cut?

**URL:** <https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819>\
**Category:** The Garage\
**Created:** [February 2, 2015, 1:45am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819 "2015-02-02T01:45:53Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![aierce](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aierce](https://discourse.cataclysmdda.org/u/aierce)\
**Post date:** [February 2, 2015, 1:45am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/1 "2015-02-02T01:45:53Z")

</div>

like the combat knife, it has the ‘stab’ flag but still trains cutting, even more confusion, the weapon kris trains both cutting and piercing

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [February 2, 2015, 4:44am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/2 "2015-02-02T04:44:49Z")

</div>

We could make an arcade game of all the times we’ve tried to Whack A Stab/Cut XP Bug. \>\_\< Thanks for reporting, just the same.

Possible workaround: go into your @ menu, Tab to the skill list, highlight cutting weapons and hit spacebar to turn off XP/focus use there. Hopefully that should reroute the skill-dev to stabbing.

---

<div class="post-metadata">

**Author:** ![aierce](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aierce](https://discourse.cataclysmdda.org/u/aierce)\
**Post date:** [February 2, 2015, 7:05am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/3 "2015-02-02T07:05:11Z")

</div>

oh, an actual bug instead of being intentional?

why not just change all the “STAB” flag to “SPEAR” flag, seems to work for me with a quick test, code comment says they are interchangeable anyways

---

<div class="post-metadata">

**Author:** ![aierce](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aierce](https://discourse.cataclysmdda.org/u/aierce)\
**Post date:** [February 2, 2015, 7:08am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/4 "2015-02-02T07:08:02Z")

</div>

oh they are a bit different when getting stuck in enemies, nvm

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [February 2, 2015, 8:13am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/5 "2015-02-02T08:13:15Z")

</div>

It works like this:

Every knife-type weapon deals “equally random” amount of cutting and piercing. As in, if it deals 1d10 cutting, it also deals 1d10 piercing.  
Only the higher of the two is actually dealt.  
Only the actually dealt damage contributes to training.

Most survivors get cutting quicker, because there are more (good) weapons that do this AND because cutting damage has a lower penalty from low skills.  
Therefore most survivors deal and train cutting when using knives early on.

As a result, most survivors train cutting only by using knives.

---

<div class="post-metadata">

**Author:** ![aierce](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aierce](https://discourse.cataclysmdda.org/u/aierce)\
**Post date:** [February 2, 2015, 10:10am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/6 "2015-02-02T10:10:24Z")

</div>

yeah this line in melee.cpp line 2126

if (p.weapon.has\_flag(“SPEAR”) || (p.weapon.has\_flag(“STAB”) && stab\_dam \> cut\_dam))

pretty much proves this is intentional

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [February 2, 2015, 11:11pm UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/7 "2015-02-02T23:11:46Z")

</div>

Nah, this is a bug. Folks need to be able to train piercing.

Update: to that end, I reopened, tested, and merged your PR fixing the problem. Looks like you totally fixed the bug, and you’re just gonna have to live with that. 🙂

---

<div class="post-metadata">

**Author:** ![aierce](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@aierce](https://discourse.cataclysmdda.org/u/aierce)\
**Post date:** [February 3, 2015, 7:59am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/8 "2015-02-03T07:59:13Z")

</div>

are you absolutely sure it`s not intentional, i mean look at this code starting from line 367 in melee.cpp (condensed)

if (cut\_dam \> stab\_dam)  
d.add\_damage(DT\_CUT, cut\_dam);  
else  
d.add\_damage(DT\_STAB, stab\_dam);

I mean if you are sure i can clean out codes like this

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [February 4, 2015, 2:57am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/9 "2015-02-04T02:57:04Z")

</div>

[quote=“aierce, post:8, topic:8819”]are you absolutely sure it`s not intentional, i mean look at this code starting from line 367 in melee.cpp (condensed)

if (cut\_dam \> stab\_dam)  
d.add\_damage(DT\_CUT, cut\_dam);  
else  
d.add\_damage(DT\_STAB, stab\_dam);

I mean if you are sure i can clean out codes like this[/quote]

That makes sure folks don’t get screwed on damage coding. Different issue than code that ends up making other parts of the code practically useless, which is what you fixed.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [February 4, 2015, 9:25am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/10 "2015-02-04T09:25:48Z")

</div>

Wait, so knives no longer cut or just no longer train cutting?

And if they no longer cut, is there any significant difference between knives and spears? Other than stuck chance, that is

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [February 5, 2015, 12:58am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/11 "2015-02-05T00:58:20Z")

</div>

[quote=“Coolthulhu, post:10, topic:8819”]Wait, so knives no longer cut or just no longer train cutting?

And if they no longer cut, is there any significant difference between knives and spears? Other than stuck chance, that is[/quote]

Knives that do cutting damage train cutting. Knives that do stab damage train piercing.

Should say on the item-examine what sort of damage they do.

---

<div class="post-metadata">

**Author:** ![Burnt\_Earth](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Burnt\_Earth](https://discourse.cataclysmdda.org/u/Burnt_Earth)\
**Post date:** [February 5, 2015, 7:24am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/12 "2015-02-05T07:24:11Z")

</div>

How does skill factor into damage? If it studied ‘FM 23-25 Bayonet Murder: Best Practices’ and end up with 4 skill in piercing, 1 in everything else, will my combat knife deal mostly piercing or is it totally random still?

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [February 6, 2015, 1:26am UTC](https://discourse.cataclysmdda.org/t/stabing-weapons-training-cut/8819/13 "2015-02-06T01:26:12Z")

</div>

> [@Burnt Earth](#):
>
> How does skill factor into damage? If it studied ‘FM 23-25 Bayonet Murder: Best Practices’ and end up with 4 skill in piercing, 1 in everything else, will my combat knife deal mostly piercing or is it totally random still?

Should be piercing, but I saw the code you’re talking about. Since we theoretically check for “which way would do the most damage” and go with that, higher skill should make stabby weapons stab rather than cut, to the extent this change didn’t.

Update: gave myself a combat knife (bash 2, stab 18) and eventually 10 Cutting skill. Nominal bash XP and lots of piercing. Pretty sure damage type is the key factor here.
