Commit Graph

67 Commits

Author SHA1 Message Date
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
c579f862b6 Reduce awards.player() calls 2018-04-04 17:32:37 +01:00
rubenwardy
eeee4a8398 Clean up player data validation 2018-04-04 17:23:46 +01:00
rubenwardy
ef19940edc Add trigger definitions rather than register function 2018-04-04 17:01:55 +01:00
rubenwardy
8b024accdd Add register_trigger_counted for homogenous events 2018-04-04 16:03:34 +01:00
rubenwardy
dd2a5d2d1f Remove formspec notification 2018-04-04 15:46:11 +01:00
rubenwardy
2c4da0b88a Add luacheck 2018-04-04 15:36:27 +01:00
Diego Martínez
1049280eeb Update to new intllib API. 2017-02-23 22:48:13 +00:00
xisd
7fd56ac3d0 Resize formspec and HUD to fit bigger strings 2017-02-19 17:21:37 +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
43da09620e Fix bugs when mod is run outside of Minetest Game (#34) 2016-11-06 11:05:13 +00:00
Wuzzy
ae01ea01dd Show error messages when there are no awards 2016-09-10 15:38:01 +01:00
Wuzzy
90bf9b061a Add notification sound
License of default sound: CC-0
Source: https://www.freesound.org/people/Kastenfrosch/sounds/162482/
2016-09-01 16:32:05 +01:00
Wuzzy
ed09abd868 Automatic line breaks for long award desc. 2016-09-01 16:22:37 +01:00
Wuzzy
13eb5dcdae Add optional default description for triggers 2016-09-01 16:22:37 +01:00
Wuzzy
67946bf0c4 Improve strings and make them translatable 2016-09-01 16:21:41 +01:00
Wuzzy
963c5772df Fix crash when opening awards after clearing 2016-09-01 16:36:42 +02:00
Wuzzy
9b6e93dd9a Announce secret awards as secret awards 2016-08-01 23:46:49 +01:00
Wuzzy
49f251136e Make secret awards darker in list + other tweaks 2016-08-01 23:46:15 +01:00
rubenwardy
9308b95163 Add sfinv support 2016-08-01 22:39:32 +01:00
rubenwardy
f6515c12b8 Stop progress bars going out of bounds
Fixes #21
2016-08-01 21:04:00 +01:00
Wuzzy
5dec2fd60b Make textures follow naming conventions 2016-08-01 20:34:23 +01:00
rubenwardy
b689dc8eaf Add progress bar 2016-08-01 20:27:12 +01:00
rubenwardy
48bb2e9656 Fix craft trigger not taking stack count into account 2016-08-01 17:05:02 +01:00
rubenwardy
1fe166e2c5 Fix prize giving bug 2016-07-29 17:31:13 +01:00
rubenwardy
96746aaf1e Add awards.increment_item_counter() and use it 2016-07-29 17:25:02 +01:00
rubenwardy
f430b4eb68 Move unrelated things from trigger.lua 2016-07-29 17:15:52 +01:00
rubenwardy
92eaa5c876 Add awards.getFormspec() 2016-07-29 16:23:34 +01:00
rubenwardy
628e485900 More changes 2016-07-29 16:03:55 +01:00
rubenwardy
56d08f2f49 Refactor awards.unlock 2016-07-29 16:03:30 +01:00
rubenwardy
791666489b helpers.lua -> api_helpers.lua 2016-07-29 16:02:14 +01:00
rubenwardy
0e2ed176fa Separate triggers from API 2016-07-29 16:02:14 +01:00
rubenwardy
30aee5090f register_on_unlock and on_unlock 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
MrIbby
85a40d2488 Add craft trigger 2016-06-01 18:41:24 +01:00
rubenwardy
e8f119bf31 Add support for prizes 2014-09-26 20:55:44 +01:00
rubenwardy
a806f177b1 Update licenses in Lua files 2014-09-26 20:36:40 +01:00
rubenwardy
fc950bb620 Fix bugs when player has achieved removed award 2014-09-26 19:52:10 +01:00
rubenwardy
e1148bfc92 Switch to HUD elements 2014-09-26 19:30:34 +01:00
rubenwardy
6a592781d5 Secret awards, fixes 2014-05-02 20:09:54 +01:00
rubenwardy
d0e5dfc0c1 Coding style 2014-05-02 19:56:36 +01:00
rubenwardy
442346623a External triggers, on join trigger, intlib 2014-05-02 19:52:25 +01:00
rubenwardy
8bd3658d9e first word award and bug fixes 2014-05-02 19:11:21 +01:00
rubenwardy
8adf859127 On chat trigger and code style 2014-05-02 19:01:41 +01:00
rubenwardy
8180ab6755 Formatting and code style 2014-05-02 18:48:32 +01:00
rubenwardy
bff6c91fc2 Finish award formspec 2014-05-02 18:35:11 +01:00
rubenwardy
6e9be37ed7 Basis of awards formspec 2014-05-02 18:19:42 +01:00