{"id":381,"date":"2024-01-27T10:38:08","date_gmt":"2024-01-27T10:38:08","guid":{"rendered":"https:\/\/codehaus.wohlsoft.ru\/blog\/?p=381"},"modified":"2024-01-27T10:38:08","modified_gmt":"2024-01-27T10:38:08","slug":"day-5","status":"publish","type":"post","link":"https:\/\/codehaus.wohlsoft.ru\/blog\/2024\/01\/27\/day-5\/","title":{"rendered":"Day 5"},"content":{"rendered":"\n<p>What is this whole &#8220;heavy&#8221; thing about anyway?<\/p>\n\n\n\n<p>Added a new weight system to distinguish heaviness of players and NPCs<br>Added new NPC config flag: &#8220;weight&#8221; (number)<br>Deprecated NPC config flag: &#8220;isheavy&#8221; (boolean)<br>NPCs that previously set the NPC config &#8220;isheavy&#8221; now use &#8220;weight&#8221;<br>If isheavy is set but weight is not, weight defaults to 2<br>isheavy is always true when an NPC&#8217;s weight is not zero<br>Players now have a weight of 2, and a weight of 10 while mega<br>Player weight and their held NPC&#8217;s weight are added together<br>Players and NPCs now have getWeight(), attachWeight() and detachWeight() methods to alter their weight on the fly. <br>Added new Block\/NPC config flags for brittle blocks and donut blocks: ignoreplayers, ignorenpcs, triggerweight. Defaults are false, false and 1 respectively<\/p>\n\n\n\n<p>Yesterday&#8217;s little mini-quiz solution is: iselectric, nowalldeath, Small Switches, [Sparky, Power Stars], Thwomps<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is this whole &#8220;heavy&#8221; thing about anyway? Added a new weight system to distinguish heaviness of players and NPCsAdded new NPC config flag: &#8220;weight&#8221; (number)Deprecated NPC config flag: &#8220;isheavy&#8221; (boolean)NPCs that previously set the NPC config &#8220;isheavy&#8221; now use &#8220;weight&#8221;If isheavy is set but weight is not, weight defaults to 2isheavy is always true &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/codehaus.wohlsoft.ru\/blog\/2024\/01\/27\/day-5\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Day 5&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":2,"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehaus.wohlsoft.ru\/blog\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}