FreeKill/lua/server/gamelogic.lua

24 lines
422 B
Lua
Raw Normal View History

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