5 Коммитов

Автор SHA1 Сообщение Дата
6d36fc9526 Version 1.3.0 2019-03-22 16:23:27 +01:00
d63422eef3 Add screenshot 2019-03-22 12:31:38 +01:00
3e7f533bee Use new 5.0.0 mod.conf file 2019-03-22 12:24:16 +01:00
ba42cf3e38 Change license to MIT 2019-03-22 12:23:10 +01:00
7efd3064bb Use new 5.0.0 translation system 2019-03-22 12:19:57 +01:00
16 изменённых файлов: 17 добавлений и 23 удалений

4
API.md
Просмотреть файл

@ -1,5 +1,5 @@
API documentation for Mana 1.2.0 API documentation for Mana mod
================================ ==============================
## Introduction ## Introduction
The API of the Mana mod allows you to set and receive The API of the Mana mod allows you to set and receive

Просмотреть файл

@ -1,6 +1,6 @@
# Mana [mana] # Mana [mana]
* Version: 1.2.0 * Version: 1.3.0
* Note: This mod uses semantic versioning, as defined by version 2.0.0 of the SemVer standard. See: <http://semver.org/> * Note: This mod uses semantic versioning, as defined by version 2.0.0 of the SemVer standard. See: <http://semver.org/>
## Description ## Description
@ -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`. 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. 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. 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_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_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. * `textures/mana_bar.png`: [MIT License](https://opensource.org/licenses/MIT) by Wuzzy.
* Everything else: WTFPL. * Everything else: MIT License.

Просмотреть файл

@ -1,2 +0,0 @@
hudbars?
intllib?

Просмотреть файл

@ -1 +0,0 @@
Adds a mana attribute to players, can be used as energy source for magical items, etc.

Просмотреть файл

@ -2,19 +2,14 @@
Mana Mana
This mod adds mana to players, a special attribute This mod adds mana to players, a special attribute
License: WTFPL License: MIT License
]] ]]
--[===[ --[===[
Initialization Initialization
]===] ]===]
local S local S = minetest.get_translator("mana")
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
mana = {} mana = {}
mana.playerlist = {} mana.playerlist = {}
@ -276,7 +271,7 @@ end)
]===] ]===]
if minetest.get_modpath("hudbars") ~= nil then if minetest.get_modpath("hudbars") ~= nil then
hb.register_hudbar("mana", 0xFFFFFF, S("Mana"), { bar = "mana_bar_purple.png", icon = "mana_icon_purple.png", bgicon = "mana_icon_bg_empty.png" }, 0, mana.settings.default_max, false) hb.register_hudbar("mana", 0xFFFFFF, S("Mana"), { bar = "mana_bar.png", icon = "mana_icon.png", bgicon = "mana_bgicon.png" }, 0, mana.settings.default_max, false)
function mana.hud_update(playername) function mana.hud_update(playername)
local player = minetest.get_player_by_name(playername) local player = minetest.get_player_by_name(playername)
@ -326,5 +321,3 @@ end
mana.round = function(x) mana.round = function(x)
return math.ceil(math.floor(x+0.5)) return math.ceil(math.floor(x+0.5))
end end
minetest.log("action", "[mana] loaded.")

Просмотреть файл

@ -1,2 +0,0 @@
Mana = Mana
Mana: @1/@2 = Mana: @1/@2

3
locale/mana.de.tr Обычный файл
Просмотреть файл

@ -0,0 +1,3 @@
# textdomain:mana
Mana=Mana
Mana: @1/@2=Mana: @1/@2

Просмотреть файл

@ -1,2 +1,3 @@
Mana = # textdomain:mana
Mana: @1/@2 = Mana=
Mana: @1/@2=

3
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

Двоичные данные
screenshot.png Обычный файл

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 10 KiB

Двоичные данные
textures/mana_bar.png Обычный файл

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 80 B

Двоичные данные
textures/mana_bar_purple.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 82 B

Двоичные данные
textures/mana_bgicon.png Обычный файл

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 2.9 KiB

Двоичные данные
textures/mana_icon.png Обычный файл

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 2.9 KiB

Двоичные данные
textures/mana_icon_bg_empty.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 635 B

Двоичные данные
textures/mana_icon_purple.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 600 B