Buff drowning damage, nerf some node damage.
This commit is contained in:
parent
00aa460942
commit
bcbe77644e
@ -30,7 +30,7 @@ minetest.register_node(modname .. ":fire", {
|
|||||||
flame_sound = 1,
|
flame_sound = 1,
|
||||||
stack_as_node = 1,
|
stack_as_node = 1,
|
||||||
},
|
},
|
||||||
damage_per_second = 2,
|
damage_per_second = 1,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
floodable = true,
|
floodable = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -107,7 +107,7 @@ for num = 1, nodecore.fire_max do
|
|||||||
},
|
},
|
||||||
drop = "",
|
drop = "",
|
||||||
diggable = false,
|
diggable = false,
|
||||||
damage_per_second = 2,
|
damage_per_second = 1,
|
||||||
on_punch = nodecore.node_punch_hurt,
|
on_punch = nodecore.node_punch_hurt,
|
||||||
crush_damage = 1,
|
crush_damage = 1,
|
||||||
sounds = nodecore.sounds("nc_terrain_crunchy")
|
sounds = nodecore.sounds("nc_terrain_crunchy")
|
||||||
|
@ -46,7 +46,7 @@ function nodecore.register_lode(shape, rawdef)
|
|||||||
else
|
else
|
||||||
def.groups = def.groups or {}
|
def.groups = def.groups or {}
|
||||||
def.groups.falling_node = 1
|
def.groups.falling_node = 1
|
||||||
def.damage_per_second = 2
|
def.damage_per_second = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
if def.tiles then
|
if def.tiles then
|
||||||
|
@ -94,7 +94,7 @@ reg("cobble_hot", {
|
|||||||
.. modname .. "_mask_molten.png)^nc_terrain_cobble.png"
|
.. modname .. "_mask_molten.png)^nc_terrain_cobble.png"
|
||||||
},
|
},
|
||||||
groups = {cracky = 0, lodey = 1},
|
groups = {cracky = 0, lodey = 1},
|
||||||
damage_per_second = 2,
|
damage_per_second = 1,
|
||||||
on_punch = nodecore.node_punch_hurt
|
on_punch = nodecore.node_punch_hurt
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ local moltdef = {
|
|||||||
buildable_to = false,
|
buildable_to = false,
|
||||||
drowning = 1,
|
drowning = 1,
|
||||||
on_punch = nodecore.node_punch_hurt,
|
on_punch = nodecore.node_punch_hurt,
|
||||||
damage_per_second = 4,
|
damage_per_second = 3,
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {igniter = 1, silica = 1, stack_as_node = 1},
|
groups = {igniter = 1, silica = 1, stack_as_node = 1},
|
||||||
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
|
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
|
||||||
|
@ -3,8 +3,9 @@ local minetest, nodecore, pairs
|
|||||||
= minetest, nodecore, pairs
|
= minetest, nodecore, pairs
|
||||||
-- LUALOCALS > ---------------------------------------------------------
|
-- LUALOCALS > ---------------------------------------------------------
|
||||||
|
|
||||||
minetest.register_on_player_hpchange(function(player, hp)
|
minetest.register_on_player_hpchange(function(player, hp, reason)
|
||||||
local orig = player:get_hp()
|
local orig = player:get_hp()
|
||||||
|
if reason and reason.type == "drown" then hp = hp * 2 end
|
||||||
if player:get_armor_groups().immortal then
|
if player:get_armor_groups().immortal then
|
||||||
return orig
|
return orig
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user