Permalink
Browse files

Fixed errors with AI nuke and arty

  • Loading branch information...
Damgam committed Oct 10, 2017
1 parent 739a07c commit c6c5b6a0240a227c65092e3cf5d1dab013e97cb2
View
Binary file not shown.
@@ -11,7 +11,7 @@ local techrequired = [[tech3]]
local weapon1Damage = 1000
local weapon1AOE = 500
local energycosttofire = weapon1Damage / 10 * ((weapon1AOE / 1000) + 1)
--local energycosttofire = weapon1Damage / 10 * ((weapon1AOE / 1000) + 1)
local buildCostMetal = 500
local maxDamage = buildCostMetal * 12.5
@@ -117,7 +117,7 @@ local weaponDefs = {
cegTag = "artyshot2",
avoidNeutral = false,
explosionGenerator = "custom:NUKEDATBEWMSMALL",
energypershot = energycosttofire,
energypershot = 50,
edgeEffectiveness = 1,
impulseFactor = 0,
@@ -14,11 +14,11 @@ local weapon1AOE = 1500
local energycosttofire = weapon1Damage / 10 * ((weapon1AOE / 1000) + 1)
--local stockpiletime = 60
local function roundToFirstDecimal(energycosttofire)
return math.floor(energycosttofire*10 + 0.5)*0.1
end
--local function roundToFirstDecimal(energycosttofire)
--return math.floor(energycosttofire*10 + 0.5)*0.1
--end
local buildCostMetal = 1250
local buildCostMetal = 500
local maxDamage = buildCostMetal * 12.5
local unitDef = {
@@ -131,7 +131,7 @@ local weaponDefs = {
craterBoost = 0,
craterMult = 0,
edgeeffectiveness = 1,
energypershot = energycosttofire,
energypershot = 50,
explosionGenerator = "custom:nukedatbewm",
fireStarter = 100,
flightTime = 400,

0 comments on commit c6c5b6a

Please sign in to comment.