1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Added automated arbalest to throwing mod

- Chmod-ed all files
 - Removed whitespaces
 - Added automated arbalest in spreadsheet, throwing, and hunters' reserved items
 - Solves #206
This commit is contained in:
LeMagnesium 2015-08-11 12:01:55 +02:00
parent 21d9cc4203
commit aa2f62afb3
10 changed files with 15 additions and 0 deletions

View File

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 165 B

View File

@ -27,3 +27,4 @@ pclasses.api.register_class("hunter", {
pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_horn")
pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_horn_improved")
pclasses.api.reserve_item("hunter", "throwing:arrow_mithril")
pclasses.api.reserve_item("hunter", "throwing:arbalest_auto")

0
mods/pclasses/textures/pclasses_grave_button.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 241 B

After

Width:  |  Height:  |  Size: 241 B

View File

@ -20,6 +20,10 @@ Grahpics & sounds: CC-BY 3.0 (see http://creativecommons.org/licenses/by/3.0/leg
Changelog:
Update 1.3:
- Added automated arbalest, the ultimate weapon
- New arbalest texture coherent with steel color
Update 1.2:
- Added arbalest
- Defaults initialized

View File

@ -31,6 +31,7 @@ minetest.register_node("throwing:arrow_build_box", {
local THROWING_ARROW_ENTITY={
physical = false,
timer=0,
visual = "wielditem",
visual_size = {x=0.1, y=0.1},
textures = {"throwing:arrow_build_box"},
@ -43,6 +44,7 @@ local THROWING_ARROW_ENTITY={
}
THROWING_ARROW_ENTITY.on_step = function(self, dtime)
self.timer=self.timer+dtime
local newpos = self.object:getpos()
if self.lastpos.x ~= nil then
for _, pos in pairs(throwing_get_trajectoire(self, newpos)) do

0
mods/throwing/crafts.lua Normal file → Executable file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

View File

@ -69,3 +69,11 @@ if not DISABLE_ARBALEST then
{'default:steel_ingot', 'farming:string', 'default:stick'},
})
end
if not DISABLE_AUTOMATED_ARBALEST then
throwing_register_bow ('arbalest_auto', 'Automated arbalest', {x=1, y=1.3, z=0.5}, 40, 3.5, 60, true, {
{'default:steel_ingot', 'farming:string', 'default:mese_crystal'},
{'default:steel_ingot', 'farming:string', 'default:steel_ingot'},
{'default:steel_ingot', 'farming:string', 'default:mese_crystal'},
})
end

Binary file not shown.