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

add "MissionDelay" to creature delays #480

Open scrom opened 8 years ago

scrom commented 8 years ago

at the moment, a creature can have assorted delays set. missions generally use destination delay.

I'd like another one - "missionDelay" that is set in association with a destination. If missionDelay is set, the destination added as part of a mission should be removed after being reached rather than added to the regular destinations.

In addition, when the reward delay is cleared it should be lost permanently.

A missionDelay should not be overrideable by a player being in the same location.

if a missionDelay is set and creature is heading to a mission-derived Destination they should not stop to interact with the player. Any attempts at communication/give/ask should be returned with an "I'm too busy" type response.

As part of implementing this, I might also add missionDestination support as an extra beyond normal destinations.