{"action":"closed","issue":{"url":"https://api.github.com/repos/scrom/Experiments/issues/348","labels_url":"https://api.github.com/repos/scrom/Experiments/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/scrom/Experiments/issues/348/comments","events_url":"https://api.github.com/repos/scrom/Experiments/issues/348/events","html_url":"https://github.com/scrom/Experiments/issues/348","id":106714410,"number":348,"title":"mission/map modify/remove object/location need to handle multiple items","user":{"login":"scrom","id":409676,"avatar_url":"https://avatars.githubusercontent.com/u/409676?v=3","gravatar_id":"","url":"https://api.github.com/users/scrom","html_url":"https://github.com/scrom","followers_url":"https://api.github.com/users/scrom/followers","following_url":"https://api.github.com/users/scrom/following{/other_user}","gists_url":"https://api.github.com/users/scrom/gists{/gist_id}","starred_url":"https://api.github.com/users/scrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrom/subscriptions","organizations_url":"https://api.github.com/users/scrom/orgs","repos_url":"https://api.github.com/users/scrom/repos","events_url":"https://api.github.com/users/scrom/events{/privacy}","received_events_url":"https://api.github.com/users/scrom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scrom/Experiments/labels/engine","name":"engine","color":"fbca04"},{"url":"https://api.github.com/repos/scrom/Experiments/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-16T07:18:25Z","updated_at":"2015-10-23T16:44:46Z","closed_at":"2015-10-23T16:44:46Z","body":"Currently each of these assumes a single item to work against.\r\nWe need to make the data and method names plural and change the methods to handle either single items or arrays.\r\n\r\nSee the following segment in mission.js:\r\n\r\n            //@todo - alter all of the below to work on an array of objects or locations, make them plural\r\n            if (reward.modifyObject) { map.modifyObject(reward.modifyObject, player);};\r\n            if (reward.removeObject) { map.removeObject(reward.removeObject, self.getDestination(), player);};\r\n            if (reward.modifyLocation) { map.modifyLocation(reward.modifyLocation);}; //important! modify before remove\r\n            if (reward.removeLocation) { map.removeLocation(reward.removeLocation);};"}}