{"action":"created","issue":{"url":"https://api.github.com/repos/blushiemagic/tModLoader/issues/364","repository_url":"https://api.github.com/repos/blushiemagic/tModLoader","labels_url":"https://api.github.com/repos/blushiemagic/tModLoader/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/blushiemagic/tModLoader/issues/364/comments","events_url":"https://api.github.com/repos/blushiemagic/tModLoader/issues/364/events","html_url":"https://github.com/blushiemagic/tModLoader/pull/364","id":332651260,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MDgxMjEw","number":364,"title":"Create Slime.cs","user":{"login":"ObsceneSoul","id":35277182,"node_id":"MDQ6VXNlcjM1Mjc3MTgy","avatar_url":"https://avatars2.githubusercontent.com/u/35277182?v=4","gravatar_id":"","url":"https://api.github.com/users/ObsceneSoul","html_url":"https://github.com/ObsceneSoul","followers_url":"https://api.github.com/users/ObsceneSoul/followers","following_url":"https://api.github.com/users/ObsceneSoul/following{/other_user}","gists_url":"https://api.github.com/users/ObsceneSoul/gists{/gist_id}","starred_url":"https://api.github.com/users/ObsceneSoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ObsceneSoul/subscriptions","organizations_url":"https://api.github.com/users/ObsceneSoul/orgs","repos_url":"https://api.github.com/users/ObsceneSoul/repos","events_url":"https://api.github.com/users/ObsceneSoul/events{/privacy}","received_events_url":"https://api.github.com/users/ObsceneSoul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T05:33:29Z","updated_at":"2018-07-09T11:06:07Z","closed_at":"2018-07-09T11:06:07Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/blushiemagic/tModLoader/pulls/364","html_url":"https://github.com/blushiemagic/tModLoader/pull/364","diff_url":"https://github.com/blushiemagic/tModLoader/pull/364.diff","patch_url":"https://github.com/blushiemagic/tModLoader/pull/364.patch"},"body":"Essentially, this file would showcase how to use a bool created in ExampleMod.cs to spawn in a custom Slime enemy.\r\n\r\n### Description of the Change\r\n\r\nEssentially, this provides an example of using a custom global bool to spawn a basic NPC.\r\n\r\n### Alternate designs\r\n\r\nAny type of NPC could have been considered for this particular file, but Slimes are probably the easiest type to demonstrate the effect of the example, as they can spawn pretty much anywhere..\r\n\r\n### Why this should be merged into tModLoader\r\n\r\nThis would show those whom are new to tModLoader modding, such as myself, how to utilize the example bools in the main .cs file.\r\n\r\n### Benefits\r\n\r\nAs previously stated, new modders would be able to learn a little trick to shorten code repetition in their mods.\r\n\r\n### Possible drawbacks\r\n\r\nThere will be a new NPC that spawns in worlds while ExampleMod is active.\r\n\r\n### Applicable Issues\r\n\r\nModNPC spawning using bool created in master mod file.\r\n\r\n### Sample Usage\r\n\r\npublic override float SpawnChance(NPCSpawnInfo spawnInfo)\r\n{\r\n\treturn ExampleMod.NoBiomeNormalSpawn(spawnInfo) ? SpawnCondition.OverworldDaySlime.Chance * 0.5f : 0f;\r\n}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/blushiemagic/tModLoader/issues/comments/403442478","html_url":"https://github.com/blushiemagic/tModLoader/pull/364#issuecomment-403442478","issue_url":"https://api.github.com/repos/blushiemagic/tModLoader/issues/364","id":403442478,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzQ0MjQ3OA==","user":{"login":"Jofairden","id":4968151,"node_id":"MDQ6VXNlcjQ5NjgxNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4968151?v=4","gravatar_id":"","url":"https://api.github.com/users/Jofairden","html_url":"https://github.com/Jofairden","followers_url":"https://api.github.com/users/Jofairden/followers","following_url":"https://api.github.com/users/Jofairden/following{/other_user}","gists_url":"https://api.github.com/users/Jofairden/gists{/gist_id}","starred_url":"https://api.github.com/users/Jofairden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jofairden/subscriptions","organizations_url":"https://api.github.com/users/Jofairden/orgs","repos_url":"https://api.github.com/users/Jofairden/repos","events_url":"https://api.github.com/users/Jofairden/events{/privacy}","received_events_url":"https://api.github.com/users/Jofairden/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T11:06:07Z","updated_at":"2018-07-09T11:06:07Z","author_association":"COLLABORATOR","body":"This doesn't really seem that useful as the addition hardly shows off anything that hasn't before. ExampleMod already has FlutterSlime that shows off a lot."}}
{"actor":{"display_login":"Jofairden"}}