-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creature respawn #26
Comments
In addition to whether or not it's respawnable, should also be able to specify probability of respawn. There should also be a configurable amount of time between when the creature dies and when it respawns, with some default value. |
This will be an event / timer duo. The event trigger will execute when the Being dies. If the being is configured with respawn = true, then a timer job will be started for that Being, which will set it back to life after the specified time interval. |
There should be messaging involved when the creature respawns, so that players in the room know that a player or creature respawned. Yeah, about configuration... Make sure that we can configure respawn both for players (just default player settings right now) and creatures. |
Should be a Being::respawn() function. If interval = 0, then call this directly from event trigger. Otherwise, set a timed job at the specified interval, and have that execute Being::respawn(). |
#41 will have to be fixed before I can continue on this :( |
commit 9c4e483: added timer job for Being respawn. |
This is done, but messaging during combat is messed up now. It's because respawn is called by afterDie before the death message goes out. Fix this somehow... |
When a creature is killed, the game developer should be able to decide whether or not it will respawn.
The text was updated successfully, but these errors were encountered: