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

Creatures should be more picky about what they're willing to buy from a player #351

Open scrom opened 9 years ago

scrom commented 9 years ago

at the moment, if a creature has money, you can sell them pretty much anything of value.

I'd like to enhance the creature.willTrade function to take into account a creatures preferences. If no preferences are set, they'll only buy objects of type "treasure" but it'd useful to list the categories of object a creature buys - e.g. "junk", "tools" etc. in their attributes. This makes it more interesting figuring out what to sell to whom.

Beyond this, I'd like to be able to narrow down what some creatures will buy even further to specific objects. E.g. a gallery owner will only buy paintings etc. Maybe I need more object categories but that seems excessive (there's enough already)

scrom commented 8 years ago

see also issue #107