improvement: some boss improvements
This commit is contained in:
parent
04c2f53ec6
commit
78d50eaf94
5 changed files with 4 additions and 3 deletions
BIN
sonic-radiance.love/assets/music/battle2.mp3
Normal file
BIN
sonic-radiance.love/assets/music/battle2.mp3
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
return {
|
return {
|
||||||
music = "battle1",
|
music = "battle2",
|
||||||
ennemies = {
|
ennemies = {
|
||||||
{"normal", "classics", "motobug", 1},
|
{"normal", "classics", "motobug", 1},
|
||||||
{"boss", "classics", "motobug", 2, 1.2, true},
|
{"boss", "classics", "motobug", 10, 1.8, true},
|
||||||
{"normal", "classics", "motobug", 1}}
|
{"normal", "classics", "motobug", 1}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ function EnnemyController:addBoss(ennData)
|
||||||
boss:setBonus(ennData.pvFactor, ennData.statFactor)
|
boss:setBonus(ennData.pvFactor, ennData.statFactor)
|
||||||
boss.isBoss = true
|
boss.isBoss = true
|
||||||
boss:setCheapEffect(ennData.cheapEffect)
|
boss:setCheapEffect(ennData.cheapEffect)
|
||||||
self.owner.canFleeBattle = false
|
self.turnSystem.canFleeBattle = false
|
||||||
self:add(boss)
|
self:add(boss)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ function TurnController:getChanceTooFlee(value)
|
||||||
local speedComparison = math.min(value / self.ennemies:getHighestSpeed(), 1.5)
|
local speedComparison = math.min(value / self.ennemies:getHighestSpeed(), 1.5)
|
||||||
return 25 + (50 * speedComparison)
|
return 25 + (50 * speedComparison)
|
||||||
end
|
end
|
||||||
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function TurnController:fleeBattle()
|
function TurnController:fleeBattle()
|
||||||
|
|
Loading…
Reference in a new issue