{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15318","repository_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15318/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15318/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15318/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/issues/15318","id":132463949,"number":15318,"title":"Is mapgen broken","user":{"login":"mugling","id":12238606,"avatar_url":"https://avatars.githubusercontent.com/u/12238606?v=3","gravatar_id":"","url":"https://api.github.com/users/mugling","html_url":"https://github.com/mugling","followers_url":"https://api.github.com/users/mugling/followers","following_url":"https://api.github.com/users/mugling/following{/other_user}","gists_url":"https://api.github.com/users/mugling/gists{/gist_id}","starred_url":"https://api.github.com/users/mugling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mugling/subscriptions","organizations_url":"https://api.github.com/users/mugling/orgs","repos_url":"https://api.github.com/users/mugling/repos","events_url":"https://api.github.com/users/mugling/events{/privacy}","received_events_url":"https://api.github.com/users/mugling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-09T16:25:21Z","updated_at":"2016-02-09T21:17:44Z","closed_at":null,"body":"For the following (simplified) mapgen:\r\n```\r\n\"place_items\": [\r\n  { \"item\": \"guns_rifle_common\", \"chance\":  50, \"x\": 20, \"y\": 12 },\r\n  { \"item\": \"guns_rifle_common\", \"chance\": 100, \"x\": 20, \"y\": 11 },                \r\n  { \"item\": \"guns_rifle_common\", \"chance\":  75, \"x\": 20, \"y\": 10 },\r\n  { \"item\": \"guns_rifle_common\", \"chance\":  75, \"x\": 20, \"y\":  9 }\r\n]\r\n````\r\n\r\nWith the itemgroup:\r\n```\r\n{\r\n  \"id\" : \"guns_rifle_common\",\r\n  \"type\" : \"item_group\",\r\n  \"items\": [\r\n    [ \"garand\", 50 ],\r\n    [ \"ar15\", 25 ]\r\n  ]\r\n}\r\n```\r\n\r\nWhich of the following behaviors are bugs and which are my lack of understanding?\r\n\r\n* More than four rifles spawn in total\r\n* More than one rifle spawns on any given tile"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/182070977","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/issues/15318#issuecomment-182070977","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15318","id":182070977,"user":{"login":"vache","id":5648885,"avatar_url":"https://avatars.githubusercontent.com/u/5648885?v=3","gravatar_id":"","url":"https://api.github.com/users/vache","html_url":"https://github.com/vache","followers_url":"https://api.github.com/users/vache/followers","following_url":"https://api.github.com/users/vache/following{/other_user}","gists_url":"https://api.github.com/users/vache/gists{/gist_id}","starred_url":"https://api.github.com/users/vache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vache/subscriptions","organizations_url":"https://api.github.com/users/vache/orgs","repos_url":"https://api.github.com/users/vache/repos","events_url":"https://api.github.com/users/vache/events{/privacy}","received_events_url":"https://api.github.com/users/vache/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T21:17:44Z","updated_at":"2016-02-09T21:17:44Z","body":"Repeat has a different function right now.  Basically, when a json mapgen method specifies a wide area, it will rng a single point within that area to perform whatever task on, and that field causes it to select \"repeat\" number of points."}}