From 00c635a976fc2fc6d61e5120530f0e43a784df2c Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Fri, 13 Jun 2014 02:00:30 -0700 Subject: [PATCH] Add wandering sprites back to map via map objects --- moonlight/js/moonlight-skulk.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index f1379ff..f0aa646 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -644,7 +644,7 @@ var moonlightDialog = { } }; -var AISprite = function(game, x, y, key, frame, spritetype) { +var AISprite = function(game, x, y, key, frame) { this.enableWordBubble = function() { this.enable_word_bubble = true; } @@ -760,15 +760,8 @@ var AISprite = function(game, x, y, key, frame, spritetype) { game.physics.arcade.enable(this); this.body.collideWorldBounds = true; - if ( (typeof spritetype) !== undefined ) { - this.sprite_name = spritenames_by_type[spritetype]; - var ARGH = spritenames_by_type[spritetype]; - ARGH = ARGH.split("-"); - this.sprite_group = ARGH[0] + "-" + ARGH[1]; - } else { - this.sprite_name = "townsfolk-male-1"; - this.sprite_group = "townsfolk-male"; - } + this.sprite_name = "townsfolk-male-1"; + this.sprite_group = "townsfolk-male"; addAnimation(this, 'bipedwalkleft'); addAnimation(this, 'bipedwalkright');