summaryrefslogtreecommitdiff
path: root/castle_weapons
diff options
context:
space:
mode:
Diffstat (limited to 'castle_weapons')
-rw-r--r--castle_weapons/crossbow.lua26
-rw-r--r--castle_weapons/locale/it.po31
2 files changed, 8 insertions, 49 deletions
diff --git a/castle_weapons/crossbow.lua b/castle_weapons/crossbow.lua
index 439f99b..f61b752 100644
--- a/castle_weapons/crossbow.lua
+++ b/castle_weapons/crossbow.lua
@@ -79,22 +79,12 @@ 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({
- 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,
- })
+ 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
+ )
end
end
@@ -371,7 +361,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.settings:get_bool("creative_mode") then
+ if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/CROSSBOW_USES)
end
itemstack = "castle_weapons:crossbow 1 "..itemstack:get_wear()
@@ -431,7 +421,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.settings:get_bool("creative_mode") then
+ if not minetest.setting_getbool("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
deleted file mode 100644
index e83b45f..0000000
--- a/castle_weapons/locale/it.po
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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"