Commit Graph

81 Commits

Author SHA1 Message Date
rubenwardy
2b90b18fe9 Save data at a regular interval 2023-05-19 16:41:01 +01:00
Olivier Dragon
7bac284f80 Use client-side translation instead of intllib 2023-05-19 15:30:49 +00:00
rubenwardy
b4a4a1fd74 Improve API: add awards.get_award_states() 2021-01-10 16:25:20 +00:00
Beha
8a34ea8055 Add awards.add_defaults setting to control adding default awards.
Useful for games not based on MTG but using some of its mods.
2020-04-04 13:47:20 -04:00
rubenwardy
29a1b97b38
Improve code structure and awards formspec size 2018-09-13 17:33:04 +01:00
rubenwardy
4e6ade249e Use awards for technical things, and achievements for user facing things
Fixes #18
2018-04-05 17:11:51 +01:00
rubenwardy
0017a174bd Change license to MIT 2018-04-04 22:57:27 +01:00
rubenwardy
07997a54f4 Readd awards 2018-04-04 21:11:40 +01:00
rubenwardy
28c59340ea Implement conted_key trigger type 2018-04-04 18:30:47 +01:00
rubenwardy
72cc346c35 Rename awards.def to awards.registered_awards 2018-04-04 17:43:44 +01:00
rubenwardy
5de9dcb797 Move api_helpers.lua in api.lua 2018-04-04 17:42:12 +01:00
rubenwardy
7c5fd79b57 Clean up formspec related code 2018-04-04 17:37:43 +01:00
rubenwardy
ef19940edc Add trigger definitions rather than register function 2018-04-04 17:01:55 +01:00
Oscar
81aa0f1c82 Fix broken achievement image (On The Way) 2017-10-05 19:04:02 +01:00
EdwardThorsten
81590b5773 Fix deprecated setting call 2017-10-02 09:11:51 +01:00
Diego Martínez
1049280eeb Update to new intllib API. 2017-02-23 22:48:13 +00:00
Wuzzy
38c504e938 Add eat trigger, extend existing triggers, add 9 awards (#35)
* Add eat trigger and 2 new awards
* Add mushroom eating awards
* Add support for counting any eat/dig/craft/place
* Update readme
* Add 4 builder awards
* Update German locale
* Update dependencies
* Fix mistake in German translation
* Revert removal of background
2016-11-15 01:57:01 +01:00
Wuzzy
f4a5eb25f6 Fix mod not working with mod security and intllib 2016-11-09 02:42:36 +01:00
Wuzzy
43da09620e Fix bugs when mod is run outside of Minetest Game (#34) 2016-11-06 11:05:13 +00:00
Wuzzy
a04f3df1e2 Check for existance of default mod 2016-09-10 15:20:38 +01:00
Wuzzy
67946bf0c4 Improve strings and make them translatable 2016-09-01 16:21:41 +01:00
rubenwardy
92c43d1c04 Fix style issues 2016-08-30 01:05:43 +01:00
Wuzzy
0692d1cc85 Remove some redundant “ ~= nil”s in init.lua 2016-08-11 10:00:07 +02:00
Wuzzy
1bd96e662b More consistent code style in init.lua 2016-08-11 09:55:56 +02:00
Wuzzy
5b416c61c4 Fix/change some achievements backgrounds 2016-08-11 09:49:47 +02:00
Wuzzy
d4c47775c9 Add custom icon for Firefighter 2016-08-10 20:13:39 +02:00
Wuzzy
20eaf3b34f Add Lava Miner award (digging close to lava) 2016-08-10 14:06:59 +02:00
Wuzzy
cdf59bb9fd Fix typo in firefighter award ID 2016-08-10 13:11:08 +02:00
Wuzzy
743cb4ce8d Add craft 10 mese lamps award 2016-08-10 12:53:57 +02:00
Wuzzy
9264c75f0a Add Pyromaniac and Firefighter awards 2016-08-10 12:45:16 +02:00
Wuzzy
fd79fe6521 Add snow award (proof for visiting snow land) 2016-08-10 11:52:51 +02:00
Wuzzy
7767cff0bf Add 2 new stone brick crafting awards
To give a reason to do something with all that stockpiled cobblestone ;-)
2016-08-10 11:32:13 +02:00
Wuzzy
94304a4a90 Heavily nerf lumberjack awards, 1296 trees max.
Playing lumberjack gets repetitive pretty soon,
it's not fun at all to do it for long.
Let's do some calculations:
Digging 100 trees w/ diamond axe takes ca. 3.5 min.
1 diamond axe lasts for 200-300 trees and needs 3 diamonds.
Meaning, to get L337 Lumberjack (100000) trees you
need 58 hours only digging trees! Plus the time to
find ca. 1000 diamonds (100000/300*3) only for the
axes. So much nope.

New awards are factors of 6, capped capped at 1296
because it gets boring at about that point and already
with 1000 trees in your storage you have enough wood
for a long time.

Also, award names were slightly changed.
2016-08-10 09:39:27 +02:00
Wuzzy
ae09298ea2 More consistent award icons, add “level” icons 2016-08-10 09:19:45 +02:00
Wuzzy
6a7ea1a70d Add a lot of awards 2016-08-10 09:19:36 +02:00
Wuzzy
f5ea95ad35 Add new awards, remove death awards 2016-08-01 23:56:06 +01:00
rubenwardy
9308b95163 Add sfinv support 2016-08-01 22:39:32 +01:00
Wuzzy
00eeeb3eef Add support for Unified Inventory 2016-08-01 20:38:19 +01:00
Wuzzy
5dec2fd60b Make textures follow naming conventions 2016-08-01 20:34:23 +01:00
rubenwardy
dee1880fd3 Add awards.run_trigger_callbacks() and use it 2016-07-29 17:13:01 +01:00
rubenwardy
3c4f6e50b1 Add and remove a few awards 2016-07-29 16:32:58 +01:00
rubenwardy
116889080c Fix nyancat texture 2016-07-29 16:25:39 +01:00
rubenwardy
f3f6af9e66 Fix bugs in craft trigger, and add an award to use it 2016-07-29 16:19:58 +01:00
rubenwardy
56d08f2f49 Refactor awards.unlock 2016-07-29 16:03:30 +01:00
rubenwardy
0e2ed176fa Separate triggers from API 2016-07-29 16:02:14 +01:00
rubenwardy
cfe11a57c7 Add licenses 2016-07-29 16:00:58 +01:00
rubenwardy
87c04be9ea awards.register_trigger 2016-07-29 16:00:58 +01:00
rubenwardy
85efc67049 Move helpers and chat commands to separate files 2016-07-29 15:58:30 +01:00
rubenwardy
a806f177b1 Update licenses in Lua files 2014-09-26 20:36:40 +01:00
rubenwardy
db87273eff Back port awards from Carbone/awards by Calinou 2014-09-26 20:20:44 +01:00