Andrey Kozlovskiy
334f0a5065
Fix metadata loss and. Improve placement for some corner cases.
2019-10-19 13:51:05 +03:00
Andrey Kozlovskiy
b73bbd323e
Revert "Round the total amount to full stack size"
...
This reverts commit 9dd7fe470f
.
2019-10-17 15:03:26 +03:00
Andrey Kozlovskiy
9dd7fe470f
Round the total amount to full stack size
2019-10-17 14:30:26 +03:00
Andrey Kozlovskiy
95642bc811
Continue if item can't be moved to the current position.
2019-10-17 07:59:06 +03:00
Andrey Kozlovskiy
4d67fcab6d
Add moved positions after possible break.
2019-10-16 12:47:24 +03:00
Andrey Kozlovskiy
2939d2c645
Check for leftover in swap_items.
2019-10-16 04:21:11 +03:00
Andrey Kozlovskiy
38203a8c7c
Improve move logic.
2019-10-16 04:12:51 +03:00
Andrey Kozlovskiy
21a70df468
Completely rewritten craft matching and moving code.
2019-10-16 00:55:00 +03:00
Andrey Kozlovskiy
542065f671
Slightly improved move
2019-08-27 06:12:10 +03:00
Andrey Kozlovskiy
248250a890
Correctly handle non empty crafting grid case
2019-08-26 23:29:12 +03:00
Andrey Kozlovskiy
da320049a0
Avoid expensive table.insert and ipairs calls, increment counts manually
2019-08-24 22:16:03 +03:00
Andrey Kozlovskiy
56700f1d7d
Bound match_count with smallest stack_max value, take from inventory only if needed
2019-08-24 05:08:08 +03:00
Andrey Kozlovskiy
f42bfaf880
Return early when there's not enough items for craft
2019-08-24 03:56:38 +03:00
Andrey Kozlovskiy
573048520a
Fix moving logic, correctly check for empty stacks
2019-08-24 00:13:34 +03:00
Andrey Kozlovskiy
e03a34ab7c
Make functions unified_inventory global
2019-08-23 04:51:44 +03:00
Andrey Kozlovskiy
bcc6774ff8
Add unified_inventory function prefix
2019-08-23 04:19:30 +03:00
Andrey Kozlovskiy
0066d3c7ec
Take craft width into account when creating craft index
2019-08-23 03:40:36 +03:00
Andrey Kozlovskiy
e0b28931c5
Implement new crafting algorithm
2019-08-22 22:56:46 +03:00
SmallJoker
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
SmallJoker
774674d0f5
README: Add features and link to mod contents
...
+LICENSE.txt
2019-06-16 11:14:08 +02:00
Panquesito7
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
MoNTE48
a70ffb1509
Compress textures (-61 KB!)
2019-05-31 17:30:24 +02:00
Scott Horvath
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
Emiel van Rooijen
16babc54f3
Add no_prepend[] by default
2019-03-31 12:19:08 +02:00
SmallJoker
4d5e883629
Add mod_api.txt documentation
2019-03-31 11:30:22 +02:00
SmallJoker
b871ccfc41
Use table.concat to build formspecs, style cleanups
2019-03-31 11:29:10 +02:00
SmallJoker
e9b4b52dc1
Biggest stacks first, smallest as late as possible
...
Split stacks ~evenly
Fast skip occupied slots
2019-03-30 22:53:36 +01:00
SmallJoker
bcb96d6caf
Improve craftguide_craft() speed: Move stacks
2019-03-30 22:53:36 +01:00
SmallJoker
850ee9cbc0
Improve callback execution, add giveme guards
2019-02-17 15:14:38 +01:00
SmallJoker
54abad72f0
Add item tooltips with mod name
...
Inspired by #118 , @Quent42340
2018-12-12 20:20:11 +01:00
SmallJoker
77c3de08ce
Fix crash caused by bag swapping
2018-08-10 16:15:00 +02:00
Vanessa Dannenberg
5cff869c27
Merge branch 'master' into 'master'
...
Add Malay translation
See merge request VanessaE/unified_inventory!2
2018-07-17 13:35:01 +00:00
Muhammad Nur Hidayat Yasuyoshi (MNH48.com)
79e4a49c6b
Add Malay translation
2018-07-17 12:31:08 +00:00
Vanessa Dannenberg
9ffe40d210
Refactor translations for intllib
2018-06-30 03:31:25 +00:00
codexp
3988f4c572
Merge origin/master to refactor-translation branch (resolving conflicts)
2018-06-23 15:37:13 +02:00
SmallJoker
edd00f222c
Replace deprecated function names, unify creative check
2018-06-23 15:02:23 +02:00
SmallJoker
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
codexp
934757edd6
FIX: do not translate direction
2018-04-08 22:21:44 +02:00
codexp
ab20e43468
convert Turkish locale to po format
2018-04-02 17:52:09 +02:00
codexp
1a52f33756
convert Portuguese locale to po format
2018-04-02 16:55:48 +02:00
codexp
87ae46b6d8
convert Polish locale to po format
2018-04-02 16:46:28 +02:00
codexp
827e544c58
convert French locale to po format
2018-04-02 16:28:54 +02:00
codexp
0288d558e9
convert Spanish locale to po format
2018-04-02 16:19:25 +02:00
codexp
2159dd5a4a
convert German locale to po format
2018-04-02 16:19:05 +02:00
codexp
72ca872002
convert Russian locale to po format
2018-04-02 16:00:00 +02:00
codexp
06f6d45891
generate template.pot with intllib tool
2018-04-02 13:35:05 +02:00
codexp
c1ab7277ab
refactor code to use with intllib tool
2018-04-02 13:33:36 +02:00
shivajiva101
2ab5a7c90a
fix excessive privilege check
2018-01-03 11:15:53 +01:00
SmallJoker
86c73a4752
Item_names: Refactorize & use meta description
2018-01-03 11:14:25 +01:00
Ekdohibs
4010953888
Fix unclear licenses for the images.
2018-01-02 22:39:13 +01:00