Commit Graph

230 Commits

Author SHA1 Message Date
9b796efc2c One source list one destination. Try to take from destination list first 2019-10-22 04:22:26 +03:00
6dc00aeab8 Place items exactly as displayed in the guide 2019-10-21 14:22:24 +03:00
dfe948ae0a Drop items from oversized stacks on the ground 2019-10-20 02:16:56 +03:00
334f0a5065 Fix metadata loss and. Improve placement for some corner cases. 2019-10-19 13:51:05 +03:00
b73bbd323e Revert "Round the total amount to full stack size"
This reverts commit 9dd7fe470f.
2019-10-17 15:03:26 +03:00
9dd7fe470f Round the total amount to full stack size 2019-10-17 14:30:26 +03:00
95642bc811 Continue if item can't be moved to the current position. 2019-10-17 07:59:06 +03:00
4d67fcab6d Add moved positions after possible break. 2019-10-16 12:47:24 +03:00
2939d2c645 Check for leftover in swap_items. 2019-10-16 04:21:11 +03:00
38203a8c7c Improve move logic. 2019-10-16 04:12:51 +03:00
21a70df468 Completely rewritten craft matching and moving code. 2019-10-16 00:55:00 +03:00
542065f671 Slightly improved move 2019-08-27 06:12:10 +03:00
248250a890 Correctly handle non empty crafting grid case 2019-08-26 23:29:12 +03:00
da320049a0 Avoid expensive table.insert and ipairs calls, increment counts manually 2019-08-24 22:16:03 +03:00
56700f1d7d Bound match_count with smallest stack_max value, take from inventory only if needed 2019-08-24 05:08:08 +03:00
f42bfaf880 Return early when there's not enough items for craft 2019-08-24 03:56:38 +03:00
573048520a Fix moving logic, correctly check for empty stacks 2019-08-24 00:13:34 +03:00
e03a34ab7c Make functions unified_inventory global 2019-08-23 04:51:44 +03:00
bcc6774ff8 Add unified_inventory function prefix 2019-08-23 04:19:30 +03:00
0066d3c7ec Take craft width into account when creating craft index 2019-08-23 03:40:36 +03:00
e0b28931c5 Implement new crafting algorithm 2019-08-22 22:56:46 +03:00
04b1cb9e7d Fix error on invalid item_button_ fields
Also reduce the player inventory sending by one. If a formspec is sent, it'll also take the newest known search text
2019-08-02 16:39:43 +02:00
774674d0f5 README: Add features and link to mod contents
+LICENSE.txt
2019-06-16 11:14:08 +02:00
4403b696be Replace deprecated functions with newer ones (#131)
These commits makes more compatibility with MT/MTG 5.0.0+ versions.
However, these commits breaks compatibility with the 0.4-series.
2019-06-16 10:26:40 +02:00
a70ffb1509 Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
86d2a11643 Allow all players to view items regardless of 'creative' priv
This allows any player to see usages of items found
even if item does not have explicit
recipies themselves.
(ex: default:papyrus, found/grown in wild, can be made into paper)
2019-05-28 21:30:55 +02:00
16babc54f3 Add no_prepend[] by default 2019-03-31 12:19:08 +02:00
4d5e883629 Add mod_api.txt documentation 2019-03-31 11:30:22 +02:00
b871ccfc41 Use table.concat to build formspecs, style cleanups 2019-03-31 11:29:10 +02:00
e9b4b52dc1 Biggest stacks first, smallest as late as possible
Split stacks ~evenly
Fast skip occupied slots
2019-03-30 22:53:36 +01:00
bcb96d6caf Improve craftguide_craft() speed: Move stacks 2019-03-30 22:53:36 +01:00
850ee9cbc0 Improve callback execution, add giveme guards 2019-02-17 15:14:38 +01:00
54abad72f0 Add item tooltips with mod name
Inspired by #118, @Quent42340
2018-12-12 20:20:11 +01:00
77c3de08ce Fix crash caused by bag swapping 2018-08-10 16:15:00 +02:00
5cff869c27 Merge branch 'master' into 'master'
Add Malay translation

See merge request VanessaE/unified_inventory!2
2018-07-17 13:35:01 +00:00
79e4a49c6b Add Malay translation 2018-07-17 12:31:08 +00:00
9ffe40d210 Refactor translations for intllib 20180704 2018-06-30 03:31:25 +00:00
3988f4c572 Merge origin/master to refactor-translation branch (resolving conflicts) 2018-06-23 15:37:13 +02:00
edd00f222c Replace deprecated function names, unify creative check 2018-06-23 15:02:23 +02:00
c43074f5c2 Move bag storage to player attributes
Compatible with 0.4.16 or later
Fixes an item duplication bug for the four player inventory slots on each join
Clean up old player lists after saving
2018-06-21 21:23:21 +02:00
934757edd6 FIX: do not translate direction 2018-04-08 22:21:44 +02:00
ab20e43468 convert Turkish locale to po format 2018-04-02 17:52:09 +02:00
1a52f33756 convert Portuguese locale to po format 2018-04-02 16:55:48 +02:00
87ae46b6d8 convert Polish locale to po format 2018-04-02 16:46:28 +02:00
827e544c58 convert French locale to po format 2018-04-02 16:28:54 +02:00
0288d558e9 convert Spanish locale to po format 2018-04-02 16:19:25 +02:00
2159dd5a4a convert German locale to po format 2018-04-02 16:19:05 +02:00
72ca872002 convert Russian locale to po format 2018-04-02 16:00:00 +02:00
06f6d45891 generate template.pot with intllib tool 2018-04-02 13:35:05 +02:00
c1ab7277ab refactor code to use with intllib tool 2018-04-02 13:33:36 +02:00