CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.32k stars 4.14k forks source link

Vending machines will discount rotten goods #47855

Open chrispikula opened 3 years ago

chrispikula commented 3 years ago

Describe the bug

Vending machines put the price of what they are selling to what it currently is, rather than what it was stocked with originally.

Steps To Reproduce

Look at a vending machine with food, advance time till some of it rots, look at it again. Also, you can buy free plastic bags once the items are completely gone.

Expected behavior

That the vending machines don't act is if they have an AI that can determine new item prices for goods gone bad.

Versions and configuration

0.E-9867-gadceb7b , Build 11501

Additional context

Probably due to the same logic as #38379

actual-nh commented 3 years ago

Still happening?

chrispikula commented 3 years ago

I haven't had a play through where I found an intact vending machine with rotable goods in a while, so I'm not sure.

actual-nh commented 3 years ago

@Night-Pryanik, have you seen this? I know you recently did a PR involving vending machines.

Night-Pryanik commented 3 years ago

Nope, I didn't activate the machines when I was working on them, I only visually checked their state (intact/broken).

hexagonrecursion commented 3 years ago

Two issues:

discount