1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-20 03:29:47 +02:00

Adjustments

This commit is contained in:
blubFisch 2022-10-16 12:17:52 +01:00
parent 33c1949e56
commit 225abff724
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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()