improvement: some boss improvements

This commit is contained in:
Kazhnuz 2021-03-14 10:15:16 +01:00
parent 04c2f53ec6
commit 78d50eaf94
5 changed files with 4 additions and 3 deletions

Binary file not shown.

View file

@ -1,8 +1,8 @@
return {
music = "battle1",
music = "battle2",
ennemies = {
{"normal", "classics", "motobug", 1},
{"boss", "classics", "motobug", 2, 1.2, true},
{"boss", "classics", "motobug", 10, 1.8, true},
{"normal", "classics", "motobug", 1}}
}

View file

@ -44,7 +44,7 @@ function EnnemyController:addBoss(ennData)
boss:setBonus(ennData.pvFactor, ennData.statFactor)
boss.isBoss = true
boss:setCheapEffect(ennData.cheapEffect)
self.owner.canFleeBattle = false
self.turnSystem.canFleeBattle = false
self:add(boss)
end

View file

@ -41,6 +41,7 @@ function TurnController:getChanceTooFlee(value)
local speedComparison = math.min(value / self.ennemies:getHighestSpeed(), 1.5)
return 25 + (50 * speedComparison)
end
return 0
end
function TurnController:fleeBattle()