summaryrefslogtreecommitdiff
path: root/castle_weapons
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 12:12:15 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 12:12:15 -0400
commitaaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b (patch)
tree379775ce76eb855a3ea65906727d828d1696cece /castle_weapons
parentba470a69750df16eac4278c30471d813c2581202 (diff)
downloaddreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar
dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.gz
dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.bz2
dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.xz
dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.zip
updated castles, coloredwood, digistuff, locks, mesecons,
pipeworks, steel, unified dyes, unified mesecons, and worldedit
Diffstat (limited to 'castle_weapons')
-rw-r--r--castle_weapons/crossbow.lua26
-rw-r--r--castle_weapons/locale/it.po31
2 files changed, 49 insertions, 8 deletions
diff --git a/castle_weapons/crossbow.lua b/castle_weapons/crossbow.lua
index f61b752..439f99b 100644
--- a/castle_weapons/crossbow.lua
+++ b/castle_weapons/crossbow.lua
@@ -79,12 +79,22 @@ function crossbow:spawn_particles(pos, texture)
texture = CROSSBOW_EXPLOSION_TEXTURE
end
local spread = {x=0.1, y=0.1, z=0.1}
- minetest.add_particlespawner(15, 0.3,
- vector.subtract(pos, spread), vector.add(pos, spread),
- {x=-1, y=1, z=-1}, {x=1, y=2, z=1},
- {x=-2, y=-2, z=-2}, {x=2, y=-2, z=2},
- 0.1, 0.75, 1, 2, false, texture
- )
+ minetest.add_particlespawner({
+ amount = 15,
+ time = 0.3,
+ minpos = vector.subtract(pos, spread),
+ maxpos = vector.add(pos, spread),
+ minvel = {x=-1, y=1, z=-1},
+ maxvel = {x=1, y=2, z=1},
+ minacc = {x=-2, y=-2, z=-2},
+ maxacc = {x=2, y=-2, z=2},
+ minexptime = 0.1,
+ maxexptime = 0.75,
+ minsize = 1,
+ maxsize = 2,
+ collisiondetection = false,
+ texture = texture,
+ })
end
end
@@ -361,7 +371,7 @@ minetest.register_entity("castle_weapons:crossbow_bolt_entity", {
groups = {not_in_creative_inventory=1},
on_use = function(itemstack, user, pointed_thing)
minetest.sound_play("castle_crossbow_click", {object=user})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:add_wear(65535/CROSSBOW_USES)
end
itemstack = "castle_weapons:crossbow 1 "..itemstack:get_wear()
@@ -421,7 +431,7 @@ minetest.register_tool("castle_weapons:crossbow", {
local inv = user:get_inventory()
if inv:contains_item("main", "castle_weapons:crossbow_bolt") then
minetest.sound_play("castle_crossbow_reload", {object=user})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
inv:remove_item("main", "castle_weapons:crossbow_bolt 1")
end
return "castle_weapons:crossbow_loaded 1 "..itemstack:get_wear()
diff --git a/castle_weapons/locale/it.po b/castle_weapons/locale/it.po
new file mode 100644
index 0000000..e83b45f
--- /dev/null
+++ b/castle_weapons/locale/it.po
@@ -0,0 +1,31 @@
+# ITALIAN LOCALE FILE FOR THE CASTLE WEAPONS MODULE
+# Copyright (C) 2017 Philipbenr And DanDuncombe
+# This file is distributed under the same license as the CASTLE WEAPONS package.
+# Hamlet <h4mlet@riseup.net>, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Castle Weapons\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-02-25 19:35-0700\n"
+"PO-Revision-Date: 2017-09-10 22:49+0100\n"
+"Last-Translator: H4mlet <h4mlet@riseup.net>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Language: it\n"
+"X-Generator: Poedit 1.6.10\n"
+
+#: battleaxe.lua:8
+msgid "Battleaxe"
+msgstr "Ascia da guerra"
+
+#: crossbow.lua:244
+msgid "Bolt"
+msgstr "Quadrello"
+
+#: crossbow.lua:357 crossbow.lua:416
+msgid "Crossbow"
+msgstr "Balestra"