mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 12:01:51 +00:00
Simplify cellhandlers.lua
This commit is contained in:
parent
9d15629ae2
commit
42f1cf9a07
@ -20,11 +20,7 @@ local function getRandomOffset()
|
||||
end
|
||||
|
||||
local function getPlayerLevel()
|
||||
for i, actor in pairs(world.activeActors) do
|
||||
if (types.Player.objectIsInstance(actor)) then
|
||||
return types.Player.stats.level(actor).current
|
||||
end
|
||||
end
|
||||
return types.Player.stats.level(world.players[1]).current
|
||||
end
|
||||
|
||||
local function spawnFish(cell)
|
||||
|
Loading…
Reference in New Issue
Block a user