Skip to content

Commit

Permalink
Get the tech structure all set up and set some tentative balance for …
Browse files Browse the repository at this point in the history
…Zaal
  • Loading branch information
ForbodingAngel committed Jul 6, 2019
1 parent 1ac93af commit 727b15f
Show file tree
Hide file tree
Showing 29 changed files with 163 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Gamedata/unitdefs_pre.lua
Expand Up @@ -72,7 +72,7 @@ Shared.buildListZaal = {

Shared.buildListZaalArm = {
[[zarm]],
[[zhive]],
[[zhatch]],
}

local turrets = {
Expand Down
32 changes: 32 additions & 0 deletions LuaRules/Configs/morph_defs.lua
Expand Up @@ -53,6 +53,12 @@ local timeToBuild_etech2 = energyCost_etech2 * 0.10
local energyCost_etech3 = 4000
local timeToBuild_etech3 = energyCost_etech3 * 0.10
local energyCost_zlair = 2000
local timeToBuild_zlair = energyCost_zlair * 0.10
local energyCost_zhive = 4000
local timeToBuild_zhive = energyCost_zhive * 0.10
local energyCost_elightturret2 = 150
local timeToBuild_elightturret2 = energyCost_elightturret2 * 0.10
Expand Down Expand Up @@ -1224,6 +1230,32 @@ Evolution]],
},
},

----------------------------------------------------------
----------------------------------------------------------

zhatch = {
{
into = 'zlair',
time = timeToBuild_zlair,
cmdname = [[Lair
Evolution]],
energy = energyCost_zlair,
metal = 0,
text = 'Evolve into a Lair.',
},
},
zlair = {
{
into = 'zhive',
time = timeToBuild_zhive,
cmdname = [[Hive
Evolution]],
energy = energyCost_zhive,
metal = 0,
text = 'Evolve into a Hive.',
},
},

----------------------------------------------------------
----------------------------------------------------------

Expand Down
Expand Up @@ -4,7 +4,7 @@ unitDef = {
airHoverFactor = 0,
--brakeRate = 1,
buildCostEnergy = 0,
buildCostMetal = 53,
buildCostMetal = 60,
buildTime = 2.5,
buildpic = "zaal_unitpics/zairbomber.png",
canAttack = true,
Expand Down
2 changes: 1 addition & 1 deletion Units-Configs-Basedefs/basedefs/zaal/zairscout_basedef.lua
Expand Up @@ -4,7 +4,7 @@ unitDef = {
bankscale = "1",
brakeRate = 0.7,
buildCostEnergy = 0,
buildCostMetal = 33,
buildCostMetal = 5,
buildTime = 2.5,
buildpic = "zaal_unitpics/zairscout.png",
canAttack = true,
Expand Down
Expand Up @@ -4,7 +4,7 @@ unitDef = {
airHoverFactor = 0,
--brakeRate = 1,
buildCostEnergy = 0,
buildCostMetal = 53,
buildCostMetal = 30,
buildTime = 2.5,
buildpic = "zaal_unitpics/zairtoairfighter.png",
canAttack = true,
Expand Down
1 change: 1 addition & 0 deletions Units-Configs-Basedefs/basedefs/zaal/zarm_basedef.lua
Expand Up @@ -81,6 +81,7 @@ unitDef = {
customParams = {
unittype = "building",
area_mex_def = "zhive",
ProvideTech = techprovided,
canbetransported = "false",
needed_cover = 1,
death_sounds = "generic",
Expand Down
6 changes: 3 additions & 3 deletions Units-Configs-Basedefs/basedefs/zaal/zarty_basedef.lua
Expand Up @@ -104,7 +104,7 @@ weaponDefs = {
Artilleryweapon = {

accuracy = 500,
AreaOfEffect = 50,
AreaOfEffect = 250,
avoidFriendly = false,
avoidFeature = false,
collideFriendly = false,
Expand All @@ -119,7 +119,7 @@ weaponDefs = {
interceptedByShieldType = 4,
highTrajectory = 0,
name = "Plasma Cannon",
range = 1300,
range = 1500,
reloadtime = 5,
size = 16,
weaponType = "Cannon",
Expand All @@ -133,7 +133,7 @@ weaponDefs = {
nofriendlyfire = 1,
},
damage = {
default = 200,
default = 600,
},
},
}
6 changes: 3 additions & 3 deletions Units-Configs-Basedefs/basedefs/zaal/zassault_basedef.lua
Expand Up @@ -2,7 +2,7 @@ unitDef = {
acceleration = 1,
brakeRate = 1,
buildCostEnergy = 0,
buildCostMetal = 59,
buildCostMetal = 75,
builder = false,
buildTime = 5,
buildpic = "zaal_unitpics/zskirmisher.png",
Expand All @@ -24,7 +24,7 @@ unitDef = {
idleAutoHeal = .5,
idleTime = 2200,
leaveTracks = false,
maxDamage = 375,
maxDamage = 600,
maxSlope = 26,
maxVelocity = 3.5,
maxReverseVelocity = 1,
Expand Down Expand Up @@ -132,7 +132,7 @@ weaponDefs = {
nofriendlyfire = 1,
},
damage = {
default = 325,
default = 500,
},
},
}
18 changes: 11 additions & 7 deletions Units-Configs-Basedefs/basedefs/zaal/zhive_basedef.lua
Expand Up @@ -16,13 +16,13 @@ unitDef = {
canRepair = true,
canstop = true,
category = "BUILDING NOTAIR",
description = [[Build a Tech Facility to unlock units. Build Supply Depots to increase your army size.]],
description = [[Upgrade to get more supply and Metal/Energy Income and unlock new Tech]],
energyStorage = 0,
energyUse = 0,
energyMake = 0,
energyUse = energyUse,
energyMake = energyMake,
explodeAs = "hugeBuildingExplosionGeneric",
footprintX = 8,
footprintZ = 8,
footprintX = footprintX,
footprintZ = footprintZ,
floater = true,
iconType = "factory",
idleAutoHeal = .5,
Expand All @@ -31,7 +31,11 @@ unitDef = {
maxSlope = 25,
maxWaterDepth = 99999999999,
metalStorage = 0,
<<<<<<< HEAD
metalMake = 1,
=======
metalMake = metalMultiplier,
>>>>>>> Get the tech structure all set up and set some tentative balance for Zaal
name = humanName,
objectName = objectName,
script = script,
Expand All @@ -46,7 +50,7 @@ unitDef = {
unitname = unitName,
-- unitRestricted = 1,
workerTime = 1,
yardMap = "oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo",
yardMap = yardMap,
-- usePieceCollisionVolumes = true,
-- modelCenterOffset = {108, 10, 0},
sfxtypes = {
Expand All @@ -55,7 +59,7 @@ unitDef = {
},

explosiongenerators = {
"custom:blacksmoke",
primaryCEG,
"custom:blood_spray",
},
},
Expand Down
Expand Up @@ -129,7 +129,7 @@ weaponDefs = {
nofriendlyfire = 1,
},
damage = {
default = 10,
default = 25,
},
},
}
2 changes: 1 addition & 1 deletion Units-Configs-Basedefs/basedefs/zaal/zmedswarm_basedef.lua
Expand Up @@ -128,7 +128,7 @@ weaponDefs = {
nofriendlyfire = 1,
},
damage = {
default = 50,
default = 60,
},
},
}
4 changes: 2 additions & 2 deletions Units-Configs-Basedefs/basedefs/zaal/zqueen_basedef.lua
Expand Up @@ -2,7 +2,7 @@ unitDef = {
acceleration = 1,
brakeRate = 1,
buildCostEnergy = 0,
buildCostMetal = 59,
buildCostMetal = 2500,
builder = false,
buildTime = 5,
buildpic = "zaal_unitpics/zqueen.png",
Expand All @@ -24,7 +24,7 @@ unitDef = {
idleAutoHeal = .5,
idleTime = 2200,
leaveTracks = false,
maxDamage = 375,
maxDamage = 15000,
maxSlope = 26,
maxVelocity = 3.5,
maxReverseVelocity = 1,
Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zairbomber.lua
Expand Up @@ -13,7 +13,7 @@ objectName = "zaal/zairbomber.s3o"
script = "zaal/zairbomber.cob"


tech = [[5 hive]]
tech = [[tech2]]
armortype = [[light]]
supply = [[2]]

Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zairscout.lua
Expand Up @@ -12,7 +12,7 @@ script = "zaal/zairscout.cob"

armortype = [[light]]

tech = [[1 hive]]
tech = [[tech0]]

supply = [[1]]

Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zairtoairfighter.lua
Expand Up @@ -13,7 +13,7 @@ objectName = "zaal/zairtoairfighter.s3o"
script = "zaal/zairtoairfighter.cob"


tech = [[4 hive]]
tech = [[tech1]]
armortype = [[light]]
supply = [[2]]

Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zairtogroundfighter.lua
Expand Up @@ -13,7 +13,7 @@ objectName = "zaal/zairtogroundfighter.s3o"
script = "zaal/zairtogroundfighter.cob"


tech = [[4 hive]]
tech = [[tech2]]
armortype = [[light]]
supply = [[2]]

Expand Down
1 change: 1 addition & 0 deletions Units/zaal/zarm.lua
Expand Up @@ -13,6 +13,7 @@ objectName = "zaal/zarm.s3o"
script = "zaal/zarm_lus.lua"

armortype = [[building]]
techprovided = [[tech0]]

VFS.Include("units-configs-basedefs/basedefs/zaal/zarm_basedef.lua")

Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zarty.lua
Expand Up @@ -12,7 +12,7 @@ humanName = "Trike"
objectName = "zaal/zarty.s3o"
script = "zaal/zarty.cob"

tech = [[6 hive]]
tech = [[tech2]]
armortype = [[armored]]
supply = [[4]]

Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zassault.lua
Expand Up @@ -12,7 +12,7 @@ humanName = "Trike"
objectName = "zaal/zassault.s3o"
script = "zaal/zassault.cob"

tech = [[6 hive]]
tech = [[tech2]]
armortype = [[armored]]
supply = [[4]]

Expand Down
38 changes: 38 additions & 0 deletions Units/zaal/zhatch.lua
@@ -0,0 +1,38 @@
-- UNITDEF -- ZHATCH --
--------------------------------------------------------------------------------

unitName = [[zhatch]]

--------------------------------------------------------------------------------

metalMultiplier = 1

buildCostMetal = 30
energyUse = 0
energyMake = 0

supplygranted = 20

footprintX = 8
footprintZ = 8

yardMap = [[oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo]]

primaryCEG = "custom:fusionreactionnuclear-2color"

humanName = [[Zaal Hatchery]]

objectName = [[zaal/zhive.s3o]]
script = [[zaal/zhive.cob]]

techprovided = [[tech1, tech0]]
armortype = [[building]]

VFS.Include("units-configs-basedefs/basedefs/zaal/zhive_basedef.lua")

unitDef.weaponDefs = weaponDefs
--------------------------------------------------------------------------------

return lowerkeys({ [unitName] = unitDef })

--------------------------------------------------------------------------------
16 changes: 11 additions & 5 deletions Units/zaal/zhive.lua
Expand Up @@ -5,21 +5,27 @@ unitName = [[zhive]]

--------------------------------------------------------------------------------

metalMultiplier = 1
metalMultiplier = 2

buildCostMetal = 30
buildCostMetal = 300
energyUse = 0
energyMake = 20

supplygranted = 40
supplygranted = 60

primaryCEG = "custom:fusionreactionnuclear-1color"
footprintX = 8
footprintZ = 8

yardMap = [[oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo]]

primaryCEG = "custom:fusionreactionnuclear-4color"

humanName = [[Zaal Hive]]

objectName = [[zaal/zhive.s3o]]
script = [[zaal/zhive.cob]]

techprovided = [[1 hive]]
techprovided = [[tech3, tech2, tech1, tech0]]
armortype = [[building]]

VFS.Include("units-configs-basedefs/basedefs/zaal/zhive_basedef.lua")
Expand Down
2 changes: 1 addition & 1 deletion Units/zaal/zkamikaze.lua
Expand Up @@ -12,7 +12,7 @@ humanName = "Trike"
objectName = "zaal/zkamikaze.s3o"
script = "zaal/zkamikaze.cob"

tech = [[6 hive]]
tech = [[tech2]]
armortype = [[armored]]
supply = [[4]]

Expand Down

0 comments on commit 727b15f

Please sign in to comment.