CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.65k stars 4.18k forks source link

Bayonets add useless firing mode to guns #69337

Closed Terrorforge closed 9 months ago

Terrorforge commented 1 year ago

Describe the bug

Adding a bayonet to a firearm allows you to select the bayonet as a firing mode in order to aim the reach attack.

However, as of #69201, bayonets no longer have reach attacks. As a result, the "bayonet" firing mode does nothing at all except clog up the firing mode menu.

Attach save file

Trivially reproducible

Steps to reproduce

  1. Attach a bayonet to a gun
  2. Switch firing mode to the bayonet
  3. Attempt to fire the bayonet; note that nothing happens.

Expected behavior

No useless firing modes that just introduce clutter and confusion.

Screenshots

No response

Versions and configuration

Additional context

@tenmillimaster mentioned that they're planning to give some very long guns like the flintlock musket bayonets with reach attacks, so those particular examples would presumably need to keep the bayonet firing mode.

tenmillimaster commented 1 year ago

Ah heck.

tenmillimaster commented 1 year ago

image Makeshift bayonet with firing mode (left unmodified)

image

Makeshfit bayonet with firing mode deleted (left unmodified)

The bayonets do not add any melee damage properties without the firemode defined. This will require some C++ to fix, I think.

tenmillimaster commented 12 months ago

I've gone and reconfirmed that this exists, that the firing mode is added and doesn't do much. However, this is the way the pistol bayonet used to work pre- #69201. I would like for melee gunmods to add their stats without adding a fire mode, but IMO this is more of a feature request and not a bug.

Terrorforge commented 12 months ago

Regardless of why it's there or how long it's existed, a gun having a firing mode that does literally nothing has to qualify as a bug.

tenmillimaster commented 12 months ago

I asked Kevin about it:

yes it's a good thing, no protest there, but it's not a bug