-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Items of type MAGAZINE cannot be reloaded if ammunition is liquid #40766
Comments
the fix is simple: add "watertight" to the pocket. |
upon further inspection, it already is watertight. did you test this or are you going on hearsay? https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/json/items/magazine/chemical_spray.json#L19 |
It still does not function, as of my recent test on the said build: https://cdn.discordapp.com/attachments/709600070810730518/713608674823634944/unknown.png
|
Retested on the next build that was released, current latest available version. This is still present. From your screenshot, the lack of a secondary container suggests you did not test actually loading a magazine, just spawning one. As already noted in the inital, they correctly spawn fully-loaded, but cannot be reloaded once emptied (or if naturally spawned empty in the world). Please re-test this and follow the listed steps, ensuring that you have a valid container to unload the fuel tank's contents into to attempt reloading the fuel tank. |
Describe the bug
Magazines whose contents are intended to be liquid, such as pressurized fuel tanks for flamethrowers, cannot be reloaded. Attempting to reload them will result in the message that you do not have the available ammunition, even if correct ammunition is presently available. This occurs even if the magazine in question is given the proper watertight magazine
pocket_data
.Airtight magazines, if added, are also affected but behave slightly differently (see below).
Steps To Reproduce
pocket_data
, it should presently as of Add pocket data to all magazines #40295.2b. Alternatively, were you to test this with a magazine containing gaseous ammunition (I do not recall if any exist in vanilla) with the appropriate
airtight
boolean, take note that it will spawn empty instead. This is the only difference in behavior observed thus far.Expected behavior
The magazine will recognize the presence of available ammunition if properly contained (excluding uncontained/spilt liquids), as magazines do if the expected ammo is solid.
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food]
]
Additional context
The normal message for failure to load under current functionality is to instead state that the item in question cannot be loaded.
The text was updated successfully, but these errors were encountered: