scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

selecting "suitable container" needs more intelligence handling liquids. #394

Open scrom opened 8 years ago

scrom commented 8 years ago

if the suitable container contains a liquid then we need to check if the item we're adding will combine with the contents. If it wont then we need to select a different container.

the inverse is also true. If we're adding a liquid to a container that already contains something (solid or liquid), a different container should be found.

scrom commented 8 years ago

note this also needs to handle powders

scrom commented 8 years ago

note - it's the different container bit that isn't handled yet.

This also needs to support splitting quantities

scrom commented 8 years ago

suitable container handling is much improved now but the fundamental issue described here is still an issue.