Compare commits
5 Commits
72790de6b1
...
31506bca1f
Author | SHA1 | Date |
---|---|---|
BrunoMine | 31506bca1f | |
BrunoMine | fb787453ea | |
BrunoMine | 19b2787ad0 | |
BrunoMine | 769505c1d6 | |
BrunoMine | 3711e8298e |
39
barman.lua
39
barman.lua
|
@ -1,6 +1,6 @@
|
|||
--[[
|
||||
Mod Taverna_Barbara para Minetest
|
||||
Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine)
|
||||
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
|
||||
|
||||
Recebeste uma cópia da GNU Lesser General
|
||||
Public License junto com esse software,
|
||||
|
@ -12,6 +12,9 @@
|
|||
o NPC barman que atende os jogadores na taverna barbara
|
||||
]]
|
||||
|
||||
-- Tradução de strings
|
||||
local S = taverna_barbara.S
|
||||
|
||||
-- Encurtamento de variaveis uteis
|
||||
local item_moeda = taverna_barbara.item_moeda
|
||||
local desc_item_moeda = taverna_barbara.desc_item_moeda
|
||||
|
@ -19,7 +22,6 @@ local desc_item_moeda = taverna_barbara.desc_item_moeda
|
|||
local def = {
|
||||
|
||||
-- Geral
|
||||
name = "taverna_barbara:barman",
|
||||
stats = {
|
||||
hp = 18,
|
||||
lifetime = 1800, -- 30 Minutos
|
||||
|
@ -41,8 +43,11 @@ local def = {
|
|||
model = {
|
||||
mesh = "taverna_barbara_pessoa_comum.b3d",
|
||||
textures = {"taverna_barbara_barman.png"},
|
||||
collisionbox = {-0.25, -1, -0.3, 0.25, 1.0, 0.3},
|
||||
rotation = -90.0,
|
||||
collisionbox_width = 0.7,
|
||||
collisionbox_height = 1.8,
|
||||
center_height = -1,
|
||||
rotation = 0.0,
|
||||
vision_height = 0,
|
||||
animations = {
|
||||
idle = {start = 0, stop = 80, speed = 15},
|
||||
walk = {start = 168, stop = 188, speed = 15.5},
|
||||
|
@ -61,7 +66,7 @@ local def = {
|
|||
on_rightclick = function(self, clicker) -- mostra menu do barman
|
||||
minetest.show_formspec(clicker:get_player_name(), "taverna_barbara:barman",
|
||||
"size[9,4]"
|
||||
.."label[0,0;BARMAN]"
|
||||
.."label[0,0;"..S("BARMAN").."]"
|
||||
.."label[0,0.5;"..taverna_barbara.custo_cerveja.." "..taverna_barbara.item_moeda_code.."]"
|
||||
.."label[3,0.5;"..taverna_barbara.custo_whisky.." "..taverna_barbara.item_moeda_code.."]"
|
||||
.."label[6,0.5;"..taverna_barbara.custo_batanoura_defumada.." "..taverna_barbara.item_moeda_code.."]"
|
||||
|
@ -87,7 +92,12 @@ local def = {
|
|||
self.temp = 0
|
||||
|
||||
-- Remove se tem mais de 1 por perto
|
||||
if table.maxn(creatures.findTarget(nil, self.object:getpos(), 10, "mate", "taverna_barbara:barman", true, false)) > 1 then
|
||||
if table.maxn(creatures.find_target(self.object:getpos(), 10, {
|
||||
search_type = "mate",
|
||||
mob_name = "taverna_barbara:barman",
|
||||
xray = true,
|
||||
no_count = false
|
||||
})) > 1 then
|
||||
self.object:remove()
|
||||
end
|
||||
|
||||
|
@ -98,7 +108,7 @@ local def = {
|
|||
|
||||
}
|
||||
|
||||
creatures.register_mob(def)
|
||||
creatures.register_mob("taverna_barbara:barman", def)
|
||||
|
||||
-- receptor dos botoes do menu do barman
|
||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
|
@ -112,7 +122,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
local desc_moeda = taverna_barbara.desc_item_moeda
|
||||
minetest.chat_send_player(
|
||||
player:get_player_name(),
|
||||
"Voce precisa de "..tostring(custo).." "..desc_moeda.." para comprar "..desc_item)
|
||||
S("Voce precisa de @1 @2 para comprar @3", tostring(custo), desc_moeda, desc_item))
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -124,7 +134,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
local desc_item = minetest.registered_items["taverna_barbara:whisky"].description
|
||||
minetest.chat_send_player(
|
||||
player:get_player_name(),
|
||||
"Voce precisa de "..tostring(custo).." "..desc_item_moeda.." para comprar "..desc_item)
|
||||
S("Voce precisa de @1 @2 para comprar @3", tostring(custo), desc_item_moeda, desc_item))
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -136,7 +146,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
local desc_item = minetest.registered_items["taverna_barbara:batanoura_defumada"].description
|
||||
minetest.chat_send_player(
|
||||
player:get_player_name(),
|
||||
"Voce precisa de "..tostring(custo).." "..desc_item_moeda.." para comprar "..desc_item)
|
||||
S("Voce precisa de @1 @2 para comprar @3", tostring(custo), desc_item_moeda, desc_item))
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -147,7 +157,7 @@ end)
|
|||
|
||||
-- Node Piso do barman
|
||||
minetest.register_node("taverna_barbara:piso_barman", {
|
||||
description = "Piso de Barman",
|
||||
description = S("Piso de Barman"),
|
||||
tiles = {
|
||||
"default_pine_wood.png^taverna_barbara_piso_barman.png",
|
||||
},
|
||||
|
@ -157,7 +167,12 @@ minetest.register_node("taverna_barbara:piso_barman", {
|
|||
})
|
||||
|
||||
local verificar_barman = function(pos)
|
||||
if table.maxn(creatures.findTarget(nil, pos, 10, "mate", "taverna_barbara:barman", true, false)) == 0 then
|
||||
if table.maxn(creatures.find_target(pos, 10, {
|
||||
search_type = "mate",
|
||||
mob_name = "taverna_barbara:barman",
|
||||
xray = true,
|
||||
no_count = false
|
||||
})) == 0 then
|
||||
minetest.add_entity({x=pos.x,y=pos.y+2.5,z=pos.z}, "taverna_barbara:barman")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ local S = taverna_barbara.S
|
|||
|
||||
-- Carpete de palha
|
||||
minetest.register_node("taverna_barbara:carpete", {
|
||||
description = S("Carpete de Taverna Barbara"),
|
||||
description = S("Carpete de Taverna Bárbara"),
|
||||
tiles = {"wool_red.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--[[
|
||||
Mod Taverna_Barbara para Minetest
|
||||
Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine)
|
||||
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
|
||||
|
||||
Recebeste uma cópia da GNU Lesser General
|
||||
Public License junto com esse software,
|
||||
|
@ -10,9 +10,12 @@
|
|||
|
||||
]]
|
||||
|
||||
-- Tradução de strings
|
||||
local S = taverna_barbara.S
|
||||
|
||||
-- Cerveja
|
||||
minetest.register_craftitem("taverna_barbara:cerveja", {
|
||||
description = "Cerveja",
|
||||
description = S("Cerveja"),
|
||||
inventory_image = "taverna_barbara_cerveja.png",
|
||||
stack_max = 1,
|
||||
on_use = core.item_eat(taverna_barbara.saciamento_cerveja),
|
||||
|
@ -26,12 +29,12 @@ minetest.register_craftitem("taverna_barbara:cerveja", {
|
|||
end,
|
||||
})
|
||||
if hbhunger then
|
||||
hbhunger.register_food("taverna_barbara:cerveja", taverna_barbara.saciamento_cerveja, "macronodes:garrafa_vidro", nil, 2, "taverna_barbara_bebendo_garrafa_de_vidro")
|
||||
hbhunger.register_food("taverna_barbara:cerveja", taverna_barbara.saciamento_cerveja, "vessels:glass_bottle", nil, 2, "taverna_barbara_bebendo_garrafa_de_vidro")
|
||||
end
|
||||
|
||||
-- Whisky
|
||||
minetest.register_craftitem("taverna_barbara:whisky", {
|
||||
description = "Whisky",
|
||||
description = S("Whisky"),
|
||||
inventory_image = "taverna_barbara_whisky.png",
|
||||
stack_max = 1,
|
||||
on_use = core.item_eat(taverna_barbara.saciamento_whisky),
|
||||
|
@ -45,12 +48,12 @@ minetest.register_craftitem("taverna_barbara:whisky", {
|
|||
end,
|
||||
})
|
||||
if hbhunger then
|
||||
hbhunger.register_food("taverna_barbara:whisky", taverna_barbara.saciamento_whisky, "macronodes:garrafa_vidro", nil, 4, "taverna_barbara_bebendo_garrafa_de_vidro")
|
||||
hbhunger.register_food("taverna_barbara:whisky", taverna_barbara.saciamento_whisky, "vessels:glass_bottle", nil, 4, "taverna_barbara_bebendo_garrafa_de_vidro")
|
||||
end
|
||||
|
||||
-- Amendoim Crocante
|
||||
minetest.register_craftitem("taverna_barbara:amendoim", {
|
||||
description = "Amendoim Crocante",
|
||||
description = S("Amendoim Crocante"),
|
||||
inventory_image = "taverna_barbara_amendoim.png",
|
||||
stack_max = 20,
|
||||
on_use = core.item_eat(taverna_barbara.saciamento_amendoim),
|
||||
|
@ -61,7 +64,7 @@ end
|
|||
|
||||
-- Balinha Sortida
|
||||
minetest.register_craftitem("taverna_barbara:balinha_sortida", {
|
||||
description = "Balinha Sortida",
|
||||
description = S("Balinha Sortida"),
|
||||
inventory_image = "taverna_barbara_balinha_sortida_inv.png",
|
||||
wield_image = "taverna_barbara_balinha_sortida.png",
|
||||
stack_max = 20,
|
||||
|
@ -73,7 +76,7 @@ end
|
|||
|
||||
-- Batanoura Defumada (Cruzamento de Batata com Cenoura)
|
||||
minetest.register_craftitem("taverna_barbara:batanoura_defumada", {
|
||||
description = "Batanoura Defumada (Cruzamento de Batata com Cenoura)",
|
||||
description = S("Batanoura Defumada (Cruzamento de Batata com Cenoura)"),
|
||||
inventory_image = "taverna_barbara_batanoura_defumada.png",
|
||||
stack_max = 10,
|
||||
on_use = core.item_eat(taverna_barbara.saciamento_batanoura_defumada)
|
||||
|
|
|
@ -46,7 +46,7 @@ local SACIAMENTO_CERVEJA = tonumber(minetest.settings:get("taverna_barbara_sacia
|
|||
local SACIAMENTO_WHISKY = tonumber(minetest.settings:get("taverna_barbara_saciamento_whisky") or 5)
|
||||
local SACIAMENTO_BATANOURA_DEFUMADA = tonumber(minetest.settings:get("taverna_barbara_saciamento_batanoura_defumada") or 4)
|
||||
local SACIAMENTO_AMENDOIM = tonumber(minetest.settings:get("taverna_barbara_saciamento_amendoim") or 1)
|
||||
local SACIAMENTO_BALINHA_SORTIDA = tonumber(minetest.settings:get("taverna_barbara_saciamento_balinha_sortida") or 0)
|
||||
local SACIAMENTO_BALINHA_SORTIDA = tonumber(minetest.settings:get("taverna_barbara_saciamento_balinha_sortida") or tonumber(0))
|
||||
|
||||
-- Trocas oferecidas pelos trambiqueiros
|
||||
--[[
|
||||
|
@ -80,7 +80,7 @@ taverna_barbara.custo_cerveja = CUSTO_CERVEJA
|
|||
taverna_barbara.custo_whisky = CUSTO_WHISKY
|
||||
taverna_barbara.custo_batanoura_defumada = CUSTO_BATANOURA_DEFUMADA
|
||||
taverna_barbara.custo_amendoim = CUSTO_AMENDOIM
|
||||
taverna_barbara.custo_balinha_sortida = CUSTO_BOLINHA_SORTIDA
|
||||
taverna_barbara.custo_balinha_sortida = CUSTO_BALINHA_SORTIDA
|
||||
taverna_barbara.saciamento_cerveja = SACIAMENTO_CERVEJA
|
||||
taverna_barbara.saciamento_whisky = SACIAMENTO_WHISKY
|
||||
taverna_barbara.saciamento_batanoura_defumada = SACIAMENTO_BATANOURA_DEFUMADA
|
||||
|
|
|
@ -1 +1 @@
|
|||
barman.lua carpete.lua craftitens.lua nodes.lua protetor.lua trambiqueiro.lua
|
||||
barman.lua carpete.lua craftitens.lua nodes.lua trambiqueiro.lua
|
||||
|
|
BIN
locale/en.mo
BIN
locale/en.mo
Binary file not shown.
73
locale/en.po
73
locale/en.po
|
@ -7,17 +7,78 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-12-27 23:36-0200\n"
|
||||
"PO-Revision-Date: 2018-12-27 23:38-0200\n"
|
||||
"POT-Creation-Date: 2018-12-28 15:55-0200\n"
|
||||
"PO-Revision-Date: 2018-12-28 15:51-0200\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.2\n"
|
||||
"Last-Translator: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Language: en\n"
|
||||
|
||||
#: barman.lua
|
||||
msgid "BARMAN"
|
||||
msgstr "BARMAN"
|
||||
|
||||
#: barman.lua nodes.lua
|
||||
msgid "Voce precisa de @1 @2 para comprar @3"
|
||||
msgstr "You need @1 @2 to buy @3"
|
||||
|
||||
#: barman.lua
|
||||
msgid "Piso de Barman"
|
||||
msgstr "Barman Floor"
|
||||
|
||||
#: carpete.lua
|
||||
msgid "Carpete de Taverna Barbara"
|
||||
msgstr "Carpet of the Taverna"
|
||||
msgid "Carpete de Taverna Bárbara"
|
||||
msgstr "Carpet of the Barbarian Taverna"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Cerveja"
|
||||
msgstr "Beer"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Whisky"
|
||||
msgstr "Whisky"
|
||||
|
||||
#: craftitens.lua nodes.lua
|
||||
msgid "Amendoim Crocante"
|
||||
msgstr "Crunchy Peanut"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Balinha Sortida"
|
||||
msgstr "Assorted Sweet"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
msgstr "Smoked Potarrot (Potato Crossing with Carrot)"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Placa de Taverna Bárbara"
|
||||
msgstr "Sign of the Taverna"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Amendoim Crocante"
|
||||
msgstr "Crunchy Peanut Box"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Balinhas"
|
||||
msgstr "Assorted Sweet Box"
|
||||
|
||||
#: nodes.lua
|
||||
#, fuzzy
|
||||
msgid "Balinhas Sortidas"
|
||||
msgstr "Assorted Sweet"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Cerveja"
|
||||
msgstr "Bottle of Beer"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Whisky"
|
||||
msgstr "Bottle of Whisky"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Fundamento da Taverna"
|
||||
msgstr "Taverna Stone"
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
# 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 <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-12-28 15:35-0200\n"
|
||||
"PO-Revision-Date: 2018-12-28 15:51-0200\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.2\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: barman.lua
|
||||
msgid "BARMAN"
|
||||
msgstr "BARMAN"
|
||||
|
||||
#: barman.lua nodes.lua
|
||||
msgid "Voce precisa de @1 @2 para comprar @3"
|
||||
msgstr "You need @1 @2 to buy @3"
|
||||
|
||||
#: barman.lua
|
||||
msgid "Piso de Barman"
|
||||
msgstr "Barman Floor"
|
||||
|
||||
#: carpete.lua
|
||||
msgid "Carpete de Taverna Bárbara"
|
||||
msgstr "Carpet of the Barbarian Taverna"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Cerveja"
|
||||
msgstr "Beer"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Whisky"
|
||||
msgstr "Whisky"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Amendoim Crocante"
|
||||
msgstr "Crunchy Peanut"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Balinha Sortida"
|
||||
msgstr "Assorted Sweet"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
msgstr "Smoked Potarrot (Potato Crossing with Carrot)"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Placa de Taverna Bárbara"
|
||||
msgstr "Sign of the Taverna"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Amendoim Crocante"
|
||||
msgstr "Crunchy Peanut Box"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Balinhas"
|
||||
msgstr "Assorted Sweet Box"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Cerveja"
|
||||
msgstr "Bottle of Beer"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Whisky"
|
||||
msgstr "Bottle of Whisky"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Fundamento da Taverna"
|
||||
msgstr "Taverna Stone"
|
BIN
locale/pt.mo
BIN
locale/pt.mo
Binary file not shown.
73
locale/pt.po
73
locale/pt.po
|
@ -7,17 +7,78 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-12-27 23:36-0200\n"
|
||||
"PO-Revision-Date: 2018-12-27 23:36-0200\n"
|
||||
"POT-Creation-Date: 2018-12-28 15:55-0200\n"
|
||||
"PO-Revision-Date: 2018-12-28 15:30-0200\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.2\n"
|
||||
"Last-Translator: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"Language: pt\n"
|
||||
|
||||
#: barman.lua
|
||||
msgid "BARMAN"
|
||||
msgstr "BARMAN"
|
||||
|
||||
#: barman.lua nodes.lua
|
||||
msgid "Voce precisa de @1 @2 para comprar @3"
|
||||
msgstr "Voce precisa de @1 @2 para comprar @3"
|
||||
|
||||
#: barman.lua
|
||||
msgid "Piso de Barman"
|
||||
msgstr "Piso de Barman"
|
||||
|
||||
#: carpete.lua
|
||||
msgid "Carpete de Taverna Barbara"
|
||||
msgstr "Carpete de Taverna Barbara"
|
||||
msgid "Carpete de Taverna Bárbara"
|
||||
msgstr "Carpete de Taverna Bárbara"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Cerveja"
|
||||
msgstr "Cerveja"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Whisky"
|
||||
msgstr "Whisky"
|
||||
|
||||
#: craftitens.lua nodes.lua
|
||||
msgid "Amendoim Crocante"
|
||||
msgstr "Amendoim Crocante"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Balinha Sortida"
|
||||
msgstr "Balinha Sortida"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
msgstr "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Placa de Taverna Bárbara"
|
||||
msgstr "Placa de Taverna Bárbara"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Amendoim Crocante"
|
||||
msgstr "Expositor de Amendoim Crocante"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Balinhas"
|
||||
msgstr "Expositor de Balinhas"
|
||||
|
||||
#: nodes.lua
|
||||
#, fuzzy
|
||||
msgid "Balinhas Sortidas"
|
||||
msgstr "Balinha Sortida"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Cerveja"
|
||||
msgstr "Garrafa de Cerveja"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Whisky"
|
||||
msgstr "Garrafa de Whisky"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Fundamento da Taverna"
|
||||
msgstr "Fundamento da Taverna"
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
# 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 <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-12-28 15:35-0200\n"
|
||||
"PO-Revision-Date: 2018-12-28 15:30-0200\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.2\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: barman.lua
|
||||
msgid "BARMAN"
|
||||
msgstr "BARMAN"
|
||||
|
||||
#: barman.lua nodes.lua
|
||||
msgid "Voce precisa de @1 @2 para comprar @3"
|
||||
msgstr "Voce precisa de @1 @2 para comprar @3"
|
||||
|
||||
#: barman.lua
|
||||
msgid "Piso de Barman"
|
||||
msgstr "Piso de Barman"
|
||||
|
||||
#: carpete.lua
|
||||
msgid "Carpete de Taverna Bárbara"
|
||||
msgstr "Carpete de Taverna Bárbara"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Cerveja"
|
||||
msgstr "Cerveja"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Whisky"
|
||||
msgstr "Whisky"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Amendoim Crocante"
|
||||
msgstr "Amendoim Crocante"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Balinha Sortida"
|
||||
msgstr "Balinha Sortida"
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
msgstr "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Placa de Taverna Bárbara"
|
||||
msgstr "Placa de Taverna Bárbara"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Amendoim Crocante"
|
||||
msgstr "Expositor de Amendoim Crocante"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Balinhas"
|
||||
msgstr "Expositor de Balinhas"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Cerveja"
|
||||
msgstr "Garrafa de Cerveja"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Whisky"
|
||||
msgstr "Garrafa de Whisky"
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Fundamento da Taverna"
|
||||
msgstr "Fundamento da Taverna"
|
|
@ -1,3 +1,17 @@
|
|||
### Arquivo gerado por taverna_barbara apartir de en.po
|
||||
# textdomain: taverna_barbara
|
||||
Carpet of the Taverna=Carpet of the Taverna
|
||||
Beer=Beer
|
||||
Bottle of Beer=Bottle of Beer
|
||||
Sign of the Taverna=Sign of the Taverna
|
||||
Smoked Potarrot (Potato Crossing with Carrot)=Smoked Potarrot (Potato Crossing with Carrot)
|
||||
Crunchy Peanut=Crunchy Peanut
|
||||
Assorted Sweet=Assorted Sweet
|
||||
Barman Floor=Barman Floor
|
||||
Carpet of the Barbarian Taverna=Carpet of the Barbarian Taverna
|
||||
BARMAN=BARMAN
|
||||
You need @1 @2 to buy @3=You need @1 @2 to buy @3
|
||||
Bottle of Whisky=Bottle of Whisky
|
||||
Crunchy Peanut Box=Crunchy Peanut Box
|
||||
Whisky=Whisky
|
||||
Taverna Stone=Taverna Stone
|
||||
Assorted Sweet Box=Assorted Sweet Box
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
### Arquivo gerado por taverna_barbara apartir de en.po
|
||||
# textdomain: taverna_barbara
|
||||
Carpet of the Taverna=Carpet of the Taverna
|
||||
Beer=Beer
|
||||
Bottle of Beer=Bottle of Beer
|
||||
Sign of the Taverna=Sign of the Taverna
|
||||
Smoked Potarrot (Potato Crossing with Carrot)=Smoked Potarrot (Potato Crossing with Carrot)
|
||||
Crunchy Peanut=Crunchy Peanut
|
||||
Assorted Sweet=Assorted Sweet
|
||||
Barman Floor=Barman Floor
|
||||
Carpet of the Barbarian Taverna=Carpet of the Barbarian Taverna
|
||||
BARMAN=BARMAN
|
||||
You need @1 @2 to buy @3=You need @1 @2 to buy @3
|
||||
Bottle of Whisky=Bottle of Whisky
|
||||
Crunchy Peanut Box=Crunchy Peanut Box
|
||||
Whisky=Whisky
|
||||
Taverna Stone=Taverna Stone
|
||||
Assorted Sweet Box=Assorted Sweet Box
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
### Arquivo gerado por taverna_barbara apartir de pt.po
|
||||
# textdomain: taverna_barbara
|
||||
Carpet of the Taverna=Carpete de Taverna Barbara
|
||||
Beer=Cerveja
|
||||
Bottle of Beer=Garrafa de Cerveja
|
||||
Sign of the Taverna=Placa de Taverna Bárbara
|
||||
Smoked Potarrot (Potato Crossing with Carrot)=Batanoura Defumada (Cruzamento de Batata com Cenoura)
|
||||
Crunchy Peanut=Amendoim Crocante
|
||||
Assorted Sweet=Balinha Sortida
|
||||
Barman Floor=Piso de Barman
|
||||
Carpet of the Barbarian Taverna=Carpete de Taverna Bárbara
|
||||
BARMAN=BARMAN
|
||||
You need @1 @2 to buy @3=Voce precisa de @1 @2 para comprar @3
|
||||
Bottle of Whisky=Garrafa de Whisky
|
||||
Crunchy Peanut Box=Expositor de Amendoim Crocante
|
||||
Whisky=Whisky
|
||||
Taverna Stone=Fundamento da Taverna
|
||||
Assorted Sweet Box=Expositor de Balinhas
|
||||
|
|
|
@ -8,15 +8,75 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-12-27 23:36-0200\n"
|
||||
"POT-Creation-Date: 2018-12-28 15:55-0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: carpete.lua
|
||||
msgid "Carpete de Taverna Barbara"
|
||||
#: barman.lua
|
||||
msgid "BARMAN"
|
||||
msgstr ""
|
||||
|
||||
#: barman.lua nodes.lua
|
||||
msgid "Voce precisa de @1 @2 para comprar @3"
|
||||
msgstr ""
|
||||
|
||||
#: barman.lua
|
||||
msgid "Piso de Barman"
|
||||
msgstr ""
|
||||
|
||||
#: carpete.lua
|
||||
msgid "Carpete de Taverna Bárbara"
|
||||
msgstr ""
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Cerveja"
|
||||
msgstr ""
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Whisky"
|
||||
msgstr ""
|
||||
|
||||
#: craftitens.lua nodes.lua
|
||||
msgid "Amendoim Crocante"
|
||||
msgstr ""
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Balinha Sortida"
|
||||
msgstr ""
|
||||
|
||||
#: craftitens.lua
|
||||
msgid "Batanoura Defumada (Cruzamento de Batata com Cenoura)"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Placa de Taverna Bárbara"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Amendoim Crocante"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Expositor de Balinhas"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Balinhas Sortidas"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Cerveja"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Garrafa de Whisky"
|
||||
msgstr ""
|
||||
|
||||
#: nodes.lua
|
||||
msgid "Fundamento da Taverna"
|
||||
msgstr ""
|
||||
|
|
29
nodes.lua
29
nodes.lua
|
@ -1,6 +1,6 @@
|
|||
--[[
|
||||
Mod Taverna_Barbara para Minetest
|
||||
Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine)
|
||||
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
|
||||
|
||||
Recebeste uma cópia da GNU Lesser General
|
||||
Public License junto com esse software,
|
||||
|
@ -10,9 +10,16 @@
|
|||
|
||||
]]
|
||||
|
||||
-- Tradução de strings
|
||||
local S = taverna_barbara.S
|
||||
|
||||
-- Encurtamento de variaveis uteis
|
||||
local item_moeda = taverna_barbara.item_moeda
|
||||
local desc_item_moeda = taverna_barbara.desc_item_moeda
|
||||
|
||||
-- Placa da taverna barbara
|
||||
minetest.register_node("taverna_barbara:placa", {
|
||||
description = "Placa de Taverna Barbara",
|
||||
description = S("Placa de Taverna Bárbara"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"taverna_barbara_placa_lado.png", -- Cima
|
||||
|
@ -48,7 +55,7 @@ minetest.register_node("taverna_barbara:placa", {
|
|||
})
|
||||
|
||||
minetest.register_node("taverna_barbara:expositor_amendoim", {
|
||||
description = "Expositor de Amendoim Crocante",
|
||||
description = S("Expositor de Amendoim Crocante"),
|
||||
tiles = {
|
||||
"default_pine_wood.png^taverna_barbara_expositor_amendoim_cima.png", -- Cima
|
||||
"default_pine_wood.png", -- Baixo
|
||||
|
@ -81,7 +88,7 @@ minetest.register_node("taverna_barbara:expositor_amendoim", {
|
|||
sounds = default.node_sound_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", "Amendoim Crocante") -- infotext pode ser serializado
|
||||
meta:set_string("infotext", S("Amendoim Crocante")) -- infotext pode ser serializado
|
||||
end,
|
||||
on_rightclick = function(pos, node, player)
|
||||
minetest.show_formspec(player:get_player_name(), "taverna_barbara:expositor_amendoim",
|
||||
|
@ -94,7 +101,7 @@ minetest.register_node("taverna_barbara:expositor_amendoim", {
|
|||
|
||||
-- Expositor de Balinhas
|
||||
minetest.register_node("taverna_barbara:expositor_balinhas", {
|
||||
description = "Expositor de Balinhas",
|
||||
description = S("Expositor de Balinhas"),
|
||||
tiles = {
|
||||
"default_pine_wood.png^taverna_barbara_expositor_balinhas_cima.png", -- Cima
|
||||
"default_pine_wood.png^taverna_barbara_expositor_balinhas_baixo.png", -- Baixo
|
||||
|
@ -132,7 +139,7 @@ minetest.register_node("taverna_barbara:expositor_balinhas", {
|
|||
sounds = default.node_sound_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", "Balinhas Sortidas") -- infotext pode ser serializado
|
||||
meta:set_string("infotext", S("Balinhas Sortidas")) -- infotext pode ser serializado
|
||||
end,
|
||||
on_rightclick = function(pos, node, player)
|
||||
minetest.show_formspec(player:get_player_name(), "taverna_barbara:expositor_balinhas",
|
||||
|
@ -153,7 +160,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
local desc_item = minetest.registered_items["taverna_barbara:balinha_sortida"].description
|
||||
minetest.chat_send_player(
|
||||
player:get_player_name(),
|
||||
"Voce precisa de "..tostring(custo).." "..desc_item_moeda.." para comprar "..desc_item)
|
||||
S("Voce precisa de @1 @2 para comprar @3", tostring(custo), desc_item_moeda, desc_item))
|
||||
return
|
||||
end
|
||||
end
|
||||
|
@ -166,7 +173,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
local desc_item = minetest.registered_items["taverna_barbara:amendoim"].description
|
||||
minetest.chat_send_player(
|
||||
player:get_player_name(),
|
||||
"Voce precisa de "..tostring(custo).." "..desc_item_moeda.." para comprar "..desc_item)
|
||||
S("Voce precisa de @1 @2 para comprar @3", tostring(custo), desc_item_moeda, desc_item))
|
||||
return
|
||||
end
|
||||
end
|
||||
|
@ -175,7 +182,7 @@ end)
|
|||
|
||||
-- Node Garrafa de Cerveja (decorativo)
|
||||
minetest.register_node("taverna_barbara:node_cerveja", {
|
||||
description = "Garrafa de Cerveja",
|
||||
description = S("Garrafa de Cerveja"),
|
||||
tiles = {
|
||||
"taverna_barbara_garrafa_cerveja_cima.png", -- cima
|
||||
"taverna_barbara_garrafa_cerveja_baixo.png", -- baixo
|
||||
|
@ -202,7 +209,7 @@ minetest.register_node("taverna_barbara:node_cerveja", {
|
|||
|
||||
-- Node Garrafa de Whisky (decorativo)
|
||||
minetest.register_node("taverna_barbara:node_whisky", {
|
||||
description = "Garrafa de Whisky",
|
||||
description = S("Garrafa de Whisky"),
|
||||
tiles = {
|
||||
"taverna_barbara_garrafa_whisky_cima.png", -- cima
|
||||
"taverna_barbara_garrafa_whisky_baixo.png", -- baixo
|
||||
|
@ -228,7 +235,7 @@ minetest.register_node("taverna_barbara:node_whisky", {
|
|||
|
||||
-- Fundamento da taverna
|
||||
minetest.register_node("taverna_barbara:fundamento", {
|
||||
description = "Fundamento da Taverna",
|
||||
description = S("Fundamento da Taverna"),
|
||||
tiles = {"default_cobble.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--[[
|
||||
Mod Taverna_Barbara para Minetest
|
||||
Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine)
|
||||
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
|
||||
|
||||
Recebeste uma cópia da GNU Lesser General
|
||||
Public License junto com esse software,
|
||||
|
@ -19,6 +19,9 @@
|
|||
Data: 8/Jul/2016
|
||||
]]
|
||||
|
||||
-- Tradução de strings
|
||||
local S = taverna_barbara.S
|
||||
|
||||
-- Atalho para diretrizes
|
||||
local diretrizes = taverna_barbara.trambiqueiro
|
||||
|
||||
|
@ -97,7 +100,6 @@ end)
|
|||
local def = {
|
||||
|
||||
-- Geral
|
||||
name = "taverna_barbara:trambiqueiro",
|
||||
stats = {
|
||||
hp = 18,
|
||||
lifetime = 1800, -- 30 Minutos
|
||||
|
@ -118,8 +120,11 @@ local def = {
|
|||
model = {
|
||||
mesh = "taverna_barbara_pessoa_comum.b3d",
|
||||
textures = {"taverna_barbara_trambiqueiro.png"},
|
||||
collisionbox = {-0.25, -1, -0.3, 0.25, 1.0, 0.3},
|
||||
rotation = -90.0,
|
||||
collisionbox_width = 0.7,
|
||||
collisionbox_height = 1.8,
|
||||
center_height = -1,
|
||||
rotation = 0.0,
|
||||
vision_height = 0,
|
||||
animations = {
|
||||
idle = {start = 0, stop = 80, speed = 15},
|
||||
walk = {start = 168, stop = 188, speed = 15.5},
|
||||
|
@ -175,7 +180,12 @@ local def = {
|
|||
end
|
||||
|
||||
-- Remove se tem mais de 1 por perto
|
||||
if table.maxn(creatures.findTarget(nil, self.object:getpos(), 10, "mate", "taverna_barbara:trambiqueiro", true, false)) > 1 then
|
||||
if table.maxn(creatures.find_target(self.object:getpos(), 10, {
|
||||
search_type = "mate",
|
||||
mob_name = "taverna_barbara:trambiqueiro",
|
||||
xray = true,
|
||||
no_count = false
|
||||
})) > 1 then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
|
@ -212,7 +222,7 @@ local def = {
|
|||
|
||||
}
|
||||
|
||||
creatures.register_mob(def)
|
||||
creatures.register_mob("taverna_barbara:trambiqueiro", def)
|
||||
|
||||
-- Node Bau do Trambiqueiro
|
||||
minetest.register_node("taverna_barbara:bau_trambiqueiro", {
|
||||
|
@ -238,7 +248,12 @@ minetest.register_node("taverna_barbara:bau_trambiqueiro", {
|
|||
})
|
||||
|
||||
local verificar_trambiqueiro = function(pos)
|
||||
if table.maxn(creatures.findTarget(nil, pos, 10, "mate", "taverna_barbara:trambiqueiro", true, false)) == 0 then
|
||||
if table.maxn(creatures.find_target(pos, 10, {
|
||||
search_type = "mate",
|
||||
mob_name = "taverna_barbara:trambiqueiro",
|
||||
xray = true,
|
||||
no_count = false
|
||||
})) == 0 then
|
||||
local node = minetest.get_node(pos)
|
||||
local p = minetest.facedir_to_dir(node.param2)
|
||||
minetest.add_entity({x=pos.x-p.x,y=pos.y+1.5,z=pos.z-p.z}, "taverna_barbara:trambiqueiro")
|
||||
|
|
Loading…
Reference in New Issue