# HG changeset patch # User Wuzzy # Date 1521931516 -3600 # Node ID 9ac674499985d5d2d0ffe44b3f99feea3ba8cc30 # Parent 7476c1a5073856e3fa00a81b17383ea03ad4bfb5 ShoppaMap: Can change map complexity with slider, remove script param “pad” diff -r 7476c1a50738 -r 9ac674499985 ChangeLog.txt --- a/ChangeLog.txt Sat Mar 24 23:13:57 2018 +0100 +++ b/ChangeLog.txt Sat Mar 24 23:45:16 2018 +0100 @@ -66,6 +66,8 @@ + HedgeEditor: Show cursor coordinates in top left corner + Control: Always remove TimeBox and Resurrector + Climb Home: Show messages when a fire cake is nearby and when you're inside home + + ShoppaMap: Map complexity can now be changed with the slider + + ShoppaMap: Remove script parameter “pad” * The Specialists: Less buggy hog switching at turn start * Mutant: When game ends due to all land being gone, declare the highest-scoring team the winner * Battalion: Some texts in the mission panel were wrong and misleading diff -r 7476c1a50738 -r 9ac674499985 share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua Sat Mar 24 23:13:57 2018 +0100 +++ b/share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua Sat Mar 24 23:45:16 2018 +0100 @@ -4,13 +4,11 @@ -- Overall padding for roping freedom local Padding = 430 +-- If true, rope assumes team color local TeamRope = false function onParameters() parseParams() - if params["pad"] ~= nil then - Padding = params["pad"] - end if params["teamrope"] ~= nil then TeamRope = true end @@ -329,6 +327,15 @@ end function onGameInit() + -- Calculate padding, determined by map feature size + if MapFeatureSize <= 20 then + -- 10 .. 710. Step size=35 + Padding = 10 + MapFeatureSize * 35 + else + -- 780 .. 1060. Step size=70 + Padding = 710 + (MapFeatureSize-20) * 70 + end + MapGen = mgDrawn TemplateFilter = 0 local TotGen = 0