dracoapi / dracowalker

MIT License
2 stars 3 forks source link

Router #13

Closed ArmchairGuy closed 6 years ago

ArmchairGuy commented 6 years ago

Is there any way to change the 'human' router order of preference for the target such as - chests, stops, creatures, so that chests are prioritised?

niicojs commented 6 years ago

I think it's currently chest, creatures, stops It make more sense to me, why do you think stop would be before creature?

ArmchairGuy commented 6 years ago

In the humanrouter.js there is a line: return _.orderBy([stop, creature, chest].filter(o=>o), 'distance', 'asc')[0];

Or am I misreading it?

niicojs commented 6 years ago

I didn't remember I did that. It actually take the closest one, without weight

niicojs commented 6 years ago

chest is now prioritized in human router