Skip to content

Commit

Permalink
environmental bonuses
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Nov 23, 2016
1 parent 80f7933 commit 7aee4b5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
8 changes: 6 additions & 2 deletions stats/effects/fu_racialabilities/raceargonian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ function init()
effect.addStatModifierGroup({{stat = "poisonStatusImmunity", amount = 1}})
local bounds = mcontroller.boundBox()
script.setUpdateDelta(10)

if (world.type() == "bog") or (world.type() == "swamp") then
status.setPersistentEffects("jungleEpic", {
{stat = "powerMultiplier", baseMultiplier = 1.20}
})
end
end

function update(dt)

end

function uninit()

status.clearPersistentEffects("jungleEpic")
end
10 changes: 9 additions & 1 deletion stats/effects/fu_racialabilities/raceavikan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ effect.addStatModifierGroup({{stat = "biomeheatImmunity", amount = 1}})
effect.addStatModifierGroup({{stat = "maxEnergy", amount = baseValue2 }})

script.setUpdateDelta(0)

if (world.type() == "desert") or (world.type() == "desertwastes") or (world.type() == "desertwastesdark") then
status.setPersistentEffects("jungleEpic", {
{stat = "powerMultiplier", baseMultiplier = 1.10},
{stat = "maxHealth", baseMultiplier = 1.15}
})
end

end

function update(dt)

end

function uninit()

status.clearPersistentEffects("jungleEpic")
end
2 changes: 1 addition & 1 deletion stats/effects/fu_racialabilities/racefloran.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function init()
effect.addStatModifierGroup({{stat = "maxEnergy", amount = baseValue2 }})
effect.addStatModifierGroup({{stat = "electricStatusImmunity", amount = 1}})

if (world.type() == "thickjungle") or (world.type() == "forest") or (world.type() == "tundra") or (world.type() == "lush") or (world.type() == "arboreal") then
if (world.type() == "thickjungle") or (world.type() == "forest") or (world.type() == "tundra") or (world.type() == "garden") or (world.type() == "arboreal") then
status.setPersistentEffects("jungleEpic", {
{stat = "maxHealth", baseMultiplier = 1.10},
{stat = "maxEnergy", baseMultiplier = 1.10}
Expand Down
2 changes: 1 addition & 1 deletion stats/effects/fu_racialabilities/racemunari.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ effect.addStatModifierGroup({{stat = "maxEnergy", amount = baseValue2 }})

if (world.type() == "ocean") or (world.type() == "oceanfloor") or (world.type() == "tidewater") or (world.type() == "tidewaterfloor") then
status.setPersistentEffects("jungleEpic", {
{stat = "maxHealth", baseMultiplier = 1.10},
{stat = "maxHealth", baseMultiplier = 1.20},
{stat = "maxEnergy", baseMultiplier = 1.10}
})
end
Expand Down
2 changes: 1 addition & 1 deletion stats/effects/fu_racialabilities/raceorcana.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function init()
if (world.type() == "ocean") or (world.type() == "oceanfloor") or (world.type() == "tidewater") or (world.type() == "tidewaterfloor") then
status.setPersistentEffects("jungleEpic", {
{stat = "maxHealth", baseMultiplier = 1.10},
{stat = "maxEnergy", baseMultiplier = 1.10}
{stat = "maxEnergy", baseMultiplier = 1.20}
})
end
end
Expand Down
5 changes: 5 additions & 0 deletions stats/effects/fu_racialabilities/raceskelekin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ function init()
effect.addStatModifierGroup({{stat = "biomeradiationImmunity", amount = 1}})
self.healingRate = 1
script.setUpdateDelta(5)
if (world.type() == "atropus") or (world.type() == "atropusdark") then
status.setPersistentEffects("jungleEpic", {
{stat = "powerMultiplier", baseMultiplier = 1.10}
})
end
end

function isDry()
Expand Down

0 comments on commit 7aee4b5

Please sign in to comment.