From 69d5c40c73414f560f313f974f37b810e58af9f5 Mon Sep 17 00:00:00 2001 From: savilli <78875209+savilli@users.noreply.github.com> Date: Sat, 8 May 2021 17:49:53 +0200 Subject: [PATCH 1/4] Add sword group to sword damage_groups (#879) * Add sword marker to damage_groups * Update init.lua Co-authored-by: LoneWolfHT --- mods/ctf/ctf_classes/melee.lua | 2 +- mods/ctf/ctf_events/init.lua | 2 +- .../textures/ctf_events_kill_unknown.png | Bin 0 -> 161 bytes mods/mtg/default/tools.lua | 10 +++++----- 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 mods/ctf/ctf_events/textures/ctf_events_kill_unknown.png diff --git a/mods/ctf/ctf_classes/melee.lua b/mods/ctf/ctf_classes/melee.lua index b1d176a..8cd894c 100644 --- a/mods/ctf/ctf_classes/melee.lua +++ b/mods/ctf/ctf_classes/melee.lua @@ -49,7 +49,7 @@ minetest.register_tool("ctf_classes:sword_bronze", { groupcaps={ snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=0, maxlevel=2}, }, - damage_groups = {fleshy=6}, + damage_groups = {fleshy=6, sword=1}, punch_attack_uses = 0, }, sound = {breaks = "default_tool_breaks"}, diff --git a/mods/ctf/ctf_events/init.lua b/mods/ctf/ctf_events/init.lua index f321831..18bf340 100644 --- a/mods/ctf/ctf_events/init.lua +++ b/mods/ctf/ctf_events/init.lua @@ -124,7 +124,7 @@ ctf.register_on_killedplayer(function(victim, killer, stack, tool_caps) local victim_color = ctf_colors.get_color(ctf.player(victim)) local killer_color = ctf_colors.get_color(ctf.player(killer)) - local type = "sword" + local type = "sword" -- Also used for unknown attacks if tool_caps.damage_groups.grenade then type = "grenade" diff --git a/mods/ctf/ctf_events/textures/ctf_events_kill_unknown.png b/mods/ctf/ctf_events/textures/ctf_events_kill_unknown.png new file mode 100644 index 0000000000000000000000000000000000000000..a2c5bcc446f5612f41a34b79ddcff17593c4d210 GIT binary patch literal 161 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa3-AeX1=5K?RKSp5lnZ1V8yh<~ zI5adgK-k|_aasadj3q&S!3+-1ZlnP@hMq2tAsp9}6C9WpE)V!Z literal 0 HcmV?d00001 diff --git a/mods/mtg/default/tools.lua b/mods/mtg/default/tools.lua index e28cd19..2bc313c 100644 --- a/mods/mtg/default/tools.lua +++ b/mods/mtg/default/tools.lua @@ -257,7 +257,7 @@ minetest.register_tool("default:sword_stone", { groupcaps={ snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1}, }, - damage_groups = {fleshy=4}, + damage_groups = {fleshy=4, sword=1}, }, sound = {breaks = "default_tool_breaks"}, }) @@ -271,7 +271,7 @@ minetest.register_tool("default:sword_bronze", { groupcaps={ snappy={times={[1]=2.75, [2]=1.30, [3]=0.375}, uses=25, maxlevel=2}, }, - damage_groups = {fleshy=6}, + damage_groups = {fleshy=6, sword=1}, }, sound = {breaks = "default_tool_breaks"}, }) @@ -285,7 +285,7 @@ minetest.register_tool("default:sword_steel", { groupcaps={ snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2}, }, - damage_groups = {fleshy=6}, + damage_groups = {fleshy=6, sword=1}, }, sound = {breaks = "default_tool_breaks"}, }) @@ -299,7 +299,7 @@ minetest.register_tool("default:sword_mese", { groupcaps={ snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=30, maxlevel=3}, }, - damage_groups = {fleshy=7}, + damage_groups = {fleshy=7, sword=1}, }, sound = {breaks = "default_tool_breaks"}, }) @@ -313,7 +313,7 @@ minetest.register_tool("default:sword_diamond", { groupcaps={ snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3}, }, - damage_groups = {fleshy=8}, + damage_groups = {fleshy=8, sword=1}, }, sound = {breaks = "default_tool_breaks"}, }) From c642f49d1a8e45e6257919fa372892bb47395a4e Mon Sep 17 00:00:00 2001 From: savilli <78875209+savilli@users.noreply.github.com> Date: Sun, 9 May 2021 01:40:17 +0200 Subject: [PATCH 2/4] Fix ctf_respawn_delay bug (#880) --- mods/ctf/ctf_respawn_delay/init.lua | 3 +-- mods/ctf/ctf_traps/init.lua | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/ctf/ctf_respawn_delay/init.lua b/mods/ctf/ctf_respawn_delay/init.lua index 8c73974..ab3b481 100644 --- a/mods/ctf/ctf_respawn_delay/init.lua +++ b/mods/ctf/ctf_respawn_delay/init.lua @@ -8,8 +8,7 @@ local RESPAWN_MESSAGE = "Respawning in " minetest.register_on_dieplayer(function(player, reason) local pname = player:get_player_name() - if ctf_match.is_in_build_time() or (reason.type == "punch" and reason.object and - reason.object:is_player() and reason.object:get_player_name() == pname) then + if ctf_match.is_in_build_time() or ctf_respawn_delay.players[pname] then -- what is dead may never die return end diff --git a/mods/ctf/ctf_traps/init.lua b/mods/ctf/ctf_traps/init.lua index db2f2a2..c65897e 100644 --- a/mods/ctf/ctf_traps/init.lua +++ b/mods/ctf/ctf_traps/init.lua @@ -63,7 +63,10 @@ minetest.register_node("ctf_traps:damage_cobble", { if placerobj then digger:punch(placerobj, 10, {damage_groups = {fleshy = 7}}, vector.new(0, 1, 0)) else - digger:set_hp(digger:get_hp() - 7) + local hp = digger:get_hp() + if hp > 0 then + digger:set_hp(hp - 7) + end end minetest.remove_node(pos) From 55ab1b46e1d83fe37697278dfc6c7f2a977e0a22 Mon Sep 17 00:00:00 2001 From: _Lucy <80708819+Lucyucy@users.noreply.github.com> Date: Sat, 15 May 2021 17:16:28 +0200 Subject: [PATCH 3/4] Increase paxel digging limit (#881) Increase paxel digging limit to 50 Co-authored-by: LoneWolfHT --- mods/ctf/ctf_classes/medic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_classes/medic.lua b/mods/ctf/ctf_classes/medic.lua index 7115c39..7a198a5 100644 --- a/mods/ctf/ctf_classes/medic.lua +++ b/mods/ctf/ctf_classes/medic.lua @@ -138,7 +138,7 @@ minetest.override_item("ctf_bandages:bandage", { local diggers = {} local DIG_COOLDOWN = 30 -local DIG_DIST_LIMIT = 30 +local DIG_DIST_LIMIT = 50 local DIG_SPEED = 0.1 local function isdiggable(name) From aa37d0375dad51ceefcb5977bec932bdcf05a2f1 Mon Sep 17 00:00:00 2001 From: Axaxax88 <74550391+Axaxax88@users.noreply.github.com> Date: Mon, 17 May 2021 17:06:26 +0200 Subject: [PATCH 4/4] Minor changes in classes.lua (#884) I changed the descriptions of some classes and removed bronze tools from medic crafting whitelist. --- mods/ctf/ctf_classes/classes.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mods/ctf/ctf_classes/classes.lua b/mods/ctf/ctf_classes/classes.lua index 043db92..bdbff8a 100644 --- a/mods/ctf/ctf_classes/classes.lua +++ b/mods/ctf/ctf_classes/classes.lua @@ -23,7 +23,7 @@ ctf_classes.register("knight", { ctf_classes.register("shooter", { description = "Sharp Shooter", - pros = { "Skilled with ranged weapons", "Can craft/use sniper rifles"}, + pros = { "Skilled with ranged weapons", "Can craft and use sniper rifles"}, cons = {"-25% health points"}, color = "#c60", properties = { @@ -72,7 +72,7 @@ ctf_classes.register("shooter", { ctf_classes.register("medic", { description = "Medic", - pros = { "x2 regen for nearby friendlies", "Building supplies + Paxel", "+10% speed" }, + pros = { "Building supplies + Paxel", "x2 regen for nearby teammates", "+10% speed" }, cons = {}, color = "#0af", properties = { @@ -94,10 +94,8 @@ ctf_classes.register("medic", { }, crafting = { - "default:axe_bronze", "default:axe_mese", "default:axe_diamond", - "default:shovel_bronze", "default:shovel_mese", "default:shovel_diamond", }