{"id":877,"date":"2018-08-09T09:27:11","date_gmt":"2018-08-09T17:27:11","guid":{"rendered":"http:\/\/www.adamantyr.com\/blog\/?p=877"},"modified":"2018-08-09T09:27:11","modified_gmt":"2018-08-09T17:27:11","slug":"trades-and-revisions","status":"publish","type":"post","link":"http:\/\/www.adamantyr.com\/index.php\/2018\/08\/09\/trades-and-revisions\/","title":{"rendered":"Trades and Revisions"},"content":{"rendered":"<p>Churning onward&#8230;<\/p>\n<p>As part of my work coding up traps for the encounter module, I realized I had to make my damage approach consistent. There&#8217;s effectively two kinds of damage reduction, one for wounding effects and one for every other kind of effect such as poison, charm, and so forth. So I centralized damage determination in the various modules to make it so the same rules apply everywhere.<\/p>\n<p>I also realized my statistic screens for players need some serious revisions. To make it similar to the monster stat screens, I&#8217;m restructuring one so you are told explicitly your stats for melee, ranged, and defense. I won&#8217;t throw away the work I did designing the item stat generation with the little blocks indicating special qualities and such. Instead I&#8217;ll move it into the examine option for inventory.<\/p>\n<p>I also need to write up trading code for the encounter module. Items in combat are randomly determined and can&#8217;t be recovered later if you turn them down. So I need to make sure you can trade off items to different players and, if need be, discard an item from your backpack to make room. (No, I can&#8217;t have chests of items generate in travel mode where the combat occurred. There&#8217;s a multitude of technical reasons why that&#8217;s impossible.)<\/p>\n<p>I may need to go back to the travel module and make some changes there too. My original design was built around the idea of an &#8220;active&#8221; player. Whoever was active would be the one who picked up items, used his skills for trap detection, locks, and other things. But I&#8217;m wondering if this is going to cause trouble and confusion later. I originally extended it into the manager module but I&#8217;m going to change that so it prompts you to select a player for given operations instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Churning onward&#8230; As part of my work coding up traps for the encounter module, I realized I had to make my damage approach consistent. There&#8217;s effectively two kinds of damage reduction, one for wounding effects and one for every other &hellip; <a href=\"http:\/\/www.adamantyr.com\/index.php\/2018\/08\/09\/trades-and-revisions\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,4,5,12],"tags":[],"class_list":["post-877","post","type-post","status-publish","format-standard","hentry","category-coding","category-crpg","category-design","category-ti-994a"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgaeMJ-e9","_links":{"self":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/comments?post=877"}],"version-history":[{"count":1,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/877\/revisions"}],"predecessor-version":[{"id":878,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/877\/revisions\/878"}],"wp:attachment":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/media?parent=877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/categories?post=877"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/tags?post=877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}