{"action":"created","issue":{"url":"https://api.github.com/repos/evennia/ainneve/issues/36","labels_url":"https://api.github.com/repos/evennia/ainneve/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/evennia/ainneve/issues/36/comments","events_url":"https://api.github.com/repos/evennia/ainneve/issues/36/events","html_url":"https://github.com/evennia/ainneve/pull/36","id":96774231,"number":36,"title":"Added basic ability structure","user":{"login":"abbacode","id":13191198,"avatar_url":"https://avatars.githubusercontent.com/u/13191198?v=3","gravatar_id":"","url":"https://api.github.com/users/abbacode","html_url":"https://github.com/abbacode","followers_url":"https://api.github.com/users/abbacode/followers","following_url":"https://api.github.com/users/abbacode/following{/other_user}","gists_url":"https://api.github.com/users/abbacode/gists{/gist_id}","starred_url":"https://api.github.com/users/abbacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbacode/subscriptions","organizations_url":"https://api.github.com/users/abbacode/orgs","repos_url":"https://api.github.com/users/abbacode/repos","events_url":"https://api.github.com/users/abbacode/events{/privacy}","received_events_url":"https://api.github.com/users/abbacode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-23T09:51:02Z","updated_at":"2015-11-25T07:26:01Z","closed_at":"2015-11-25T07:26:01Z","pull_request":{"url":"https://api.github.com/repos/evennia/ainneve/pulls/36","html_url":"https://github.com/evennia/ainneve/pull/36","diff_url":"https://github.com/evennia/ainneve/pull/36.diff","patch_url":"https://github.com/evennia/ainneve/pull/36.patch"},"body":"Added basic ability code.\r\n\r\n1. Character will have a new skill and spells attributes added (dictionary) which is used to store the current ability level.\r\n\r\n2. Ability class which caters for both skills and spells has been added to \\world\\abilities.py\r\n\r\n3. Skills are stored in a central repository under \\world\\config\\skillmanager.py\r\n\r\n4. Spells are stored in a central repository under \\world\\config\\spellmanager.py\r\n\r\nWhen creating skills and spells, you can define the various attributes including the messages which are displayed when a player uses them.  The example shortcuts which have been added are:\r\n\r\n\\*caller* = shows the caller name\r\n\\*target* = shows the target name\r\n\\*ability* = shows the ability name\r\n\r\nThis can be expanded in the future to include other shortcuts.  This allows unique ability attributes to be modified in a central location.  The following function can then be used to send messages to the relevant parties: \r\n\r\nfrom world.config.skillmanager import show_skill_msg\r\n\r\nshow_skill_msg('MSG_TO_CALLER', 'kick', caller, target)\r\nshow_skill_msg('MSG_TO_TARGET', 'kick', caller, target)\r\nshow_skill_msg('MSG_TO_ROOM, 'kick', caller, target)\r\n"},"comment":{"url":"https://api.github.com/repos/evennia/ainneve/issues/comments/159524344","html_url":"https://github.com/evennia/ainneve/pull/36#issuecomment-159524344","issue_url":"https://api.github.com/repos/evennia/ainneve/issues/36","id":159524344,"user":{"login":"ergodicbreak","id":3825386,"avatar_url":"https://avatars.githubusercontent.com/u/3825386?v=3","gravatar_id":"","url":"https://api.github.com/users/ergodicbreak","html_url":"https://github.com/ergodicbreak","followers_url":"https://api.github.com/users/ergodicbreak/followers","following_url":"https://api.github.com/users/ergodicbreak/following{/other_user}","gists_url":"https://api.github.com/users/ergodicbreak/gists{/gist_id}","starred_url":"https://api.github.com/users/ergodicbreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ergodicbreak/subscriptions","organizations_url":"https://api.github.com/users/ergodicbreak/orgs","repos_url":"https://api.github.com/users/ergodicbreak/repos","events_url":"https://api.github.com/users/ergodicbreak/events{/privacy}","received_events_url":"https://api.github.com/users/ergodicbreak/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T07:26:01Z","updated_at":"2015-11-25T07:26:01Z","body":"Closing this PR, @abbacode feel free to reopen when/if you're able to work on it again. "}}