Slightly buff shooter class and knight melee dmg

This commit is contained in:
LoneWolfHT 2020-10-31 09:44:50 -07:00
parent 8ad0692a9a
commit ae0b967001
3 changed files with 6 additions and 4 deletions

View file

@ -28,7 +28,7 @@ ctf_classes.register("shooter", {
color = "#c60",
properties = {
allow_grapples = true,
max_hp = 15,
max_hp = 16,
initial_stuff = {
"shooter_guns:rifle_loaded",

View file

@ -3,8 +3,10 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
local class = ctf_classes.get(hitter)
if class.properties.melee_bonus and hitter:get_wielded_item():get_name():find("sword") then
if time_from_last_punch > 0.75 then
time_from_last_punch = 0.75
if time_from_last_punch > 1 then
time_from_last_punch = 1
elseif time_from_last_punch < 0.5 then
time_from_last_punch = 0.5
end
player:punch(hitter, 1, {damage_groups = {fleshy = time_from_last_punch*2, nopunch = 1}}, dir)

@ -1 +1 @@
Subproject commit e58d27dd79b17971e009dc6e474b7ceefd71d17d
Subproject commit f74ea4e0be201c2b5837122fe73852375e19f5cc