diff options
author | Wuzzy <almikes@aol.com> | 2016-12-16 12:48:56 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-12-16 12:48:56 +0100 |
commit | 839e484fcc3bd391d184e91d52992f82bec2ceb8 (patch) | |
tree | 210dc52251823172e8a0ce9c62daac2475618256 | |
parent | edf39274c4852edef751425ec765392e5991af0b (diff) |
Expose exact light level, simplify light strings
-rw-r--r-- | init.lua | 16 | ||||
-rw-r--r-- | locale/de.txt | 7 | ||||
-rw-r--r-- | locale/template.txt | 8 |
3 files changed, 8 insertions, 23 deletions
@@ -542,18 +542,10 @@ doc.new_category("nodes", { -- Block appearance --- Light - if data.def.light_source == 15 then - datastring = datastring .. S("This block is an extremely bright light source. It glows as bright the sun.").."\n" - elseif data.def.light_source == 14 then - datastring = datastring .. S("This block is a very bright light source.").."\n" - elseif data.def.light_source > 12 then - datastring = datastring .. S("This block is a bright light source.").."\n" - elseif data.def.light_source > 5 then - datastring = datastring .. S("This block is a light source of medium luminance.").."\n" - elseif data.def.light_source > 1 then - datastring = datastring .. S("This block is a weak light source and glows faintly.").."\n" - elseif data.def.light_source == 1 then - datastring = datastring .. S("This block glows faintly. It is barely noticable.").."\n" + if data.def.light_source > 3 then + datastring = datastring .. S("This block is a light source with a light level of @1.", data.def.light_source).."\n" + elseif data.def.light_source > 0 then + datastring = datastring .. S("This block glows faintly with a light level of @1.", data.def.light_source).."\n" end if data.def.paramtype == "light" and data.def.sunlight_propagates then datastring = datastring .. S("This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.").."\n" diff --git a/locale/de.txt b/locale/de.txt index 38df8da..573becf 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -76,14 +76,11 @@ This block connects to this block: @1. = Dieser Block verbindet sich mit diesem This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds. = Dieser Block reduziert Ihren Atem und verursacht beim Ertrinken einen Schaden von @1 Trefferpunkt alle 2 Sekunden. This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds. = Dieser Block reduziert Ihren Atem und verursacht beim Ertrinken einen Schaden von @1 Trefferpunkten alle 2 Sekunden. This block glows faintly. It is barely noticable. = Dieser Block leuchtet schwach. Es ist kaum merklich. -This block is a bright light source. = Dieser Block ist eine helle Lichtquelle. +This block is a light source with a light level of @1. = Dieser Block ist eine Lichtquelle mit einer Helligkeitsstufe von @1. +This block glows faintly with a light level of @1. = Dieser Block leuchtet schwach mit einer Helligkeitsstufe von @1. This block is a building block for creating various buildings. = Dieser Block ist für den Bau diverser Gebäude vorgesehen. -This block is a light source of medium luminance. = Dieser Block ist eine mittelstarke Lichtquelle. This block is a liquid with these properties: = Dieser Block ist eine Flüssigkeit mit folgenden Eigenschaften: -This block is a very bright light source. = Dieser Block ist eine sehr helle Lichtquelle. -This block is a weak light source and glows faintly. = Dieser Block ist eine schwache Lichtquelle und leuchtet schwach. This block is affected by gravity and can fall. = Dieser Block wird von der Schwerkraft beeinflusst und kann fallen. -This block is an extremely bright light source. It glows as bright the sun. = Dieser Block ist eine extrem helle Lichtquelle. Er strahlt so stark wie die Sonne. This block is completely silent when mined or built. = Dieser Block kann vollkommen lautlos gebaut oder abgebaut werden. This block is completely silent when walked on, mined or built. = Es ist vollkommen lautlos, wenn man auf diesen Block geht, ihn baut oder abbaut. This block is destroyed when a falling block ends up inside it. = Dieser Block wird zerstört, wenn ein fallender Block in ihm landet. diff --git a/locale/template.txt b/locale/template.txt index 453e49f..323a84e 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -76,15 +76,11 @@ This block connects to these blocks: @1. = This block connects to this block: @1. = This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds. = This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds. = -This block glows faintly. It is barely noticable. = -This block is a bright light source. = +This block is a light source with a light level of @1. = +This block glows faintly with a light level of @1. = This block is a building block for creating various buildings. = -This block is a light source of medium luminance. = This block is a liquid with these properties: = -This block is a very bright light source. = -This block is a weak light source and glows faintly. = This block is affected by gravity and can fall. = -This block is an extremely bright light source. It glows as bright the sun. = This block is completely silent when mined or built. = This block is completely silent when walked on, mined or built. = This block is destroyed when a falling block ends up inside it. = |