mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-25 06:06:49 +00:00
Simplify cellhandlers.lua
This commit is contained in:
parent
9d15629ae2
commit
42f1cf9a07
1 changed files with 1 additions and 5 deletions
|
@ -20,11 +20,7 @@ local function getRandomOffset()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function getPlayerLevel()
|
local function getPlayerLevel()
|
||||||
for i, actor in pairs(world.activeActors) do
|
return types.Player.stats.level(world.players[1]).current
|
||||||
if (types.Player.objectIsInstance(actor)) then
|
|
||||||
return types.Player.stats.level(actor).current
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function spawnFish(cell)
|
local function spawnFish(cell)
|
||||||
|
|
Loading…
Reference in a new issue