Skip to content
Permalink
Browse files

Raise cost of hatch to make it 45 seconds to build

Lock automatic share levels without effecting direct sharing
Dramatically increase the energy cost across levels of Z units
  • Loading branch information...
ForbodingAngel committed Aug 13, 2019
1 parent 96c7fb1 commit 3c31b650bbc8e1c10d7125af7597e8f7de520bbe
Showing with 7 additions and 7 deletions.
  1. +4 −4 Gamedata/alldefs_post.lua
  2. +2 −2 LuaRules/Gadgets/share_levels.lua
  3. +1 −1 Units/zaal/buildings/zhatch.lua
@@ -514,15 +514,15 @@ function ModOptions_Post (UnitDefs, WeaponDefs)
-- Set Rules for Zaal race
if unitDef.customparams and unitDef.customparams.factionname == "zaal" then
unitDef.buildtime = unitDef.buildcostmetal / 4
unitDef.buildcostenergy = unitDef.buildcostmetal * 0.25
unitDef.buildcostenergy = unitDef.buildcostmetal * 2.5
if unitDef.customparams and unitDef.customparams.requiretech == "tech1" or unitDef.customparams and unitDef.customparams.isupgraded == "1" then
unitDef.buildcostenergy = unitDef.buildcostmetal * 2.5
unitDef.buildcostenergy = unitDef.buildcostmetal * 5
end
if unitDef.customparams and unitDef.customparams.requiretech == "tech2" or unitDef.customparams and unitDef.customparams.isupgraded == "2" then
unitDef.buildcostenergy = unitDef.buildcostmetal * 5
unitDef.buildcostenergy = unitDef.buildcostmetal * 7.5
end
if unitDef.customparams and unitDef.customparams.requiretech == "tech3" or unitDef.customparams and unitDef.customparams.isupgraded == "3" then
unitDef.buildcostenergy = unitDef.buildcostmetal * 7.5
unitDef.buildcostenergy = unitDef.buildcostmetal * 10
end
if unitDef.customparams and unitDef.customparams.noenergycost == true then
unitDef.buildcostenergy = 0
@@ -27,10 +27,10 @@ end
--------------------------------------------------------------------------------

local metalForce = true
local metalLevel = 50
local metalLevel = 101

local energyForce = true
local energyLevel = 75
local energyLevel = 101

-- for toggling
local prevMetal = false
@@ -11,7 +11,7 @@ buildSpeedModifier = 1

metalMultiplier = 1

buildCostMetal = 30
buildCostMetal = 90
energyUse = 0
energyMake = 0

0 comments on commit 3c31b65

Please sign in to comment.
You can’t perform that action at this time.