Consistency/data/entities/animals/boss_pit/boss_pit_spawner.lua

12 lines
286 B
Lua

dofile_once("data/scripts/lib/utilities.lua")
local entity_id = GetUpdatedEntityID()
local x, y = EntityGetTransform( entity_id )
SetRandomSeed( x, y )
if ( Random( 1, 10 ) == 5 ) then
EntityLoad( "data/entities/animals/boss_pit/boss_pit.xml", x, y )
end
EntityKill( entity_id )