{"action":"created","issue":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/568","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/568/comments","events_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/568/events","html_url":"https://github.com/OpenDungeons/OpenDungeons/issues/568","id":63417531,"number":568,"title":"Revise the spawning logic","user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Config","name":"Config","color":"0319e7"},{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Question","name":"Question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"hwoarangmy","id":7493706,"avatar_url":"https://avatars.githubusercontent.com/u/7493706?v=3","gravatar_id":"","url":"https://api.github.com/users/hwoarangmy","html_url":"https://github.com/hwoarangmy","followers_url":"https://api.github.com/users/hwoarangmy/followers","following_url":"https://api.github.com/users/hwoarangmy/following{/other_user}","gists_url":"https://api.github.com/users/hwoarangmy/gists{/gist_id}","starred_url":"https://api.github.com/users/hwoarangmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwoarangmy/subscriptions","organizations_url":"https://api.github.com/users/hwoarangmy/orgs","repos_url":"https://api.github.com/users/hwoarangmy/repos","events_url":"https://api.github.com/users/hwoarangmy/events{/privacy}","received_events_url":"https://api.github.com/users/hwoarangmy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/milestones/4","html_url":"https://github.com/OpenDungeons/OpenDungeons/milestones/0.5.0","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/milestones/4/labels","id":878113,"number":4,"title":"0.5.0","description":"This release is the continuation of the last release of the 0.4.x serie + a focus on finishing the base game play and using light and texture normals in a better way.\r\n\r\nThe most notable difference should be the addition of the Fog of War.","creator":{"login":"Bertram25","id":765917,"avatar_url":"https://avatars.githubusercontent.com/u/765917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bertram25","html_url":"https://github.com/Bertram25","followers_url":"https://api.github.com/users/Bertram25/followers","following_url":"https://api.github.com/users/Bertram25/following{/other_user}","gists_url":"https://api.github.com/users/Bertram25/gists{/gist_id}","starred_url":"https://api.github.com/users/Bertram25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bertram25/subscriptions","organizations_url":"https://api.github.com/users/Bertram25/orgs","repos_url":"https://api.github.com/users/Bertram25/repos","events_url":"https://api.github.com/users/Bertram25/events{/privacy}","received_events_url":"https://api.github.com/users/Bertram25/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":107,"state":"open","created_at":"2014-11-24T11:03:11Z","updated_at":"2015-03-23T10:35:08Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-03-21T15:18:36Z","updated_at":"2015-03-23T10:43:32Z","closed_at":null,"body":"*Note:* I'll sum up the current state of the discussions here and copy paste some relevant bits from #562 in the first comment.\r\n\r\n**Current spawning logic**\r\n\r\n- The portal can spawn a creature if the total number of controlled creatures (both spawned fighters and summoned workers) is less than MaxCreaturesPerSeat defined in config/global.cfg (set to 15)\r\n- The crypt follows the same logic\r\n- The SummonWorker spell currently does no check, but it will follow the same logic as above once #562 has been merged.\r\n\r\n@Bertram25 said that the intended logic is that MaxCreaturesPerSeat is the total number of fighting creatures that can be spawned through the portal, and that additional portals increase this value by 5. I'm not sure this is actually implemented in the spawning logic though, since from what I saw both the portal and the crypt test only for MaxCreaturesPerSeat.\r\n\r\n**New spawning logic**\r\n\r\n- Workers should be out of creature count (if max creature number is 20, it means 20 fighters not including workers)\r\n- The maximum creature number should be raised to 20"},"comment":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/comments/84940493","html_url":"https://github.com/OpenDungeons/OpenDungeons/issues/568#issuecomment-84940493","issue_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/568","id":84940493,"user":{"login":"hwoarangmy","id":7493706,"avatar_url":"https://avatars.githubusercontent.com/u/7493706?v=3","gravatar_id":"","url":"https://api.github.com/users/hwoarangmy","html_url":"https://github.com/hwoarangmy","followers_url":"https://api.github.com/users/hwoarangmy/followers","following_url":"https://api.github.com/users/hwoarangmy/following{/other_user}","gists_url":"https://api.github.com/users/hwoarangmy/gists{/gist_id}","starred_url":"https://api.github.com/users/hwoarangmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwoarangmy/subscriptions","organizations_url":"https://api.github.com/users/hwoarangmy/orgs","repos_url":"https://api.github.com/users/hwoarangmy/repos","events_url":"https://api.github.com/users/hwoarangmy/events{/privacy}","received_events_url":"https://api.github.com/users/hwoarangmy/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T10:43:32Z","updated_at":"2015-03-23T10:43:32Z","body":"I will handle this when my PR gets merged"}}