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

moving Liquids and powders need better support for more granular measurements (same for food) #395

Open scrom opened 8 years ago

scrom commented 8 years ago

cup, spoon, bottle, etc. If a liquid or powder has a chargeunit defined then player should be able to say: get/put [into/on etc] [object]

if units are not specified by user, get/put should assume "all" (if all will fit) if "all" won't fit, player should receive message that it all won't fit and say they need to be clear how many to put in.

e.g. "put milk in cup" should fail as milk bottle contains 5 cupfuls. - this needs some care in determining relative carry weights

the weight/size of a single chargeunit is total weight/total number of units - this should be used to determine if a container or player can carry that much.

this is not needed for things like batteries

scrom commented 8 years ago

this also means the input interpreter will need to handle numbers (in numeric or word format) and charge units e.g. put 1 spoonful of sugar into cup

scrom commented 8 years ago

"put milk in cup" (or "pour") should split the quantity (charges) of milk between the cup and bottle depending on how much the cup can hold.

scrom commented 8 years ago

automatic quantity splitting is now supported and working. selecting spoonfuls of sugar still isn't though