Firing mode toggle on firearms keeping them from stacking #36716
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
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.
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:
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
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
"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"
The text was updated successfully, but these errors were encountered: