my first changes
This commit is contained in:
@@ -231,7 +231,6 @@ minetest.register_node("portalgun:toxwater_1", {
|
||||
description = "Toxic water",
|
||||
drawtype = "liquid",
|
||||
tiles = {"portalgun_toxwat.png"},
|
||||
post_effect_color = {a = 200, r = 119, g = 70, b = 16},
|
||||
alpha = 190,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
@@ -256,7 +255,6 @@ minetest.register_node("portalgun:toxwater_1", {
|
||||
minetest.register_node("portalgun:toxwater_2", {
|
||||
description = "Toxic water 2",
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"portalgun_toxwat.png"},
|
||||
tiles = {name = "portalgun_toxwat.png",backface_culling=false},
|
||||
special_tiles = {{name = "portalgun_toxwat.png",backface_culling=true},{name = "portalgun_toxwat.png",backface_culling=false}},
|
||||
alpha = 190,
|
||||
@@ -301,7 +299,6 @@ on_use = function(itemstack, user, pointed_thing)
|
||||
for ii, ob in pairs(minetest.get_objects_inside_radius(pos, 7)) do
|
||||
if ob:get_luaentity() then
|
||||
ob:set_hp(0)
|
||||
ob:punch(ob, {full_punch_interval=1.0,damage_groups={fleshy=9000}}, "default:bronze_pick", nil)
|
||||
end
|
||||
end
|
||||
return itemstack
|
||||
@@ -506,12 +503,15 @@ on_step= function(self, dtime)
|
||||
return
|
||||
end
|
||||
for i, ob in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do
|
||||
if ob:is_player() or (ob:get_luaentity() and ob:get_luaentity().bullet~=1) then
|
||||
ob:set_hp(ob:get_hp()-7)
|
||||
ob:punch(self.object, 1,{full_punch_interval=1.0,damage_groups={fleshy=4}}, "default:bronze_pick", nil)
|
||||
if ob:is_player() then
|
||||
if ob:get_hp() > 2 then
|
||||
ob:set_hp(ob:get_hp()-2)
|
||||
else
|
||||
ob:set_hp(0)
|
||||
end
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
timer=0,
|
||||
|
||||
Reference in New Issue
Block a user