When you think about the fact that Npc passes nextRoom to the event: this.room.emit('npcLeave', this, nextRoom); (thisRoom can determine the direction the Npc went based on nextRoom)
Then, why shouldn't nextRoom also received thisRoom as an argument of where the npc arrived from instead of just nextRoom.emit('npcEnter', this);
I think this should be added to the moveTo method of both Npc and Player as they both work the same way.
When you think about the fact that Npc passes nextRoom to the event:
this.room.emit('npcLeave', this, nextRoom);
(thisRoom can determine the direction the Npc went based on nextRoom)Then, why shouldn't nextRoom also received thisRoom as an argument of where the npc arrived from instead of just
nextRoom.emit('npcEnter', this);
I think this should be added to the moveTo method of both Npc and Player as they both work the same way.