Preparation for a new class

This commit is contained in:
philipmi 2022-09-19 14:27:03 +02:00
parent ea20089d4c
commit e17faefa86
6 changed files with 38 additions and 1 deletions

View file

@ -188,3 +188,26 @@ ctf_classes.register("rocketeer", {
},
},
})
--[[ctf_classes.register("axefighter", {
description = "Axe Fighter",
pros = { "* Equipped with battleaxe" },
cons = {},
color = "#96a",
properties = {
initial_stuff = {
"ctf_classes:battleaxe"
},
allowed_guns = {
"shooter_guns:pistol",
},
crafting = {
"default:axe_bronze",
"default:axe_mese",
"default:axe_diamond",
},
},
})
]]--

View file

@ -62,7 +62,7 @@ function ctf_classes.show_gui(name, player)
fs[#fs + 1] = "container_end[]"
x = x + 1
if x > 3 then
if x > 4 then
x = 0
y = y + 1
end

View file

@ -129,3 +129,17 @@ end)
ctf.register_on_new_game(function()
sword_special_timer = {}
end)
minetest.register_tool("ctf_classes:battleaxe", {
inventory_image = "ctf_classes_axefighter.png",
tool_capabilities = {
full_punch_interval = 3,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.75, [2]=1.70, [3]=1.15}, uses=0, maxlevel=2},
},
damage_groups = {fleshy=10},
punch_attack_uses = 0,
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB