sonic-bluestreak/sonic-bluestreak.love/scenes/battlesystem/fighters/ennemy/behaviours/random.lua

13 lines
381 B
Lua
Raw Permalink Normal View History

2021-11-25 10:57:13 +01:00
local ParentBehaviour = require "scenes.battlesystem.fighters.ennemy.behaviours.parent"
local RandomBehaviour = ParentBehaviour:extend()
function RandomBehaviour:new(fighter, skilldata, targetList)
RandomBehaviour.super.new(self, fighter, skilldata, targetList, true)
end
function RandomBehaviour:calculateScore(target)
return math.random(1, 200)
end
return RandomBehaviour