IMBA_MUTATION_TIMER = nil

IMBA_MUTATION_PERIODIC_SPELLS = {}
--IMBA_MUTATION_PERIODIC_SPELLS[9] = {"track", "Track", "Red", 20.0}

-- Negative Spellcasts
IMBA_MUTATION_PERIODIC_SPELLS[1] = {}
IMBA_MUTATION_PERIODIC_SPELLS[1][1] = {"sun_strike", "Sunstrike", "Red", -1}
IMBA_MUTATION_PERIODIC_SPELLS[1][2] = {"thundergods_wrath", "Thundergod's Wrath", "Red", 3.5}
IMBA_MUTATION_PERIODIC_SPELLS[1][3] = {"rupture", "Rupture", "Red", 10.0}
IMBA_MUTATION_PERIODIC_SPELLS[1][4] = {"torrent", "Torrent", "Red", 10}
IMBA_MUTATION_PERIODIC_SPELLS[1][5] = {"cold_feet", "Cold Feet", "Red", 4.0}

-- Positive Spellcasts
IMBA_MUTATION_PERIODIC_SPELLS[2] = {}
IMBA_MUTATION_PERIODIC_SPELLS[2][1] = {"stampede", "Stampede", "Green", 5.0}
IMBA_MUTATION_PERIODIC_SPELLS[2][2] = {"bloodlust", "Bloodlust", "Green", 30.0}
IMBA_MUTATION_PERIODIC_SPELLS[2][3] = {"aphotic_shield", "Aphotic Shield", "Green", 15.0}

-- TO DO
-- "telekinesis",
-- "glimpse",

-- "shallow_grave",
-- "false_promise",
-- "bloodrage",

IMBA_MUTATION_WORMHOLE_COLORS = {}
IMBA_MUTATION_WORMHOLE_COLORS[1] = Vector(100, 0, 0)
IMBA_MUTATION_WORMHOLE_COLORS[2] = Vector(0, 100, 0)
IMBA_MUTATION_WORMHOLE_COLORS[3] = Vector(0, 0, 100)
IMBA_MUTATION_WORMHOLE_COLORS[4] = Vector(100, 100, 0)
IMBA_MUTATION_WORMHOLE_COLORS[5] = Vector(100, 0, 100)
IMBA_MUTATION_WORMHOLE_COLORS[6] = Vector(0, 100, 100)
IMBA_MUTATION_WORMHOLE_COLORS[7] = Vector(0, 100, 100)
IMBA_MUTATION_WORMHOLE_COLORS[8] = Vector(100, 0, 100)
IMBA_MUTATION_WORMHOLE_COLORS[9] = Vector(100, 100, 0)
IMBA_MUTATION_WORMHOLE_COLORS[10] = Vector(0, 0, 100)
IMBA_MUTATION_WORMHOLE_COLORS[11] = Vector(0, 100, 0)
IMBA_MUTATION_WORMHOLE_COLORS[12] = Vector(100, 0, 0)

IMBA_MUTATION_WORMHOLE_POSITIONS = {}
IMBA_MUTATION_WORMHOLE_POSITIONS[1] = Vector(-2471, -5025, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[2] = Vector(-576, -4320, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[3] = Vector(794, -3902, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[4] = Vector(2630, -3700, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[5] = Vector(3203, -6064, 0) -- Bot Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[6] = Vector(1111, -5804, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[7] = Vector(4419, -5114, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[8] = Vector(6156, -4831, 0) -- Bot Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[9] = Vector(6084, -3022, 0) -- Bone Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[10] = Vector(4422, -1765, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[11] = Vector(6186, -654, 0) -- Bot Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[12] = Vector(4754, -84, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[13] = Vector(3318, -58, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[14] = Vector(5008, 1799, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[15] = Vector(1534, -649, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[16] = Vector(2641, -2003, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[17] = Vector(3939, 2279, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[18] = Vector(2309, 4643, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[19] = Vector(843, 2300, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[20] = Vector(-544, -361, 0) -- Mid Lane Wormhole (Center)
IMBA_MUTATION_WORMHOLE_POSITIONS[21] = Vector(354, -1349, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[22] = Vector(289, -2559, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[23] = Vector(-1534, -2893, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[24] = Vector(-5366, -2570, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[25] = Vector(-5238, -1727, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[26] = Vector(-3363, -1210, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[27] = Vector(-4535, 10, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[28] = Vector(-4420, 1351, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[29] = Vector(-6161, 440, 0) -- Top Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[30] = Vector(-2110, 376, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[31] = Vector(-840, 1384, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[32] = Vector(-388, 2537, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[33] = Vector(-36, 4042, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[34] = Vector(-1389, 4325, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[35] = Vector(-2812, 3633, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[36] = Vector(-4574, 4804, 0)
IMBA_MUTATION_WORMHOLE_POSITIONS[37] = Vector(-6339, 3841, 0) -- Top Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[38] = Vector(-5971, 5455, 0) -- Top Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[39] = Vector(-3099, 6112, 0) -- Top Lane Wormhole
IMBA_MUTATION_WORMHOLE_POSITIONS[40] = Vector(-1606, 6103, 0) -- Top Lane Wormhole

--IMBA_MUTATION_WORMHOLE_INTERVAL = 600
--IMBA_MUTATION_WORMHOLE_DURATION = 600
IMBA_MUTATION_WORMHOLE_PREVENT_DURATION = 3

-- Tug of War
IMBA_MUTATION_TUG_OF_WAR_DEATH_COUNT = 0
IMBA_MUTATION_TUG_OF_WAR_START = {}
IMBA_MUTATION_TUG_OF_WAR_START[DOTA_TEAM_BADGUYS] = Vector(4037, 3521, 0)
IMBA_MUTATION_TUG_OF_WAR_START[DOTA_TEAM_GOODGUYS] = Vector(-4448, -3936, 0)
IMBA_MUTATION_TUG_OF_WAR_TARGET = {}
IMBA_MUTATION_TUG_OF_WAR_TARGET[DOTA_TEAM_BADGUYS] = Vector(-5864, -5340, 0)
IMBA_MUTATION_TUG_OF_WAR_TARGET[DOTA_TEAM_GOODGUYS] = Vector(5654, 4939, 0)

-- Minefield
IMBA_MUTATION_MINEFIELD_MAP_SIZE = 7000

-- Airdrop
IMBA_MUTATION_AIRDROP_TIMER = 120.0 + 1.0 -- don't ask
IMBA_MUTATION_AIRDROP_MAP_SIZE = 5000
IMBA_MUTATION_AIRDROP_ITEM_TIER_1_MINUTES = 5
IMBA_MUTATION_AIRDROP_ITEM_TIER_2_MINUTES = 10
IMBA_MUTATION_AIRDROP_ITEM_TIER_3_MINUTES = 15
IMBA_MUTATION_AIRDROP_ITEM_MINIMUM_GOLD_COST = 1000
IMBA_MUTATION_AIRDROP_ITEM_TIER_1_GOLD_COST = 2000
IMBA_MUTATION_AIRDROP_ITEM_TIER_2_GOLD_COST = 3500
IMBA_MUTATION_AIRDROP_ITEM_TIER_3_GOLD_COST = 5000
IMBA_MUTATION_AIRDROP_ITEM_SPAWN_DELAY = 10
IMBA_MUTATION_AIRDROP_ITEM_VISION_LINGER = 10
IMBA_MUTATION_AIRDROP_ITEM_SPAWN_RADIUS = 300

IMBA_MUTATION_RESTRICTED_ITEMS = {
	"item_imba_ironleaf_boots",
	"item_imba_travel_boots",
	"item_imba_travel_boots_2",

	-- Removed items!
	"item_imba_triumvirate",
	"item_imba_sange_azura",
	"item_imba_azura_yasha",
	"item_imba_travel_boots",
	"item_imba_travel_boots_2",
	"item_imba_cyclone",
	"item_imba_recipe_cyclone",
	"item_imba_plancks_artifact",
	"item_recipe_imba_plancks_artifact",
	"item_nokrash_blade",
	"item_recipe_nokrash_blade",
}

-- Speed Freaks
_G.IMBA_MUTATION_SPEED_FREAKS_PROJECTILE_SPEED = 500
_G.IMBA_MUTATION_SPEED_FREAKS_MOVESPEED_PCT = 50 -- %
_G.IMBA_MUTATION_SPEED_FREAKS_MAX_MOVESPEED = 1000

-- Death Explosion
_G.IMBA_MUTATION_DEATH_EXPLOSION_DAMAGE = 300
_G.IMBA_MUTATION_DEATH_EXPLOSION_DAMAGE_INCREASE_PER_MIN = 50
_G.IMBA_MUTATION_DEATH_EXPLOSION_RADIUS = 350
_G.IMBA_MUTATION_DEATH_EXPLOSION_DELAY = 1.0 -- seconds
_G.IMBA_MUTATION_DEATH_EXPLOSION_BUILDING_DAMAGE = 20 -- %
_G.IMBA_MUTATION_DEATH_EXPLOSION_MAX_MINUTES = 30 -- minutes

-- Ultimate Level
IMBA_MUTATION_ULTIMATE_LEVEL = 100

-- Killstreak Power
_G.IMBA_MUTATION_KILLSTREAK_POWER = 20 -- %
_G.IMBA_MUTATION_KILLSTREAK_POWER_MAX_SIZE = 100 -- %

-- Defense of the Ants
_G.IMBA_MUTATION_DEFENSE_OF_THE_ANTS_SCALE = 5 -- %
_G.IMBA_MUTATION_DEFENSE_OF_THE_ANTS_MIN_SCALE = -75 -- %

-- River Flows
_G.IMBA_MUTATION_RIVER_FLOWS_MOVESPEED = 1000

-- Monkey Business
_G.IMBA_MUTATION_MONKEY_BUSINESS_DELAY = 3.0

-- Slark Mode
_G.IMBA_MUTATION_SLARK_MODE_HEALTH_REGEN = 5 -- %
_G.IMBA_MUTATION_SLARK_MODE_MANA_REGEN = 2 -- %

-- Danger Zone
IMBA_MUTATION_DANGER_ZONE_TIMER = 10.0 + 1.0 -- don't ask

-- All Random Deathmatch
--if IsInToolsMode() then
--	IMBA_MUTATION_ARDM_RESPAWN_COUNT = 5
--else
	if Is10v10Map() then
		IMBA_MUTATION_ARDM_RESPAWN_COUNT = 50
	else
		IMBA_MUTATION_ARDM_RESPAWN_COUNT = 30
	end
--end

IMBA_MUTATION_ARDM_RESPAWN_SCORE = {}
IMBA_MUTATION_ARDM_RESPAWN_SCORE[2] = IMBA_MUTATION_ARDM_RESPAWN_COUNT
IMBA_MUTATION_ARDM_RESPAWN_SCORE[3] = IMBA_MUTATION_ARDM_RESPAWN_COUNT
