From 7aee4b581fefbdf074ca067f7d693b08ca46e351 Mon Sep 17 00:00:00 2001 From: sayterdarkwynd Date: Wed, 23 Nov 2016 00:05:58 -0500 Subject: [PATCH] environmental bonuses --- stats/effects/fu_racialabilities/raceargonian.lua | 8 ++++++-- stats/effects/fu_racialabilities/raceavikan.lua | 10 +++++++++- stats/effects/fu_racialabilities/racefloran.lua | 2 +- stats/effects/fu_racialabilities/racemunari.lua | 2 +- stats/effects/fu_racialabilities/raceorcana.lua | 2 +- stats/effects/fu_racialabilities/raceskelekin.lua | 5 +++++ 6 files changed, 23 insertions(+), 6 deletions(-) diff --git a/stats/effects/fu_racialabilities/raceargonian.lua b/stats/effects/fu_racialabilities/raceargonian.lua index 3eeac305..e48ae11c 100644 --- a/stats/effects/fu_racialabilities/raceargonian.lua +++ b/stats/effects/fu_racialabilities/raceargonian.lua @@ -9,7 +9,11 @@ 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) @@ -17,5 +21,5 @@ function update(dt) end function uninit() - + status.clearPersistentEffects("jungleEpic") end \ No newline at end of file diff --git a/stats/effects/fu_racialabilities/raceavikan.lua b/stats/effects/fu_racialabilities/raceavikan.lua index 398deab0..ee143645 100644 --- a/stats/effects/fu_racialabilities/raceavikan.lua +++ b/stats/effects/fu_racialabilities/raceavikan.lua @@ -7,6 +7,14 @@ 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) @@ -14,5 +22,5 @@ function update(dt) end function uninit() - + status.clearPersistentEffects("jungleEpic") end \ No newline at end of file diff --git a/stats/effects/fu_racialabilities/racefloran.lua b/stats/effects/fu_racialabilities/racefloran.lua index 8bd9ec95..be3feb4a 100644 --- a/stats/effects/fu_racialabilities/racefloran.lua +++ b/stats/effects/fu_racialabilities/racefloran.lua @@ -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} diff --git a/stats/effects/fu_racialabilities/racemunari.lua b/stats/effects/fu_racialabilities/racemunari.lua index 0fb0e82d..bf0dc75c 100644 --- a/stats/effects/fu_racialabilities/racemunari.lua +++ b/stats/effects/fu_racialabilities/racemunari.lua @@ -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 diff --git a/stats/effects/fu_racialabilities/raceorcana.lua b/stats/effects/fu_racialabilities/raceorcana.lua index 8dd97c52..c773bdc2 100644 --- a/stats/effects/fu_racialabilities/raceorcana.lua +++ b/stats/effects/fu_racialabilities/raceorcana.lua @@ -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 diff --git a/stats/effects/fu_racialabilities/raceskelekin.lua b/stats/effects/fu_racialabilities/raceskelekin.lua index c7e85f0b..b90a6d10 100644 --- a/stats/effects/fu_racialabilities/raceskelekin.lua +++ b/stats/effects/fu_racialabilities/raceskelekin.lua @@ -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()