Skip to content

Commit

Permalink
more flight cost tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Aug 22, 2018
1 parent 8858b66 commit 7c417ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
16 changes: 9 additions & 7 deletions stats/effects/passive/foodcost.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ function init()
self.species = world.entitySpecies(entity.id())

if self.species == "avian" then
self.foodCost = 0.1
self.foodCost = 0.095
elseif self.species == "avali" then
if status.stat("gliding") == 1 then
self.foodCost = 1.0
else
self.foodCost = 0.15
self.foodCost = 0.2
end
elseif self.species == "saturnian" then
self.foodCost = 1.5
self.foodCost = 2.2
else -- comment this last section out when not testing.
self.foodCost = 2
if status.stat("gliding") == 1 then
self.foodCost = 1.65
else
self.foodCost = 0.2
end
end

effect.addStatModifierGroup({
{stat = "foodDelta", amount = -self.foodCost }
})
effect.addStatModifierGroup({ {stat = "foodDelta", amount = status.stat("foodDelta")-self.foodCost } })
end

function update(dt)
Expand Down
2 changes: 1 addition & 1 deletion tech/other/flight_avali.tech
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rarity" : "Legendary",
"icon" : "/items/active/raceEffectEnabler/raceeffectenabler.png",
"chipCost" : 1,
"energyCostPerSecond" : 1.15,
"energyCostPerSecond" : 1,

"maxFallSpeed1" : -39,
"fallingParameters1" : {
Expand Down
2 changes: 1 addition & 1 deletion tech/other/flight_avian.tech
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rarity" : "Legendary",
"icon" : "/items/active/raceEffectEnabler/raceeffectenabler.png",
"chipCost" : 1,
"energyCostPerSecond" : 0.99,
"energyCostPerSecond" : 0.5,

"maxFallSpeed" : -39,
"fallingParameters" : {
Expand Down
2 changes: 1 addition & 1 deletion tech/other/flight_saturnian.tech
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rarity" : "Legendary",
"icon" : "/items/active/raceEffectEnabler/raceeffectenabler.png",
"chipCost" : 1,
"energyCostPerSecond" : 1.0,
"energyCostPerSecond" : 1.25,

"maxFallSpeed" : -5,
"removesFallDamage" : 1,
Expand Down

0 comments on commit 7c417ee

Please sign in to comment.