{"push_id":543458138,"size":2,"distinct_size":2,"ref":"refs/heads/issue_1688","head":"7f7dcff6fa55694a94587d42227992903b5e5a5c","before":"2382cb7e0f336273e3bc3b563290876f6f45cf4f","commits":[{"sha":"ca5b877512b127b62f49c50a6bdf539a2bbd9663","author":{"email":"411004815511abebe58ff455f17318a4acb4e213@rydznet.pl","name":"Tomasz Rydzynski"},"message":"Be smart about (un)loading in trade route's setup\n\nAs mentioned in issue #1688, the dialog used to manage ship's trade route has\nsome usability problems. Here I deal with the fact that whenever a resource is\nselected, it defaults to loading that resource. For most basic routes resource\nis loaded in one place and unloaded in another. This commit modifies the dialog\nso it defaults to such setup.\n\nNow, whenever a resource is picked, the whole route is checked to see if the\nsame resource is loaded or unloaded before in the route. If it is loaded, the\naction defaults to unloading it. And vice-versa.\n\nThis partially fixes #1688.","distinct":true,"url":"https://api.github.com/repos/qsorix/unknown-horizons/commits/ca5b877512b127b62f49c50a6bdf539a2bbd9663"},{"sha":"7f7dcff6fa55694a94587d42227992903b5e5a5c","author":{"email":"411004815511abebe58ff455f17318a4acb4e213@rydznet.pl","name":"Tomasz Rydzynski"},"message":"Add unload-everything action to trade routes\n\nAs suggested in issue #1688, it is desired to have a way of unloading everything\nfrom the ship. This commit implements that.\n\nOn the trade route configuration dialog, I've changed how entries (waypoints)\nare displayed and added a button that turns the entry into an unload-all\nposition. I mark such entries by displaying a placeholder resource (a wooden\ncontainer box that could contain anything) with the unload icon. The entry can\nbe reverted back to a normal one by clicking on it.\n\nUnload all entries are passed to world.traderoute.TradeRoute and handled\nspecially there. Upon arrival, a transfer is created based on everything present\non the ship. Wait-for-unload option is honored normally.\n\nSave game format was updated so the new entries can be saved/loaded.","distinct":true,"url":"https://api.github.com/repos/qsorix/unknown-horizons/commits/7f7dcff6fa55694a94587d42227992903b5e5a5c"}]}