Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gloves are messing up punch speed #48526

Closed
souricelle opened this issue Apr 14, 2021 · 5 comments
Closed

Gloves are messing up punch speed #48526

souricelle opened this issue Apr 14, 2021 · 5 comments
Labels
<Bug> This needs to be fixed Items / Item Actions / Item Qualities Items and how they work and interact Melee Melee weapons, tactics, techniques, reach attack (S2 - Confirmed) Bug that's been confirmed to exist

Comments

@souricelle
Copy link
Contributor

souricelle commented Apr 14, 2021

Describe the bug

Many items that cover your hands have an attack speed value. If you attack while wearing one of these items, they're potentially slowing your attacks down very badly. An easy example of this is the Field Combat Exoskeleton, which has an attack speed of 700. So picking up an empty suit of power armor and walloping someone with it is costing the same amount of moves as punching someone while wearing it, whether it's powered or not.

Wielded weapons are unaffected by this bug.

Steps To Reproduce

  1. Equip and power a suit of power armor
  2. Punch something
  3. Take 7+ seconds to do so despite being able to stab with a knife at the normal speed

Expected behavior

Gloves should not be affecting attack speed whatsoever, except for their hand encumbrance.

Versions and configuration

  • OS: Windows
    • OS Version: 10.0 2004
  • Game Version: 0.E-10114-gd55d4a1 [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Bionic Professions [package_bionic_professions]
    ]
@actual-nh actual-nh added (S1 - Need confirmation) Report waiting on confirmation of reproducibility Items / Item Actions / Item Qualities Items and how they work and interact Melee Melee weapons, tactics, techniques, reach attack labels Apr 15, 2021
@Salty-Panda
Copy link
Contributor

Can confirm, happened to me with RM13 combat armor and Taekwondo

@actual-nh actual-nh added <Bug> This needs to be fixed and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Apr 18, 2021
@Leland Leland added the (S2 - Confirmed) Bug that's been confirmed to exist label Apr 25, 2021
@Salty-Panda
Copy link
Contributor

Caused by #41209

@Salty-Panda
Copy link
Contributor

Salty-Panda commented May 26, 2021

Suggested fix:
In

        if( found_glove ) {
           cur_weapon->set_flag( flag_UNARMED_WEAPON );
           unarmed_flag_set = true;
       }

also temporarily reduce move_cost of item (probably not possible to change directly, so by manipulating weight), depending on covered body parts. The coverage data can be found in body_parts.json iirc.

Saelfen added a commit to Saelfen/Cataclysm-DDA that referenced this issue Jul 6, 2021
@hexagonrecursion
Copy link
Contributor

Could not reproduce. Punching while wearing a powered on field combat exoskeleton costs 57 points

  • OS: Linux
    • OS Version: LSB Version: :core-4.1-amd64:core-4.1-noarch; Distributor ID: Fedora; Description: Fedora release 33 (Thirty Three); Release: 33; Codename: ThirtyThree;
  • Game Version: 20b0c03 [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Bionic Professions [package_bionic_professions]
    ]

@Salty-Panda
Copy link
Contributor

Salty-Panda commented Aug 26, 2021

Already fixed in PR linked a bit above, its author incorrectly mentioned this issue, so github didn't close this automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Items / Item Actions / Item Qualities Items and how they work and interact Melee Melee weapons, tactics, techniques, reach attack (S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

No branches or pull requests

6 participants