Close #7 and Close #6 : Player can now steal from AI and it increases their score

This commit is contained in:
2014-06-29 12:13:02 -07:00
parent a7eb935f54
commit d23d9969f7
4 changed files with 45 additions and 7 deletions

View File

@@ -621,7 +621,7 @@ var AISprite = function(game, x, y, key, frame) {
this.carries_light = parseBoolean(this.carries_light);
this.sprite_has_treasure = parseBoolean(this.sprite_has_treasure);
if ( this.sprite_has_treasure ) {
this.treasure = getRandomTreasure();
this.sprite_treasure = getRandomTreasure();
}
this.path_maximum_steps = parseInt(this.path_maximum_steps);