24 lines
422 B
Lua
24 lines
422 B
Lua
|
function logic()
|
||
|
chooseGeneral()
|
||
|
initSkillList()
|
||
|
actionNormal()
|
||
|
end
|
||
|
|
||
|
function chooseGeneral()
|
||
|
for _, p in ipairs(room:getPlayers()) do
|
||
|
local g = p:askForGeneral()
|
||
|
room:changeHero(p, g)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function actionNormal()
|
||
|
local p = room:getLord()
|
||
|
while true do
|
||
|
room:setCurrent(p)
|
||
|
act(room:getCurrent)
|
||
|
p = p:getNextAlive()
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function trigger() end
|