Skip to content

Commit

Permalink
Remove sell ability
Browse files Browse the repository at this point in the history
Update Sidedata
Add energycost override customparam
Increase cost of tech 1 facility so that it drains more energy than is default produced
Increase costs of factories on ateran side
Time early game so that ateran amphibs and zaal units will pop out at the same time if the player is going for a rush build
remove the extra orbs granted to ateran players on game start
  • Loading branch information
ForbodingAngel committed Apr 5, 2021
1 parent f267fdb commit 161d913
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 28 deletions.
6 changes: 6 additions & 0 deletions Gamedata/alldefs_post.lua
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ function ModOptions_Post (UnitDefs, WeaponDefs)
if unitDef.customparams and unitDef.customparams.noenergycost == true then
unitDef.buildcostenergy = 0
end
if unitDef.customparams and unitDef.customparams.buildcostenergyoverride ~= nil then
unitDef.buildcostenergy = unitDef.customparams.buildcostenergyoverride
end
end

-- Set Rules for Zaal race
Expand All @@ -564,6 +567,9 @@ function ModOptions_Post (UnitDefs, WeaponDefs)
if unitDef.customparams and unitDef.customparams.noenergycost == true then
unitDef.buildcostenergy = 0
end
if unitDef.customparams and unitDef.customparams.buildcostenergyoverride ~= nil then
unitDef.buildcostenergy = unitDef.customparams.buildcostenergyoverride
end
end

-- This is a catchall for units that don't have a factionname declared
Expand Down
20 changes: 10 additions & 10 deletions Gamedata/sidedata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ local sideData = {
Rank = {1.00, 0.90, 0.50, 1},
},
},
[3] = {
name = 'Pattern',
startunit = 'xcommander',
startunitai = 'xcommander',
uiSets = {
Main = {0.40, 0.20, 0.70, 1},
Trim = {1.00, 0.80, 0.00, 1},
Rank = {1.00, 0.90, 0.50, 1},
},
},
-- [3] = {
-- name = 'Pattern',
-- startunit = 'xcommander',
-- startunitai = 'xcommander',
-- uiSets = {
-- Main = {0.40, 0.20, 0.70, 1},
-- Trim = {1.00, 0.80, 0.00, 1},
-- Rank = {1.00, 0.90, 0.50, 1},
-- },
-- },
}
return sideData
2 changes: 1 addition & 1 deletion LuaRules/Gadgets/GreenBean_sell.locals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function gadget:GetInfo()
date = "2008-06-12",
license = "Public Domain",
layer = 300,
enabled = true
enabled = false
}
end

Expand Down
4 changes: 2 additions & 2 deletions LuaRules/Gadgets/game_spawn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ local function SpawnStartUnit(teamID)
local unitID = Spring.CreateUnit(startUnit, x, y, z, facing, teamID)
-- Fun times
if startUnit == "ecommander" then
id1=Spring.CreateUnit("eorb", x+100, y+200, z, facing, teamID)
id1=Spring.CreateUnit("eorb", x-100, y-200, z, facing, teamID)
--id1=Spring.CreateUnit("eorb", x+100, y+200, z, facing, teamID)
--id1=Spring.CreateUnit("eorb", x-100, y-200, z, facing, teamID)
--Spring.GiveOrderToUnit(id1,CMD.GUARD,{unitID}, {"shift"})
end
if startUnit == "zarm" then
Expand Down
2 changes: 1 addition & 1 deletion ModOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ local options= {
desc = 'This acts as a percentage of base unit health. Setting to 200 would double unit hitpoints.',
type = 'number',
section= 'gameplayoptions',
def = 50,
def = 250,
min = 1,
max = 400,
step = 1, -- quantization is aligned to the def value
Expand Down
2 changes: 1 addition & 1 deletion Units-Configs-Basedefs/basedefs/air/eairplant_basedef.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
unitDef = {
activatewhenbuilt = true,
buildCostEnergy = 0,
buildCostMetal = 30,
buildCostMetal = buildCostMetal,
builder = true,
buildTime = 2.5,
buildpic = "eairplant.png",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ weaponDefs = {
name = "E.M.G.",
range = 650,
reloadtime = 1,
projectiles = 5,
--projectiles = 5,
weaponType = "LaserCannon",
soundStart = "weapons/shotgun-reload.wav",
soundTrigger = true,
sprayAngle = 500,
--sprayAngle = 500,
texture1 = "shot",
texture2 = "empty",
coreThickness = 0.3,
coreThickness = 0.6,
thickness = 6,
tolerance = 10000,
turret = true,
Expand All @@ -145,7 +145,7 @@ weaponDefs = {
isupgraded = isUpgraded,
},
damage = {
default = 10,
default = 50,
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ weaponDefs = {
name = "E.M.G.",
range = 650*1.33,
reloadtime = 1,
projectiles = 5,
--projectiles = 5,
weaponType = "LaserCannon",
soundStart = "weapons/shotgun-reload.wav",
soundTrigger = true,
sprayAngle = 500,
texture1 = "shot",
texture2 = "empty",
coreThickness = 0.3,
coreThickness = 0.6,
thickness = 6,
tolerance = 10000,
turret = true,
Expand All @@ -143,7 +143,7 @@ weaponDefs = {
isupgraded = isUpgraded,
},
damage = {
default = 10,
default = 50,
},
},
}
2 changes: 1 addition & 1 deletion Units/eair/eairplant.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unitName = "eairplant"

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

buildCostMetal = 30
buildCostMetal = 60
maxDamage = buildCostMetal * 12.5

humanName = [[VTOL Factory]]
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eminifac.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unitName = "eminifac"

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

buildCostMetal = 30
buildCostMetal = 60
maxDamage = buildCostMetal * 12.5

humanName = [[All-Terrain Strider Factory]]
Expand Down
2 changes: 1 addition & 1 deletion Units/eamphib/eamphibfac.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unitName = "eamphibfac"

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

buildCostMetal = 30
buildCostMetal = 60
maxDamage = buildCostMetal * 12.5

humanName = [[Amphibious Tank Factory]]
Expand Down
1 change: 1 addition & 0 deletions Units/ebuilding/etech1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ local unitDef = {
-- groundtexselectxsize = 500, -- optional
-- groundtexselectzsize = 500, -- optional
helptext = [[]],
buildcostenergyoverride = 800,
},
useGroundDecal = true,
BuildingGroundDecalType = "factorygroundplate.dds",
Expand Down
2 changes: 1 addition & 1 deletion Units/ehbot/mobile/ehbotfac.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unitName = "ehbotfac"

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

buildCostMetal = 30
buildCostMetal = 60
maxDamage = buildCostMetal * 12.5

humanName = [[H-Bot Factory]]
Expand Down
2 changes: 1 addition & 1 deletion Units/ehover/ebasefactory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unitName = "ebasefactory"

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

buildCostMetal = 30
buildCostMetal = 60
maxDamage = buildCostMetal * 12.5

humanName = "Hover Factory"
Expand Down
3 changes: 2 additions & 1 deletion modinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ return {
name='Evolution RTS -',
description='EvoRTS',
shortname='EvoRTS',
version='v15.02',
version='dev',
mutator='Official',
game='Evolution RTS',
shortGame='EvoRTS',
modtype=1,
depend = {
"Evolution RTS Music Addon v2",
-- "Spring Features v1.9",
-- "Evolution RTS Music Addon v1",
-- "Shard LuaAI $VERSION",
Expand Down

0 comments on commit 161d913

Please sign in to comment.