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