mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-04 07:37:31 +01:00
Merge pull request 'Added a conversion for legacy fireworks' (#4776) from legacy_fireworks_conversion into master
Fixed translation files' textdomain and added some Polish translations in this PR too. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4776
This commit is contained in:
commit
d45184a885
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=Feuerwerksstern
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=Ein Feuerwerksstern ist der Hauptbestandteil einer Feuerwerksrakete, der für die sichtbare Explosion verantwortlich ist.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,9 +1,9 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
Generic Firework Star=
|
||||
Size:=
|
||||
Firework Star=Gwiazdka pirotechniczna
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=Gwiazdka pirotechniczna jest kluczowym składnikiem rakiety fajerwerkowej, odpowiedzialnym za widoczną eksplozję.
|
||||
Generic Firework Star=Zwyczajna gwiazdka pirotechniczna
|
||||
Size:=Rozmiar:
|
||||
##[ rockets.lua ]##
|
||||
Flight Duration:=Czas lotu:
|
||||
Firework Rocket=Fajerwerkowa rakieta
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,4 +1,4 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
|
@ -1,14 +1,10 @@
|
||||
# textdomain: mcl_fireworks
|
||||
# textdomain: vl_fireworks
|
||||
##[ star.lua ]##
|
||||
Firework Star=
|
||||
A firework star is the key component of a firework rocket which is responsible for the visible explosion.=
|
||||
Generic Firework Star=
|
||||
Size:=
|
||||
##[ rockets.lua ]##
|
||||
Flight Duration:=
|
||||
Flight Duration:=飞行时长:
|
||||
Firework Rocket=烟花火箭
|
||||
|
||||
|
||||
##### not used anymore #####
|
||||
|
||||
Flight Duration=飞行时长
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = vl_fireworks
|
||||
description = Adds fun fireworks to the game which players can use.
|
||||
depends = vl_projectile
|
||||
depends = vl_projectile, vl_legacy
|
||||
|
@ -199,3 +199,16 @@ local firework_def = {
|
||||
vl_fireworks.firework_def = table.copy(firework_def)
|
||||
|
||||
core.register_craftitem("vl_fireworks:rocket", firework_def)
|
||||
|
||||
-- legacy
|
||||
for i=1, 3 do
|
||||
vl_legacy.register_item_conversion("mcl_fireworks:rocket_"..i, nil, function(itemstack)
|
||||
itemstack:set_name("vl_fireworks:rocket")
|
||||
local meta = itemstack:get_meta()
|
||||
local tbl = vl_fireworks.firework_def._vl_fireworks_std_durs_forces[i]
|
||||
meta:set_float("vl_fireworks:duration", tbl[1])
|
||||
meta:set_int("vl_fireworks:force", tbl[2])
|
||||
tt.reload_itemstack_description(itemstack)
|
||||
end)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user