2021-08-15 16:50:53 +02:00
|
|
|
local ParentBehaviour = require "scenes.battlesystem.fighters.ennemy.behaviours.parent"
|
2020-08-05 09:25:38 +02:00
|
|
|
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
|