1
0
mirror of https://gitlab.com/echoes91/throwing.git synced 2025-06-30 07:10:22 +02:00

0.9.8, new damage system and fixed reload bug

This commit is contained in:
echoes91
2015-03-15 22:42:02 +01:00
parent 31e4dea2b6
commit 280afde321
9 changed files with 20 additions and 17 deletions

View File

@ -79,7 +79,8 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
for k, obj in pairs(objs) do
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "throwing:arrow_shell_entity" and obj:get_luaentity().name ~= "__builtin:item" then
local damage = 16
local speed = vector.length(self.object:getvelocity())
local damage = ((speed + 5)^1.2)/10 + 12
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=damage},