initial commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
require( "map_encounter" )
|
||||
require( "aghanim_utility_functions" )
|
||||
require( "spawner" )
|
||||
require( "encounters/encounter_trap_base" )
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
if CMapEncounter_JungleFireMaze == nil then
|
||||
CMapEncounter_JungleFireMaze = class( {}, {}, CMapEncounter_TrapBase )
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function CMapEncounter_JungleFireMaze:GetPreviewUnit()
|
||||
return "npc_dota_breathe_fire_trap"
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function CMapEncounter_JungleFireMaze:CheckForCompletion()
|
||||
if not IsServer() then
|
||||
return
|
||||
end
|
||||
local bIsComplete = CMapEncounter_TrapBase.CheckForCompletion( self )
|
||||
if bIsComplete then
|
||||
self:DisableTraps()
|
||||
end
|
||||
|
||||
return bIsComplete
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function CMapEncounter_JungleFireMaze:DisableTraps()
|
||||
--print("Disabling Traps!")
|
||||
-- Disable any traps in the map
|
||||
local hRelays = self:GetRoom():FindAllEntitiesInRoomByName( "disable_traps_relay", false )
|
||||
--local hRelays = Entities:FindAllByName( "disable_traps_relay" )
|
||||
for _, hRelay in pairs( hRelays ) do
|
||||
hRelay:Trigger( nil, nil )
|
||||
end
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
return CMapEncounter_JungleFireMaze
|
||||
Reference in New Issue
Block a user