mirror of
https://github.com/lisacvuk/minetest-toolranks.git
synced 2025-01-09 15:30:17 +01:00
Show the new tool level in the level-up chat message
This commit is contained in:
parent
29ae8b8cc8
commit
9e02edb5e2
4
init.lua
4
init.lua
@ -68,7 +68,9 @@ function toolranks.new_afteruse(itemstack, user, node, digparams)
|
|||||||
if lastlevel < level then
|
if lastlevel < level then
|
||||||
local levelup_text = "Your " .. toolranks.colors.green ..
|
local levelup_text = "Your " .. toolranks.colors.green ..
|
||||||
itemdesc .. toolranks.colors.white ..
|
itemdesc .. toolranks.colors.white ..
|
||||||
" just leveled up!"
|
" just leveled up to " ..
|
||||||
|
toolranks.colors.green .. "level " ..
|
||||||
|
level .. toolranks.colors.white .. "!"
|
||||||
minetest.sound_play("toolranks_levelup", {
|
minetest.sound_play("toolranks_levelup", {
|
||||||
to_player = user:get_player_name(),
|
to_player = user:get_player_name(),
|
||||||
gain = 2.0,
|
gain = 2.0,
|
||||||
|
Loading…
Reference in New Issue
Block a user