RanvierMUD / ranviermud

A node.js based MUD game engine
https://ranviermud.com
MIT License
798 stars 247 forks source link

Return new NPC from Room.spawnNPC #376

Closed seanohue closed 5 years ago

seanohue commented 5 years ago

I found this small tweak to be useful when programmatically spawning NPCs. It allowed me to spawn the NPC in the room and then easily have a reference to the NPC to do other things with (initiate combat, attempt to move them to another room, emit another event on them, etc.)

shawncplus commented 5 years ago

This PR should be made to the core repo, not this one

seanohue commented 5 years ago

I'll re-do the PR to the correct repo. Feel free to close this one.

On Mon, Dec 10, 2018 at 5:09 PM Shawn Biddle notifications@github.com wrote:

This PR should be made to the core repo, not this one

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RanvierMUD/ranviermud/pull/376#issuecomment-445993231, or mute the thread https://github.com/notifications/unsubscribe-auth/AHxr-SOeLy4VVFgGZJUN221hLiHsbIAqks5u3tuNgaJpZM4ZMQhY .