mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Proper fire aspect damage
This commit is contained in:
parent
ac54e3caf3
commit
aea051fe37
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
|
||||||
if wielditem then
|
if wielditem then
|
||||||
local fire_aspect_level = mcl_enchanting.get_enchantment(wielditem, "fire_aspect")
|
local fire_aspect_level = mcl_enchanting.get_enchantment(wielditem, "fire_aspect")
|
||||||
if fire_aspect_level > 0 then
|
if fire_aspect_level > 0 then
|
||||||
mcl_burning.set_on_fire(player, 4, fire_aspect_level * 2, hitter:get_player_name())
|
mcl_burning.set_on_fire(player, 4, fire_aspect_level * 4 - 1, hitter:get_player_name())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -704,7 +704,7 @@ mcl_enchanting.enchantments.unbreaking = {
|
||||||
weight = 5,
|
weight = 5,
|
||||||
description = S("Increases item durability."),
|
description = S("Increases item durability."),
|
||||||
curse = false,
|
curse = false,
|
||||||
on_enchant = function(itemstack, level)
|
on_enchant = function(itemstack, level)
|
||||||
local tool_capabilities = itemstack:get_tool_capabilities()
|
local tool_capabilities = itemstack:get_tool_capabilities()
|
||||||
for group, capability in pairs(tool_capabilities.groupcaps) do
|
for group, capability in pairs(tool_capabilities.groupcaps) do
|
||||||
capability.uses = capability.uses * (1 + level)
|
capability.uses = capability.uses * (1 + level)
|
||||||
|
|
Loading…
Reference in a new issue