1
0
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:
Wolfgang Silbermayr 2017-08-09 10:44:00 +02:00
parent 29ae8b8cc8
commit 9e02edb5e2

View File

@ -68,7 +68,9 @@ function toolranks.new_afteruse(itemstack, user, node, digparams)
if lastlevel < level then
local levelup_text = "Your " .. toolranks.colors.green ..
itemdesc .. toolranks.colors.white ..
" just leveled up!"
" just leveled up to " ..
toolranks.colors.green .. "level " ..
level .. toolranks.colors.white .. "!"
minetest.sound_play("toolranks_levelup", {
to_player = user:get_player_name(),
gain = 2.0,