;------------------------------------------------------
; Last changed on 24-04-2024 - Stripper by Hobbitten
;------------------------------------------------------

;---------------------------------------------
; Stripper message so server keeps up to date
;---------------------------------------------
modify:
{
  match:
  {
    "origin" "14336 -12224 2056"
    "classname" "logic_auto"
  }
  insert:
  {
	  "OnMapSpawn" "console,Command,say <> Stripper 2 loaded <>,2,-1"
  }
}

;-------------------------------------------
; Fixes tp delay on jungle underground area
;-------------------------------------------
modify:
{
  match:
  {
    "targetname" "underground_jungle_trigger_1"
  }
  delete:
  {
	  "OnStartTouch" "console,Command,say < Teleporting everyone to the underground in 10 seconds >,5,1"
	  "OnStartTouch" "tp_11,Enable,,10,1"
  }
  insert:
  {
	  "OnStartTouch" "console,Command,say < Teleporting everyone to the underground in 10 seconds >,10,1"
	  "OnStartTouch" "tp_11,Enable,,20,1"
  }
}

;---------------------------------
; Removes all the beehive ladders
;---------------------------------
filter:
{
  "targetname" "beehive_ladder_1"
}
filter:
{
  "targetname" "beehive_ladder_2"
}
filter:
{
  "targetname" "beehive_ladder_3"
}
filter:
{
  "targetname" "beehive_ladder_4"
}
filter:
{
  "targetname" "beehive_ladder_5"
}
filter:
{
  "targetname" "beehive_ladder_6"
}
filter:
{
  "targetname" "beehive_ladder_7"
}
filter:
{
  "targetname" "beehive_ladder_8"
}

;--------------------------------------------
; Adds all ladders back with a new classname
;--------------------------------------------
add:
{
  "model" "*133"
  "targetname" "beehive_ladder_1"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "10113 7088 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*132"
  "targetname" "beehive_ladder_2"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "10113 6960 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*131"
  "targetname" "beehive_ladder_3"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "10113 6832 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*130"
  "targetname" "beehive_ladder_4"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "9745 6048 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*129"
  "targetname" "beehive_ladder_5"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "8689 6048 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*128"
  "targetname" "beehive_ladder_6"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "8321 6832 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*111"
  "targetname" "beehive_ladder_7"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "8321 6960 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}
add:
{
  "model" "*127"
  "targetname" "beehive_ladder_8"
  "spawnobject" "0"
  "spawnflags" "0"
  "rendermode" "0"
  "renderfx" "0"
  "rendercolor" "255 255 255"
  "renderamt" "255"
  "propdata" "0"
  "pressuredelay" "0"
  "physdamagescale" "1.0"
  "PerformanceMode" "0"
  "origin" "8321 7088 -6288"
  "nodamageforces" "0"
  "minhealthdmg" "0"
  "material" "0"
  "health" "0"
  "gibdir" "0 0 0"
  "explosion" "0"
  "ExplodeRadius" "0"
  "explodemagnitude" "0"
  "ExplodeDamage" "0"
  "disableshadows" "0"
  "disablereceiveshadows" "0"
  "classname" "func_breakable"
}

;---------------------------------------------------------
; Makes the beehive ladders break after boss is defeated
;---------------------------------------------------------
modify:
{
  match:
  {
  	"targetname" "Bee_Queen_hitbox"
  }
  insert:
  {
	  "OnBreak" "beehive_ladder_*,Kill,,0,1"
  }
}

;-----------------------------
; Reduces bosshp on queen bee
;-----------------------------
modify:
{
  match:
  {
  	"targetname" "Bee_Queen_hp_add"
  }
  delete:
  {
  	"OnStartTouch" "Bee_Queen_counter,Add,1500,0,-1"
  }
  insert:
  {
	  "OnStartTouch" "Bee_Queen_counter,Add,1200,0,-1"
  }
}

;--------------------------------------------------------------------------------------------
; Removes filters triggers inside the temple to make it more realistic towards the real game
;--------------------------------------------------------------------------------------------
modify:
{
  match:
  {
  	"origin" "9856 4880 -8832"
  }
  delete:
  {
  	"filtername" "Item_temple_key_filter"
  }
}
modify:
{
  match:
  {
  	"origin" "9220 2808 -9152"
  }
  delete:
  {
	  "filtername" "Item_temple_key_filter"
  }
}
modify:
{
  match:
  {
	  "targetname" "end_door_trigger_temple"
  	"origin" "9216 1092 -9200"
  }
  delete:
  {
  	"filtername" "Item_temple_key_filter"
  }
}

;----------------------------------------------
; Increases damage on phase 2 of EOC: 40 -> 80
;----------------------------------------------
modify:
{
  match:
  {
	  "targetname" "2Eye_boss_hurt"
  }
  replace:
  {
	  "damage" "80"
  }
}

;--------------------------------------------------------
; decreases damage on the bees at queen bee: 160 --> 120
;--------------------------------------------------------
modify:
{
  match:
  {
  	"targetname" "bee_attack_hurt_2"
  }
  replace:
  {
  	"damage" "120"
  }
}
modify:
{
  match:
  {
  	"targetname" "bee_attack_hurt"
  }
  replace:
  {
    "damage" "120"
  }
}

;---------------------------------------------------
; Increases damage on phase 2 of PLANTERA: 50 -> 80
;---------------------------------------------------
modify:
{
  match:
  {
	  "targetname" "Plantera_Boss2_Break"
  }
  replace:
  {
	  "damage" "80"
  }
}
;---------------------------------------------------
; Decreases hp given at the first phase of plantera
;---------------------------------------------------
modify:
{
  match:
  {
  	"targetname" "plantera_phase_1_hp_give"
  }
  delete:
  {
	  "OnStartTouch" "plantera_phase_1_counter,Add,1200,0,-1"
  }
  insert:
  {
	  "OnStartTouch" "plantera_phase_1_counter,Add,900,0,-1"
  }
}

;----------------------------------------------
; Fixes ending part slightly to make it easier
;----------------------------------------------
modify:
{
  match:
  {
    "targetname" "refire_relay"
  }
  delete:
  {
    "OnTrigger" "golem_eye_laser_timer,RefireTime,0.5,38,1"
    "OnTrigger" "console,Command,say < Golem Head is firing at maximum speed! >,38,1"
    "OnTrigger" "end_platforms,Kill,,3,1"
  }
  insert:
  {
    "OnTrigger" "golem_eye_laser_timer,RefireTime,0.8,45,1"
    "OnTrigger" "console,Command,say < Golem Head is firing at maximum speed! >,45,1"
    "OnTrigger" "end_platforms,Kill,,0,1"
  }
}

;--------------------------------------------------
; Reduces trigger time on the temple gates to open
;--------------------------------------------------
modify:
{
  match:
  {
    "origin" "9216 9408 -8128"
  }
  delete:
  {
    "OnStartTouch" "!self,Kill,,1,1"
    "OnStartTouch" "temple_door_left,Open,,15,1"
    "OnStartTouch" "temple_door_right,Open,,15,1"
    "OnStartTouch" "console,Command,say < The Jungle Temple gates will open in 15 seconds >,0,1"
    "OnStartTouch" "console,Command,say < The gates are opening >,15,1"
    "OnStartTouch" "jungle_underground_biome_music,Volume,0,0,1"
    "OnStartTouch" "temple_biome_music,PlaySound,,1,1"
    "OnStartTouch" "biome_text,AddOutput,message THE TEMPLE,18,1"
    "OnStartTouch" "biome_text,Display,,18.02,1"
  }
  insert:
  {
    "OnStartTouch" "temple_door_left,Open,,5,1"
    "OnStartTouch" "temple_door_right,Open,,5,1"
    "OnStartTouch" "console,Command,say < The Jungle Temple gates will open in 5 seconds >,0,1"
    "OnStartTouch" "console,Command,say < The gates are opening >,5,1"
    "OnStartTouch" "jungle_underground_biome_music,Volume,0,5,1"
    "OnStartTouch" "temple_biome_music,PlaySound,,6,1"
    "OnStartTouch" "biome_text,AddOutput,message THE TEMPLE,8,1"
    "OnStartTouch" "biome_text,Display,,8.02,1"
  }
}

;-------------------------------------
; Reduces the giant rock defense time
;-------------------------------------
modify:
{
  match:
  {
    "origin" "8640 11488 -8128"
  }
  delete:
  {
    "OnStartTouch" "!self,Kill,,0,1"
    "OnStartTouch" "underground_rock_1,Kill,,21,1"
    "OnStartTouch" "console,Command,say < A giant rock is blocking our path >,0,1"
    "OnStartTouch" "console,Command,say < Defend for 20 seconds >,1,1"
    "OnStartTouch" "console,Command,say < The rock vanished >,21,1"
    "OnStartTouch" "console,Command,say < We have finally reached the Jungle Temple >,23,1"
    "OnStartTouch" "console,Command,say < Use the key you collected to open the gates >,25,1"
  }
  insert:
  {
    "OnStartTouch" "console,Command,say < Defend for 15 seconds >,1,1"
    "OnStartTouch" "underground_rock_1,Kill,,16,1"
    "OnStartTouch" "console,Command,say < The rock vanished >,16,1"
    "OnStartTouch" "console,Command,say < We have finally reached the Jungle Temple >,18,1"
    "OnStartTouch" "console,Command,say < Use the key you collected to open the gates >,20,1"
  }
}

;-------------------------------------------
; reduces another trigger inside the temple
;-------------------------------------------
modify:
{
  match:
  {
    "origin" "9856 4880 -8832"
  }
  delete:
  {
    "OnStartTouch" "console,Command,say < The door is opening >,25,1"
    "OnStartTouch" "temple_door_2,Open,,25,1"
    "OnStartTouch" "tp_18,Enable,,5,1"
    "OnStartTouch" "temple_door_1,Close,,3,1"
    "OnStartTouch" "!self,Kill,,1,1"
    "OnStartTouch" "console,Command,say < Good job! The door will open in 25 seconds >,0,1"
  }
  insert:
  {
    "OnStartTouch" "console,Command,say < The door is opening >,15,1"
    "OnStartTouch" "temple_door_2,Open,,15,1"
    "OnStartTouch" "tp_18,Enable,,5,1"
    "OnStartTouch" "temple_door_1,Close,,3,1"
    "OnStartTouch" "console,Command,say < Good job! The door will open in 15 seconds >,0,1"
  }
}

;-----------------------------------
; Reduces the hp added to moonlord
;-----------------------------------
modify:
{
  match:
  {
    "targetname" "moon_lord_hp_trigger"
  }
  delete:
  {
	  "OnStartTouch" "moon_lord_hp_counter,Add,1300,0,-1"
  }
  insert:
  {
  	"OnStartTouch" "moon_lord_hp_counter,Add,600,0,-1"
  }
}

;-----------------------------------------------
; Golem head lasers does not insta kill anymore
;-----------------------------------------------
modify:
{
  match:
  {
  	"targetname" "golem_eye_laser_hurt"
  }
  delete:
  {
  	"damage" "99999"
  }
  insert:
  {
	"damage" "120"
  }
}

;----------------------------------------------------
; Removes the old hp adding for phase 2 of bee queen
;----------------------------------------------------
filter:
{
  "targetname" "Bee_Queen_v2_hp_add"
  "classname" "trigger_once"
  "origin" "9216 7616 -6240"
}

;----------------------------------------------------
; adds a new hp system to phase 2 of bee queen
;----------------------------------------------------
add:
{
  "model" "*254"
  "targetname" "Bee_Queen_v2_hp_add"
  "StartDisabled" "1"
  "spawnflags" "1"
  "origin" "9216 7072 -6560"
  "filtername" "human_filter"
  "classname" "trigger_once"
  "OnStartTouch" "Bee_Queen_boss_v2_counter,Add,220,0,-1"
}

;------------------------------------------------------------------------------------------------
; Does so corruption_biome_trigger_7 doesnt enable instantly when the trigger_once is touched
;------------------------------------------------------------------------------------------------
modify:
{
  match:
  {
  	"targetname" "corruption_biome_trigger_7"
	"origin" "10784 -7488 256"
	"classname" "trigger_once"
  }
  delete:
  {
	"OnStartTouch" "tp_7,Enable,,0,1"
  }
  insert:
  {
	"OnStartTouch" "tp_7,Enable,,8,1"
  }
}

;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; Everything below here are experiencement changes to see how gameplay changes
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
;-----------------------------------------------------------------------------------------------------------------
; Removes insta kill from when players fall off the bridge - Apes havent learnt after 2 years of gameplay gg
;-----------------------------------------------------------------------------------------------------------------
filter:
{
	"targetname" "corruption_hurt_1"
	"origin" "8422.71 -8632 -224"
	"classname" "trigger_hurt"
}
filter:
{
	"targetname" "corruption_hurt_2"
	"origin" "8152 -3592 170.36"
	"classname" "trigger_hurt"
}
add:
{
	"origin" "12544 3920 6576"
	"targetname" "point_hurt"
	"DamageType" "0"
	"DamageTarget" "!activator"
	"DamageRadius" "0"
	"DamageDelay" "0"
	"Damage" "75"
	"classname" "point_hurt"
}
modify:
{
  match:
  {
  	"targetname" "fall_down_corruption_tp_1"
	"origin" "8422.71 -8632 -184"
	"classname" "trigger_teleport"
  }
  delete:
  {
	"filtername" "zombie_filter"
  }
  insert:
  {
	"OnStartTouch" "point_hurt,Hurt,,0,-1"
  }
}
modify:
{
  match:
  {
  	"targetname" "fall_down_corruption_tp_2"
	"origin" "11010.6 -8056 -200"
	"classname" "trigger_teleport"
  }
  delete:
  {
	"filtername" "zombie_filter"
  }
  insert:
  {
	"OnStartTouch" "point_hurt,Hurt,,0,-1"
  }
}

;------------------------------------------------------
; Makes the shortcut open faster in the jungle area
;------------------------------------------------------
modify:
{
  match:
  {
	"targetname" "jungle_biome_trigger_2"
	"origin" "8332 -1232 592"
	"classname" "trigger_once"
  }
  delete:
  {
	"OnStartTouch" "jungle_trees_2,Kill,,21,1"
	"OnStartTouch" "console,Command,say < Zombie shortcut is open >,21,1"
  }
  insert:
  {
	"OnStartTouch" "jungle_trees_2,Kill,,15,1"
  }
}

;------------------------------------------------------------------------
; Makes the guide walk a little faster - was 155 startspeed
;------------------------------------------------------------------------
modify:
{
  match:
  {
	"targetname" "guide_track_train"
	"classname" "func_tracktrain"
	"origin" "7882 -12726 345.37"
  }
  replace:
  {
	"startspeed" "170"
  }
}

;-----------------------------------------------------------------------------------------
; Kills the boss_hp giver for plantera a few seconds after it has been activated
;-----------------------------------------------------------------------------------------
modify:
{
  match:
  {
	"targetname" "bulb"
	"classname" "func_breakable"
	"origin" "9230 14258 -6208"
  }
  insert:
  {
	"OnBreak" "plantera_phase_1_hp_give,Kill,,20,1"
  }
}

;------------------------------------------------------------
; Increases the timer for the Golem boss fight to start
;------------------------------------------------------------
modify:
{
  match:
  {
	"origin" "9216 2664 -9152"
	"classname" "trigger_once"
  }
  delete:
  {
	"OnStartTouch" "!self,Kill,,0,1"
	"OnStartTouch" "console,Command,say < Get inside! Quickly! >,0,1"
	"OnStartTouch" "temple_door_3,Close,,5,1"
	"OnStartTouch" "tp_20,Enable,,5,1"
	"OnStartTouch" "console,Command,say < Open area? Prepare for anything >,6,1"
	"OnStartTouch" "hp_add_golem,Enable,,7,1"
	"OnStartTouch" "golem_template,ForceSpawn,,8,1"
	"OnStartTouch" "console,Command,say < Golem has appeared! >,8,1"
	"OnStartTouch" "golem_attack_timer,Enable,,8,1"
	"OnStartTouch" "temple_biome_music,Volume,0,7,1"
	"OnStartTouch" "golem_music,PlaySound,,8,1"
  }
  insert:
  {
	"OnStartTouch" "console,Command,say < Get inside! Quickly! >,0,1"
	"OnStartTouch" "temple_door_3,Close,,10,1"
	"OnStartTouch" "tp_20,Enable,,11,1"
	"OnStartTouch" "tp_21_golem_zm_fix,Kill,,11,1"
	"OnStartTouch" "console,Command,say < Open area? Prepare for anything >,12,1"
	"OnStartTouch" "hp_add_golem,Enable,,12,1"
	"OnStartTouch" "golem_template,ForceSpawn,,13,1"
	"OnStartTouch" "console,Command,say < Golem has appeared! >,13,1"
	"OnStartTouch" "golem_attack_timer,Enable,,13,1"
	"OnStartTouch" "temple_biome_music,Volume,0,12,1"
	"OnStartTouch" "golem_music,PlaySound,,13,1"
  }
}

;-----------------------------------------------------------------------------------------
; Makes the zombie cage break when the actual door opens for the ending part of golem
;-----------------------------------------------------------------------------------------
modify:
{
  match:
  {
	"targetname" "end_door_trigger_temple"
	"origin" "9216 1092 -9200"
	"classname" "trigger_once"
  }
  delete:
  {
	"OnStartTouch" "temple_glass,Break,,2,1"
	"OnStartTouch" "console,Command,say < Zombie glass is broken. Watch out! >,2,1"
  }
  insert:
  {
	"OnStartTouch" "temple_glass,Break,,6,1"
	"OnStartTouch" "console,Command,say < Zombie glass is broken. Watch out! >,6,1"
  }
}

;------------------------------------------------------------------------------------------------
; Makes a prevention system if humans are knifed when they enter the final boss room for golem
;------------------------------------------------------------------------------------------------
add:
{
	"model" "*356"
	"targetname" "tp_21_golem_zm_fix"
	"target" "pit_dest_1"
	"filtername" "zombie_filter"
	"StartDisabled" "0"
	"spawnflags" "1"
	"origin" "9216 1440 -9344"
	"classname" "trigger_teleport"
}