mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Make minor code improvements to bootstrap, make spawn_npc return the spawned npc.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user