Add lzr_globals.LASER_GLOW

master
Wuzzy 2022-03-15 23:37:38 +01:00
parent 1ebb746066
commit 50c9f8d3ec
3 changed files with 5 additions and 6 deletions

View File

@ -13,3 +13,4 @@ lzr_globals.WATER_LEVEL = 0
lzr_globals.SEABED_LEVEL = -1000
lzr_globals.SEASTONE_LEVEL = -1002
lzr_globals.GRAVITY = tonumber(minetest.settings:get("movement_gravity")) or 9.81
lzr_globals.LASER_GLOW = 3

View File

@ -340,7 +340,7 @@ register_element("mirror", {
mesh_off = "lzr_laser_mirror.obj",
mesh_on = "lzr_laser_mirror_on.obj",
light_source_on = 3,
light_source_on = lzr_globals.LASER_GLOW,
groups = { rotatable = 1, laser_block = 1 },
sounds = lzr_sounds.node_sound_glass_defaults({
@ -354,8 +354,6 @@ local tm_def = {
paramtype2 = "facedir",
use_texture_alpha = "blend",
drawtype = "mesh",
light_source_on = 3,
groups = { rotatable = 1, laser_block = 1 },
sounds = lzr_sounds.node_sound_glass_defaults({
_rotate = {name = "lzr_laser_mirror_rotate", gain = 1.0},
@ -384,7 +382,7 @@ tm_def_off.mesh_off = "lzr_laser_mirror.obj"
-- Transmissive Mirror
local tm_def_on_01 = table.copy(tm_def)
tm_def_on_01.light_source = 3
tm_def_on_01.light_source = lzr_globals.LASER_GLOW
tm_def_on_01._lzr_transmissive_mirror_state = "01"
tm_def_on_01.description = S("Transmissive Mirror (active, 01)")
tm_def_on_01.tiles_off = {
@ -434,7 +432,7 @@ register_element("crystal", {
tiles_on = {
"lzr_laser_crystal_on.png^lzr_laser_fixed.png",
},
light_source_on = 3,
light_source_on = lzr_globals.LASER_GLOW,
groups = { laser_block = 1 },
sounds = lzr_sounds.node_sound_glass_defaults({
_rotate = {name = "lzr_laser_mirror_rotate", gain = 1.0},

View File

@ -96,7 +96,7 @@ for i=1, 7 do
minetest.register_node("lzr_laser:laser_"..dirstring, {
description = S("Laser (@1)", dirstring),
paramtype = "light",
light_source = 3,
light_source = lzr_globals.LASER_GLOW,
drawtype = "nodebox",
sunlight_propagates = true,
walkable = false,