From 225abff724c2235526f38015e7468afc31c26a74 Mon Sep 17 00:00:00 2001 From: blubFisch Date: Sun, 16 Oct 2022 12:17:52 +0100 Subject: [PATCH] Adjustments --- maps/scrap_towny_ffa/info.lua | 5 +++-- maps/scrap_towny_ffa/town_center.lua | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/maps/scrap_towny_ffa/info.lua b/maps/scrap_towny_ffa/info.lua index 7ae406e0..b76a17c7 100644 --- a/maps/scrap_towny_ffa/info.lua +++ b/maps/scrap_towny_ffa/info.lua @@ -13,10 +13,11 @@ Have fun and be comfy ^.^]] local info_adv = [[ -# Changelog (10th-15th October 2022): +# Changelog (10th-16th October 2022): + - PvP shields now prevent building inside - Combat balance overhaul - Town player limit fixes - - Towns have an initial PvP protection shield, size and duration is scaled with the biggest town size + - Towns have an initial PvP protection shield - size and duration is scaled with the biggest town size - Temporary PvP shield available in market for breaks / AFK - Improved base defenses and offline survivability - Loads of bugfixes including freezes and desyncs diff --git a/maps/scrap_towny_ffa/town_center.lua b/maps/scrap_towny_ffa/town_center.lua index 2a9ed419..07b38187 100644 --- a/maps/scrap_towny_ffa/town_center.lua +++ b/maps/scrap_towny_ffa/town_center.lua @@ -408,11 +408,11 @@ local function add_pvp_shield_scaled(position, force, surface) local evo = Evolution.get_highest_evolution() local min_size = 70 - local max_size = 140 + local max_size = 150 local min_duration = 0.5 * 60 * 60 * 60 local max_duration = 8 * 60 * 60 * 60 - local lifetime_ticks = min_duration + evo * (max_duration - min_duration) - local size = math_min(min_size + 2 * evo * (max_size - min_size), max_size) -- Size grows quicker but is still capped + local lifetime_ticks = math_min(min_duration + 2 * evo * (max_duration - min_duration), max_duration) + local size = math_min(min_size + 2 * evo * (max_size - min_size), max_size) PvPShield.add_shield(surface, force, position, size, lifetime_ticks, 60 * 60) update_pvp_shields_display()