Make minor code improvements to bootstrap, make spawn_npc return the spawned npc.

This commit is contained in:
Major-
2015-02-26 04:30:09 +00:00
parent 8afc8479ec
commit 5f2b1566de
2 changed files with 9 additions and 3 deletions
@@ -28,6 +28,7 @@ def spawn_npc(hash)
raise 'A name (or id), x coordinate, and y coordinate must be specified to spawn an npc.' unless (hash.has_key?(:name) || hash.has_key?(:id)) && hash.has_keys?(:x, :y)
npc = get_npc(hash)
spawn(npc, hash)
npc
end
# Spawns the specified npc and applies the properties in the hash.