40 Commits

Author SHA1 Message Date
Alexand(er|ra) Yst
dedaf17f5e Fixed a crashing issue when digging nodes 2021-11-14 21:08:12 -08:00
Alexand(er|ra) Yst
e90370f1dc Simplify stored data by throwing out irrelevant information
Also, add a debug table to aid in testing the current and future versions of the auto-detection code.
2021-09-30 17:27:53 -07:00
Alexand(er|ra) Yst
e2b40bf34d Add level-based craft locking 2021-08-10 11:06:14 -07:00
Alexand(er|ra) Yst
e3bd7b7563 Fix broken level caps
I intended to fix this a while ago, but I guess I left it out with all the other changes to the level system I made.
2020-12-30 05:23:09 -08:00
Alexand(er|ra) Yst
22de1455c6 Fixed level-up crash 2020-12-24 13:03:09 -08:00
Alexand(er|ra) Yst
fcaaa4c22b Fix bug that caused level-up callbacks not to be called properly 2020-12-20 13:28:05 -08:00
Alexand(er|ra) Yst
af658326ab Update copyright year 2020-12-16 23:27:37 -08:00
Alexand(er|ra) Yst
bd3b54b920 Fully switch over to scaled levelling system 2020-12-16 22:41:15 -08:00
Alexand(er|ra) Yst
020eb82f22 Separated scaled levels from unscaled levels for now
Using unscaled levels is not preferable. However, the equation for providing a progress bar for scaled levels is so complex that I can't yet figure it out. For now, I can't fully replace unscaled levels with scaled levels.
2020-10-28 16:07:05 -07:00
Alexand(er|ra) Yst
53784580ad Debugged wonky level prediction (only affected progress bars, not actual levels) 2020-10-20 03:14:47 -07:00
Alexand(er|ra) Yst
c8aed37569 Removed deprecated database handling 2020-10-19 03:11:56 -07:00
Alexand(er|ra) Yst
3d9e91fc5c Overhauled the per-material level system to favour well-rounded levelling 2020-10-19 03:07:00 -07:00
Alexand(er|ra) Yst
861302f935 Fix accidental global variable assignment 2020-04-13 07:14:18 -07:00
Alexand(er|ra) Yst
5151b61174 Clean up the API and rerelease as liblevelup 2020-03-29 11:30:06 -07:00
Alex Yst
3e6314208b Add some already-deprecated features
I had some uncommitted changes, and I'm about to do a huge overhaul of the entire mod. I need a stable place to work from, so I'm committing these changes, but everything this commit add is basically already deprecated. The entire Minestats API will be deprecated soon, and replaced with an API that better allows Minestats - or rather, liblevelup, as it will soon be called - to provide the progression mechanics that it has promised since its first release.
2019-07-30 17:27:15 -07:00
Alex Yst
a642b37ec6 Added API call to return when a player's next level-up will occur 2019-07-05 01:52:36 -07:00
Alex Yst
f223d869a7 Add an exponential levelling mechanic 2019-07-02 22:09:15 -07:00
Alex Yst
1f4814168a Fix copyright dates to reflect changes made to the scripts this year 2019-07-01 09:33:04 -07:00
Alex Yst
5b02e8d820 Update the way paletted drops are handled
I'm not sure if the item string format was subtly changed or if the old player files didn't store the items in item string format, but either way, the format I copied from the player files of a previous engine version do not match the item string format returned by ItemStack():to_string() in Minetest 5.0.1, and as a result, paletted item drops aren't handled correctly. For that matter, all item drops involving meta data aren't handled correctly. This commit fixes the bug.
2019-06-24 10:06:27 -07:00
Alex Yst
1c7fa8b765 Tuned countable element finder to better suit Minetest Game (all versions), Minimal (all versions), Build (0.4.6), and Survival (0.4.6) 2019-06-13 21:45:31 -07:00
Alex Yst
43991f708c Account for a corner case from Minetest Game 0.4.0 2019-05-16 14:17:40 -07:00
Alex Yst
6f7847d502 Corect some planguage in the comments 2018-08-17 11:21:44 -07:00
Alex Yst
e7d04d3f5e Add partial support for tool-specific drops 2018-08-17 11:15:14 -07:00
Alex Yst
eb1d79f041 Increased maximum stat value 2018-08-02 05:39:24 -07:00
Alex Yst
5d245535a2 Fixed bug in how minestats determins what palette indices should be checked for 2018-07-30 23:17:28 -07:00
Alex Yst
85fda245a8 Oops, I missed a spot on that last upgrade. Fixed. 2018-07-25 03:06:43 -07:00
Alex Yst
c2132f58ba Added support for coloured nodes and drops
Also fixed broken support for tools as node drops
2018-07-25 02:38:48 -07:00
Alex Yst
866d243828 Fixed bugs that prevented stat-counting 2018-07-21 09:48:23 -07:00
Alex Yst
0cc2901529 Fixed bug where callback functions could accidentally modify drops 2018-04-09 23:13:52 -07:00
Alex Yst
4d63785914 Cleaned up the tracking of nodes dug in the drop tables and extended the update function capabilities 2018-04-08 22:31:36 -07:00
Alex Yst
2479f32f43 Remove "uncountable countables" 2018-04-08 00:53:23 -07:00
Alex Yst
50bb4588f1 Removed counting of items "dropped" when the non-player "digs" 2018-04-07 12:36:18 -07:00
Alex Yst
1e2c057667 Removed extra call to update functions 2018-03-19 10:33:21 -07:00
Alex Yst
a0326787b8 Removed hacky table key and replaced it with a metatable 2018-03-18 02:21:29 -07:00
Alex Yst
a74f21aa8a Added deprecation date; this had been added before, but in a mixup, was deleted before being uploaded. 2018-03-17 14:10:42 -07:00
Alex Yst
5cbc32d3b0 Somehow, I forgot to commit a bunch of stuff and get it uploaded. I don't even remember all what got changed, but there was some major reworking that was done. 2018-03-17 02:32:43 -07:00
Alex Yst
ecaf96eb5e Added functions for supporting percentages and probabilities 2018-02-09 13:06:31 -08:00
Alex Yst
3b8b3116f4 Generalised things better, stopped distinguishing between types of drops 2018-02-06 17:41:55 -08:00
y.st
d00cc09cd8 Fix small bug in the handling of cases in which minetest.handle_node_drops() is called without first calling minetest.get_node_drops() 2017-06-16 12:07:52 -07:00
y.st
b07911bc3d Force the stats page to use the API like everyone else 2017-06-16 11:45:28 -07:00