1
0
mirror of git://repo.or.cz/minetest_mana.git synced 2025-09-06 02:45:21 +02:00

5 Commits

Author SHA1 Message Date
2bd45528ec Merge branch 'master' of yunohost.local:mtcontrib/minetest_mana into nalc-1.2-dev 2019-12-22 13:41:53 +01:00
Wuzzy
31250df93e Version 1.3.1 2019-03-22 16:27:42 +01:00
Wuzzy
f1e6d37614 Remove word “subgame” 2019-03-22 16:27:25 +01:00
sys4-fr
45eb047016 Change la manabar par la version MFF 2019-01-19 15:47:48 +01:00
sys4-fr
b152b04601 Ajoute message de chargement du mod dans le journal "action" 2018-12-26 21:18:19 +01:00
8 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# Mana [mana] # Mana [mana]
* Version: 1.3.0 * Version: 1.3.1
* 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
@@ -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 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 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 The mana regeneration rate (the “mana tick”) is a global setting and is *not* configured on a
per-player basis. per-player basis.

View File

@@ -271,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.png", icon = "mana_icon.png", bgicon = "mana_bgicon.png" }, 0, mana.settings.default_max, false) 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)
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)
@@ -321,3 +321,5 @@ 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.")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 B

BIN
textures/mana_bar_purple.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

BIN
textures/mana_icon_bg_empty.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

BIN
textures/mana_icon_purple.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B