diff --git a/API.txt b/API.txt index 11ba505..2d4c791 100644 --- a/API.txt +++ b/API.txt @@ -2,20 +2,13 @@ API para mod Xpro v1.0.0 ### Métodos -* `xpro.add_xp(name, xp_add)` - * Adiciona xp a um jogador -* `xpro.register_on_add_xp(func(name, xp_added, lvl_changed))` - * Registra uma função a ser executada apos ser adicionado xp a um jogador -* `xpro.rem_xp(name, xp_rem)` - * Remove xp a um jogador -* `xpro.register_on_rem_xp(func(name, xp_removed, lvl_changed))` - * Registra uma função a ser executada apos ser removido xp de um jogador -* `xpro.get_player_xp(name)` - * Retorna o numero de pontos de xp do jogador -* `xpro.get_player_lvl(name)` - * Retorna o numero do nivel do jogador -* `xpro.registrar_premio(name, Definições do Prêmio)` - * Registra um premio para ser trocado por cash xp +* `xpro.add_xp(name, xp_add)`: Adiciona xp a um jogador +* `xpro.register_on_add_xp(func(name, xp_added, lvl_changed))`: Registra uma função a ser executada apos ser adicionado xp a um jogador +* `xpro.rem_xp(name, xp_rem)`: Remove xp a um jogador +* `xpro.register_on_rem_xp(func(name, xp_removed, lvl_changed))`: Registra uma função a ser executada apos ser removido xp de um jogador +* `xpro.get_player_xp(name)`: Retorna o numero de pontos de xp do jogador +* `xpro.get_player_lvl(name)`: Retorna o numero do nivel do jogador +* `xpro.registrar_premio(name, Definições do Prêmio)`: Registra um premio para ser trocado por cash xp * `name` é o nome de exibição do item na lista de prêmios * Definições de Prêmio { @@ -23,7 +16,10 @@ API para mod Xpro v1.0.0 qtd=, -- Quantidade de itens a ser dado ao jogador custo=, -- Custo da troca em cash xp que o jogador vai ter que pagar } - +* `xpro.register_on_craft(name, xp)`: Registra um item para alterar xp ao craftar um item +* `xpro.register_on_dignode(name, xp)`: Registra um item para alterar xp ao cavar um node +* `xpro.register_on_placenode(name, xp)`: Registra um item para alterar xp ao colocar um node + diff --git a/api.lua b/api.lua index cb03634..9d40429 100644 --- a/api.lua +++ b/api.lua @@ -45,6 +45,11 @@ xpro.niveis = { 36500, -- Nivel 32 39200, -- Nivel 33 42000, -- Nivel 34 + 44900, -- Nivel 35 + 47900, -- Nivel 36 + 51000, -- Nivel 37 + 54200, -- Nivel 38 + 57500, -- Nivel 39 } local tb_niveis = xpro.niveis @@ -100,7 +105,7 @@ end -- Adicionar XP xpro.add_xp = function(name, xp_add) - minetest.chat_send_all(name.." recebeu "..xp_add.."XP") + -- Nome da tabela referente ao jogador no banco de dados local tb_name = "jogador_"..name @@ -135,7 +140,7 @@ end -- Remover XP xpro.rem_xp = function(name, xp_rem) - minetest.chat_send_all(name.." perdeu "..xp_rem.."XP") + -- Nome da tabela referente ao jogador no banco de dados local tb_name = "jogador_"..name diff --git a/hud.lua b/hud.lua index d7f2289..7d4a772 100644 --- a/hud.lua +++ b/hud.lua @@ -15,6 +15,7 @@ local S = xpro.S if hb then local get_progress = function(my_xp, my_lvl) + if xpro.niveis[my_lvl+1] == nil then return 100 end local xp = xpro.niveis[my_lvl] - my_xp local xp_t = xpro.niveis[my_lvl] - xpro.niveis[my_lvl+1] local p = xp/xp_t @@ -82,7 +83,7 @@ if hb then -- text_color "0xFFFFFF", -- label - "XP", + S("XP"), -- textures { bar = "xpro_hudbars_bar_xp.png", @@ -131,7 +132,7 @@ xpro.register_on_add_xp(function(name, xp_added, lvl_changed) hud_elem_type = "text", position = {x=(math.random(1, 100)/100)*0.5+0.23,y=(math.random(1, 100)/100)*0.15+0.58}, scale = {x=500,y=500}, - text = "+"..xp_added.."XP", + text = S("+@1XP", xp_added), number = 0x00FF00, alignment = {x=1,y=1}, offset = {x=0, y=0}, @@ -164,7 +165,7 @@ xpro.register_on_add_xp(function(name, xp_added, lvl_changed) hud_elem_type = "text", position = {x=0.505,y=0.265}, scale = {x=500,y=500}, - text = "Liga "..liga.name, + text = S("Liga @1", liga.name), number = 0x00FF00, alignment = {x=0,y=0}, offset = {x=0, y=0}, @@ -174,12 +175,17 @@ xpro.register_on_add_xp(function(name, xp_added, lvl_changed) hud_elem_type = "text", position = {x=0.505,y=0.29}, scale = {x=500,y=500}, - text = "Nivel "..new_lvl, + text = S("Nivel @1", new_lvl), number = 0x00FF00, alignment = {x=0,y=0}, offset = {x=0, y=0}, } adicionar_hud(minetest.get_player_by_name(name), def_text_lvl, 8) + + minetest.sound_play("xpro_upgrade_lvl", { + to_player = name, + gain = 0.5, + }) end end) -- Alterar barra ao remover XP @@ -189,7 +195,7 @@ xpro.register_on_rem_xp(function(name, xp_removed, lvl_changed) hud_elem_type = "text", position = {x=(math.random(1, 100)/100)*0.5+0.23,y=(math.random(1, 100)/100)*0.15+0.58}, scale = {x=500,y=500}, - text = "-"..xp_removed.."XP", + text = S("-@1XP", xp_removed), number = 0xFF0000, alignment = {x=1,y=1}, offset = {x=0, y=0}, @@ -222,7 +228,7 @@ xpro.register_on_rem_xp(function(name, xp_removed, lvl_changed) hud_elem_type = "text", position = {x=0.505,y=0.265}, scale = {x=500,y=500}, - text = "Liga "..liga.name, + text = S("Liga @1", liga.name), number = 0xFF0000, alignment = {x=0,y=0}, offset = {x=0, y=0}, @@ -232,12 +238,17 @@ xpro.register_on_rem_xp(function(name, xp_removed, lvl_changed) hud_elem_type = "text", position = {x=0.505,y=0.29}, scale = {x=500,y=500}, - text = "Nivel "..new_lvl, + text = S("Nivel @1", new_lvl), number = 0xFF0000, alignment = {x=0,y=0}, offset = {x=0, y=0}, } adicionar_hud(minetest.get_player_by_name(name), def_text_lvl, 8) + + minetest.sound_play("xpro_downgrade_lvl", { + to_player = name, + gain = 0.5, + }) end end) diff --git a/init.lua b/init.lua index 163b1a1..5f43a98 100644 --- a/init.lua +++ b/init.lua @@ -34,6 +34,7 @@ xpro.tror = dofile(modpath.."/lib/tror.lua") xpro.var = {} -- API +dofile(modpath.."/tradutor.lua") dofile(modpath.."/api.lua") dofile(modpath.."/ligas.lua") dofile(modpath.."/shop.lua") @@ -48,5 +49,8 @@ dofile(modpath.."/metodos/craft.lua") dofile(modpath.."/metodos/dig_node.lua") dofile(modpath.."/metodos/place_node.lua") +-- Suporte para mods +dofile(modpath.."/mods_suportados/minetest_game.lua") + notificar("OK") diff --git a/ligas.lua b/ligas.lua index 7edd32b..d89fb7e 100644 --- a/ligas.lua +++ b/ligas.lua @@ -9,47 +9,55 @@ Ligas dos Niveis ]] +local S = xpro.S + -- Tabela de Ligas xpro.ligas = { -- Liga Novato - {img="[inventorycube{default_dirt.png{default_dirt.png{default_dirt.png", name="Novato I"}, -- Nivel 1 - {img="[inventorycube{default_grass.png{default_dirt.png&default_grass_side.png{default_dirt.png&default_grass_side.png", name="Novato II"}, -- Nivel 2 - {img="default_apple.png", name="Novato III"}, -- Nivel 3 + {img="[inventorycube{default_dirt.png{default_dirt.png{default_dirt.png", name=S("Novato I")}, -- Nivel 1 + {img="[inventorycube{default_grass.png{default_dirt.png&default_grass_side.png{default_dirt.png&default_grass_side.png", name=S("Novato II")}, -- Nivel 2 + {img="default_apple.png", name=S("Novato III")}, -- Nivel 3 -- Liga Madeira - {img="default_stick.png", name="Madeira I"}, -- Nivel 4 - {img="[inventorycube{default_wood.png{default_wood.png{default_wood.png", name="Madeira II"}, -- Nivel 5 - {img="[inventorycube{default_tree_top.png{default_tree.png{default_tree.png", name="Madeira III"}, -- Nivel 6 - {img="default_tool_woodshovel.png", name="Madeira IV"}, -- Nivel 7 - {img="default_tool_woodaxe.png", name="Madeira V"}, -- Nivel 8 - {img="default_tool_woodpick.png", name="Madeira VI"}, -- Nivel 9 - {img="default_tool_woodsword.png", name="Madeira VII"}, -- Nivel 10 + {img="default_stick.png", name=S("Madeira I")}, -- Nivel 4 + {img="[inventorycube{default_wood.png{default_wood.png{default_wood.png", name=S("Madeira II")}, -- Nivel 5 + {img="[inventorycube{default_tree_top.png{default_tree.png{default_tree.png", name=S("Madeira III")}, -- Nivel 6 + {img="default_tool_woodshovel.png", name=S("Madeira IV")}, -- Nivel 7 + {img="default_tool_woodaxe.png", name=S("Madeira V")}, -- Nivel 8 + {img="default_tool_woodpick.png", name=S("Madeira VI")}, -- Nivel 9 + {img="default_tool_woodsword.png", name=S("Madeira VII")}, -- Nivel 10 -- Liga Pedra - {img="[inventorycube{default_cobble.png{default_cobble.png{default_cobble.png", name="Pedra I"}, -- Nivel 11 - {img="[inventorycube{default_stone.png{default_stone.png{default_stone.png", name="Pedra II"}, -- Nivel 12 - {img="default_tool_stoneshovel.png", name="Pedra III"}, -- Nivel 13 - {img="default_tool_stoneaxe.png", name="Pedra IV"}, -- Nivel 14 - {img="default_tool_stonepick.png", name="Pedra V"}, -- Nivel 15 - {img="default_tool_stonesword.png", name="Pedra VI"}, -- Nivel 16 + {img="[inventorycube{default_cobble.png{default_cobble.png{default_cobble.png", name=S("Pedra I")}, -- Nivel 11 + {img="[inventorycube{default_stone.png{default_stone.png{default_stone.png", name=S("Pedra II")}, -- Nivel 12 + {img="default_tool_stoneshovel.png", name=S("Pedra III")}, -- Nivel 13 + {img="default_tool_stoneaxe.png", name=S("Pedra IV")}, -- Nivel 14 + {img="default_tool_stonepick.png", name=S("Pedra V")}, -- Nivel 15 + {img="default_tool_stonesword.png", name=S("Pedra VI")}, -- Nivel 16 -- Liga Ferro - {img="default_iron_lump.png", name="Ferro I"}, -- Nivel 17 - {img="default_steel_ingot.png", name="Ferro II"}, -- Nivel 18 - {img="default_tool_steelshovel.png", name="Ferro III"}, -- Nivel 19 - {img="default_tool_steelaxe.png", name="Ferro IV"}, -- Nivel 20 - {img="default_tool_steelpick.png", name="Ferro V"}, -- Nivel 21 - {img="default_tool_steelsword.png", name="Ferro VI"}, -- Nivel 22 + {img="default_iron_lump.png", name=S("Ferro I")}, -- Nivel 17 + {img="default_steel_ingot.png", name=S("Ferro II")}, -- Nivel 18 + {img="default_tool_steelshovel.png", name=S("Ferro III")}, -- Nivel 19 + {img="default_tool_steelaxe.png", name=S("Ferro IV")}, -- Nivel 20 + {img="default_tool_steelpick.png", name=S("Ferro V")}, -- Nivel 21 + {img="default_tool_steelsword.png", name=S("Ferro VI")}, -- Nivel 22 + -- Liga Bronze + {img="default_bronze_ingot.png", name=S("Bronze II")}, -- Nivel 23 + {img="default_tool_bronzeshovel.png", name=S("Bronze III")}, -- Nivel 24 + {img="default_tool_bronzeaxe.png", name=S("Bronze IV")}, -- Nivel 25 + {img="default_tool_bronzepick.png", name=S("Bronze V")}, -- Nivel 26 + {img="default_tool_bronzesword.png", name=S("Bronze VI")}, -- Nivel 27 -- Liga Mese - {img="default_mese_crystal_fragment.png", name="Mese I"}, -- Nivel 23 - {img="default_mese_crystal.png", name="Mese II"}, -- Nivel 24 - {img="default_tool_meseshovel.png", name="Mese III"}, -- Nivel 25 - {img="default_tool_meseaxe.png", name="Mese IV"}, -- Nivel 26 - {img="default_tool_mesepick.png", name="Mese V"}, -- Nivel 27 - {img="default_tool_mesesword.png", name="Mese VI"}, -- Nivel 28 + {img="default_mese_crystal_fragment.png", name=S("Mese I")}, -- Nivel 28 + {img="default_mese_crystal.png", name=S("Mese II")}, -- Nivel 29 + {img="default_tool_meseshovel.png", name=S("Mese III")}, -- Nivel 30 + {img="default_tool_meseaxe.png", name=S("Mese IV")}, -- Nivel 31 + {img="default_tool_mesepick.png", name=S("Mese V")}, -- Nivel 32 + {img="default_tool_mesesword.png", name=S("Mese VI")}, -- Nivel 33 -- Liga Diamante - {img="[inventorycube{default_stone.png&default_mineral_diamond.png{default_stone.png&default_mineral_diamond.png{default_stone.png&default_mineral_diamond.png", name="Diamante I"}, -- Nivel 29 - {img="default_diamond.png", name="Diamante II"}, -- Nivel 30 - {img="default_tool_diamondshovel.png", name="Diamante III"}, -- Nivel 31 - {img="default_tool_diamondaxe.png", name="Diamante IV"}, -- Nivel 32 - {img="default_tool_diamondpick.png", name="Diamante V"}, -- Nivel 33 - {img="default_tool_diamondsword.png", name="Diamante VI"}, -- Nivel 34 + {img="[inventorycube{default_stone.png&default_mineral_diamond.png{default_stone.png&default_mineral_diamond.png{default_stone.png&default_mineral_diamond.png", name=S("Diamante I")}, -- Nivel 34 + {img="default_diamond.png", name=S("Diamante II")}, -- Nivel 35 + {img="default_tool_diamondshovel.png", name=S("Diamante III")}, -- Nivel 36 + {img="default_tool_diamondaxe.png", name=S("Diamante IV")}, -- Nivel 37 + {img="default_tool_diamondpick.png", name=S("Diamante V")}, -- Nivel 38 + {img="default_tool_diamondsword.png", name=S("Diamante VI")}, -- Nivel 39 } diff --git a/locale/Arquivos para traduzir.txt b/locale/Arquivos para traduzir.txt index eb7ef1c..45308a2 100644 --- a/locale/Arquivos para traduzir.txt +++ b/locale/Arquivos para traduzir.txt @@ -1 +1 @@ -autogen.lua balao.lua balao_decor.lua bau.lua bau_spawn.lua check_balao_proprio.lua comandos.lua compatibilidade.lua comum.lua corda.lua gerar_balao_aleatorio.lua interface_bau.lua interface_jogador.lua ir_balao.lua online.lua reivindicar.lua reparar_balao.lua visitas.lua mensagens.lua +api.lua hud.lua ligas.lua progresso.lua ranking.lua sfinv.lua shop.lua diff --git a/locale/en.mo b/locale/en.mo new file mode 100644 index 0000000..302534a Binary files /dev/null and b/locale/en.mo differ diff --git a/locale/en.po b/locale/en.po new file mode 100644 index 0000000..686fe10 --- /dev/null +++ b/locale/en.po @@ -0,0 +1,267 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-17 10:28-0300\n" +"PO-Revision-Date: 2018-07-17 10:28-0300\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.6\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hud.lua +msgid "XP" +msgstr "XP" + +#: hud.lua +msgid "+@1XP" +msgstr "+@1XP" + +#: hud.lua sfinv.lua +msgid "Liga @1" +msgstr "League @1" + +#: hud.lua sfinv.lua +msgid "Nivel @1" +msgstr "Level @1" + +#: hud.lua +msgid "-@1XP" +msgstr "-@1XP" + +#: ligas.lua +msgid "Novato I" +msgstr "Novice I" + +#: ligas.lua +msgid "Novato II" +msgstr "Novice II" + +#: ligas.lua +msgid "Novato III" +msgstr "Novice III" + +#: ligas.lua +msgid "Madeira I" +msgstr "Wood I" + +#: ligas.lua +msgid "Madeira II" +msgstr "Wood II" + +#: ligas.lua +msgid "Madeira III" +msgstr "Wood III" + +#: ligas.lua +msgid "Madeira IV" +msgstr "Wood IV" + +#: ligas.lua +msgid "Madeira V" +msgstr "Wood V" + +#: ligas.lua +msgid "Madeira VI" +msgstr "Wood VI" + +#: ligas.lua +msgid "Madeira VII" +msgstr "Wood VII" + +#: ligas.lua +msgid "Pedra I" +msgstr "Stone I" + +#: ligas.lua +msgid "Pedra II" +msgstr "Stone II" + +#: ligas.lua +msgid "Pedra III" +msgstr "Stone III" + +#: ligas.lua +msgid "Pedra IV" +msgstr "Stone IV" + +#: ligas.lua +msgid "Pedra V" +msgstr "Stone V" + +#: ligas.lua +msgid "Pedra VI" +msgstr "Stone VI" + +#: ligas.lua +msgid "Ferro I" +msgstr "Steel I" + +#: ligas.lua +msgid "Ferro II" +msgstr "Steel II" + +#: ligas.lua +msgid "Ferro III" +msgstr "Steel III" + +#: ligas.lua +msgid "Ferro IV" +msgstr "Steel IV" + +#: ligas.lua +msgid "Ferro V" +msgstr "Steel V" + +#: ligas.lua +msgid "Ferro VI" +msgstr "Steel VI" + +#: ligas.lua +msgid "Bronze II" +msgstr "Bronze II" + +#: ligas.lua +msgid "Bronze III" +msgstr "Bronze III" + +#: ligas.lua +msgid "Bronze IV" +msgstr "Bronze IV" + +#: ligas.lua +msgid "Bronze V" +msgstr "Bronze V" + +#: ligas.lua +msgid "Bronze VI" +msgstr "Bronze VI" + +#: ligas.lua +msgid "Mese I" +msgstr "Mese I" + +#: ligas.lua +msgid "Mese II" +msgstr "Mese II" + +#: ligas.lua +msgid "Mese III" +msgstr "Mese III" + +#: ligas.lua +msgid "Mese IV" +msgstr "Mese IV" + +#: ligas.lua +msgid "Mese V" +msgstr "Mese V" + +#: ligas.lua +msgid "Mese VI" +msgstr "Mese VI" + +#: ligas.lua +msgid "Diamante I" +msgstr "Diamond I" + +#: ligas.lua +msgid "Diamante II" +msgstr "Diamond II" + +#: ligas.lua +msgid "Diamante III" +msgstr "Diamond III" + +#: ligas.lua +msgid "Diamante IV" +msgstr "Diamond IV" + +#: ligas.lua +msgid "Diamante V" +msgstr "Diamond V" + +#: ligas.lua +msgid "Diamante VI" +msgstr "Diamond VI" + +#: ranking.lua +msgid "Pontos" +msgstr "Score" + +#: ranking.lua +msgid "Jogador" +msgstr "Player" + +#: sfinv.lua +msgid "Nivel" +msgstr "Level" + +#: sfinv.lua +msgid "Pontos: @1" +msgstr "Score: @1" + +#: sfinv.lua shop.lua +msgid "Cash XP: @1" +msgstr "XP Cash: @1" + +#: sfinv.lua +msgid "Loja de Premios" +msgstr "Awards Store" + +#: sfinv.lua +msgid "Ranking Global" +msgstr "Global Ranking" + +#: sfinv.lua +msgid "Progresso" +msgstr "Progress" + +#: shop.lua +msgid "Loja de Itens por XP" +msgstr "Awards Store" + +#: shop.lua +msgid "Escolha um Item" +msgstr "Choose an item" + +#: shop.lua +msgid "Custo: @1 CashXP" +msgstr "Cost: @1 XPCash" + +#: shop.lua +msgid "Unidades: @1" +msgstr "Units: @1" + +#: shop.lua +msgid "Comprar" +msgstr "Buy" + +#: shop.lua +msgid "Cash XP insuficiente" +msgstr "Insufficient XPCash" + +#: shop.lua +msgid "Inventario lotado" +msgstr "Full inventory" + +#: shop.lua +msgid "Adiquirido" +msgstr "Acquired" + +#: shop.lua +msgid "Pedras" +msgstr "Stones" + +#: shop.lua +msgid "Pedregulho" +msgstr "Cobble" diff --git a/locale/en.po~ b/locale/en.po~ index 3dc16d4..184e72f 100644 --- a/locale/en.po~ +++ b/locale/en.po~ @@ -7,232 +7,241 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-13 00:49-0300\n" -"PO-Revision-Date: 2018-07-13 00:59-0300\n" -"Last-Translator: \n" +"POT-Creation-Date: 2018-07-16 23:14-0300\n" +"PO-Revision-Date: 2018-07-16 23:34-0300\n" "Language-Team: \n" -"Language: en\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.0.6\n" +"Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: en\n" -#: balao.lua balao_decor.lua -msgid "Balao Decorativo" -msgstr "Decorative Balloon" +#: hud.lua +msgid "XP" +msgstr "XP" -#: balao_decor.lua -msgid "Node de Balao Decorativo" -msgstr "Decorative Balloon Node" +#: hud.lua +msgid "+@1XP" +msgstr "+@1XP" -#: bau.lua -msgid "Bau do Balao" -msgstr "Balloon Box" +#: hud.lua sfinv.lua +msgid "Liga @1" +msgstr "League @1" -#: bau.lua -msgid "Esse Balao nao lhe pertence" -msgstr "This Balloon is not yours" +#: hud.lua sfinv.lua +msgid "Nivel @1" +msgstr "Level @1" -#: bau_spawn.lua -msgid "Bau do Balao do Centro" -msgstr "Balloon Box of Center Spawn" +#: hud.lua +msgid "-@1XP" +msgstr "-@1XP" -#: bau_spawn.lua -msgid "Novo centro definido" -msgstr "New spawn center defined" +#: ligas.lua +msgid "Novato I" +msgstr "Novice I" -#: bau_spawn.lua -msgid "Precisa do privilegio 'server' para colocar esse bau" -msgstr "Need the 'server' privilege to put this Balloon Box" +#: ligas.lua +msgid "Novato II" +msgstr "Novice II" -#: corda.lua -msgid "Corda de Balao" -msgstr "Balloon Rope" +#: ligas.lua +msgid "Novato III" +msgstr "Novice III" -#: gerar_balao_aleatorio.lua -msgid "Novo local encontrado" -msgstr "New place found" +#: ligas.lua +msgid "Madeira I" +msgstr "Wood I" -#: interface_bau.lua -msgid "Muito distante do seu Bau de Balao" -msgstr "Far away from your Balloon Box" +#: ligas.lua +msgid "Madeira II" +msgstr "Wood II" -#: interface_bau.lua -msgid "Ir para Centro" -msgstr "Go to Center" +#: ligas.lua +msgid "Madeira III" +msgstr "Wood III" -#: interface_bau.lua -msgid "Reparar Balao" -msgstr "Repair Balloon" +#: ligas.lua +msgid "Madeira IV" +msgstr "Wood IV" -#: interface_bau.lua visitas.lua -msgid "Receber seguidor" -msgstr "Receive follower" +#: ligas.lua +msgid "Madeira V" +msgstr "Wood V" -#: interface_bau.lua -msgid "Ir para seu Balao" -msgstr "Go to your balloon" +#: ligas.lua +msgid "Madeira VI" +msgstr "Wood VI" -#: interface_bau.lua visitas.lua -msgid "Seguir jogador" -msgstr "Follow a player" +#: ligas.lua +msgid "Madeira VII" +msgstr "Wood VII" -#: interface_bau.lua -msgid "Precisas ter um balao ativo" -msgstr "You need to have an active balloon" +#: ligas.lua +msgid "Pedra I" +msgstr "Stone I" -#: interface_bau.lua mensagens.lua -msgid "Viagem ao Centro realizada" -msgstr "Journey to the Center held" +#: ligas.lua +msgid "Pedra II" +msgstr "Stone II" -#: interface_bau.lua -msgid "Balao ativo" -msgstr "Balloon is active" +#: ligas.lua +msgid "Pedra III" +msgstr "Stone III" -#: interface_jogador.lua -msgid "Gerar Balao" -msgstr "Generate a Balloon" +#: ligas.lua +msgid "Pedra IV" +msgstr "Stone IV" -#: interface_jogador.lua -msgid "Por Balao Aqui" -msgstr "Place Balloon here" +#: ligas.lua +msgid "Pedra V" +msgstr "Stone V" -#: ir_balao.lua -msgid "Sem nenhum balao ainda" -msgstr "No balloon yet" +#: ligas.lua +msgid "Pedra VI" +msgstr "Stone VI" -#: ir_balao.lua -msgid "Seu balao foi destruido" -msgstr "Your balloon has been destroyed" +#: ligas.lua +msgid "Ferro I" +msgstr "Steel I" -#: ir_balao.lua -msgid "Viagem para o posto de seu balao realizada" -msgstr "Trip to the post of your balloon was held" +#: ligas.lua +msgid "Ferro II" +msgstr "Steel II" -#: reivindicar.lua -msgid "Balao reivindicado com sucesso" -msgstr "Balloon successfully claimed" +#: ligas.lua +msgid "Ferro III" +msgstr "Steel III" -#: reparar_balao.lua -msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local" -msgstr "The way up is obstructed (rope) so open the place further" +#: ligas.lua +msgid "Ferro IV" +msgstr "Steel IV" -#: reparar_balao.lua -msgid "" -"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba" -msgstr "" -"Top is obstructed (where the balloon is) so wipe the top or go to a highest " -"location" +#: ligas.lua +msgid "Ferro V" +msgstr "Steel V" -#: visitas.lua -msgid "Pedidos recebidos" -msgstr "Requests received" +#: ligas.lua +msgid "Ferro VI" +msgstr "Steel VI" -#: visitas.lua -msgid "Voltar" -msgstr "Return" +#: ligas.lua +msgid "Mese I" +msgstr "Mese I" -#: visitas.lua -msgid "Enviar pedido" -msgstr "Send request" +#: ligas.lua +msgid "Mese II" +msgstr "Mese II" -#: visitas.lua -msgid "Nao podes seguir a si mesmo" -msgstr "You can not follow yourself" +#: ligas.lua +msgid "Mese III" +msgstr "Mese III" -#: visitas.lua -msgid "@1 offline ou inexistente" -msgstr "@1 offline or nonexistent" +#: ligas.lua +msgid "Mese IV" +msgstr "Mese IV" -#: visitas.lua -msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido" -msgstr "" -"Request sent to @1 ... Now you need to advise him to accept your request" +#: ligas.lua +msgid "Mese V" +msgstr "Mese V" -#: visitas.lua -msgid "Pedido invalido" -msgstr "Invalid request" +#: ligas.lua +msgid "Mese VI" +msgstr "Mese VI" -#: visitas.lua -msgid "@1 offline" -msgstr "@1 offline" +#: ligas.lua +msgid "Diamante I" +msgstr "Diamond I" -#: visitas.lua -msgid "@1 saiu de perto do balao do centro" -msgstr "@1 left close to the center balloon" +#: ligas.lua +msgid "Diamante II" +msgstr "Diamond II" -#: visitas.lua -msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao" -msgstr "" -"Your request to follow @1 was accepted but you walked away from the balloon" +#: ligas.lua +msgid "Diamante III" +msgstr "Diamond III" -#: visitas.lua -msgid "@1 te seguiu" -msgstr "@1 followed you" +#: ligas.lua +msgid "Diamante IV" +msgstr "Diamond IV" -#: visitas.lua -msgid "Voce seguiu @1" -msgstr "You followed @1" +#: ligas.lua +msgid "Diamante V" +msgstr "Diamond V" -#: mensagens.lua -msgid "" -"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima " -"vez que gerou)" -msgstr "" -"It can not generate a new balloon yet (it is necessary 24 hours since the " -"last time it generated)" +#: ligas.lua +msgid "Diamante VI" +msgstr "Diamond VI" -#: mensagens.lua -msgid "Aguarde alguns segundos enquanto o balao esta endo preparado" -msgstr "Wait a few seconds while the balloon is being prepared" +#: ranking.lua +msgid "Pontos" +msgstr "Score" -#: mensagens.lua -msgid "O Seu Balao ficou inoperante" -msgstr "Your Balloon was inoperative" +#: ranking.lua +msgid "Jogador" +msgstr "Player" -#: mensagens.lua -msgid "Muito distante do Bau de Balao do Centro" -msgstr "Far away from the Balloon Box of Spawn Center." +#: sfinv.lua +msgid "Nivel" +msgstr "Level" -#: mensagens.lua -msgid "Muito distante do seu proprio Bau de Balao" -msgstr "Far away from the your Balloon Box" +#: sfinv.lua +msgid "Pontos: @1" +msgstr "Score: @1" -#: mensagens.lua -msgid "" -"Mantenha o local limpo e aberto para levantar que o balao seja levantado " -"automaticamente" -msgstr "" -"Keep the place clean and open to raise the balloon to be lifted automatically" +#: sfinv.lua shop.lua +msgid "Cash XP: @1" +msgstr "XP Cash: @1" -#: mensagens.lua -msgid "Viagem para seu proprio balao realizada" -msgstr "Travel to your own balloon held" +#: sfinv.lua +msgid "Loja de Premios" +msgstr "Awards Store" -#: mensagens.lua -msgid "Precisa subir para um local mais alto" -msgstr "You need to climb to a higher location" +#: sfinv.lua +msgid "Ranking Global" +msgstr "Global Ranking" -#: mensagens.lua -msgid "Precisa estar num lugar mais aberto" -msgstr "You need to be in a cleaner and more open place" +#: sfinv.lua +msgid "Progresso" +msgstr "Progress" -#: mensagens.lua -msgid "Objetos obstruem a parte de cima portanto libere o local ou suba" -msgstr "Objects obstruct the top so remove the objects and try again" +#: shop.lua +msgid "Loja de Itens por XP" +msgstr "Awards Store" -#~ msgid "" -#~ "Objetos obstruem a parte de cima portanto remova os objetos e tente " -#~ "novamente" -#~ msgstr "Objects obstruct the top so remove the objects and try again" +#: shop.lua +msgid "Escolha um Item" +msgstr "Choose an item" -#~ msgid "Precisa estar em local aberto" -#~ msgstr "It needs to be in a clean and open place" +#: shop.lua +msgid "Custo: @1 CashXP" +msgstr "Cost: @1 XPCash" -#~ msgid "" -#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a " -#~ "ultima vez que gerou)" -#~ msgstr "" -#~ "Can not generate a new balloon yet. (it is necessary 24 hours since the " -#~ "last time it generated)" +#: shop.lua +msgid "Unidades: @1" +msgstr "Units: @1" + +#: shop.lua +msgid "Comprar" +msgstr "Buy" + +#: shop.lua +msgid "Cash XP insuficiente" +msgstr "Insufficient XPCash" + +#: shop.lua +msgid "Inventario lotado" +msgstr "Full inventory" + +#: shop.lua +msgid "Adiquirido" +msgstr "Acquired" + +#: shop.lua +msgid "Pedras" +msgstr "Stones" + +#: shop.lua +msgid "Pedregulho" +msgstr "Cobble" diff --git a/locale/pt.mo b/locale/pt.mo new file mode 100644 index 0000000..1094596 Binary files /dev/null and b/locale/pt.mo differ diff --git a/locale/pt.po b/locale/pt.po new file mode 100644 index 0000000..9614974 --- /dev/null +++ b/locale/pt.po @@ -0,0 +1,267 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-17 10:28-0300\n" +"PO-Revision-Date: 2018-07-17 10:28-0300\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.6\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hud.lua +msgid "XP" +msgstr "XP" + +#: hud.lua +msgid "+@1XP" +msgstr "+@1XP" + +#: hud.lua sfinv.lua +msgid "Liga @1" +msgstr "Liga @1" + +#: hud.lua sfinv.lua +msgid "Nivel @1" +msgstr "Nivel @1" + +#: hud.lua +msgid "-@1XP" +msgstr "-@1XP" + +#: ligas.lua +msgid "Novato I" +msgstr "Novato I" + +#: ligas.lua +msgid "Novato II" +msgstr "Novato II" + +#: ligas.lua +msgid "Novato III" +msgstr "Novato III" + +#: ligas.lua +msgid "Madeira I" +msgstr "Madeira I" + +#: ligas.lua +msgid "Madeira II" +msgstr "Madeira II" + +#: ligas.lua +msgid "Madeira III" +msgstr "Madeira III" + +#: ligas.lua +msgid "Madeira IV" +msgstr "Madeira IV" + +#: ligas.lua +msgid "Madeira V" +msgstr "Madeira V" + +#: ligas.lua +msgid "Madeira VI" +msgstr "Madeira VI" + +#: ligas.lua +msgid "Madeira VII" +msgstr "Madeira VII" + +#: ligas.lua +msgid "Pedra I" +msgstr "Pedra I" + +#: ligas.lua +msgid "Pedra II" +msgstr "Pedra II" + +#: ligas.lua +msgid "Pedra III" +msgstr "Pedra III" + +#: ligas.lua +msgid "Pedra IV" +msgstr "Pedra IV" + +#: ligas.lua +msgid "Pedra V" +msgstr "Pedra V" + +#: ligas.lua +msgid "Pedra VI" +msgstr "Pedra VI" + +#: ligas.lua +msgid "Ferro I" +msgstr "Ferro I" + +#: ligas.lua +msgid "Ferro II" +msgstr "Ferro II" + +#: ligas.lua +msgid "Ferro III" +msgstr "Ferro III" + +#: ligas.lua +msgid "Ferro IV" +msgstr "Ferro IV" + +#: ligas.lua +msgid "Ferro V" +msgstr "Ferro V" + +#: ligas.lua +msgid "Ferro VI" +msgstr "Ferro VI" + +#: ligas.lua +msgid "Bronze II" +msgstr "Bronze II" + +#: ligas.lua +msgid "Bronze III" +msgstr "Bronze III" + +#: ligas.lua +msgid "Bronze IV" +msgstr "Bronze IV" + +#: ligas.lua +msgid "Bronze V" +msgstr "Bronze V" + +#: ligas.lua +msgid "Bronze VI" +msgstr "Bronze VI" + +#: ligas.lua +msgid "Mese I" +msgstr "Mese I" + +#: ligas.lua +msgid "Mese II" +msgstr "Mese II" + +#: ligas.lua +msgid "Mese III" +msgstr "Mese III" + +#: ligas.lua +msgid "Mese IV" +msgstr "Mese IV" + +#: ligas.lua +msgid "Mese V" +msgstr "Mese V" + +#: ligas.lua +msgid "Mese VI" +msgstr "Mese VI" + +#: ligas.lua +msgid "Diamante I" +msgstr "Diamante I" + +#: ligas.lua +msgid "Diamante II" +msgstr "Diamante II" + +#: ligas.lua +msgid "Diamante III" +msgstr "Diamante III" + +#: ligas.lua +msgid "Diamante IV" +msgstr "Diamante IV" + +#: ligas.lua +msgid "Diamante V" +msgstr "Diamante V" + +#: ligas.lua +msgid "Diamante VI" +msgstr "Diamante VI" + +#: ranking.lua +msgid "Pontos" +msgstr "Pontos" + +#: ranking.lua +msgid "Jogador" +msgstr "Jogador" + +#: sfinv.lua +msgid "Nivel" +msgstr "Nivel" + +#: sfinv.lua +msgid "Pontos: @1" +msgstr "Pontos: @1" + +#: sfinv.lua shop.lua +msgid "Cash XP: @1" +msgstr "Cash XP: @1" + +#: sfinv.lua +msgid "Loja de Premios" +msgstr "Loja de Premios" + +#: sfinv.lua +msgid "Ranking Global" +msgstr "Ranking Global" + +#: sfinv.lua +msgid "Progresso" +msgstr "Progresso" + +#: shop.lua +msgid "Loja de Itens por XP" +msgstr "Loja de Itens por XP" + +#: shop.lua +msgid "Escolha um Item" +msgstr "Escolha um Item" + +#: shop.lua +msgid "Custo: @1 CashXP" +msgstr "Custo: @1 CashXP" + +#: shop.lua +msgid "Unidades: @1" +msgstr "Unidades: @1" + +#: shop.lua +msgid "Comprar" +msgstr "Comprar" + +#: shop.lua +msgid "Cash XP insuficiente" +msgstr "Cash XP insuficiente" + +#: shop.lua +msgid "Inventario lotado" +msgstr "Inventario lotado" + +#: shop.lua +msgid "Adiquirido" +msgstr "Adiquirido" + +#: shop.lua +msgid "Pedras" +msgstr "Pedras" + +#: shop.lua +msgid "Pedregulho" +msgstr "Pedregulho" diff --git a/locale/pt.po~ b/locale/pt.po~ index 02b0cb2..61616c6 100644 --- a/locale/pt.po~ +++ b/locale/pt.po~ @@ -7,263 +7,241 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-13 00:49-0300\n" -"PO-Revision-Date: 2018-07-13 00:45-0300\n" -"Last-Translator: \n" +"POT-Creation-Date: 2018-07-16 23:14-0300\n" +"PO-Revision-Date: 2018-07-16 23:16-0300\n" "Language-Team: \n" -"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.0.6\n" +"Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: pt\n" -#: balao.lua balao_decor.lua -msgid "Balao Decorativo" -msgstr "Balao Decorativo" +#: hud.lua +msgid "XP" +msgstr "XP" -#: balao_decor.lua -msgid "Node de Balao Decorativo" -msgstr "Node de Balao Decorativo" +#: hud.lua +msgid "+@1XP" +msgstr "+@1XP" -#: bau.lua -msgid "Bau do Balao" -msgstr "Bau do Balao" +#: hud.lua sfinv.lua +msgid "Liga @1" +msgstr "Liga @1" -#: bau.lua -msgid "Esse Balao nao lhe pertence" -msgstr "Esse Balao nao lhe pertence" +#: hud.lua sfinv.lua +msgid "Nivel @1" +msgstr "Nivel @1" -#: bau_spawn.lua -msgid "Bau do Balao do Centro" -msgstr "Bau do Balao do Centro" +#: hud.lua +msgid "-@1XP" +msgstr "-@1XP" -#: bau_spawn.lua -msgid "Novo centro definido" -msgstr "Novo centro definido" +#: ligas.lua +msgid "Novato I" +msgstr "Novato I" -#: bau_spawn.lua -msgid "Precisa do privilegio 'server' para colocar esse bau" -msgstr "Precisa do privilegio 'server' para colocar esse bau" +#: ligas.lua +msgid "Novato II" +msgstr "Novato II" -#: corda.lua -msgid "Corda de Balao" -msgstr "Corda de Balao" +#: ligas.lua +msgid "Novato III" +msgstr "Novato III" -#: gerar_balao_aleatorio.lua -msgid "Novo local encontrado" -msgstr "Novo local encontrado" +#: ligas.lua +msgid "Madeira I" +msgstr "Madeira I" -#: interface_bau.lua -msgid "Muito distante do seu Bau de Balao" -msgstr "Muito distante do seu Bau de Balao" +#: ligas.lua +msgid "Madeira II" +msgstr "Madeira II" -#: interface_bau.lua -msgid "Ir para Centro" -msgstr "Ir para Centro" +#: ligas.lua +msgid "Madeira III" +msgstr "Madeira III" -#: interface_bau.lua -msgid "Reparar Balao" -msgstr "Reparar Balao" +#: ligas.lua +msgid "Madeira IV" +msgstr "Madeira IV" -#: interface_bau.lua visitas.lua -msgid "Receber seguidor" -msgstr "Receber seguidor" +#: ligas.lua +msgid "Madeira V" +msgstr "Madeira V" -#: interface_bau.lua -msgid "Ir para seu Balao" -msgstr "Ir para seu Balao" +#: ligas.lua +msgid "Madeira VI" +msgstr "Madeira VI" -#: interface_bau.lua visitas.lua -msgid "Seguir jogador" -msgstr "Seguir jogador" +#: ligas.lua +msgid "Madeira VII" +msgstr "Madeira VII" -#: interface_bau.lua -msgid "Precisas ter um balao ativo" -msgstr "Precisas ter um balao ativo" +#: ligas.lua +msgid "Pedra I" +msgstr "Pedra I" -#: interface_bau.lua mensagens.lua -msgid "Viagem ao Centro realizada" -msgstr "Viagem ao Centro realizada" +#: ligas.lua +msgid "Pedra II" +msgstr "Pedra II" -#: interface_bau.lua -msgid "Balao ativo" -msgstr "Balao ativo" +#: ligas.lua +msgid "Pedra III" +msgstr "Pedra III" -#: interface_jogador.lua -msgid "Gerar Balao" -msgstr "Gerar Balao" +#: ligas.lua +msgid "Pedra IV" +msgstr "Pedra IV" -#: interface_jogador.lua -msgid "Por Balao Aqui" -msgstr "Por Balao Aqui" +#: ligas.lua +msgid "Pedra V" +msgstr "Pedra V" -#: ir_balao.lua -msgid "Sem nenhum balao ainda" -msgstr "Sem nenhum balao ainda" +#: ligas.lua +msgid "Pedra VI" +msgstr "Pedra VI" -#: ir_balao.lua -msgid "Seu balao foi destruido" -msgstr "Seu balao foi destruido" +#: ligas.lua +msgid "Ferro I" +msgstr "Ferro I" -#: ir_balao.lua -msgid "Viagem para o posto de seu balao realizada" -msgstr "Viagem para o posto de seu balao realizada" +#: ligas.lua +msgid "Ferro II" +msgstr "Ferro II" -#: reivindicar.lua -msgid "Balao reivindicado com sucesso" -msgstr "Balao reivindicado com sucesso" +#: ligas.lua +msgid "Ferro III" +msgstr "Ferro III" -#: reparar_balao.lua -msgid "O caminho para cima esta obstruido (corda) portanto abra mais o local" -msgstr "O caminho para cima esta obstruido (corda) portanto abra mais o local" +#: ligas.lua +msgid "Ferro IV" +msgstr "Ferro IV" -#: reparar_balao.lua -msgid "" -"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba" -msgstr "" -"Parte de cima obstruida (onde fica o balao) portanto libere o local ou suba" +#: ligas.lua +msgid "Ferro V" +msgstr "Ferro V" -#: visitas.lua -msgid "Pedidos recebidos" -msgstr "Pedidos recebidos" +#: ligas.lua +msgid "Ferro VI" +msgstr "Ferro VI" -#: visitas.lua -msgid "Voltar" -msgstr "Voltar" +#: ligas.lua +msgid "Mese I" +msgstr "Mese I" -#: visitas.lua -msgid "Enviar pedido" -msgstr "Enviar pedido" +#: ligas.lua +msgid "Mese II" +msgstr "Mese II" -#: visitas.lua -msgid "Nao podes seguir a si mesmo" -msgstr "Nao podes seguir a si mesmo" +#: ligas.lua +msgid "Mese III" +msgstr "Mese III" -#: visitas.lua -msgid "@1 offline ou inexistente" -msgstr "@1 offline ou inexistente" +#: ligas.lua +msgid "Mese IV" +msgstr "Mese IV" -#: visitas.lua -msgid "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido" -msgstr "Pedido enviado a @1 ... Agora precisa pedir para aceitar seu pedido" +#: ligas.lua +msgid "Mese V" +msgstr "Mese V" -#: visitas.lua -msgid "Pedido invalido" -msgstr "Pedido invalido" +#: ligas.lua +msgid "Mese VI" +msgstr "Mese VI" -#: visitas.lua -msgid "@1 offline" -msgstr "@1 offline" +#: ligas.lua +msgid "Diamante I" +msgstr "Diamante I" -#: visitas.lua -msgid "@1 saiu de perto do balao do centro" -msgstr "@1 saiu de perto do balao do centro" +#: ligas.lua +msgid "Diamante II" +msgstr "Diamante II" -#: visitas.lua -msgid "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao" -msgstr "Seu pedido para seguir @1 foi aceito mas voce se afastou do balao" +#: ligas.lua +msgid "Diamante III" +msgstr "Diamante III" -#: visitas.lua -msgid "@1 te seguiu" -msgstr "@1 te seguiu" +#: ligas.lua +msgid "Diamante IV" +msgstr "Diamante IV" -#: visitas.lua -msgid "Voce seguiu @1" -msgstr "Voce seguiu @1" +#: ligas.lua +msgid "Diamante V" +msgstr "Diamante V" -#: mensagens.lua -msgid "" -"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima " -"vez que gerou)" -msgstr "" -"Nao pode gerar um novo balao ainda (sao necessarias 24 horas desde a ultima " -"vez que gerou)" +#: ligas.lua +msgid "Diamante VI" +msgstr "Diamante VI" -#: mensagens.lua -msgid "Aguarde alguns segundos enquanto o balao esta endo preparado" -msgstr "Aguarde alguns segundos enquanto o balao esta endo preparado" +#: ranking.lua +msgid "Pontos" +msgstr "Pontos" -#: mensagens.lua -msgid "O Seu Balao ficou inoperante" -msgstr "O Seu Balao ficou inoperante" +#: ranking.lua +msgid "Jogador" +msgstr "Jogador" -#: mensagens.lua -msgid "Muito distante do Bau de Balao do Centro" -msgstr "Muito distante do Bau de Balao do Centro" +#: sfinv.lua +msgid "Nivel" +msgstr "Nivel" -#: mensagens.lua -msgid "Muito distante do seu proprio Bau de Balao" -msgstr "Muito distante do seu proprio Bau de Balao" +#: sfinv.lua +msgid "Pontos: @1" +msgstr "Pontos: @1" -#: mensagens.lua -msgid "" -"Mantenha o local limpo e aberto para levantar que o balao seja levantado " -"automaticamente" -msgstr "" -"Mantenha o local limpo e aberto para levantar que o balao seja levantado " -"automaticamente" +#: sfinv.lua shop.lua +msgid "Cash XP: @1" +msgstr "Cash XP: @1" -#: mensagens.lua -msgid "Viagem para seu proprio balao realizada" -msgstr "Viagem para seu proprio balao realizada" +#: sfinv.lua +msgid "Loja de Premios" +msgstr "Loja de Premios" -#: mensagens.lua -msgid "Precisa subir para um local mais alto" -msgstr "Precisa subir para um local mais alto" +#: sfinv.lua +msgid "Ranking Global" +msgstr "Ranking Global" -#: mensagens.lua -msgid "Precisa estar num lugar mais aberto" -msgstr "Precisa estar num lugar mais aberto" +#: sfinv.lua +msgid "Progresso" +msgstr "Progresso" -#: mensagens.lua -msgid "Objetos obstruem a parte de cima portanto libere o local ou suba" -msgstr "Objetos obstruem a parte de cima portanto libere o local ou suba" +#: shop.lua +msgid "Loja de Itens por XP" +msgstr "Loja de Itens por XP" -#~ msgid "" -#~ "Objetos obstruem a parte de cima portanto remova os objetos e tente " -#~ "novamente" -#~ msgstr "" -#~ "Objetos obstruem a parte de cima portanto remova os objetos e tente " -#~ "novamente" +#: shop.lua +msgid "Escolha um Item" +msgstr "Escolha um Item" -#~ msgid "Precisa estar em local aberto" -#~ msgstr "Precisa estar em local aberto" +#: shop.lua +msgid "Custo: @1 CashXP" +msgstr "Custo: @1 CashXP" -#~ msgid "" -#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a " -#~ "ultima vez que gerou)" -#~ msgstr "" -#~ "Nao pode gerar um novo balao ainda. (sao necessarias 24 horas desde a " -#~ "ultima vez que gerou)" +#: shop.lua +msgid "Unidades: @1" +msgstr "Unidades: @1" -#~ msgid "" -#~ "O caminho para cima esta obstruido. Encontre um lugar onde de para o " -#~ "balao descer" -#~ msgstr "" -#~ "O caminho para cima esta obstruido. Encontre um lugar onde de para o " -#~ "balao descer" +#: shop.lua +msgid "Comprar" +msgstr "Comprar" -#~ msgid "Parte de cima obstruida. Libere o local ou suba" -#~ msgstr "Parte de cima obstruida. Libere o local ou suba" +#: shop.lua +msgid "Cash XP insuficiente" +msgstr "Cash XP insuficiente" -#~ msgid "" -#~ "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele " -#~ "ficar pronto" -#~ msgstr "" -#~ "Balao inoperante. Aguarde mantenha o local limpo e aberto e aguarde ele " -#~ "ficar pronto" +#: shop.lua +msgid "Inventario lotado" +msgstr "Inventario lotado" -#~ msgid "O Balao ja esta ativo. Nao precisa reparar" -#~ msgstr "O Balao ja esta ativo. Nao precisa reparar" +#: shop.lua +msgid "Adiquirido" +msgstr "Adiquirido" -#~ msgid "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido" -#~ msgstr "" -#~ "O Seu Balao nao esta funcionando. O local foi destruido ou obstruido" +#: shop.lua +msgid "Pedras" +msgstr "Pedras" -#~ msgid "" -#~ "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a " -#~ "ultima vez que gerou ou colocou)" -#~ msgstr "" -#~ "Nao pode colocar um novo balao ainda. (sao necessarias 24 horas desde a " -#~ "ultima vez que gerou ou colocou)" +#: shop.lua +msgid "Pedregulho" +msgstr "Pedregulho" diff --git a/locale/template.pot b/locale/template.pot new file mode 100644 index 0000000..edffd15 --- /dev/null +++ b/locale/template.pot @@ -0,0 +1,266 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-17 10:28-0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hud.lua +msgid "XP" +msgstr "" + +#: hud.lua +msgid "+@1XP" +msgstr "" + +#: hud.lua sfinv.lua +msgid "Liga @1" +msgstr "" + +#: hud.lua sfinv.lua +msgid "Nivel @1" +msgstr "" + +#: hud.lua +msgid "-@1XP" +msgstr "" + +#: ligas.lua +msgid "Novato I" +msgstr "" + +#: ligas.lua +msgid "Novato II" +msgstr "" + +#: ligas.lua +msgid "Novato III" +msgstr "" + +#: ligas.lua +msgid "Madeira I" +msgstr "" + +#: ligas.lua +msgid "Madeira II" +msgstr "" + +#: ligas.lua +msgid "Madeira III" +msgstr "" + +#: ligas.lua +msgid "Madeira IV" +msgstr "" + +#: ligas.lua +msgid "Madeira V" +msgstr "" + +#: ligas.lua +msgid "Madeira VI" +msgstr "" + +#: ligas.lua +msgid "Madeira VII" +msgstr "" + +#: ligas.lua +msgid "Pedra I" +msgstr "" + +#: ligas.lua +msgid "Pedra II" +msgstr "" + +#: ligas.lua +msgid "Pedra III" +msgstr "" + +#: ligas.lua +msgid "Pedra IV" +msgstr "" + +#: ligas.lua +msgid "Pedra V" +msgstr "" + +#: ligas.lua +msgid "Pedra VI" +msgstr "" + +#: ligas.lua +msgid "Ferro I" +msgstr "" + +#: ligas.lua +msgid "Ferro II" +msgstr "" + +#: ligas.lua +msgid "Ferro III" +msgstr "" + +#: ligas.lua +msgid "Ferro IV" +msgstr "" + +#: ligas.lua +msgid "Ferro V" +msgstr "" + +#: ligas.lua +msgid "Ferro VI" +msgstr "" + +#: ligas.lua +msgid "Bronze II" +msgstr "" + +#: ligas.lua +msgid "Bronze III" +msgstr "" + +#: ligas.lua +msgid "Bronze IV" +msgstr "" + +#: ligas.lua +msgid "Bronze V" +msgstr "" + +#: ligas.lua +msgid "Bronze VI" +msgstr "" + +#: ligas.lua +msgid "Mese I" +msgstr "" + +#: ligas.lua +msgid "Mese II" +msgstr "" + +#: ligas.lua +msgid "Mese III" +msgstr "" + +#: ligas.lua +msgid "Mese IV" +msgstr "" + +#: ligas.lua +msgid "Mese V" +msgstr "" + +#: ligas.lua +msgid "Mese VI" +msgstr "" + +#: ligas.lua +msgid "Diamante I" +msgstr "" + +#: ligas.lua +msgid "Diamante II" +msgstr "" + +#: ligas.lua +msgid "Diamante III" +msgstr "" + +#: ligas.lua +msgid "Diamante IV" +msgstr "" + +#: ligas.lua +msgid "Diamante V" +msgstr "" + +#: ligas.lua +msgid "Diamante VI" +msgstr "" + +#: ranking.lua +msgid "Pontos" +msgstr "" + +#: ranking.lua +msgid "Jogador" +msgstr "" + +#: sfinv.lua +msgid "Nivel" +msgstr "" + +#: sfinv.lua +msgid "Pontos: @1" +msgstr "" + +#: sfinv.lua shop.lua +msgid "Cash XP: @1" +msgstr "" + +#: sfinv.lua +msgid "Loja de Premios" +msgstr "" + +#: sfinv.lua +msgid "Ranking Global" +msgstr "" + +#: sfinv.lua +msgid "Progresso" +msgstr "" + +#: shop.lua +msgid "Loja de Itens por XP" +msgstr "" + +#: shop.lua +msgid "Escolha um Item" +msgstr "" + +#: shop.lua +msgid "Custo: @1 CashXP" +msgstr "" + +#: shop.lua +msgid "Unidades: @1" +msgstr "" + +#: shop.lua +msgid "Comprar" +msgstr "" + +#: shop.lua +msgid "Cash XP insuficiente" +msgstr "" + +#: shop.lua +msgid "Inventario lotado" +msgstr "" + +#: shop.lua +msgid "Adiquirido" +msgstr "" + +#: shop.lua +msgid "Pedras" +msgstr "" + +#: shop.lua +msgid "Pedregulho" +msgstr "" diff --git a/locale/xpro..tr b/locale/xpro..tr new file mode 100644 index 0000000..075a9ad --- /dev/null +++ b/locale/xpro..tr @@ -0,0 +1,63 @@ +### Arquivo gerado por xpro apartir de en.po +# textdomain: xpro +Steel IV=Steel IV +Mese I=Mese I +Stone III=Stone III +Units: @1=Units: @1 +Global Ranking=Global Ranking +Steel V=Steel V +Awards Store=Awards Store ++@1XP=+@1XP +Novice III=Novice III +Mese V=Mese V +Full inventory=Full inventory +Diamond VI=Diamond VI +Stone V=Stone V +-@1XP=-@1XP +Stone I=Stone I +Novice I=Novice I +Diamond II=Diamond II +Mese VI=Mese VI +Stone II=Stone II +Bronze VI=Bronze VI +Diamond IV=Diamond IV +Player=Player +Bronze IV=Bronze IV +Stones=Stones +Bronze V=Bronze V +Stone VI=Stone VI +Bronze III=Bronze III +Steel III=Steel III +Buy=Buy +Choose an item=Choose an item +Wood VI=Wood VI +Score=Score +Cobble=Cobble +Progress=Progress +Wood VII=Wood VII +Diamond V=Diamond V +XP Cash: @1=XP Cash: @1 +XP=XP +Insufficient XPCash=Insufficient XPCash +Wood III=Wood III +Diamond I=Diamond I +Steel I=Steel I +Level=Level +Mese II=Mese II +Stone IV=Stone IV +Level @1=Level @1 +Acquired=Acquired +Bronze II=Bronze II +Diamond III=Diamond III +Novice II=Novice II +Score: @1=Score: @1 +Wood II=Wood II +Steel VI=Steel VI +Mese III=Mese III +League @1=League @1 +Mese IV=Mese IV +Steel II=Steel II +Wood V=Wood V +Wood IV=Wood IV +Wood I=Wood I +Cost: @1 XPCash=Cost: @1 XPCash diff --git a/locale/xpro.en.tr b/locale/xpro.en.tr new file mode 100644 index 0000000..075a9ad --- /dev/null +++ b/locale/xpro.en.tr @@ -0,0 +1,63 @@ +### Arquivo gerado por xpro apartir de en.po +# textdomain: xpro +Steel IV=Steel IV +Mese I=Mese I +Stone III=Stone III +Units: @1=Units: @1 +Global Ranking=Global Ranking +Steel V=Steel V +Awards Store=Awards Store ++@1XP=+@1XP +Novice III=Novice III +Mese V=Mese V +Full inventory=Full inventory +Diamond VI=Diamond VI +Stone V=Stone V +-@1XP=-@1XP +Stone I=Stone I +Novice I=Novice I +Diamond II=Diamond II +Mese VI=Mese VI +Stone II=Stone II +Bronze VI=Bronze VI +Diamond IV=Diamond IV +Player=Player +Bronze IV=Bronze IV +Stones=Stones +Bronze V=Bronze V +Stone VI=Stone VI +Bronze III=Bronze III +Steel III=Steel III +Buy=Buy +Choose an item=Choose an item +Wood VI=Wood VI +Score=Score +Cobble=Cobble +Progress=Progress +Wood VII=Wood VII +Diamond V=Diamond V +XP Cash: @1=XP Cash: @1 +XP=XP +Insufficient XPCash=Insufficient XPCash +Wood III=Wood III +Diamond I=Diamond I +Steel I=Steel I +Level=Level +Mese II=Mese II +Stone IV=Stone IV +Level @1=Level @1 +Acquired=Acquired +Bronze II=Bronze II +Diamond III=Diamond III +Novice II=Novice II +Score: @1=Score: @1 +Wood II=Wood II +Steel VI=Steel VI +Mese III=Mese III +League @1=League @1 +Mese IV=Mese IV +Steel II=Steel II +Wood V=Wood V +Wood IV=Wood IV +Wood I=Wood I +Cost: @1 XPCash=Cost: @1 XPCash diff --git a/locale/xpro.pt.tr b/locale/xpro.pt.tr new file mode 100644 index 0000000..712a0ae --- /dev/null +++ b/locale/xpro.pt.tr @@ -0,0 +1,63 @@ +### Arquivo gerado por xpro apartir de pt.po +# textdomain: xpro +Steel IV=Ferro IV +Mese I=Mese I +Stone III=Pedra III +Units: @1=Unidades: @1 +Global Ranking=Ranking Global +Steel V=Ferro V +Awards Store=Loja de Premios ++@1XP=+@1XP +Novice III=Novato III +Mese V=Mese V +Full inventory=Inventario lotado +Diamond VI=Diamante VI +Stone V=Pedra V +-@1XP=-@1XP +Stone I=Pedra I +Novice I=Novato I +Diamond II=Diamante II +Mese VI=Mese VI +Stone II=Pedra II +Bronze VI=Bronze VI +Diamond IV=Diamante IV +Player=Jogador +Bronze IV=Bronze IV +Stones=Pedras +Bronze V=Bronze V +Stone VI=Pedra VI +Bronze III=Bronze III +Steel III=Ferro III +Buy=Comprar +Choose an item=Escolha um Item +Wood VI=Madeira VI +Score=Pontos +Cobble=Pedregulho +Progress=Progresso +Wood VII=Madeira VII +Diamond V=Diamante V +XP Cash: @1=Cash XP: @1 +XP=XP +Insufficient XPCash=Cash XP insuficiente +Wood III=Madeira III +Diamond I=Diamante I +Steel I=Ferro I +Level=Nivel +Mese II=Mese II +Stone IV=Pedra IV +Level @1=Nivel @1 +Acquired=Adiquirido +Bronze II=Bronze II +Diamond III=Diamante III +Novice II=Novato II +Score: @1=Pontos: @1 +Wood II=Madeira II +Steel VI=Ferro VI +Mese III=Mese III +League @1=Liga @1 +Mese IV=Mese IV +Steel II=Ferro II +Wood V=Madeira V +Wood IV=Madeira IV +Wood I=Madeira I +Cost: @1 XPCash=Custo: @1 CashXP diff --git a/metodos/craft.lua b/metodos/craft.lua index a3dfcfa..993c284 100644 --- a/metodos/craft.lua +++ b/metodos/craft.lua @@ -10,9 +10,7 @@ ]] -- Lista de itens que geram recompensa -xpro.craft_xp_list = { - --["default:torch"] = 1, -} +xpro.craft_xp_list = {} -- Chamada global minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv) @@ -28,13 +26,8 @@ minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv end end) - - - - - - - - - - +-- Registrar item para o evento +xpro.register_on_craft = function(name, xp) + if tonumber(xp) == 0 then return end + xpro.craft_xp_list[name] = tonumber(xp) +end diff --git a/metodos/dig_node.lua b/metodos/dig_node.lua index f0dbad6..a74d73c 100644 --- a/metodos/dig_node.lua +++ b/metodos/dig_node.lua @@ -10,15 +10,7 @@ ]] -- Lista de itens que geram recompensa -xpro.dig_node_xp_list = { - ["default:stone_with_coal"] = 1, - ["default:stone_with_tin"] = 1, - ["default:stone_with_copper"] = 2, - ["default:stone_with_iron"] = 3, - ["default:stone_with_gold"] = 5, - ["default:stone_with_mese"] = 5, - ["default:stone_with_diamond"] = 5, -} +xpro.dig_node_xp_list = {} -- Chamada global minetest.register_on_dignode(function(pos, oldnode, digger) @@ -33,8 +25,11 @@ minetest.register_on_dignode(function(pos, oldnode, digger) end end) - - +-- Registrar item para o evento +xpro.register_on_dignode = function(name, xp) + if tonumber(xp) == 0 then return end + xpro.dig_node_xp_list[name] = xp +end diff --git a/metodos/place_node.lua b/metodos/place_node.lua index dc91f37..94f454f 100644 --- a/metodos/place_node.lua +++ b/metodos/place_node.lua @@ -10,10 +10,7 @@ ]] -- Lista de itens que geram recompensa -xpro.place_node_xp_list = { - --["default:stone_with_coal"] = 1, - --["default:stone_with_mese"] = -5, -} +xpro.place_node_xp_list = {} -- Chamada global minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack, pointed_thing) @@ -28,6 +25,11 @@ minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack end end) +-- Registrar item para o evento +xpro.register_on_placenode = function(name, xp) + if tonumber(xp) == 0 then return end + xpro.place_node_xp_list[name] = xp +end diff --git a/mods_suportados/minetest_game.lua b/mods_suportados/minetest_game.lua new file mode 100644 index 0000000..aa82863 --- /dev/null +++ b/mods_suportados/minetest_game.lua @@ -0,0 +1,144 @@ +--[[ + Mod Xpro para Minetest + Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine) + + Recebeste uma cópia da GNU Lesser General + Public License junto com esse software, + se não, veja em . + + Mods do Minetest Game + ]] + +-- Traduções +local S = xpro.S + +-- Crafts +for name,xp in pairs({ + -- Utensilios + ["bucket:bucket_empty"] = 2, + ["default:skeleton_key"] = 1, + -- Moveis + ["default:furnace"] = 2, + ["doors:door_steel"] = 3, + ["beds:bed"] = 1, + ["beds:fancy_bed"] = 1, + ["default:meselamp"] = 3, + ["default:sign_wall_steel"] = 2, + ["default:ladder_steel"] = 2, + ["default:bookshelf"] = 1, + ["default:shelf"] = 1, + ["default:chest"] = 1, + ["default:chest_locked"] = 2, + -- Tools + ["default:pick_wood"] = 1, + ["default:pick_stone"] = 1, + ["default:pick_steel"] = 2, + ["default:pick_bronze"] = 3, + ["default:pick_mese"] = 4, + ["default:pick_diamond"] = 5, + ["default:shovel_wood"] = 1, + ["default:shovel_stone"] = 1, + ["default:shovel_steel"] = 1, + ["default:shovel_bronze"] = 2, + ["default:shovel_mese"] = 3, + ["default:shovel_diamond"] = 4, + ["default:axe_wood"] = 1, + ["default:axe_stone"] = 1, + ["default:axe_steel"] = 2, + ["default:axe_bronze"] = 3, + ["default:axe_mese"] = 4, + ["default:axe_diamond"] = 5, + ["default:sword_wood"] = 1, + ["default:sword_stone"] = 1, + ["default:sword_steel"] = 2, + ["default:sword_bronze"] = 3, + ["default:sword_mese"] = 4, + ["default:sword_diamond"] = 5, + ["farming:hoe_wood"] = 1, + ["farming:hoe_stone"] = 1, + ["farming:hoe_steel"] = 2, + ["farming:hoe_bronze"] = 3, + ["farming:hoe_mese"] = 4, + ["farming:hoe_diamond"] = 5, + -- Carts + ["carts:cart"] = 2, + ["carts:rail"] = 1, + ["carts:powerrail"] = 1, + ["carts:brakerail"] = 1, + -- Farming + ["farming:flour"] = 1, +}) do + xpro.register_on_craft(name, xp) +end + +-- Ao cavar node +for name,xp in pairs({ + ["default:stone_with_coal"] = 1, + ["default:stone_with_tin"] = 1, + ["default:stone_with_copper"] = 2, + ["default:stone_with_iron"] = 3, + ["default:stone_with_gold"] = 5, + ["default:stone_with_mese"] = 5, + ["default:stone_with_diamond"] = 5, + -- Farming + ["farming:wheat_8"] = 1, + ["farming:cotton_8"] = 1, +}) do + xpro.register_on_dignode(name, xp) +end + +-- Ao colocar node +for name,xp in pairs({ + --["default:stone_with_coal"] = 1, + --["default:stone_with_tin"] = 1, +}) do + xpro.register_on_placenode(name, xp) +end + +-- Premios basicos +for _,dados in ipairs({ + {name=nil, item="default:mese_crystal", qtd=3, custo=180}, + {name=nil, item="default:diamond", qtd=3, custo=250}, + {name=nil, item="default:gold_ingot", qtd=5, custo=400}, + {name=nil, item="default:steel_ingot", qtd=10, custo=300}, + {name=nil, item="default:steel_ingot", qtd=10, custo=200}, + {name=nil, item="default:coal_lump", qtd=30, custo=100}, + {name=nil, item="default:brick", qtd=30, custo=180}, + {name=nil, item="default:clay", qtd=40, custo=180}, + {name=nil, item="default:glass", qtd=50, custo=130}, + {name=nil, item="default:stone", qtd=50, custo=150}, + {name=nil, item="default:desert_stone", qtd=50, custo=150}, + {name=nil, item="default:sand", qtd=50, custo=100}, + {name=nil, item="default:desert_sand", qtd=50, custo=100}, + {name=nil, item="default:silver_sand", qtd=50, custo=100}, + {name=nil, item="default:sandstone", qtd=50, custo=150}, + {name=nil, item="default:desert_sandstone", qtd=50, custo=150}, + {name=nil, item="default:silver_sandstone", qtd=50, custo=150}, + {name=nil, item="default:tree", qtd=50, custo=200}, + {name=nil, item="default:jungletree", qtd=50, custo=200}, + {name=nil, item="default:aspen_tree", qtd=50, custo=200}, + {name=nil, item="default:acacia_tree", qtd=50, custo=200}, + {name=nil, item="default:pine_tree", qtd=50, custo=200}, + {name=nil, item="wool:white", qtd=35, custo=180}, + {name=nil, item="default:obsidian", qtd=35, custo=180}, +}) do + -- Registrar apenas premios existentes + if minetest.registered_items[dados.item] + --or minetest.registered_nodes[dados.item] + --or minetest.registered_craftitems[dados.item] + --or minetest.registered_tools[dados.item] + then + if dados.name == nil then + dados.name = minetest.registered_items[dados.item].description + end + xpro.registrar_premio(dados.name, { + item=dados.item, + qtd=dados.qtd, + custo=dados.custo, + }) + end +end + + + + diff --git a/progresso.lua b/progresso.lua index 902a339..e24d115 100644 --- a/progresso.lua +++ b/progresso.lua @@ -10,22 +10,6 @@ ]] -xpro.register_on_add_xp(function(name, xp_added, lvl_changed) - if lvl_changed == true then - minetest.chat_send_player(name, "Atingiu Nivel "..xpro.get_player_lvl(name)) - end -end) - - -xpro.register_on_rem_xp(function(name, xp_removed, lvl_changed) - if lvl_changed == true then - minetest.chat_send_player(name, "Regrediu ao Nivel "..xpro.get_player_lvl(name)) - end -end) - - - - diff --git a/ranking.lua b/ranking.lua index 9b95905..0fce0d9 100644 --- a/ranking.lua +++ b/ranking.lua @@ -9,6 +9,9 @@ Gerenciamento do Ranking ]] +-- Traduções +local S = xpro.S + -- Pegar ranking xpro.get_rank = function() return xpro.bd.pegar("ranking", "pontos") @@ -117,8 +120,8 @@ local update_formspec = function() xpro.ranking_formspec = "size[7,7]" ..default.gui_bg ..default.gui_bg_img - .."label[0.6,0.4;Pontos]" - .."label[2.4,0.4;Jogador]" + .."label[0.6,0.4;"..S("Pontos").."]" + .."label[2.4,0.4;"..S("Jogador").."]" -- Monta Ranking local rank = xpro.get_rank() @@ -132,7 +135,7 @@ local update_formspec = function() liga = "" end xpro.ranking_formspec = xpro.ranking_formspec .."label[0.6,"..w..";"..rank[tostring(x)].pontos.."]" - .."image[1.6,"..(w*0.995-0.05)..";1,0.66;xpro_liga_bg.png]" + .."image[1.75,"..(w*0.995-0.05)..";0.66,0.66;xpro_liga_bg.png]" ..liga .."label[2.4,"..w..";"..rank[tostring(x)].name.."]" end diff --git a/sfinv.lua b/sfinv.lua index 395f535..3225b4b 100644 --- a/sfinv.lua +++ b/sfinv.lua @@ -11,10 +11,11 @@ if sfinv == nil then return end +-- Traduções local S = xpro.S sfinv.register_page("xpro:info", { - title = "Nivel", + title = S("Nivel"), get = function(self, player, context) @@ -34,18 +35,18 @@ sfinv.register_page("xpro:info", { progresso = xp/xp_t end - local formspec = "label[0,0;Nivel "..my_lvl.."]" - .."label[0,0.5;Pontos: "..my_xp.."]" - .."label[0,1;Cash XP: "..xp_disp.."]" - .."button[0,1.5;3,1;shop;Loja de Premios]" - .."button[0,2.5;3,1;ranking;Ranking Global]" + local formspec = "label[0,0;"..S("Nivel @1", my_lvl).."]" + .."label[0,0.5;"..S("Pontos: @1", my_xp).."]" + .."label[0,1;"..S("Cash XP: @1", xp_disp).."]" + .."button[0,1.5;3,1;shop;"..S("Loja de Premios").."]" + .."button[0,2.5;3,1;ranking;"..S("Ranking Global").."]" -- Liga .."image[3.8,0.34;4,4;xpro_liga_bg.png]" - .."label[3,0;Liga "..xpro.ligas[my_lvl].name.."]" + .."label[3,0;"..S("Liga @1", xpro.ligas[my_lvl].name).."]" .."image[4.17,0.7;3.2,3.2;"..xpro.ligas[my_lvl].img.."]" - .."label[0,3.3;Progresso]" + .."label[0,3.3;"..S("Progresso").."]" .."image[0,3.8;9.65,0.8;xpro_xp_bar_alfa.png^[lowpart:"..math.ceil(progresso*100)..":xpro_xp_bar.png^[transformR270]" .."image[0,3.8;9.65,0.8;xpro_xp_bar_grade.png]" diff --git a/shop.lua b/shop.lua index 53f4de3..c330364 100644 --- a/shop.lua +++ b/shop.lua @@ -9,6 +9,7 @@ Shopping de XP ]] +-- Traduções local S = xpro.S -- Assegurar dados @@ -57,8 +58,8 @@ xpro.acessar_shop = function(name, aviso) local formspec = "size[8,5]" ..default.gui_bg ..default.gui_bg_img - .."label[0,0;Loja de Itens por XP]" - .."label[0,0.5;Cash XP: "..xp_disp.."]" + .."label[0,0;"..S("Loja de Itens por XP").."]" + .."label[0,0.5;"..S("Cash XP: @1", xp_disp).."]" .."textlist[3.2,0;4.5,5;menu;"..string_menu_shop.."]" if aviso then @@ -67,14 +68,14 @@ xpro.acessar_shop = function(name, aviso) -- Nenhum item escolhido if acesso.escolha == nil then - formspec = formspec .. "label[0,2;Escolha um Item]" + formspec = formspec .. "label[0,2;"..S("Escolha um Item").."]" -- Exibir item escolhido else local escolha = xpro.premios[acesso.escolha] - formspec = formspec .. "label[0,2;Custo: "..escolha.custo.."XP]" - .."label[0,2.5;Unidades: "..escolha.qtd.."]" - .."item_image_button[0,3;2.1,2.1;"..escolha.item..";comprar;Comprar]" + formspec = formspec .. "label[0,2;"..S("Custo: @1 CashXP", escolha.custo).."]" + .."label[0,2.5;"..S("Unidades: @1", escolha.qtd).."]" + .."item_image_button[0,3;2.1,2.1;"..escolha.item..";comprar;"..S("Comprar").."]" end minetest.show_formspec(name, "xpro:shop", formspec) @@ -103,13 +104,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) -- Tenta trocar if xp_disp < escolha.custo then - xpro.acessar_shop(name, "Cash XP insuficiente") + xpro.acessar_shop(name, S("Cash XP insuficiente")) else if xpro.tror.trocar_plus(player, nil, {escolha.item.." "..escolha.qtd}) == false then - xpro.acessar_shop(name, "Inventario lotado") + xpro.acessar_shop(name, S("Inventario lotado")) else player:set_attribute("xpro_xp_gasto", (xp_gasto+escolha.custo)) - xpro.acessar_shop(name, minetest.colorize("#0C0", "Adiquirido")) + xpro.acessar_shop(name, minetest.colorize("#0C0", S("Adiquirido"))) end end end @@ -132,15 +133,3 @@ xpro.registrar_premio = function(name, def) end --- Premios basicos -for _,dados in ipairs({ - {name="Pedras", item="default:dirt", qtd=50, custo=100}, - {name="Pedregulho", item="default:cobble", qtd=25, custo=50}, -}) do - xpro.registrar_premio(dados.name, { - item=dados.item, - qtd=dados.qtd, - custo=dados.custo, - }) -end - diff --git a/sounds/xpro_downgrade_lvl.ogg b/sounds/xpro_downgrade_lvl.ogg new file mode 100644 index 0000000..836dd79 Binary files /dev/null and b/sounds/xpro_downgrade_lvl.ogg differ diff --git a/sounds/xpro_upgrade_lvl.ogg b/sounds/xpro_upgrade_lvl.ogg new file mode 100644 index 0000000..f37aad1 Binary files /dev/null and b/sounds/xpro_upgrade_lvl.ogg differ