Had a fascinating bug where tiles on the edge of a quest area were getting initialized twice. If a creature happened to be pre-spawned by the quest triggering creation of the tiles (which happened only very occasionally), then the hero’s movement would again trigger the spawn. One of the creatures would then move, and it would look as though two souls had spawned side by side. Me thinking I was looking at the freshly created result, I could not figure out where the superfluous villager was coming from.
I need a better sdk, Aptana is ok but there are omissions. Javascript is not easy to model outside of execution.