1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-06 00:23:49 +02:00

Bigger PvP shield sizes

This commit is contained in:
blubFisch 2022-10-12 19:28:38 +01:00
parent ce11951c8a
commit 049de72c88

View File

@ -4,6 +4,7 @@ local math_random = math.random
local table_insert = table.insert
local math_floor = math.floor
local math_sqrt = math.sqrt
local math_min = math.min
local table_shuffle = table.shuffle_table
local table_size = table.size
@ -407,11 +408,11 @@ local function add_pvp_shield_scaled(position, force, surface)
local evo = Evolution.get_highest_evolution()
local min_size = 60
local max_size = 120
local max_size = 140
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 = min_size + evo * (max_size - min_size)
local size = math_min(min_size + 2 * evo * (max_size - min_size), max_size) -- Size grows quicker but is still capped
PvPShield.add_shield(surface, force, position, size, lifetime_ticks, 60 * 60)
update_pvp_shields_display()