// ===========================================================================
// Adventures of Square (Square-ware)
// MAPINFO File
// ===========================================================================

include "mapinfo/square/gameinfo.txt"
include "mapinfo/square/gamedefaults.txt"
include "mapinfo/square/damagetypes.txt"
include "mapinfo/square/base/doomednums.txt"
include "mapinfo/square/base/spawnnums.txt"
include "mapinfo/square/automap.txt"
include "mapinfo/square/skills.txt"
include "mapinfo/square/intermissions.base"

// ===========================================================================
// MAPS
// ===========================================================================

// ......................................
// SQUARE-OFF / DEATHMATCH / TIME ATTACK
// ......................................

map DM01 "$SQHUSTR_DM01"
{
	levelnum = 901
	next = "DM02"
	sky1 = "SKY0"
	music = "D_DM01"
	cluster = 9
	
	par = 2880135
	
	resethealth
	resetinventory
}

map DM02 "$SQHUSTR_DM02"
{
	levelnum = 902
	next = "DM03"
	sky1 = "SKY1"
	music = "D_DM02"
	cluster = 9
	
	par = 1800095
	
	resethealth
	resetinventory
}

map DM03 "$SQHUSTR_DM03"
{
	levelnum = 903
	next = "DM04"
	sky1 = "SKYCITY2"
	music = "D_DM03"
	cluster = 9
	
	par = 2700120
	
	resethealth
	resetinventory
}

map DM04 "$SQHUSTR_DM04"
{
	levelnum = 904
	next = "DM05"
	sky1 = "SKYNIGHT"
	music = "D_DM04"
	cluster = 9
	
	par = 2160090
	
	resethealth
	resetinventory
}

map DM05 "$SQHUSTR_DM05"
{
	levelnum = 905
	next = "DM06"
	sky1 = "SKYCHEES"
	music = "D_DM05"
	cluster = 9
	
	par = 4860180
	
	resethealth
	resetinventory
}

map DM06 "$SQHUSTR_DM06"
{
	levelnum = 906
	next = "DM01"
	sky1 = "SKYMOON"
	music = "D_DM06"
	cluster = 9
	
	par = 3780150
	
	resethealth
	resetinventory
}

// ......................................
// EPISODE 1
// ......................................

map E1A1 "$SQHUSTR_E1A1"
{
	levelnum = 101
	next = "E1A2"
	secretnext = "E1A10"
	sky1 = "SKY0"
	music = "D_E1A1"
	cluster = 1
	par = 1584315
	resethealth
	resetinventory
}

map E1A2 "$SQHUSTR_E1A2"
{
	levelnum = 102
	next = "E1A3"
	secretnext = "E1A10"
	sky1 = "SKY1"
	music = "D_E1A2"
	cluster = 1
	par = 2232240
}

map E1A3 "$SQHUSTR_E1A3"
{
	levelnum = 103
	next = "E1A4"
	secretnext = "E1A10"
	sky1 = "SKY1"
	music = "D_E1A3"
	cluster = 1
	par = 504330
}

map E1A4 "$SQHUSTR_E1A4"
{
	levelnum = 104
	next = "E1A5"
	secretnext = "E1A10"
	sky1 = "SKY1"
	music = "D_E1A4"
	cluster = 1
	par = 3384645
}

map E1A5 "$SQHUSTR_E1A5"
{
	levelnum = 105
	next = "E1A6"
	secretnext = "E1A10"
	sky1 = "SKY2"
	music = "D_E1A5"
	cluster = 1
	par = 3780630
}

map E1A6 "$SQHUSTR_E1A6"
{
	levelnum = 106
	next = "E1A7"
	secretnext = "E1A10"
	sky1 = "SKYDUSK1"
	music = "D_E1A6"
	cluster = 1
	checkswitchrange // [XA] don't forget this addition -- it's necessary for one part to work.
	par = 3096525
}

map E1A7 "$SQHUSTR_E1A7"
{
	levelnum = 107
	next = "E1A8"
	secretnext = "E1A10"
	sky1 = "SKYCITY2"
	music = "D_E1A7"
	cluster = 1
	par = 2304300
}

map E1A8 "$SQHUSTR_E1A8"
{
	levelnum = 108
	next = "E1A9"
	secretnext = "E1A10"
	sky1 = "SKYCITY"
	music = "D_E1A8"
	cluster = 1
	par = 3456510
}

map E1A9 "$SQHUSTR_E1A9"
{
	levelnum = 109
	next = "E1END"
	secretnext = "E1A10"
	sky1 = "SKYRISE1"
	music = "D_E1A9"
	cluster = 1
	par = 7920645
}

map E1A10 "$SQHUSTR_E1A10"
{
	levelnum = 110
	next = "E1A6"
	sky1 = "SKY4"
	music = "D_E1A10"
	cluster = 1
	par = 2340395
}

map E1END "Cutscene"
{
	levelnum = 199
	next = "E2A1"
	sky1 = "SKYRISE1"
	music = "NULLMUS"
	cluster = 1
	par = 0
}

// ......................................
// EPISODE 2
// ......................................

map E2A1 "$SQHUSTR_E2A1"
{
	levelnum = 201
	next = "E2A2"
	sky1 = "SKYORBIT"
	sky2 = "SKYORBIT" // [XA] Should be SKYCHEES, but... engine bugs :<
	music = "D_E2A1"
	cluster = 1
	par = 3456255
	resethealth
	resetinventory
}

map E2A2 "$SQHUSTR_E2A2"
{
	levelnum = 202
	next = "E2A3"
	sky1 = "SKYCHEES"
	music = "D_E2A2"
	cluster = 1
	par = 2412465
}

map E2A3 "$SQHUSTR_E2A3"
{
	levelnum = 203
	next = "E2A4"
	sky1 = "SKYCHEES"
	music = "D_E2A3"
	cluster = 1
	par = 8352645
}

map E2A4 "$SQHUSTR_E2A4"
{
	levelnum = 204
	next = "E2A5"
	secretnext = "E2A11"
	sky1 = "SKYSPACE"
	music = "D_E2A4"
	cluster = 1
	par = 1800255
}

map E2A5 "$SQHUSTR_E2A5"
{
	levelnum = 205
	next = "E2A6"
	sky1 = "SKYMOON"
	music = "D_E2A5"
	cluster = 1
	par = 4140735
}

map E2A6 "$SQHUSTR_E2A6"
{
	levelnum = 206
	next = "E2A7"
	sky1 = "SKYMOON"
	music = "D_E2A6"
	cluster = 1
	par = 2376585
}

map E2A7 "$SQHUSTR_E2A7"
{
	levelnum = 207
	next = "E2A8"
	secretnext = "E2A12"
	sky1 = "SKYMOON"
	music = "D_E2A7"
	cluster = 1
	par = 4968735
}

map E2A8 "$SQHUSTR_E2A8"
{
	levelnum = 208
	next = "E2A9"
	sky1 = "SKYSPACE"
	music = "D_E2A8"
	cluster = 1
	par = 4356510
}

map E2A9 "$SQHUSTR_E2A9"
{
	levelnum = 209
	next = "E2A10"
	sky1 = "SKYSPACE"
	music = "D_E2A9"
	cluster = 1
	par = 3096675
}

map E2A10 "$SQHUSTR_E2A10"
{
	levelnum = 210
	next = "E2END"
	sky1 = "SKYBLOOD"
	music = "D_E2A10"
	cluster = 1
	par = 9397155
}

map E2A11 "$SQHUSTR_E2A11"
{
	levelnum = 211
	next = "E2A5"
	sky1 = "SKYBLUE2"
	sky2 = "SKYCHEES"
	music = "D_E2A11"
	cluster = 1
	par = 2772465
}

map E2A12 "$SQHUSTR_E2A12"
{
	levelnum = 212
	next = "E2A8"
	sky1 = "SKYBLUE2"
	music = "D_E2A12"
	cluster = 1
	par = 5364930
}

map E2END "Cutscene"
{
	levelnum = 298
	next = "E2END2"
	sky1 = "SKYBLOOD"
	music = "NULLMUS"
	cluster = 1
	par = 0
}

map E2END2 "To Be Continued"
{
	levelnum = 299
	next = EndSequence, "Inter_Cast"
	sky1 = "SKYBLOOD"
	music = "NULLMUS"
	cluster = 1
	par = 0
	resetinventory
}


// ......................................
// SPECIAL
// ......................................

map TRAINING "$SQHUSTR_TRAINING"
{
	levelnum = 999
	next = "E1A1"
	sky1 = "SKY1"
	music = "D_TRAIN"
	cluster = 1
	par = 0
}

map OLDSEWER "$SQHUSTR_OLDSEWER"
{
	levelnum = 998
	next = "OLDSEWER"
	sky1 = "SKYBLOOD"
	music = "NULLMUS"
	cluster = 1
	par = 0
}

map DEBUGMAP "$SQHUSTR_DEBUGMAP"
{
	levelnum = 0
	next = "DEBUGMAP"
	secretnext = "DEBUGMAP"
	music = "D_DM01"
	sky1 = "SKYSPACE"
}

map THANKMAP "Thanks for Playing"
{
	levelnum = 997
	next = EndSequence, "Inter_Cast"
	sky1 = "SKYSPACE"
	music = "NULLMUS"
	cluster = 1
	par = 0
	resetinventory
}

map TITLEMAP "$SQHUSTR_TITLEMAP"
{
}

// ===========================================================================
// EPISODES
// ===========================================================================
clearepisodes

episode E1A1
{
	picname = "M_EPI1"
	key = 1
}

episode E2A1
{
	picname = "M_EPI2"
	key = 2
}

episode DM01
{
	name = "Time Attack Mode"
	key = t
	noskillmenu
}
