Update 1.2

This commit is contained in:
Andrea Plati 2015-06-03 17:40:59 +02:00
parent 687a3bcd0b
commit b0171614c6
4 changed files with 23 additions and 9 deletions

View File

@ -20,9 +20,13 @@ Grahpics & sounds: CC-BY 3.0 (see http://creativecommons.org/licenses/by/3.0/leg
Changelog: Changelog:
Update 1.2:
- Added arbalest
- Defaults initialized
Update 1.1: Update 1.1:
- Added crossbow - Added crossbow
- Code shring - Code shrink
- Offensive arrows go through flora's and farming's - Offensive arrows go through flora's and farming's
- Small fixes - Small fixes

View File

@ -14,6 +14,8 @@ throwing_arrows = {
{"throwing:arrow_fireworks_red", "throwing:arrow_fireworks_red_entity"}, {"throwing:arrow_fireworks_red", "throwing:arrow_fireworks_red_entity"},
} }
dofile(minetest.get_modpath("throwing").."/defaults.lua")
local input = io.open(minetest.get_modpath("throwing").."/throwing.conf", "r") local input = io.open(minetest.get_modpath("throwing").."/throwing.conf", "r")
if input then if input then
dofile(minetest.get_modpath("throwing").."/throwing.conf") dofile(minetest.get_modpath("throwing").."/throwing.conf")

View File

@ -1,4 +1,4 @@
# You can disable any bow and arrow by writing lines like these inside throwing.conf # You can disable or disable any bow and arrow by writing lines like these inside throwing.conf
# #
# DISABLE_WOODEN_BOW = true # DISABLE_WOODEN_BOW = true
# #
@ -18,10 +18,10 @@
# DISABLE_CROSSBOW = true # DISABLE_CROSSBOW = true
# #
# #
# DISABLE_BUILD_ARROW = true # DISABLE_BUILD_ARROW = false
# #
# #
# DISABLE_DIG_ARROW = true # DISABLE_DIG_ARROW = false
# #
# #
# DISABLE_DIAMOND_ARROW = true # DISABLE_DIAMOND_ARROW = true
@ -36,16 +36,16 @@
# DISABLE_STEEL_ARROW = true # DISABLE_STEEL_ARROW = true
# #
# #
# DISABLE_STONE_ARROW = true # DISABLE_STONE_ARROW = false
# #
# #
# DISABLE_TELEPORT_ARROW = true # DISABLE_TELEPORT_ARROW = false
# #
# #
# DISABLE_FIRE_ARROW = true # DISABLE_FIRE_ARROW = false
# #
# #
# DISABLE_TNT_ARROW = true # DISABLE_TNT_ARROW = false
# #
# #
# DISABLE_TORCH_ARROW = true # DISABLE_TORCH_ARROW = true

View File

@ -39,9 +39,17 @@ if not DISABLE_ROYAL_BOW then
end end
if not DISABLE_CROSSBOW then if not DISABLE_CROSSBOW then
throwing_register_bow ('crossbow', 'Crossbow', {x=1, y=1, z=0.5}, 28, 5, 80, true, { throwing_register_bow ('crossbow', 'Crossbow', {x=1, y=1.3, z=0.5}, 28, 5, 80, true, {
{'group:wood', 'farming:string', ''}, {'group:wood', 'farming:string', ''},
{'default:steel_ingot', 'farming:string', 'group:wood'}, {'default:steel_ingot', 'farming:string', 'group:wood'},
{'group:wood', 'farming:string', ''}, {'group:wood', 'farming:string', ''},
}) })
end end
if not DISABLE_ARBALEST then
throwing_register_bow ('arbalest', 'Arbalest', {x=1, y=1.3, z=0.5}, 35, 7.5, 120, true, {
{'default:steel_ingot', 'farming:string', 'default:stick'},
{'default:steel_ingot', 'farming:string', 'default:steel_ingot'},
{'default:steel_ingot', 'farming:string', 'default:stick'},
})
end