From db5948c2192bf316d0bacfbac3be3733b1fa5e33 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 13 Mar 2020 23:53:30 +0000 Subject: [PATCH] Tweak stats --- mods/ctf/ctf_classes/gui.lua | 10 +++++----- mods/ctf/ctf_classes/init.lua | 14 ++++++-------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/mods/ctf/ctf_classes/gui.lua b/mods/ctf/ctf_classes/gui.lua index 2cf066f..9d2aef2 100644 --- a/mods/ctf/ctf_classes/gui.lua +++ b/mods/ctf/ctf_classes/gui.lua @@ -2,12 +2,12 @@ function ctf_classes.show_gui(name, player) player = player or minetest.get_player_by_name(name) assert(player.get_player_name) if not ctf_classes.can_change(player) then - minetest.chat_send_player(name, "Move closer to your flag to change classes!") + minetest.chat_send_player(name, "Move closer to the flag to change classes!") return end local fs = { - "size[9,3.2]" + "size[9,3.4]" } @@ -45,7 +45,7 @@ function ctf_classes.show_gui(name, player) for i, item in pairs(class.properties.items or {}) do fs[#fs + 1] = "item_image[" fs[#fs + 1] = tostring(i * 0.5 - 0.4) - fs[#fs + 1] = ",2.15;0.5,0.5;" + fs[#fs + 1] = ",2.25;0.5,0.5;" fs[#fs + 1] = minetest.formspec_escape(ItemStack(item):get_name()) fs[#fs + 1] = "]" @@ -53,13 +53,13 @@ function ctf_classes.show_gui(name, player) fs[#fs + 1] = "tooltip[" fs[#fs + 1] = tostring(i * 0.5 - 0.4) - fs[#fs + 1] = ",2.15;0.5,0.5;" + fs[#fs + 1] = ",2.25;0.5,0.5;" fs[#fs + 1] = minetest.formspec_escape(desc) fs[#fs + 1] = "]" end - fs[#fs + 1] = "button_exit[0.5,2.7;2,1;select_" + fs[#fs + 1] = "button_exit[0.5,2.9;2,1;select_" fs[#fs + 1] = class.name fs[#fs + 1] = ";Select]" fs[#fs + 1] = "container_end[]" diff --git a/mods/ctf/ctf_classes/init.lua b/mods/ctf/ctf_classes/init.lua index f7a90a5..e6d2734 100644 --- a/mods/ctf/ctf_classes/init.lua +++ b/mods/ctf/ctf_classes/init.lua @@ -21,21 +21,21 @@ ctf_classes.register("knight", { max_hp = 30, speed = 0.90, + items = { + "default:sword_steel", + }, + allowed_guns = { "shooter:pistol", "shooter:smg", "shooter:shotgun", }, - - items = { - "default:sword_steel", - }, }, }) ctf_classes.register("shooter", { description = "Sharp Shooter", - pros = { "+10% ranged skill" }, + pros = { "+50% range", "+20% faster shooting" }, cons = {}, color = "#c60", properties = { @@ -61,11 +61,9 @@ ctf_classes.register("shooter", { ctf_classes.register("medic", { description = "Medic", pros = { "x2 regen for nearby friendlies" }, - cons = { "-50% Health Points" }, + cons = {}, color = "#0af", properties = { - max_hp = 10, - items = { "ctf_bandages:bandage 20", },