From dc4f4f66e612850d78d9a28808ef19704cf3325a Mon Sep 17 00:00:00 2001 From: coil <51716565+coil0@users.noreply.github.com> Date: Wed, 10 Jul 2019 20:27:01 +0200 Subject: [PATCH] Apply radiation damage only if entity is not dead (#504) --- technic_worldgen/nodes.lua | 30 +++++++++++------------------- 1 files changed, 11 insertions(+), 19 deletions(-) diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index 54ddfca..d4d3e4c 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -5,10 +5,10 @@ description = S("Uranium Ore"), tiles = { "default_stone.png^technic_mineral_uranium.png" }, is_ground_content = true, - groups = {cracky=3, radioactive=1000}, + groups = {cracky=3, radioactive=1}, sounds = default.node_sound_stone_defaults(), drop = "technic:uranium_lump", -}) +}) minetest.register_node( ":technic:mineral_chromium", { description = S("Chromium Ore"), @@ -17,11 +17,11 @@ groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), drop = "technic:chromium_lump", -}) +}) minetest.register_node( ":technic:mineral_zinc", { description = S("Zinc Ore"), - tile_images = { "default_stone.png^technic_mineral_zinc.png" }, + tiles = { "default_stone.png^technic_mineral_zinc.png" }, is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), @@ -30,7 +30,7 @@ minetest.register_node( ":technic:mineral_lead", { description = S("Lead Ore"), - tile_images = { "default_stone.png^technic_mineral_lead.png" }, + tiles = { "default_stone.png^technic_mineral_lead.png" }, is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), @@ -39,7 +39,7 @@ minetest.register_node( ":technic:mineral_sulfur", { description = S("Sulfur Ore"), - tile_images = { "default_stone.png^technic_mineral_sulfur.png" }, + tiles = { "default_stone.png^technic_mineral_sulfur.png" }, is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), @@ -52,15 +52,15 @@ is_ground_content = true, groups = {cracky=1}, sounds = default.node_sound_stone_defaults(), -}) +}) minetest.register_node( ":technic:marble", { description = S("Marble"), tiles = { "technic_marble.png" }, is_ground_content = true, - groups = {cracky=3}, + groups = {cracky=3, marble=1}, sounds = default.node_sound_stone_defaults(), -}) +}) minetest.register_node( ":technic:marble_bricks", { description = S("Marble Bricks"), @@ -68,13 +68,13 @@ is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), -}) +}) minetest.register_node(":technic:uranium_block", { description = S("Uranium Block"), tiles = { "technic_uranium_block.png" }, is_ground_content = true, - groups = {uranium_block=1, cracky=1, level=2, radioactive=3000}, + groups = {uranium_block=1, cracky=1, level=2, radioactive=2}, sounds = default.node_sound_stone_defaults() }) @@ -128,14 +128,6 @@ minetest.register_node(":technic:stainless_steel_block", { description = S("Stainless Steel Block"), tiles = { "technic_stainless_steel_block.png" }, - is_ground_content = true, - groups = {cracky=1, level=2}, - sounds = default.node_sound_stone_defaults() -}) - -minetest.register_node(":technic:brass_block", { - description = S("Brass Block"), - tiles = { "technic_brass_block.png" }, is_ground_content = true, groups = {cracky=1, level=2}, sounds = default.node_sound_stone_defaults() -- Gitblit v1.8.0