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

"get" should support "chargeunit" #464

Open scrom opened 8 years ago

scrom commented 8 years ago

e.g. get slice of cake

essentially if both object 0 and 1 are supplied and object 0 can't be found, retrieve object 1 and determine if the value for object0 matches chargeunit.

If it does, "split" the cake (I think the code used for splitting between containers should work). This should be limited to liquids, powders and food.

scrom commented 8 years ago

see also issue #395

there's another use case.

"get bowl of cereal" - both objects will exist. The first is a container and the second will split. This should translate to "put cereal in bowl" (roughly).