diff --git a/API.md b/API.md index ed7e9e3..8f2673d 100644 --- a/API.md +++ b/API.md @@ -1,5 +1,5 @@ -API documentation for Mana 1.2.0 -================================ +API documentation for Mana mod +============================== ## Introduction The API of the Mana mod allows you to set and receive diff --git a/README.md b/README.md index ad06f31..a9e99e1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Mana [mana] -* Version: 1.2.0 +* Version: 1.3.1 * Note: This mod uses semantic versioning, as defined by version 2.0.0 of the SemVer standard. See: ## Description @@ -14,7 +14,7 @@ Each player will have an additional attribute: Mana. To be precise: By default, each player spawns with 0/200 mana, and regenerates 1 mana per fifth of a second. All these values can be configured with the server settings (`minetest.conf`) and it is highly advised to do -so if you plan to integrate this mod into a subgame. +so if you plan to integrate this mod into a game. The mana regeneration rate (the “mana tick”) is a global setting and is *not* configured on a per-player basis. @@ -26,7 +26,6 @@ way. You should install other mods which use the Mana mod as a dependency. The API documentation is in the file `API.md`. If the mod “HUD bars” [`hudbars`] is installed, a blue bar will be added to the HUD showing the player's mana reserves. -It currently only works with version 0.3.0 of this mod. Otherwise, the mana is just shown as text. @@ -44,5 +43,5 @@ License information =================== * `textures/mana_icon.png`: [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) by [Buch](http://opengameart.org/users/Buch). * `textures/mana_bgicon.png`: CC BY 3.0, originally by Buch, modified by Wuzzy. -* `textures/mana_bar.png`: [WTFPL](http://www.wtfpl.net/txt/copying/) by Wuzzy. -* Everything else: WTFPL. +* `textures/mana_bar.png`: [MIT License](https://opensource.org/licenses/MIT) by Wuzzy. +* Everything else: MIT License. diff --git a/depends.txt b/depends.txt deleted file mode 100644 index ea7cfeb..0000000 --- a/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -hudbars? -intllib? diff --git a/description.txt b/description.txt deleted file mode 100644 index e9efb08..0000000 --- a/description.txt +++ /dev/null @@ -1 +0,0 @@ -Adds a mana attribute to players, can be used as energy source for magical items, etc. diff --git a/init.lua b/init.lua index 6be87fe..fe27e7b 100644 --- a/init.lua +++ b/init.lua @@ -2,19 +2,14 @@ Mana This mod adds mana to players, a special attribute -License: WTFPL +License: MIT License ]] --[===[ Initialization ]===] -local S -if (minetest.get_modpath("intllib")) then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end +local S = minetest.get_translator("mana") mana = {} mana.playerlist = {} diff --git a/locale/de.txt b/locale/de.txt deleted file mode 100644 index 6d249e8..0000000 --- a/locale/de.txt +++ /dev/null @@ -1,2 +0,0 @@ -Mana = Mana -Mana: @1/@2 = Mana: @1/@2 diff --git a/locale/mana.de.tr b/locale/mana.de.tr new file mode 100644 index 0000000..3fd8f98 --- /dev/null +++ b/locale/mana.de.tr @@ -0,0 +1,3 @@ +# textdomain:mana +Mana=Mana +Mana: @1/@2=Mana: @1/@2 diff --git a/locale/template.txt b/locale/template.txt index 82151f4..b9c36d1 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,2 +1,3 @@ -Mana = -Mana: @1/@2 = +# textdomain:mana +Mana= +Mana: @1/@2= diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..5a9465d --- /dev/null +++ b/mod.conf @@ -0,0 +1,3 @@ +name = mana +description = Adds a mana attribute to players, can be used as energy source for magical items, etc. +optional_depends = hudbars diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..7ad5d00 Binary files /dev/null and b/screenshot.png differ