;--------------------------------
; Fixes pickup name on fire item
;--------------------------------
modify:
{
    match:
    {
        "origin" "15272.2 -8880.22 2180"
		"targetname" "Item_Fire_weapon"
    }
    delete:
    {
        "OnPlayerPickup" "console,Command,say ***  Fire was picked up ***,0,1"
    }
    insert:
    {
        "OnPlayerPickup" "console,Command,say *** Solar Eruption was picked up ***,0,1"
    }
}
;----------------------------
; Fixes map version at spawn
;----------------------------
modify:
{
    match:
    {
        "targetname" "spawn_trigger"
		"origin" "14776 -15304 3187.88"
    }
    delete:
    {
        "OnStartTouch" "console,Command,say < Welcome to ze_terraria_v1 >,2,1"
    }
    insert:
    {
        "OnStartTouch" "console,Command,say < Welcome to ze_terraria_v2 >,2,1"
        "OnStartTouch" "console,Command,say << Stripper 1 loaded >> >,1,1"
    }
}
;--------------------------------
; Makes more time to kill slimes
;--------------------------------
modify:
{
    match:
    {
        "targetname" "npc_timer"
		"origin" "-4224 -2496 1992"
    }
    delete:
    {
        "OnTimer" "npc_timer,Kill,,30,1"
		"OnTimer" "Trig_Right,Kill,,30,1"
		"OnTimer" "Trig_Left,Kill,,30,1"
		"OnTimer" "Trig_Front,Kill,,30,1"
		"OnTimer" "npc_front_thruster,Kill,,30,1"
		"OnTimer" "npc_keepupright,Kill,,30,1"
		"OnTimer" "npc_sides_thruster,Kill,,30,1"
		"OnTimer" "slime_npc_model,Kill,,30,1"
		"OnTimer" "slime_npc_hurt,Kill,,30,1"
    }
    insert:
    {
        "OnTimer" "npc_timer,Kill,,120,1"
		"OnTimer" "Trig_Right,Kill,,120,1"
		"OnTimer" "Trig_Left,Kill,,120,1"
		"OnTimer" "Trig_Front,Kill,,120,1"
		"OnTimer" "npc_front_thruster,Kill,,120,1"
		"OnTimer" "npc_keepupright,Kill,,120,1"
		"OnTimer" "npc_sides_thruster,Kill,,120,1"
		"OnTimer" "slime_npc_model,Kill,,120,1"
		"OnTimer" "slime_npc_hurt,Kill,,120,1"
    }
}
;-----------------
; Reduce slime hp
;-----------------
modify:
{
    match:
    {
        "targetname" "slime_npc_hitbox"
    }
    replace:
    {
        "health" "500"
    }
}
;---------------------
; Reduce demon eye hp
;---------------------
modify:
{
    match:
    {
        "targetname" "Eye_npc_hitbox"
    }
    replace:
    {
        "health" "500"
    }
}
;---------------
; Reduce bee hp
;---------------
modify:
{
    match:
    {
        "targetname" "bee_npc_hitbox"
    }
    replace:
    {
        "health" "500"
    }
}
;----------------------
; Reduce spike ball hp
;----------------------
modify:
{
    match:
    {
        "targetname" "spike_npc_hitbox"
    }
    replace:
    {
        "health" "500"
    }
}
;-------------------------
; Reduce corruption slime
;-------------------------
modify:
{
    match:
    {
        "targetname" "corruption_slime_npc_hitbox"
    }
    replace:
    {
        "health" "500"
    }
}
;-------------------
; Fixed crash issue
;-------------------
modify:
{
    match:
    {
        "origin" "10564 -11856 168"
		"targetname" "guide_path9"
    }
    delete:
    {
        "OnPass" "!self,Kill,,0,1"
    }
}
;----------------------
; Fixes a filter issue
;----------------------
filter:
{
	"targetname" "jungle_biome_trigger_3"
}
add:
{
		"model" "*269"
		"targetname" "jungle_biome_trigger_3"
		"StartDisabled" "0"
		"spawnflags" "1"
		"origin" "9124 -2256 680"
		"filtername" "Item_Crimson_Axe_filter"
		"classname" "trigger_once"
		"OnStartTouch" "jungle_biome_wall_3,Kill,,11,1"
		"OnStartTouch" "console,Command,say < Your almost at the end ! >,0,1"
		"OnStartTouch" "console,Command,say < Second passage is cleared >,11,1"
		"OnStartTouch" "console,Command,say < Defend for 10 seconds ! >,1,1"
		"OnStartTouch" "!self,Kill,,0,1"
}
;------------------------------------
; Fixes a trigger_once in the jungle
;------------------------------------
modify:
{
    match:
    {
        "targetname" "jungle_biome_trigger_1"
    }
    delete:
    {
        "OnStartTouch" "forest_biome_wall_1,Kill,,21,1"
    }
    insert:
    {
        "OnStartTouch" "jungle_biome_wall_1,Kill,,21,1"
    }
}
;-----------------------------------
; Makes a teleporter start disabled
;-----------------------------------
modify:
{
    match:
    {
        "targetname" "tp_18"
		"origin" "9216 7924 -8400"
    }
    replace:
    {
        "StartDisabled" "1"
    }
}
;---------------------------------------------------------
; Fixes a move direction from 270 to 90 and reduces speed
;---------------------------------------------------------
modify:
{
    match:
    {
        "targetname" "golem_eye_laser_move_v1"
		"origin" "9035.49 1566 -9200.65"
    }
    replace:
    {
       "movedir" "0 90 0"
	   "speed" "1000"
    }
}
;------------------------------------
; Reduces damage on the hurt trigger 
;------------------------------------
modify:
{
    match:
    {
        "classname" "trigger_hurt"
		"origin" "9035.87 1566 -9200.65"
		"targetname" "golem_eye_laser_hurt_v1"
    }
    replace:
    {
       "damage" "100"
    }
}
;-----------------------------------------------------------
; Increases spawn rate of needles on plantera phase 1 fight
;-----------------------------------------------------------
modify:
{
    match:
    {
        "targetname" "plantera_phase_1_boss_attack_timer"
		"origin" "9248 14752 -6200"
    }
    replace:
    {
       "RefireTime" "1"
    }
}
;-----------------------------------------------------------
; Fixes a trigger_once to add hp for King slime bossfight
;-----------------------------------------------------------
modify:
{
    match:
    {
        "targetname" "guide_path15"
		"origin" "10356 -11332 168"
    }
    insert:
    {
       "OnPass" "king_slime_hp_add,Enable,,24,1"
    }
}
;---------------------------
; Fixes item pickup message
;---------------------------
modify:
{
    match:
    {
        "origin" "15632.4 -9514.41 2315.51"
		"targetname" "Item_freeze_weapon"
    }
    delete:
    {
       "OnPlayerPickup" "inGameChatAnnouncer,Command,say *** Freeze was picked up ***,0,1"
    }
    insert:
    {
       "OnPlayerPickup" "inGameChatAnnouncer,Command,say *** The Hidden Ice Queen Crown was picked up ***,0,1"
    }
}
;----------------------------------
; Decreases hp on phase 1 eye boss
;----------------------------------
modify:
{
    match:
    {
        "targetname" "2_hp_add_eye_boss"
    }
    delete:
    {
       "OnStartTouch" "counter_eye_2,Add,2000,0,-1"
    }
    insert:
    {
       "OnStartTouch" "counter_eye_2,Add,1000,0,-1"
    }
}
;----------------------------------
; Decreases hp on phase 2 eye boss
;----------------------------------
modify:
{
    match:
    {
        "targetname" "hp_add_eye_boss"
    }
    delete:
    {
       "OnStartTouch" "counter_eye,Add,3000,0,-1"
    }
    insert:
    {
       "OnStartTouch" "counter_eye,Add,1000,0,-1"
    }
}