NebulaSS13 / Nebula

A general purpose SS13/Baystation12 fork.
https://discord.gg/Ddw58yF
GNU Affero General Public License v3.0
49 stars 221 forks source link

Weapons made with some materials don't use the right damage type #2304

Closed PsyCommando closed 5 months ago

PsyCommando commented 2 years ago

Description of issue

Depending on the materials, some swords for instance, cause blunt damage instead of edge damage. Its because of some of the materials change that disable the sharp flag on swords based on hardness of the material its made of. The same issue also applies to the energy swords..

Steps to reproduce

Try to cut a human's head off with a katana or esword. (Both are considered to be made of steel and get their flags modified) Notice it gibs the head like a blunt weapon would do. Try the vibrokatana instead. Notice how its made of titanium and properly chop the head off?

Length of time in which bug has been known to occur

At least a month.

Client version, Server revision & Game ID

Issue bingo

MistakeNot4892 commented 2 years ago

For reference this is specifically handled by /obj/item/sword/update_force() and the basic material system has handling for edge/blunt damage as-is - might be worth merging the functions.

comma commented 1 year ago

It shouldn't affect e-swords because they're not under /sword/ path, they're their own item /obj/item/energy_blade/sword Katanas are blunt because steel is not hard enough, going to bump that so it's above cast iron

out-of-phaze commented 5 months ago

the esword has sharp and edge both set to false, which implies this is intended? it's a blunt weapon that's just very hot. i think #2953 fixed the actual issues with katanas though, so i'll close this. feel free to open a new one if it's still an issue