//
// Doom Locks - they include Heretic's keys because somebody mentioned that he already used them
//
ClearLocks

Lock 1 Doom
{
	//$Title "Red key card"
	RedCard
	Message "$PD_REDC"
	RemoteMessage "$PD_REDCO"
	Mapcolor 255 0 0
}


Lock 2 Doom
{
	//$Title "Blue key card"
	BlueCard
	Message "$PD_BLUEC"
	RemoteMessage "$PD_BLUECO"
	Mapcolor 0 0 255
}


Lock 3 Doom
{
	//$Title "Yellow key card"
	YellowCard
	Message "$PD_YELLOWC"
	RemoteMessage "$PD_YELLOWCO"
	Mapcolor 255 255 0
}


Lock 4 Doom
{
	//$Title "Red skull"
	RedSkull
	Message "$PD_REDS"
	RemoteMessage "$PD_REDSO"
	Mapcolor 255 0 0
}


Lock 5 Doom
{
	//$Title "Blue skull"
	BlueSkull
	Message "$PD_BLUES"
	RemoteMessage "$PD_BLUESO"
	Mapcolor 0 0 255
}


Lock 6 Doom
{
	//$Title "Yellow skull"
	YellowSkull
	Message "$PD_YELLOWS"
	RemoteMessage "$PD_YELLOWSO"
	Mapcolor 255 255 0
}


Lock 129 Doom
{
	//$Title "Any red key"
	Any { RedCard RedSkull KeyGreen }
	Message "$PD_REDK"
	RemoteMessage "$PD_REDO"
	Mapcolor 255 0 0
}


Lock 130 Doom
{
	//$Title "Any blue key"
	Any { BlueCard BlueSkull KeyBlue }
	Message "$PD_BLUEK"
	RemoteMessage "$PD_BLUEO"
	Mapcolor 0 0 255
}


Lock 131 Doom
{
	//$Title "Any yellow key"
	Any { YellowCard YellowSkull KeyYellow }
	Message "$PD_YELLOWK"
	RemoteMessage "$PD_YELLOWO"
	Mapcolor 255 255 0
}


Lock 132 Doom
{
	//$Title "Red card or skull"
	Any { RedCard RedSkull }
	Message "$PD_REDK"
	RemoteMessage "$PD_REDO"
	Mapcolor 255 0 0
}


Lock 133 Doom
{
	//$Title "Blue card or skull"
	Any { BlueCard BlueSkull }
	Message "$PD_BLUEK"
	RemoteMessage "$PD_BLUEO"
	Mapcolor 0 0 255
}


Lock 134 Doom
{
	//$Title "Yellow card or skull"
	Any { YellowCard YellowSkull }
	Message "$PD_YELLOWK"
	RemoteMessage "$PD_YELLOWO"
	Mapcolor 255 255 0
}

Lock 100
{
	//$Title "Any key"
	Message "$PD_ANY"
	RemoteMessage "$PD_ANYOBJ"
	Mapcolor 128 128 255
}

Lock 228
{
	//$Title "Any key"
	Message "$PD_ANY"
	RemoteMessage "$PD_ANYOBJ"
	Mapcolor 128 128 255
}

Lock 229 Doom
{
	//$Title "One of each color"
	Any { BlueCard BlueSkull KeyBlue}
	Any { YellowCard YellowSkull KeyYellow}
	Any { RedCard RedSkull KeyGreen}
	Message "$PD_ALL3"
	RemoteMessage "$PD_ALL3O"
}

Lock 101 Doom
{
	//$Title "All keys"
	BlueCard 
	BlueSkull
	YellowCard 
	YellowSkull
	RedCard 
	RedSkull
	Message "$PD_ALL6"
	RemoteMessage "$PD_ALL6O"
}

//
// Heretic KeyDefs
//

Lock 1 Heretic
{
	//$Title "Green key"
	KeyGreen
	Message "$TXT_NEEDGREENKEY"
	Mapcolor 0 255 0
}


Lock 2 Heretic
{
	//$Title "Blue key"
	KeyBlue 
	Message "$TXT_NEEDBLUEKEY"
	Mapcolor 0 0 255
}


Lock 3 Heretic
{
	//$Title "Yellow key"
	KeyYellow
	Message "$TXT_NEEDYELLOWKEY"
	Mapcolor 255 255 0
}


Lock 129 Heretic
{
	//$Title "Green key"
	KeyGreen
	Message "$TXT_NEEDGREENKEY"
	Mapcolor 0 255 0
}


Lock 130 Heretic
{
	//$Title "Blue key"
	KeyBlue 
	Message "$TXT_NEEDBLUEKEY"
	Mapcolor 0 0 255
}


Lock 131 Heretic
{
	//$Title "Yellow key"
	KeyYellow
	Message "$TXT_NEEDYELLOWKEY"
	Mapcolor 255 255 0
}


Lock 229 Heretic
{
	//$Title "All keys"
	KeyGreen 
	KeyYellow 
	KeyBlue
	Message "$PD_ALL3"
	RemoteMessage "$PD_ALL3O"
}

Lock 101 Heretic
{
	//$Title "All keys"
	KeyGreen 
	KeyYellow 
	KeyBlue
	Message "$PD_ALL3"
	RemoteMessage "$PD_ALL3O"
}


//
// Hexen KeyDefs
//

Lock 1 Hexen
{
	//$Title "Steel key"
	KeySteel
	Message "$TXT_NEED_KEY_STEEL"
	Mapcolor 150 150 150
}


Lock 2 Hexen
{
	//$Title "Cave key"
	KeyCave
	Message "$TXT_NEED_KEY_CAVE"
	Mapcolor 255 218 0
}


Lock 3 Hexen
{
	//$Title "Axe key"
	KeyAxe
	Message "$TXT_NEED_KEY_AXE"
	Mapcolor 64 64 255
}


Lock 4 Hexen
{
	//$Title "Fire key"
	KeyFire
	Message "$TXT_NEED_KEY_FIRE"
	Mapcolor 255 128 0
}


Lock 5 Hexen
{
	//$Title "Emerald key"
	KeyEmerald
	Message "$TXT_NEED_KEY_EMERALD"
	Mapcolor 0 255 0
}


Lock 6 Hexen
{
	//$Title "Dungeon key"
	KeyDungeon
	Message "$TXT_NEED_KEY_DUNGEON"
	Mapcolor 47 151 255
}


Lock 7 Hexen
{
	//$Title "Silver key"
	KeySilver
	Message "$TXT_NEED_KEY_SILVER"
	Mapcolor 154 152 188
}


Lock 8 Hexen
{
	//$Title "Rusted key"
	KeyRusted
	Message "$TXT_NEED_KEY_RUSTED"
	Mapcolor 156 76 0
}


Lock 9 Hexen
{
	//$Title "Horn key"
	KeyHorn
	Message "$TXT_NEED_KEY_HORN"
	Mapcolor 255 218 0
}


Lock 10 Hexen
{
	//$Title "Swamp key"
	KeySwamp
	Message "$TXT_NEED_KEY_SWAMP"
	Mapcolor 64 255 64
}


Lock 11 Hexen
{
	//$Title "Castle key"
	KeyCastle
	Message "$TXT_NEED_KEY_CASTLE"
	Mapcolor 255 64 64
}


Lock 101 Hexen
{
	//$Title "All keys"
	KeySteel
	KeyCave
	KeyAxe
	KeyFire
	KeyEmerald
	KeyDungeon
	KeySilver
	KeyRusted
	KeyHorn
	KeySwamp
	KeyCastle
	Message "$PD_ALLKEYS"
}

Lock 229 Hexen
{
	//$Title "All keys"
	KeySteel
	KeyCave
	KeyAxe
	KeyFire
	KeyEmerald
	KeyDungeon
	KeySilver
	KeyRusted
	KeyHorn
	KeySwamp
	KeyCastle
	Message "$PD_ALLKEYS"
}


// Strife KeyDefs

Lock 1 Strife
{
	//$Title "Base key"
	BaseKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}


Lock 2 Strife
{
	//$Title "Governor's key"
	GovsKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}


Lock 3 Strife
{
	//$Title "Travel passcard"
	Passcard
	RemoteMessage "$TXT_NEED_PASSCARD"
	Message "$TXT_NEED_PASSCARD_DOOR"
	Mapcolor 128 166 150
}


Lock 4 Strife
{
	//$Title "ID badge"
	IDBadge
	Message "$TXT_NEED_IDCARD"
	Mapcolor 255 128 0
}


Lock 5 Strife
{
	//$Title "Prison key"
	PrisonKey
	Message "$TXT_NEED_PRISONKEY"
	Mapcolor 0 255 0
}


Lock 6 Strife
{
	//$Title "Severed hand"
	SeveredHand
	Message "$TXT_NEED_HANDPRINT"
	Mapcolor 255 151 100
}


Lock 7 Strife
{
	//$Title "Power key 1"
	Power1Key
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}


Lock 8 Strife
{
	//$Title "Power key 2"
	Power2Key
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}


Lock 9 Strife
{
	//$Title "Power key 3"
	Power3Key
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}


Lock 10 Strife
{
	//$Title "Gold key"
	GoldKey
	Message "$TXT_NEED_GOLDKEY"
	Mapcolor 255 200 0
}


Lock 11 Strife
{
	//$Title "ID card"
	IDCard
	RemoteMessage "$TXT_NEED_IDBADGE"
	Message "$TXT_NEED_IDBADGE_DOOR"
	Mapcolor 200 0 0
}

Lock 12 Strife
{
	//$Title "Silver key"
	SilverKey
	Message "$TXT_NEED_SILVERKEY"
	Mapcolor 150 150 150
}

Lock 13 Strife
{
	//$Title "Oracle key"
	OracleKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 14 Strife
{
	//$Title "Military key"
	MilitaryID
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 15 Strife
{
	//$Title "Order key"
	OrderKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 16 Strife
{
	//$Title "Warehouse key"
	WarehouseKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 17 Strife
{
	//$Title "Brass key"
	BrassKey
	Message "$TXT_NEED_BRASSKEY"
	Mapcolor 150 75 0
}

Lock 18 Strife
{
	//$Title "Red crystal key"
	RedCrystalKey
	Message "$TXT_NEED_REDCRYSTAL"
	Mapcolor 150 150 150
}

Lock 19 Strife
{
	//$Title "Blue crystal key"
	BlueCrystalKey
	Message "$TXT_NEED_BLUECRYSTAL"
	Mapcolor 150 150 150
}

Lock 20 Strife
{
	//$Title "Chapel key"
	ChapelKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 21 Strife
{
	//$Title "Catacomb key"
	CatacombKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 22 Strife
{
	//$Title "Security key"
	SecurityKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 23 Strife
{
	//$Title "Core key"
	CoreKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 24 Strife
{
	//$Title "Mauler key"
	MaulerKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 25 Strife
{
	//$Title "Factory key"
	FactoryKey
	Message "$TXT_NEEDKEY"
 	Mapcolor 150 150 150
}

Lock 26 Strife
{
	//$Title "Mine key"
	MineKey
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 27 Strife
{
	//$Title "New key 5"
	NewKey5
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 50 Strife
{
	//$Title "Prison key"
	PrisonPass
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

Lock 51 Strife
{
	//$Title "Oracle pass"
	OraclePass
	Message "$TXT_NEEDKEY"
	Mapcolor 150 150 150
}

//
// Chex Locks
//

Lock 1 Chex
{
	//$Title "Red key card"
	ChexRedCard
	Message "$PD_REDC"
	RemoteMessage "$PD_REDCO"
	Mapcolor 255 0 0
}


Lock 2 Chex
{
	//$Title "Blue key card"
	ChexBlueCard
	Message "$PD_BLUEC"
	RemoteMessage "$PD_BLUECO"
	Mapcolor 0 0 255
}


Lock 3 Chex
{
	//$Title "Yellow key card"
	ChexYellowCard
	Message "$PD_YELLOWC"
	RemoteMessage "$PD_YELLOWCO"
	Mapcolor 255 255 0
}

Lock 129 Chex
{
	//$Title "Red key"
	ChexRedCard
	Message "$PD_REDK"
	RemoteMessage "$PD_REDO"
	Mapcolor 255 0 0
}


Lock 130 Chex
{
	//$Title "Blue key"
	ChexBlueCard
	Message "$PD_BLUEK"
	RemoteMessage "$PD_BLUEO"
	Mapcolor 0 0 255
}


Lock 131 Chex
{
	//$Title "Yellow key"
	ChexYellowCard
	Message "$PD_YELLOWK"
	RemoteMessage "$PD_YELLOWO"
	Mapcolor 255 255 0
}