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

Firing mode toggle on firearms keeping them from stacking #36716

Open
DillonSimeone opened this issue Jan 5, 2020 · 5 comments
Open

Firing mode toggle on firearms keeping them from stacking #36716

DillonSimeone opened this issue Jan 5, 2020 · 5 comments
Labels
<Bug> This needs to be fixed Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves Items / Item Actions / Item Qualities Items and how they work and interact

Comments

@DillonSimeone
Copy link
Contributor

DillonSimeone commented Jan 5, 2020

Describe the bug

When you get a new firearm, a variable is not set until you toggle the firing mode on the firearm. This was revealed when I looked at my cleaned firearms with debug mode on.

image

Both of those rifles in the image above are clean, but the difference is that I changed the right rifle's firing mode, which made it so the right rifle wouldn't stack with the left rifle until I did the same to the left rifle.

item:: mode, default is semi-auto mode, which was what the left rifle was already set to when I picked it up to toggle it to auto fire, then back to semi-auto mode to get that variable to be set.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Make a player with a few of the same gun with an auto and semi-auto firing mode.
  2. Note that the guns stacks in your inventory. Wield one gun.
  3. Change the firing mode on your wielded gun to auto and back, then unwield. Note that you now have two stacks of the same gun in your inventory.

Expected behavior

They should stack.

Fix is probably to just make sure that all new guns have the variable, item:: mode, default set on them.

Screenshots

image

The three rifles at the top haven't had their firing mode touched, and is cleaned. The bottom rifles are clean, but had their firing mode toggled to auto, then back to semi-auto.

Versions and configuration

  • OS: Window 10
  • Game Version: O.D-11016-g91d7b51
  • Graphics version: Tiles
  • Mods loaded:"dda",
    "no_npc_food",
    "magiclysm",
    "aftershock",
    "crt_expansion",
    "FIC_Weapons",
    "growable-pots",
    "ew_pack",
    "makeshift",
    "Medieval_Stuff",
    "More_Survival_Tools",
    "nw_pack",
    "alt_map_key",
    "Cata++",
    "Mining_Mod",
    "my_sweet_cataclysm",
    "MMA",
    "vamp_stuff",
    "Arcana",
    "vamp_stuff+arcana",
    "more_locations",
    "No_Rail_Stations",
    "deoxymod",
    "blazemod",
    "Heavy miners",
    "Tanks",
    "necromancy",
    "Arts' Guns",
    "no_religious_Texts",
    "novitamins",
    "speedydex",
    "secronom",
    "stats_through_kills"
@Night-Pryanik Night-Pryanik added <Bug> This needs to be fixed Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Items / Item Actions / Item Qualities Items and how they work and interact labels Jan 5, 2020
@DillonSimeone
Copy link
Contributor Author

I just noticed that this also affects even firearms with only one firing mode!

image

image

Time to riot! I attempted to add the default mode flag to the left firearm by loading it with a mag and ammos then firing it a few times. Nothing changed aside from it getting a tiny bit fouled!

@DillonSimeone
Copy link
Contributor Author

Aha! Added and removed a gunmod from the left cwd-63 in my previous comment. This got the default mode flag to show up on that rifle, so both now stacks.

image

@DillonSimeone
Copy link
Contributor Author

Another one! The difference this time? One have been cleaned, and the other haven't been fired before.

image

image

@DillonSimeone
Copy link
Contributor Author

Another one! Differences in age can make it impossible for guns to stack.

image

image

@TechyBen
Copy link
Contributor

TechyBen commented Jan 5, 2020

Wouldn't be too much of a problem if it was clear from the list which ones were cleaned etc. But stacking, then picking the first out based on quality etc would be a nice QOL change.

@wapcaplet wapcaplet added the Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves label Dec 16, 2021
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 Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Items: Ammo / Guns Ammunition for all kinds of weapons and these weapons themselves Items / Item Actions / Item Qualities Items and how they work and interact
Projects
None yet
Development

No branches or pull requests

4 participants