summaryrefslogtreecommitdiff
path: root/technic_worldgen
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-07-25 03:26:43 +0100
committerZefram <zefram@fysh.org>2014-07-25 03:42:21 +0100
commitec008d7045323c91922c3e430a8ef891e66d7e8f (patch)
tree7b3fc3e3737afb4d0155be0aefb334297ee62ed9 /technic_worldgen
parent17c5b66524d3bb4f09c3cc83007901b4cac1a7d5 (diff)
Material-dependent radiation shielding
Radiation is attenuated exponentially by passing through shielding material. Radiation resistance values are assigned to all bulk-material nodes, and the radiation damage ABM traces the path of each radiation ray to count up the shielding. The relative radiation resistance values are essentially real, but the effectiveness of all shielding is scaled down by a factor of about 70 for game purposes. Strength of the existing radiation sources is increased by varying amounts to compensate for shielding. Uranium block and ore, both usable as shielding, are made slightly radioactive, the latter only very slightly.
Diffstat (limited to 'technic_worldgen')
-rw-r--r--technic_worldgen/nodes.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua
index 12637f7..29ea5fb 100644
--- a/technic_worldgen/nodes.lua
+++ b/technic_worldgen/nodes.lua
@@ -5,7 +5,7 @@ minetest.register_node( ":technic:mineral_uranium", {
description = S("Uranium Ore"),
tiles = { "default_stone.png^technic_mineral_uranium.png" },
is_ground_content = true,
- groups = {cracky=3},
+ groups = {cracky=3, radioactive=1},
sounds = default.node_sound_stone_defaults(),
drop = 'craft "technic:uranium" 1',
})
@@ -56,7 +56,7 @@ minetest.register_node(":technic:uranium_block", {
description = S("Uranium Block"),
tiles = { "technic_uranium_block.png" },
is_ground_content = true,
- groups = {cracky=1, level=2},
+ groups = {cracky=1, level=2, radioactive=3},
sounds = default.node_sound_stone_defaults()
})