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.
This commit is contained in:
Zefram
2014-07-25 03:26:43 +01:00
parent 17c5b66524
commit ec008d7045
2 changed files with 246 additions and 35 deletions

View File

@ -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()
})