{"action":"created","issue":{"url":"https://api.github.com/repos/MegaMek/mekhq/issues/202","repository_url":"https://api.github.com/repos/MegaMek/mekhq","labels_url":"https://api.github.com/repos/MegaMek/mekhq/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/MegaMek/mekhq/issues/202/comments","events_url":"https://api.github.com/repos/MegaMek/mekhq/issues/202/events","html_url":"https://github.com/MegaMek/mekhq/pull/202","id":183425801,"number":202,"title":"Mass Repair/Salvage","user":{"login":"kipstafoo","id":506522,"avatar_url":"https://avatars.githubusercontent.com/u/506522?v=3","gravatar_id":"","url":"https://api.github.com/users/kipstafoo","html_url":"https://github.com/kipstafoo","followers_url":"https://api.github.com/users/kipstafoo/followers","following_url":"https://api.github.com/users/kipstafoo/following{/other_user}","gists_url":"https://api.github.com/users/kipstafoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kipstafoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kipstafoo/subscriptions","organizations_url":"https://api.github.com/users/kipstafoo/orgs","repos_url":"https://api.github.com/users/kipstafoo/repos","events_url":"https://api.github.com/users/kipstafoo/events{/privacy}","received_events_url":"https://api.github.com/users/kipstafoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-17T14:06:39Z","updated_at":"2016-10-17T14:38:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MegaMek/mekhq/pulls/202","html_url":"https://github.com/MegaMek/mekhq/pull/202","diff_url":"https://github.com/MegaMek/mekhq/pull/202.diff","patch_url":"https://github.com/MegaMek/mekhq/pull/202.patch"},"body":"Mass Repair/Salvage\r\n\r\nI created a way to do configurable mass repair/salvage. Having used\r\nMekHQ for over 200 campaign fights, the time to perform repairs is to\r\nmost time consuming part. Looking to improve that, I've added this small\r\nfeature.\r\n\r\nIn essense, it creates adds a menu item when right clicking on a unit in\r\nthe repair tab. The menu item allows to perform all possible (as\r\nconfigured) repairs or salvages.\r\n\r\nWithin the campaign configuration is additional configurations that\r\nallow a user to determine what things are elligible for mass action. For\r\neach of the groups (see below for groups), you can configure if it's\r\nactive, what the min skill level to handle it is and the min/max BTHs.\r\n\r\nThe groups are:\r\n- Armor\r\n- Ammo\r\n- Weapons\r\n- Mek/Tank Locations\r\n- Gyros\r\n- Engines\r\n- Actuators\r\n- Electronics (Cockpit, life support, sensors)\r\n- Other\r\n\r\nAdditionally, you can configure if the system will:\r\n- use extra time lower the BTH for a tech to the desired target\r\n- use 'rush job' to increase the BTH on easy jobs (i.e., an elite\r\nrepairing armor)\r\n- allow carry-over to the next day(s), i.e., allowing a tech to perform\r\na task that will tke more than their currently available tech minutes\r\n\r\nThe system, when activated, will find all parts needing repair/salvage\r\nand all techs that could work on it based upon skill type. It then\r\ndetermines, for each tech, if they can perform the task based upon\r\nconfigured minumim skill level and target BTHs. If allowed, the system\r\nwill attempt to alter the BTH by using extra time/rush job. Once the\r\nlist of valid techs is found, the system will pick the one with the\r\nleast skill (to aid in increasing techs skills).\r\n\r\nI can supply screen shots, etc..."},"comment":{"url":"https://api.github.com/repos/MegaMek/mekhq/issues/comments/254226309","html_url":"https://github.com/MegaMek/mekhq/pull/202#issuecomment-254226309","issue_url":"https://api.github.com/repos/MegaMek/mekhq/issues/202","id":254226309,"user":{"login":"kipstafoo","id":506522,"avatar_url":"https://avatars.githubusercontent.com/u/506522?v=3","gravatar_id":"","url":"https://api.github.com/users/kipstafoo","html_url":"https://github.com/kipstafoo","followers_url":"https://api.github.com/users/kipstafoo/followers","following_url":"https://api.github.com/users/kipstafoo/following{/other_user}","gists_url":"https://api.github.com/users/kipstafoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kipstafoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kipstafoo/subscriptions","organizations_url":"https://api.github.com/users/kipstafoo/orgs","repos_url":"https://api.github.com/users/kipstafoo/repos","events_url":"https://api.github.com/users/kipstafoo/events{/privacy}","received_events_url":"https://api.github.com/users/kipstafoo/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T14:38:07Z","updated_at":"2016-10-17T14:38:07Z","body":"Try this DB link guys:\nhttps://www.dropbox.com/sh/nq1xctqeokdhcmo/AADW3oq8HTN2wfdutHdjEsdfa?dl=0\n\nThere's 5 files in there:\n- configuration dialog addition.png -> This is the changes to the campaign\nconfigurations dialog. I updated the layout of this page. One could argue\nthat it could be made scrollable and the and spinners made smaller, changes\nI've glad to make if the team so desires/requires.\n\n- repairable mech.png -> A repairable mech. Shows the initial menu addition\n\n- repairable mech - sub options.png -> Same repairable mech, but with the\nsub options. This shows that you can use the first option to simple use the\nconfiguration you have (i.e., only act on the items that you have marked as\n'active' in the configuration), or to override the 'active' state and act\non a single item type. For example, you may salvage a tank and really only\ncare about getting the armor off of it, if you choose the 'Only Armor'\noption, it'll just strip the armor off and leave everything else as it was.\n\n- salvageable mech.png -> Like a repairable mech, but with a menu that is\nappropriate for the state of the unit (Mass Salvage vs Mass Repair)\n\n- salvageable mech - post action -- see log.png -> This is the result of\nthe mass salvage option on the selected LNX. It does all the repairs then\nadds a log entry stating that it is done and how many actions it performed.\n\nThe mass repair/salvage will keep going until it has nothing left to do. So\nif there are chained repairs, i.e., you need to attach a location before\nthe other items can be done, it'll sweep through the list of repairs,\ncomplete what it can (based upon menu selection/configuration), and then\nsweep through again and again until there's nothing left for it to do. You\ncould, in theory, have a mech which is simply a center torso but if you had\nenough techs (and some good rolls :) ), you could repair the thing with one\nclick of the menu.\n\nFeel free to let me know if you have more questions. I'll admit that I\nhaven't done any swing work since I last did work on MegaMek. I was tempted\nto get one of the engineers that work for me to code review it, but it's\npretty darn stable and I think it'll help speed up the repair cycles and\nget people back to smashing mechs together. ;)\n\n  -C-\n\n\n\nOn Mon, Oct 17, 2016 at 10:10 AM, Carr <notifications@github.com> wrote:\n\n> Yes yes yes yes and yes we need +100\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/MegaMek/mekhq/pull/202#issuecomment-254218288>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAe6mhJ85d2iBBcijomOP3Et0JKqsqJMks5q04HcgaJpZM4KYqhj>\n> .\n>\n"}}
{"actor":{"display_login":"kipstafoo"}}