MT5 translation for fake_fire

- remove homedecor_common from depends since not required anymore
- remove screwdriver line
- luacheck warnings fixes
```
    init.lua:27:8: variable id was previously defined on line 7
    init.lua:47:8: variable id was previously defined on line 27
    init.lua:201:9: unused variable meta
```
This commit is contained in:
Louis Royer 2020-08-04 19:50:13 +02:00
parent 55e1714cac
commit 2b7905e12d
12 changed files with 99 additions and 13 deletions

View File

@ -1,2 +0,0 @@
default
homedecor_common

View File

@ -1,11 +1,8 @@
local S = homedecor.gettext
screwdriver = screwdriver or {}
local S = minetest.get_translator("fake_fire")
local function fire_particles_on(pos) -- 3 layers of fire
local meta = minetest.get_meta(pos)
local id = minetest.add_particlespawner({ -- 1 layer big particles fire
local id1 = minetest.add_particlespawner({ -- 1 layer big particles fire
amount = 9,
time = 0,
minpos = {x = pos.x - 0.2, y = pos.y - 0.4, z = pos.z - 0.2},
@ -23,9 +20,9 @@ local function fire_particles_on(pos) -- 3 layers of fire
texture = "fake_fire_particle_anim_fire.png",
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.8,},
})
meta:set_int("layer_1", id)
meta:set_int("layer_1", id1)
local id = minetest.add_particlespawner({ -- 2 layer smol particles fire
local id2 = minetest.add_particlespawner({ -- 2 layer smol particles fire
amount = 1,
time = 0,
minpos = {x = pos.x - 0.1, y = pos.y, z = pos.z - 0.1},
@ -43,9 +40,9 @@ local function fire_particles_on(pos) -- 3 layers of fire
texture = "fake_fire_particle_anim_fire.png",
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.7,},
})
meta:set_int("layer_2", id)
meta:set_int("layer_2", id2)
local id = minetest.add_particlespawner({ --3 layer smoke
local id3 = minetest.add_particlespawner({ --3 layer smoke
amount = 1,
time = 0,
minpos = {x = pos.x - 0.1, y = pos.y - 0.2, z = pos.z - 0.1},
@ -63,7 +60,7 @@ local function fire_particles_on(pos) -- 3 layers of fire
texture = "fake_fire_particle_anim_smoke.png",
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.9,},
})
meta:set_int("layer_3", id)
meta:set_int("layer_3", id3)
end
local function fire_particles_off(pos)
@ -199,7 +196,6 @@ minetest.register_node("fake_fire:fancy_fire", {
return itemstack
end,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
fire_particles_on(pos)
end,
on_destruct = function(pos, oldnode, oldmetadata, digger)

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Schönes Feuer
Glowing Embers=Glühende Asche
Ice fire=Eisfeuer
Sandstone chimney top=Sandsteinschornsteinaufsatz
Stone chimney top=Steinschornsteinaufsatz

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Fuego fantasía
Glowing Embers=Brasas ardientes
Ice fire=Fuego de hielo
Sandstone chimney top=Chimenea de arenisca
Stone chimney top=Chimenea de piedra

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Feu décoratif
Glowing Embers=Braises incandescentes
Ice fire=Feu glacé
Sandstone chimney top=Haut de cheminée en grès
Stone chimney top=Haut de cheminée en pierre

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Api Hiasan
Glowing Embers=Bara Api
Ice fire=Api Ais
Sandstone chimney top=Kepala Serombong Batu Pasir
Stone chimney top=Kepala Serombong Batu

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Fogo Chique
Glowing Embers=Brasas Brilhantes
Ice fire=Fogo de gelo
Sandstone chimney top=Topo de chaminé de arenito
Stone chimney top=Topo de chaminé de pedra

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Fogo Chique
Glowing Embers=Brasas Brilhantes
Ice fire=Fogo de gelo
Sandstone chimney top=Topo de chaminé de arenito
Stone chimney top=Topo de chaminé de pedra

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=Необычный огонь
Glowing Embers=Светящиеся угли
Ice fire=Ледяной огонь
Sandstone chimney top=Дымоход из песчаника на крышу
Stone chimney top=Каменный дымоход на крышу

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=花式火
Glowing Embers=发光的余烬
Ice fire=冰火
Sandstone chimney top=砂石烟囱顶部
Stone chimney top=鹅卵石烟囱顶部

View File

@ -0,0 +1,10 @@
# textdomain: fake_fire
### init.lua ###
Fancy Fire=
Glowing Embers=
Ice fire=
Sandstone chimney top=
Stone chimney top=

2
fake_fire/mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = fake_fire
depends = default