Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 1.3X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 1.3X HP
--NuttyB v1.52 1.3X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.5
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 1.3
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.576923077)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.576923077)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 1.5X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 1.5X HP
--NuttyB v1.52 1.5X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.5
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 1.5
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.466666667)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.466666667)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 1.7X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 1.7X HP
--NuttyB v1.52 1.7X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.5
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 1.7
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.411764706)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.411764706)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 2.0X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 2X HP
--NuttyB v1.52 2X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.5
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 2
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.35)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.35)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 2.5X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 2.5X HP
--NuttyB v1.52 2.5X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.6
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 2.5
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.3)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.3)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 3.0X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 3X HP
--NuttyB v1.52 3X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.55
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 3
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.25)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.25)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 4.0X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 4X HP
--NuttyB v1.52 4X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.45
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 4
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.1875)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.1875)
end
end
end
18 changes: 9 additions & 9 deletions lua/tweakdefs/raptor hp 5.0X.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
-- NuttyB v1.52 5X HP
--NuttyB v1.52 5X HP
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
for unitName, unitDef in pairs(UnitDefs) do
if string.sub(unitName, 1, 24) == "raptor_land_swarmer_heal" then
unitDef.reclaimspeed = 100
unitDef.stealth = 0
unitDef.builder = 0
unitDef.stealth = false
unitDef.builder = false
unitDef.workertime = unitDef.workertime * 0.25
unitDef.canassist = 0
unitDef.canassist = false
unitDef.maxthisunit = 0
end

if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health and not unitName:match('^raptor_queen_.*') then
unitDef.health = unitDef.health * 5
unitDef.sfxtypes = {}
unitDef.explodas = unitDef.explodas
unitDef.nochasecategory = "OBJECT"
end
end

Expand All @@ -24,9 +23,10 @@ function UnitDef_Post(unitID, unitDef)
oldUnitDef_Post(unitID, unitDef)
end

for unitName, def in pairs(UnitDefs) do
if def.customparams and def.customparams.subfolder == "other/raptors" and def.health then
def.metalcost = math.floor(def.health * 0.15)
if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
unitDef.nochasecategory = "OBJECT"
if unitDef.metalcost and unitDef.health then
unitDef.metalcost = math.floor(unitDef.health * 0.15)
end
end
end
13 changes: 8 additions & 5 deletions lua/tweakunits1.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--NuttyB v1.52b Legion Com
--NuttyB v1.52c Legion Com
-- Authors: ChrispyNut, BackBash
-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
return {
Expand All @@ -16,7 +16,7 @@ return {
},
customparams = {
evolution_target = 'legcomlvl2',
evolution_condition = 'timer',
evolution_condition = 'timer_global',
evolution_timer = 420
},
weapondefs = {
Expand Down Expand Up @@ -96,7 +96,8 @@ return {
autoheal = 100,
health = 6700,
customparams = {
evolution_timer = 600
evolution_condition = 'timer_global',
evolution_timer = 1020
},
buildoptions = {
[1] = 'legrezbot',
Expand Down Expand Up @@ -215,7 +216,8 @@ return {
autoheal = 150,
health = 7500,
customparams = {
evolution_timer = 420
evolution_condition = 'timer_global',
evolution_timer = 1440
},
buildoptions = {
[1] = 'legdeflector',
Expand Down Expand Up @@ -345,7 +347,8 @@ return {
autoheal = 180,
health = 24500,
customparams = {
evolution_timer = 300
evolution_condition = 'timer_global',
evolution_timer = 1740
},
buildoptions = {
[1] = 'legdeflector',
Expand Down
Loading