;  __  __  ____  _____ _____ ________     __
; |  \/  |/ __ \|  __ \_   _|  ____\ \   / /
; | \  / | |  | | |  | || | | |__   \ \_/ /
; | |\/| | |  | | |  | || | |  __|   \   /
; | |  | | |__| | |__| || |_| |       | |
; |_|  |_|\____/|_____/_____|_|       |_|    by Małgo 05.11.2023
;---------------------------------------------------------------
;STRIPPER CFG BY MAŁGO https://steamcommunity.com/profiles/76561197992553990/
;---------------------------------------------------------------

;---------------------------------------
;Fix bad mateus text
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Mateus_Start_Relay"
		"classname" "logic_relay"
	}
	delete:
	{
		"OnTrigger" "Map_HudHintMiddle,AddOutput,message Defeat Fucking Cactus to unlock the gates!,0,-1"
	}
	insert:
	{
		"OnTrigger" "Map_HudHintMiddle,AddOutput,message Defeat Mateus to unlock the gates!,0,-1"
	}
}

;---------------------------------------
;Fix important wall on stage 3
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage3_Wall_007"
		"classname" "func_wall_toggle"
	}
	delete:
	{
		"OnUser1" "Stage3_Wall_007,Kill,,25,1"
	}
	insert:
	{
		"OnUser1" "Stage3_Wall_007,Toggle,,25,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage-1_GabranthBoss_Start_Relay"
		"classname" "logic_relay"
	}
	insert:
	{
		"OnTrigger" "Stage3_Wall_007,Toggle,,10,1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage-1_Gabranth_HP_End"
		"classname" "math_counter"
	}
	insert:
	{
		"OnHitMin" "Stage3_Wall_007,Kill,,5,1"
	}
}

;---------------------------------------
;Nerf Gabranth boss
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage-1_Gabranth_Hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "70"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage-1_Gabranth_attack_flame_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "25"
	}
}

;---------------------------------------
;Fix brkoen teleport stage 3
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage-1_Gabranth_HP_End"
		"classname" "math_counter"
	}
	delete:
	{
		"OnHitMin" "City_teleport_AFK_002,Disable,,0,-1"
	}
	insert:
	{
		"OnHitMin" "City_teleport_AFK_002,Disable,,5.1,-1"
	}
}

;---------------------------------------
;Fix teleport spot on stage 3 & 4
;---------------------------------------
add:
{
	"model" "*126"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"targetname" "Fix_TP_001"
	"origin" "-2068 -7974 -1133.5"
	"StartDisabled" "1"
	"target" "Stage-1_AFK_spawn_001"
}

add:
{
	"model" "*126"
	"spawnflags" "1"
	"classname" "trigger_teleport"
	"targetname" "Fix_TP_002"
	"origin" "-2003 -7974 -1133.5"
	"StartDisabled" "1"
	"target" "Stage-1_AFK_spawn_001"
}

modify:
{
	match:
	{
		"classname" "Stage-1_Gabranth_HP_End"
		"targetname" "math_counter"
	}
	insert:
	{
		"OnHitMin" "Fix_TP_001,AddOutput,target Stage-1_AFK_spawn_001,0,-1"
		"OnHitMin" "Fix_TP_002,AddOutput,target Stage-1_AFK_spawn_001,0,-1"
		"OnHitMin" "Fix_TP_001,Enable,,5,-1"
		"OnHitMin" "Fix_TP_002,Enable,,5,-1"
		"OnHitMin" "Fix_TP_001,Disable,,5.1,-1"
		"OnHitMin" "Fix_TP_002,Disable,,5.1,-1"
	}
}

modify:
{
	match:
	{
		"classname" "Stage-1_once_001"
		"targetname" "trigger_once"
	}
	insert:
	{
		"OnTrigger" "Fix_TP_001,AddOutput,target Stage-1_AFK_spawn_002,0,1"
		"OnTrigger" "Fix_TP_002,AddOutput,target Stage-1_AFK_spawn_002,0,1"
		"OnTrigger" "Fix_TP_001,Enable,,1,1"
		"OnTrigger" "Fix_TP_002,Enable,,1,1"
	}
}

modify:
{
	match:
	{
		"classname" "City_Wall_007"
		"targetname" "func_wall_toggle"
	}
	insert:
	{
		"OnUser1" "Fix_TP_001,AddOutput,target Stage4_city_spawn_001,0,-1"
		"OnUser1" "Fix_TP_002,AddOutput,target Stage4_city_spawn_001,0,-1"
		"OnUser1" "Fix_TP_001,Enable,,35,-1"
		"OnUser1" "Fix_TP_002,Enable,,35,-1"
	}
}

;---------------------------------------
;Buff all bosses hp
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Dragon_Aevis_HP_Add"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnStartTouch" "Dragon_Aevis_Health_HP_Main,Add,75,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Dragon_Aevis_Health_HP_Main,Add,105,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Dragon_Aevis_HP_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Dragon_Aevis_Health_HP_Main,Add,70,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Dragon_Aevis_Health_HP_Main,Add,105,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Mateus_HP_Add"
		"classname" "trigger_hurt"
	}
	delete:
	{
		"OnStartTouch" "Mateus_Health_HP_Main,Add,95,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Mateus_Health_HP_Main,Add,145,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Mateus_HP_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Mateus_Health_HP_Main,Add,90,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Mateus_Health_HP_Main,Add,155,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage-1_Gabranth_HP_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Stage-1_Gabranth_HP_Main,Add,95,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Stage-1_Gabranth_HP_Main,Add,160,0,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_HP_multi"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Stage4_Boss_Bergan_HP_Main,Add,100,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Stage4_Boss_Bergan_HP_Main,Add,195,0,-1"
	}
}

;---------------------------------------
;Bergan lasers nade boost
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage4_Ending_Bergan_Nade"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Stage4_Ending_Bergan_HP,Subtract,29,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Stage4_Ending_Bergan_HP,Subtract,40,0,-1"
	}
}

;---------------------------------------
;Buff Stars hurt
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Lightning_Hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damagetype" "14"
		"damage" "26"
	}
}

;---------------------------------------
;Buff Bergan boss
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_attack_case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase04" "Stage4_Boss_Bergan_attack_poison_multi,FireUser1,,0.05,-1"
		"OnCase04" "Stage4_Boss_Bergan_attack_poison_multi,FireUser1,,0.2,-1"
		"OnCase04" "Stage4_Boss_Bergan_attack_poison_multi,FireUser1,,0.35,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_attack_timer"
		"classname" "logic_timer"
	}
	replace:
	{
		"RefireTime" "11"
		"UpperRandomBound" "14"
		"LowerRandomBound" "10"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_attack_Koshei's_Dark_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "20"
		"damagecap" "12"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_attack_Confuse_part"
		"classname" "info_particle_system"
	}
	delete:
	{
		"OnUser1" "!self,Stop,,10,-1"
	}
	insert:
	{
		"OnUser1" "!self,Stop,,14,-1"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_hurt"
		"classname" "trigger_hurt"
	}
	replace:
	{
		"damage" "90"
	}
}

;---------------------------------------
;Buff Bergan move
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage4_Boss_Bergan_Thrust_Forward"
		"classname" "phys_thruster"
	}
	replace:
	{
		"force" "1200"
	}
}

;---------------------------------------
;a little more hp on lasers stage 4
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage4_Ending_Bergan_HP_Add"
		"classname" "trigger_multiple"
	}
	delete:
	{
		"OnStartTouch" "Stage4_Ending_Bergan_HP,Add,70,0,-1"
	}
	insert:
	{
		"OnStartTouch" "Stage4_Ending_Bergan_HP,Add,59,0,-1"
	}
}

;---------------------------------------
;a little faster lasers on stage 3 & 4
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Stage-1_Ending_Gabranth_M2"
		"classname" "func_movelinear"
	}
	replace:
	{
		"speed" "1650"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage-1_Ending_Gabranth_M1"
		"classname" "func_movelinear"
	}
	replace:
	{
		"speed" "1650"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_MGuardian_M4"
		"classname" "func_movelinear"
	}
	replace:
	{
		"speed" "1600"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_MGuardian_M3"
		"classname" "func_movelinear"
	}
	replace:
	{
		"speed" "1600"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_MGuardian_M2"
		"classname" "func_movelinear"
	}
	replace:
	{
		"speed" "1600"
	}
}

modify:
{
	match:
	{
		"targetname" "Stage4_MGuardian_M1"
		"classname" "func_movelinear"
	}
	replace:
	{
		"speed" "1600"
	}
}

;---------------------------------------
;Make mateus possible to kill in ultima moment
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Mateus_Attack_Case"
		"classname" "logic_case"
	}
	delete:
	{
		"OnCase08" "Stage3_Mateus_Phys_Body,SetDamageFilter,No_Damage,0,1"
	}
	insert:
	{
		"OnCase08" "Stage3_Mateus_Phys_Body,SetDamageFilter,ct,10,1"
	}
}

;---------------------------------------
;Change origin of admin room buttons
;---------------------------------------
modify:
{
	match:
	{
		"targetname" "Admin_Difficulty_Normal_Button"
		"classname" "func_button"
	}
	replace:
	{
		"origin" "-8774 15354 6980"
	}
}

modify:
{
	match:
	{
		"targetname" "Admin_Difficulty_Hard_Button"
		"classname" "func_button"
	}
	replace:
	{
		"origin" "-8958 15034 6980"
	}
}

modify:
{
	match:
	{
		"targetname" "Admin_Difficulty_Extreme_Button"
		"classname" "func_button"
	}
	replace:
	{
		"origin" "-9246 14794 6980"
	}
}

modify:
{
	match:
	{
		"targetname" "Admin_Difficulty_Ultimate_Button"
		"classname" "func_button"
	}
	replace:
	{
		"origin" "-9502 14632 6980"
	}
}

modify:
{
	match:
	{
		"classname" "logic_auto"
		"hammerid" "696767"
	}
	delete:
	{
		"OnNewGame" "cmd,Command,say **Map Status: No Stripper!**,0,-1"
	}
	insert:
	{
		"OnNewGame" "cmd,Command,say **Map Status: Stripper #7 Enable!**,0,-1"
	}
}

;------------------------------
; BELOW CHANGES BY KOEN (12/16/2023)
;------------------------------

;lazy way of fixing zombies not being teleported after stage 3 boss fight
modify:
{
	match:
	{
		"classname" "math_counter"
		"targetname" "Stage-1_Gabranth_HP_End"
		"hammerid" "4992491"
	}
	insert:
	{
		"OnHitMin" "cmd,Command,zr_ztele_force @t 1,5,1"
	}
}

;fix music volume not being adjustable
modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/zm_forget.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/zm_forget.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/zm_9000.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/zm_9000.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/ultimate_cannibals.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/ultimate_cannibals.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/extreme_run.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/extreme_run.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/extreme_darknessv2.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/extreme_darknessv2.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/extreme_comprachicos.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/extreme_comprachicos.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/hard_1000_ships.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/hard_1000_ships.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/hard_esper_battle.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/hard_esper_battle.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/hard_impera.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/hard_impera.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/hard_land_of_the_garif.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/hard_land_of_the_garif.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/hard_lake_bresha.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/hard_lake_bresha.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/extreme_anarchy.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/extreme_anarchy.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/ultimate_crush.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/ultimate_crush.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/normal_classroom.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/normal_classroom.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/normal_boss_battle_theme_v2.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/normal_boss_battle_theme_v2.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/normal_the_stilshrine_of_miriam.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/normal_the_stilshrine_of_miriam.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/normal_eruyt_village.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/normal_eruyt_village.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/victory_fanfare.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/victory_fanfare.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/normal_a_moments_rest.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/normal_a_moments_rest.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/ultimate_let_this_go.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/ultimate_let_this_go.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/ultimate_money.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/ultimate_money.mp3"
	}
}

modify:
{
	match:
	{
		"classname" "ambient_generic"
		"message" "malgo/music/miriam_v7/ultimate_armageddon.mp3"
	}
	replace:
	{
		"message" "#malgo/music/miriam_v7/ultimate_armageddon.mp3"
	}
}