// Main Config File
//
//***************************
// GoldBox conversion layout - emulating a 640x400 resolution screen
//***************************
// Current Resolution 640 x 480, but made to look like 640x400
// Values are max size! ANYTHING higher will go over the frame!
// SmallPic           176x176 (includes spritepic and 3D view)
// SmallPicFrame      208x208
// BigPic             608x288
// WallPic            112x112, 48x48, 16x16, -> 176x176
//***************************
// Shared Config
//***************************
Force_SysMem = 1
LOG_ERRORS = 1
LOG_DATABASE_ERRORS = 40
LOG_COMPILE_ERRORS = 40
MAX_UNDO_ACTIONS = 20
EDITOR_COLOR_1 = 0,0,0
EDITOR_COLOR_2 = 255,0,0
EDITOR_COLOR_3 = 0,255,0
EDITOR_COLOR_4 = 0,0,255
EDITOR_COLOR_1 = 255,255,0
EDITOR_COLOR_6 = 0,255,255
EDITOR_COLOR_7 = 255,0,255
EDITOR_COLOR_8 = 128,0,0
EDITOR_COLOR_9 = 0,128,0
EDITOR_COLOR_10 = 0,0,128
EDITOR_COLOR_11 = 128,128,0
EDITOR_COLOR_12 = 0,128,128
EDITOR_COLOR_13 = 128,0,128
EDITOR_COLOR_14 = 128,128,128
EDITOR_COLOR_15 = 192,192,192
EDITOR_COLOR_16 = 255,255,255

// combat sounds
DEF_CHAR_DEATH = sound_CharDeath.wav
DEF_CHAR_MOVE = sound_CharMove.wav
DEF_HIT = sound_Hit.wav
DEF_MISS = sound_Miss.wav
DEF_CAST = sound_Cast.wav
DEF_BUMP = sound_Bump.wav
DEF_STEP = sound_Step.wav
DEF_INTRO = intro.mp3
DEF_DEATH = sound_Death.wav

// default art files, changes only affect editor
DEF_HORZ_BAR = border_Horizontal.png
DEF_VERT_BAR = border_Vertical.png
DEF_FRAME = border_Viewport.png
DEF_COMBAT_WALLS = combat_Dungeon.png
DEF_COMBAT_WALLS_WILDERNESS = combat_Wilderness.png
DEF_COMBAT_CURSOR = cursor_Combat.png
DEF_COMBAT_DEATH_ICON = cursor_CombatDying.png
DEF_COMBAT_DEATH = cursor_CombatDeath.png
DEF_CAMP = smallpic_Camp.png
DEF_TREASURE = smallpic_Treasure.png
DEF_ICONBG = iconBackground.png
DEF_MONSTER_ICON = icon_DefaultMonster.png
DEF_COMBAT_PETRIFIED_ICON = cursor_CombatPetrified.png

// DebugSpecialAbility = "SA name"
// Causes debug information about special abilities to be written to log.
// Examples:
//DebugSpecialAbility = "Five Attacks"
//DebugSpecialAbility = "Adrenaline"

// DEBUG = 20150919
DEBUG = 20150920

//***************************
// Game Engine Config
//***************************
Screen_Width  = 640
Screen_Height = 480
Color_Bits    = 32
Inter_Character_Delay = 0

// text colors used
COLOR_WHITE = 255,255,255
COLOR_BLACK = 0,0,0
COLOR_GREEN = 0,255,0
COLOR_RED = 255,0,0
COLOR_YELLOW = 255,255,0
COLOR_BLUE = 128,128,255
COLOR_COMBAT_GREEN = 0,255,0
COLOR_COMBAT_RED = 255,0,0
COLOR_COMBAT_YELLOW = 255,255,0
COLOR_COMBAT_BLUE = 64,128,255
BACKGROUND_FILL = 0,0,0
BACKGROUND_COMBAT_FILL = 0,0,0
COLOR_KEYBOARD_SHORTCUT = 251,133,15
USE_KEYBOARD_SHORTCUT = 1
COLOR_CUSTOM_1 = 102,247,159

//DLD Starting x,y where text messages will be written to
TEXTBOX = 18,314
DEFAULT_MENU_HORZ = 2,426
DEFAULT_MENU_VERT = 200,200
DEFAULT_MENU_TEXTBOX = 200,328
PARTYNAMES = 18,58,278,60
LOCATIONTEXT = 278,278
VERSIONTEXT = 280,301
BIGPICSIZE = 16,16,624,304
TEXTBOX_LINES = 5

HORZ_BAR_TOP = 0,0
HORZ_BAR_MIDDLE = 0,296
HORZ_BAR_BOTTOM = 0,448
VERT_BAR_LEFT = 0,0
VERT_BAR_MIDDLE = 256,40
VERT_BAR_RIGHT = 626,0
VIEWPORT_FRAME = 32,72
VIEWPORT_FRAME_SRC = 0,0,208,208
VIEWPORT_FRAME_OFFSET = 417,-19 //in character view
VIEWPORT_RECT = 48,88,224,264
VERT_BAR_LONG = 0,0,16,384
VERT_BAR_SHORT = 16,40,32,320
VERT_BAR_LONG_2 = 32,0,48,384
HORZ_BAR_LONG = 0,0,640,16
HORZ_BAR_LONG_2 = 0,16,640,32
HORZ_BAR_LONG_3 = 0,32,640,48

//***************************
// Menu and Character Creation layout
//***************************
SELECT_RACE_TITLE_XY = 20,60
SELECT_RACE_TITLE_FORMAT = Choose among the /bpossible/b races
SELECT_RACE_HEADER_XY = 20,80
SELECT_RACE_HEADER_FORMAT = "Races:"
SELECT_RACE_TABLE_XY = 20,100
SELECT_RACE_TABLE_FORMAT = /g%s
SELECT_RACE_TABLE_SELECTED_FORMAT = /y**%s
SELECT_RACE_LINE_SPACING = 20
SELECT_RACE_LINES_PER_PAGE =10

SELECT_GENDER_TITLE_XY = 20,60
SELECT_GENDER_TITLE_FORMAT = Choose among the /bpossible/b sexes
SELECT_GENDER_HEADER_XY = 20,80
SELECT_GENDER_HEADER_FORMAT = "Sex:"
SELECT_GENDER_TABLE_XY = 20,100
SELECT_GENDER_TABLE_FORMAT = /g%s
SELECT_GENDER_TABLE_SELECTED_FORMAT = /y**%s
SELECT_GENDER_LINE_SPACING = 20
SELECT_GENDER_LINES_PER_PAGE = 5

SELECT_CLASS_TITLE_XY = 20,60
SELECT_CLASS_TITLE_FORMAT = Choose among the /bpossible/b classes
SELECT_CLASS_HEADER_XY = 20,80
SELECT_CLASS_HEADER_FORMAT = "Class:"
SELECT_CLASS_TABLE_XY = 20,100
SELECT_CLASS_TABLE_FORMAT = /g%s
SELECT_CLASS_TABLE_SELECTED_FORMAT = /y**%s
SELECT_CLASS_LINE_SPACING = 20
SELECT_CLASS_LINES_PER_PAGE = 10

SELECT_ALIGNMENT_TITLE_XY = 20,60
SELECT_ALIGNMENT_TITLE_FORMAT = Choose among the /bpossible/b alignments
SELECT_ALIGNMENT_HEADER_XY = 20,80
SELECT_ALIGNMENT_HEADER_FORMAT = "Alignment:"
SELECT_ALIGNMENT_TABLE_XY = 20,100
SELECT_ALIGNMENT_TABLE_FORMAT = /g%s
SELECT_ALIGNMENT_TABLE_SELECTED_FORMAT = /y**%s
SELECT_ALIGNMENT_LINE_SPACING = 20
SELECT_ALIGNMENT_LINES_PER_PAGE = 10

SELECT_MAIN_FUNCTION_TITLE_XY = 20,60
SELECT_MAIN_FUNCTION_TITLE_FORMAT = /rWhat should we do
SELECT_MAIN_FUNCTION_HEADER_XY = 20,80
SELECT_MAIN_FUNCTION_HEADER_FORMAT = Name
SELECT_MAIN_FUNCTION_HEADER2_XY = 200,80
SELECT_MAIN_FUNCTION_HEADER2_FORMAT = AC
SELECT_MAIN_FUNCTION_HEADER3_XY = 300,80
SELECT_MAIN_FUNCTION_HEADER3_FORMAT = HP
SELECT_MAIN_FUNCTION_TABLE_XY = 20,100
SELECT_MAIN_FUNCTION_TABLE_FORMAT = /g%s
SELECT_MAIN_FUNCTION_TABLE2_XY = 200,80
SELECT_MAIN_FUNCTION_TABLE2_FORMAT = %i
SELECT_MAIN_FUNCTION_TABLE3_XY = 300,80
//SELECT_MAIN_FUNCTION_TABLE3_FORMAT = 0x%03x
SELECT_MAIN_FUNCTION_TABLE3_FORMAT = x%i
SELECT_MAIN_FUNCTION_TABLE4_XY = 400,100
SELECT_MAIN_FUNCTION_TABLE4_FORMAT = %s
SELECT_MAIN_FUNCTION_MENU_XY = 400,100
SELECT_MAIN_FUNCTION_MENU_SPACING = 20
SELECT_MAIN_FUNCTION_LINE_SPACING = 20
SELECT_MAIN_FUNCTION_LINES_PER_PAGE = 10

SELECT_ADD_CHARACTER_TITLE_XY = 20,60
SELECT_ADD_CHARACTER_TITLE_FORMAT = Please /gSelect /wa Character
SELECT_ADD_CHARACTER_HEADER_XY = 20,80
SELECT_ADD_CHARACTER_HEADER_FORMAT = /rC/gharacter Name
SELECT_ADD_CHARACTER_MENU_XY = 20,100
SELECT_ADD_CHARACTER_MENU_FORMAT = %s

// Default UA-like wall rects used for 3D View
A_WALL_RECT = 392,146,424,357
B_WALL_RECT = 522,146,554,357
C_WALL_RECT = 262,146,294,280
D_WALL_RECT = 342,146,374,280
E_WALL_RECT = 262,146,374,280
F_WALL_RECT = 2,146,34,280
G_WALL_RECT = 132,146,164,280
H_WALL_RECT = 522,2,570,60
I_WALL_RECT = 262,2,278,60
J_WALL_RECT = 2,2,18,21
K_WALL_RECT = 392,2,408,60
L_WALL_RECT = 522,2,538,60
M_WALL_RECT = 554,2,570,60
N_WALL_RECT = 18,146,34,280
O_WALL_RECT = 132,146,148,280
P_WALL_RECT = 132,2,148,21
A_OFF = -32,0
B_OFF = 112,0
C_OFF = 0,40
D_OFF = 0,40
E_OFF = 0,40
F_OFF = -32,40
G_OFF = 48,40
H_OFF = 0,78
I_OFF = 0,78
J_OFF = 0,96
K_OFF = 32,78
L_OFF = 0,78
M_OFF = 0,78
N_OFF = -16,40
O_OFF = 48,40
P_OFF = 0,96
VIEWPORT_COORD_0 =  0,0
VIEWPORT_COORD_1 =  144,0
VIEWPORT_COORD_2 =  32,0
VIEWPORT_COORD_3 =  112,0
VIEWPORT_COORD_4 =  64,0
VIEWPORT_COORD_1 =  0,0
VIEWPORT_COORD_6 =  160,0
VIEWPORT_COORD_7 =  16,0
VIEWPORT_COORD_8 =  112,0
VIEWPORT_COORD_9 =  64,0
VIEWPORT_COORD_10 = 0,0
VIEWPORT_COORD_11 = 144,0
VIEWPORT_COORD_12 = 32,0

MAX_ALTERNATE_WALL_FORMATS = 1

// HYPER Walls - uses 5 distant walls
WIDTH_WALL_FORMAT_1 = 1360
HEIGHT_WALL_FORMAT_1 = 208
NUM_DISTANT_WALLS_1 = 5
A1_WALL_RECT = 2,2,90,178
E1_WALL_RECT = 96,2,272,178
B1_WALL_RECT = 278,2,366,178
D1_WALL_RECT = 372,2,460,178
F1_WALL_RECT = 466,2,554,178
	N1_WALL_RECT = 514,2,554,178
H1_WALL_RECT = 608,2,688,178
G1_WALL_RECT = 742,2,830,178
	O1_WALL_RECT = 742,2,782,178
C1_WALL_RECT = 836,2,924,178
M1_WALL_RECT = 930,2,1018,178
I1_WALL_RECT = 1072,2,1112,178
P1_WALL_RECT = 1118,2,1134,178
K1_WALL_RECT = 1140,2,1180,178
L1_WALL_RECT = 1234,2,1322,178
J1_WALL_RECT = 1328,2,1344,178
A1_OFF = -32,0
B1_OFF = 56,0
C1_OFF = -56,0
D1_OFF = 0,0
E1_OFF = -32,0
F1_OFF = -64,0
G1_OFF = 24,0
H1_OFF = -16,0
I1_OFF = -16,0
J1_OFF = 0,0
K1_OFF = 24,0
L1_OFF = -72,0
M1_OFF = 0,0
N1_OFF = -16,0
O1_OFF = 24,0
P1_OFF = 0,0
VIEWPORT_COORD_0_1 = 0,0
VIEWPORT_COORD_1_1 = 144,0
VIEWPORT_COORD_2_1 = 32,0
VIEWPORT_COORD_3_1 = 112,0
VIEWPORT_COORD_4_1 = 64,0
VIEWPORT_COORD_5_1 = 0,0
VIEWPORT_COORD_6_1 = 160,0
VIEWPORT_COORD_7_1 = 16,0
VIEWPORT_COORD_8_1 = 112,0
VIEWPORT_COORD_9_1 = 64,0
VIEWPORT_COORD_10_1 = 0,0
VIEWPORT_COORD_11_1 = 144,0
VIEWPORT_COORD_12_1 = 32,0

// These are the coordinates used to draw the map graphics.
// each entry is left,top,right+1,bottom+1
// size of objects drawn
HORZ_SIZE  = 0,0,4,2
HORZOFFSET_SIZE = 0,0,6,2
VERT_SIZE = 0,0,2,4
VERTOFFSET_SIZE = 0,0,2,6
MAP_OUTER_SQUARE_SIZE = 0,0,16,16
MAP_INNER_SQUARE_SIZE = 0,0,8,8

// For each each map square, add these offsets to the top,left 
// of the map art getting blitted to that square
NORTH_OFFSET_1 = 2,0
NORTH_OFFSET_2 = 6,0
NORTH_OFFSET_3 = 10,0
NORTH_OFFSET_4 = 5,2
SOUTH_OFFSET_1 = 2,14
SOUTH_OFFSET_2 = 6,14
SOUTH_OFFSET_3 = 10,14
SOUTH_OFFSET_4 = 5,12
EAST_OFFSET_1 = 14,2
EAST_OFFSET_2 = 14,6
EAST_OFFSET_3 = 14,10
EAST_OFFSET_4 = 12,5
WEST_OFFSET_1 = 0,2
WEST_OFFSET_2 = 0,6
WEST_OFFSET_3 = 0,10
WEST_OFFSET_4 = 2,5
CENTER_OFFSET = 4,4

// size of arrow used on area map
ARROW_SIZE = 0,0,8,8

// Arrow source coords
ARROW_NORTH = 0,21,8,29
ARROW_EAST = 8,21,16,29
ARROW_SOUTH = 8,29,16,37
ARROW_WEST = 0,29,8,37

COMBAT_MAP_HEIGHT = 50
COMBAT_MAP_WIDTH = 50
COMBAT_STAT_BOX_WIDTH = 240

SOUND_PLAYBACK_RATE = 22050

// design name and version location
// when displayed during main start menu
//DESIGN_VERSION = 0,0
MAX_DEFAULT_ART_SLOTS = 96