;------------------------
;ZE UNSTOPPABLE
;------------------------
;---------------------------------------
;Button fix avoiding the platform to glitch because triggered many times
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "button_room_5"
		"classname" "func_button"
	}
	insert:
	{
		"OnPressed" "!self,Kill,,0,-1"
	}
}
;---------------------------------------
;Killing the anti glitch TP in the bhop room to avoid cts being tp back if not touched at the end 
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "relay_room_8_start"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "tp_room_anti_camp_room_8,Kill,,11,-1"
	}
}
;---------------------------------------
;Reducing the speed of the trigger push in the bhop room
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "push_room_8a"
		"classname" "trigger_push"
	}
	replace:
	{
		"speed" "500"
	}
}
;---------------------------------------
;increasing the boss hp at the end
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "to_add_hp_boss_final"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "final_boss_breakable,AddHealth,275,0,-1"
	}
	insert:
	{
		"OnStartTouch" "final_boss_breakable,AddHealth,300,0,-1"
	}
}
;---------------------------------------
;changing the origin of the bridge templated in the insane difficulty room 4 to allow players to use the ladder
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "break_spawn_room_hard_4_1"
		"classname" "func_breakable"
	}
	replace:
	{
		"origin" "2723 5817 -1216"
	}
}
;---------------------------------------
;removing the platform protection being triggered on the first boss to avoid zombies being pushed on top
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "break_spawn_room_hard_4_1"
		"classname" "func_breakable"
	}
	delete:
	{
		"OnBreak" "relay_protection_plateforme_on,Trigger,,15,-1"		
	}
}
;---------------------------------------
;increasing the time to defend on the first boss when the zombies attack is triggered
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "case_boss_room_6_move"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase01" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase02" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase03" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase04" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase05" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase06" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase07" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase08" "tp_back_boss_room_6_move,Enable,,12,-1"
		"OnCase08" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase07" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase06" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase05" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase04" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase03" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase02" "tp_back_boss_room_6_move,Disable,,12.05,-1"
		"OnCase01" "tp_back_boss_room_6_move,Disable,,12.05,-1"		
	}
	insert:
	{
		"OnCase01" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase02" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase03" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase04" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase05" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase06" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase07" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase08" "tp_back_boss_room_6_move,Enable,,14,-1"
		"OnCase08" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase07" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase06" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase05" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase04" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase03" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase02" "tp_back_boss_room_6_move,Disable,,14.05,-1"
		"OnCase01" "tp_back_boss_room_6_move,Disable,,14.05,-1"	
	}
}
;---------------------------------------
;increasing the hp of the first boss
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "to_add_hp_room_6"
		"classname" "trigger_once"
	}
	delete:
	{
		"OnStartTouch" "boss_room_6_phys,AddHealth,2000,0,-1"
	}
	insert:
	{
		"OnStartTouch" "boss_room_6_phys,AddHealth,2500,0,-1"
	}
}
