-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Buying container with content is cheaper than buying only the content #49160
Comments
Your screenshots do not support your theory. In both of those cases, the container plus the contents costs more than just the contents. 3L jar with tomatos $10.67 |
You forgot to multiply the values |
Yeah on the first screenshot its $1.03 for one cheese, so should be $8.24 for 8 cheeses. |
@emomicrowave: Would #48922 help with this? |
No that was pushed on the 18th, problem is persistent on experimental 38074ba, released the 25th |
Do experimentals include umerged pull requests? I don't think so. But anyway, you're right that it doesn't work. My code just adds a check to disallow selling items out of sealed containers. Did some testing and when you examine the items in your inventory, the barter price is calculated correctly:
However it when looking at the actual price, the |
Could not reproduce in the latest experimental |
If someone can reproduce, comment and I will reopen. |
Describe the bug
In the trade menu, items in containers are listed twice. Once themselves, once as the content of the container. Buying container is cheaper than buying items alone.
Steps To Reproduce
Find NPC who sells items in a container (spawn and sell packaged jerky?)
Observe the bugged price
Expected behavior
Buying items with container cost more than buying only the items
Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Bionic Professions [package_bionic_professions],
Aftershock [aftershock],
Blaze Industries [blazeindustries],
Magiclysm [magiclysm],
DinoMod [DinoMod],
Crazy Cataclysm [crazy_cataclysm],
No Rail Stations [No_Rail_Stations],
Graphical Overmap [Graphical_Overmap],
Graphical Overmap Magiclysm [Graphical_Overmap_Magiclysm],
No Fungal Monsters [No_Fungi],
SpeedyDex [speedydex],
Stats Through Kills [stats_through_kills]
]
Additional context
Already reported once in #46626 but was closed by @BrettDong, I guess they misread the issue since their comment was unrelated to what was written but I didn't particularly care to reopen this again until today saw this bug again.
The text was updated successfully, but these errors were encountered: