short colour_cpairs[15] =
{
0,
- DBCLR_D_GREY,
- DBCLR_RED,
- DBCLR_BLUE,
- DBCLR_GREEN,
- DBCLR_PURPLE,
- DBCLR_BROWN,
- DBCLR_CYAN,
+ Gcol_d_grey,
+ Gcol_red,
+ Gcol_blue,
+ Gcol_green,
+ Gcol_purple,
+ Gcol_brown,
+ Gcol_cyan,
0,
- DBCLR_RED,
- DBCLR_BLUE,
- DBCLR_GREEN,
- DBCLR_PURPLE,
- DBCLR_BROWN,
- DBCLR_CYAN,
+ Gcol_red,
+ Gcol_blue,
+ Gcol_green,
+ Gcol_purple,
+ Gcol_brown,
+ Gcol_cyan,
};
wchar_t terrain_wchars[NUM_TERRAINS] =
short terrain_cpairs[NUM_TERRAINS] =
{
- DBCLR_BROWN, 0, 0, 0,
- 0, 0, DBCLR_RED, DBCLR_BLUE
+ Gcol_brown, 0, 0, 0,
+ 0, 0, Gcol_red, Gcol_blue
};
attr_t terrain_attrs[NUM_TERRAINS] =
mvwadd_wch(world_window, i, j, back_buffer[y][x]);
if (!player_fov.affected[i][j])
{
- mvwchgat(world_window, i, j, 1, A_BOLD, DBCLR_D_GREY, NULL);
+ mvwchgat(world_window, i, j, 1, A_BOLD, Gcol_d_grey, NULL);
}
front_buffer[i][j] = back_buffer[y][x];
}
noecho();
cbreak();
start_color();
- init_pair(DBCLR_BROWN, COLOR_YELLOW, COLOR_BLACK);
- init_pair(DBCLR_RED, COLOR_RED, COLOR_BLACK);
- init_pair(DBCLR_GREEN, COLOR_GREEN, COLOR_BLACK);
- init_pair(DBCLR_BLUE, COLOR_BLUE, COLOR_BLACK);
- init_pair(DBCLR_D_GREY, COLOR_BLACK, COLOR_BLACK);
- init_pair(DBCLR_PURPLE, COLOR_MAGENTA, COLOR_BLACK);
- init_pair(DBCLR_CYAN, COLOR_CYAN, COLOR_BLACK);
- wall_colour = DBCLR_BROWN;
- you_colour = DBCLR_WHITE;
+ init_pair(Gcol_brown, COLOR_YELLOW, COLOR_BLACK);
+ init_pair(Gcol_red, COLOR_RED, COLOR_BLACK);
+ init_pair(Gcol_green, COLOR_GREEN, COLOR_BLACK);
+ init_pair(Gcol_blue, COLOR_BLUE, COLOR_BLACK);
+ init_pair(Gcol_d_grey, COLOR_BLACK, COLOR_BLACK);
+ init_pair(Gcol_purple, COLOR_MAGENTA, COLOR_BLACK);
+ init_pair(Gcol_cyan, COLOR_CYAN, COLOR_BLACK);
+ wall_colour = Gcol_brown;
+ you_colour = Gcol_white;
{
wchar_t wch[2];
wch[0] = L'@';
message_panel = new_panel(message_window);
inventory_window = newwin(22, 58, 0, 22);
inventory_panel = new_panel(inventory_window);
- wattrset(inventory_window, colour_attrs[DBCLR_L_GREY]);
+ wattrset(inventory_window, colour_attrs[Gcol_l_grey]);
hide_panel(inventory_panel);
clear();
wclear(status_window);
void reset_inventory_message(void)
{
- wattrset(inventory_window, colour_attrs[DBCLR_L_GREY]);
+ wattrset(inventory_window, colour_attrs[Gcol_l_grey]);
mvwprintw(inventory_window, 0, 0, " === INVENTORY ===");
mvwprintw(inventory_window, 20, 0, " ");
}
{
int i;
char inv_line[60];
- wattr_set(inventory_window, colour_attrs[DBCLR_D_GREY], DBCLR_D_GREY, NULL);
+ wattr_set(inventory_window, colour_attrs[Gcol_d_grey], Gcol_d_grey, NULL);
for (i = 0; i < 19; i++)
{
if (u.inventory[i] == -1)
{
- wattr_set(inventory_window, colour_attrs[DBCLR_D_GREY], DBCLR_D_GREY, NULL);
+ wattr_set(inventory_window, colour_attrs[Gcol_d_grey], Gcol_d_grey, NULL);
mvwprintw(inventory_window, i + 1, 0, "%c) -----\n", 'a' + i);
}
else
if ((filter == POCLASS_NONE) ||
(permobjs[objects[u.inventory[i]].obj_id].poclass == filter))
{
- wattr_set(inventory_window, colour_attrs[DBCLR_L_GREY], DBCLR_L_GREY, NULL);
+ wattr_set(inventory_window, colour_attrs[Gcol_l_grey], Gcol_l_grey, NULL);
}
else
{
- wattr_set(inventory_window, colour_attrs[DBCLR_D_GREY], DBCLR_D_GREY, NULL);
+ wattr_set(inventory_window, colour_attrs[Gcol_d_grey], Gcol_d_grey, NULL);
}
sprintf(inv_line, "%c) ", 'a' + i);
sprint_obj_name(inv_line + 3, u.inventory[i], 45);
print_msg("You have nothing to %s.\n", action);
return -1;
}
- wattrset(inventory_window, colour_attrs[DBCLR_L_GREY]);
+ wattrset(inventory_window, colour_attrs[Gcol_l_grey]);
snprintf(msg, 58, "What do you want to %s?\n", action);
set_inventory_message(msg, accept_blank);
update_inv(filter);
- wattrset(inventory_window, colour_attrs[DBCLR_L_GREY]);
+ wattrset(inventory_window, colour_attrs[Gcol_l_grey]);
mvwprintw(inventory_window, 21, 17, "[ESC or SPACE to cancel]");
show_inv();
tryagain:
*/
struct permon permons[NUM_OF_PERMONS] = {
{
- "newt", "newts", 'n', DBCLR_RED, 20, 1, 3, 0, -1, 2, -1, DT_PHYS, "", 1, 1, 0, PMF_STUPID
+ "newt", "newts", 'n', Gcol_red, 20, 1, 3, 0, -1, 2, -1, DT_PHYS, "", 1, 1, 0, PMF_STUPID
},
{
- "rat", "rats", 'r', DBCLR_BROWN, 15, 1, 4, 0, -1, 2, -1, DT_PHYS, "", 4, 2, 2, PMF_STUPID
+ "rat", "rats", 'r', Gcol_brown, 15, 1, 4, 0, -1, 2, -1, DT_PHYS, "", 4, 2, 2, PMF_STUPID
},
{
- "wolf", "wolves", 'c', DBCLR_BROWN, 30, 6, 20, 8, -1, 10, -1, DT_PHYS, "", 6, 15, 2, 0
+ "wolf", "wolves", 'c', Gcol_brown, 30, 6, 20, 8, -1, 10, -1, DT_PHYS, "", 6, 15, 2, 0
},
{
/* Saps one Body on a really good hit */
- "snake", "snakes", 's', DBCLR_RED, 20, 6, 15, 10, -1, 3, -1, DT_PHYS, "", 9, 40, 2, PMF_STUPID
+ "snake", "snakes", 's', Gcol_red, 20, 6, 15, 10, -1, 3, -1, DT_PHYS, "", 9, 40, 2, PMF_STUPID
},
{
/* may drop a mace or leather armour */
- "thug", "thugs", 't', DBCLR_BROWN, 30, 1, 8, 5, -1, 5, -1, DT_PHYS, "", 4, 5, 1, 0
+ "thug", "thugs", 't', Gcol_brown, 30, 1, 8, 5, -1, 5, -1, DT_PHYS, "", 4, 5, 1, 0
},
{
- "goon", "goons", 't', DBCLR_YELLOW, 20, 3, 15, 6, -1, 7, -1, DT_PHYS, "", 8, 10, 1, 0
+ "goon", "goons", 't', Gcol_yellow, 20, 3, 15, 6, -1, 7, -1, DT_PHYS, "", 8, 10, 1, 0
},
{
/* Has a ranged attack - arrows */
- "hunter", "hunters", 'h', DBCLR_GREEN, 30, 9, 40, 6, 20, 6, 10, DT_PHYS, "shoots an arrow", 10, 50, 1, PMF_ARCHER
+ "hunter", "hunters", 'h', Gcol_green, 30, 9, 40, 6, 20, 6, 10, DT_PHYS, "shoots an arrow", 10, 50, 1, PMF_ARCHER
},
{
- "duellist", "duellists", 'f', DBCLR_RED, 40, 12, 60, 30, -1, 15, -1, DT_PHYS, "", 15, 130, 1, PMF_SMART
+ "duellist", "duellists", 'f', Gcol_red, 40, 12, 60, 30, -1, 15, -1, DT_PHYS, "", 15, 130, 1, PMF_SMART
},
{
- "warlord", "warlords", 'f', DBCLR_L_RED, 30, 15, 80, 25, -1, 20, -1, DT_PHYS, "", 20, 400, 2, PMF_SMART
+ "warlord", "warlords", 'f', Gcol_l_red, 30, 15, 80, 25, -1, 20, -1, DT_PHYS, "", 20, 400, 2, PMF_SMART
},
{
/* may drop a dagger */
- "goblin", "goblins", 'g', DBCLR_BROWN, 20, 1, 6, 1, -1, 3, -1, DT_PHYS, "", 3, 3, 1, 0
+ "goblin", "goblins", 'g', Gcol_brown, 20, 1, 6, 1, -1, 3, -1, DT_PHYS, "", 3, 3, 1, 0
},
{
- "bad elf", "bad elves", 'e', DBCLR_L_GREY, 40, 3, 15, 10, -1, 6, -1, DT_PHYS, "", 8, 15, 2, PMF_SMART
+ "bad elf", "bad elves", 'e', Gcol_l_grey, 40, 3, 15, 10, -1, 6, -1, DT_PHYS, "", 8, 15, 2, PMF_SMART
},
{
- "troll", "trolls", 'T', DBCLR_GREEN, 20, 12, 80, 15, -1, 15, -1, DT_PHYS, "", 13, 150, 1, PMF_STUPID
+ "troll", "trolls", 'T', Gcol_green, 20, 12, 80, 15, -1, 15, -1, DT_PHYS, "", 13, 150, 1, PMF_STUPID
},
{
- "giant", "giants", 'H', DBCLR_BROWN, 20, 21, 80, 15, -1, 25, -1, DT_PHYS, "", 20, 500, 1, PMF_STUPID
+ "giant", "giants", 'H', Gcol_brown, 20, 21, 80, 15, -1, 25, -1, DT_PHYS, "", 20, 500, 1, PMF_STUPID
},
{
- "giant jarl", "giant jarls", 'H', DBCLR_L_GREY, 80, 25, 160, 20, -1, 30, -1, DT_PHYS, "", 22, 1000, 1, 0
+ "giant jarl", "giant jarls", 'H', Gcol_l_grey, 80, 25, 160, 20, -1, 30, -1, DT_PHYS, "", 22, 1000, 1, 0
},
{
/* Uses sorcery against you; see sorcery.c for details. */
- "wizard", "wizards", 'w', DBCLR_BLUE, 80, 12, 40, 10, 20, 10, 10, DT_ELEC, "casts", 15, 200, 1, PMF_SMART | PMF_MAGICIAN
+ "wizard", "wizards", 'w', Gcol_blue, 80, 12, 40, 10, 20, 10, 10, DT_ELEC, "casts", 15, 200, 1, PMF_SMART | PMF_MAGICIAN
},
{
/* Uses sorcery against you; see sorcery.c for details. */
- "archmage", "archmagi", 'w', DBCLR_L_BLUE, 80, 24, 80, 15, 30, 15, 15, DT_ELEC, "casts", 15, 1500, 1, PMF_SMART | PMF_MAGICIAN | PMF_RESIST_ELEC
+ "archmage", "archmagi", 'w', Gcol_l_blue, 80, 24, 80, 15, 30, 15, 15, DT_ELEC, "casts", 15, 1500, 1, PMF_SMART | PMF_MAGICIAN | PMF_RESIST_ELEC
},
{
- "zombie", "zombies", 'z', DBCLR_L_GREY, 25, 3, 30, 2, -1, 20, -1, DT_PHYS, "", 1, 7, 0, PMF_STUPID | PMF_UNDEAD | PMF_RESIST_COLD | PMF_RESIST_POIS | PMF_RESIST_NECR
+ "zombie", "zombies", 'z', Gcol_l_grey, 25, 3, 30, 2, -1, 20, -1, DT_PHYS, "", 1, 7, 0, PMF_STUPID | PMF_UNDEAD | PMF_RESIST_COLD | PMF_RESIST_POIS | PMF_RESIST_NECR
},
{
- "wraith", "wraiths", 'W', DBCLR_WHITE, 25, 12, 40, 25, -1, 5, -1, DT_PHYS, "", 5, 100, 0, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_RESIST_POIS | PMF_RESIST_NECR
+ "wraith", "wraiths", 'W', Gcol_white, 25, 12, 40, 25, -1, 5, -1, DT_PHYS, "", 5, 100, 0, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_RESIST_POIS | PMF_RESIST_NECR
},
{
/* Uses sorcery against you; see sorcery.c for details. */
- "lich", "liches", 'L', DBCLR_L_GREY, 70, 15, 70, 15, 25, 15, 15, DT_NECRO, "casts", 15, 250, 1, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_MAGICIAN | PMF_RESIST_POIS | PMF_RESIST_NECR
+ "lich", "liches", 'L', Gcol_l_grey, 70, 15, 70, 15, 25, 15, 15, DT_NECRO, "casts", 15, 250, 1, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_MAGICIAN | PMF_RESIST_POIS | PMF_RESIST_NECR
},
{
/* Master liches use sorcery against you, more powerfully
* than lesser practitioners. */
- "master lich", "master liches", 'L', DBCLR_PURPLE, 60, 30, 150, 30, 30, 20, 30, DT_NECRO, "", 30, 3000, 1, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_MAGICIAN | PMF_RESIST_POIS | PMF_RESIST_NECR
+ "master lich", "master liches", 'L', Gcol_purple, 60, 30, 150, 30, 30, 20, 30, DT_NECRO, "", 30, 3000, 1, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_MAGICIAN | PMF_RESIST_POIS | PMF_RESIST_NECR
},
{
/* Vampires heal by hitting you. */
- "vampire", "vampires", 'V', DBCLR_RED, 55, 18, 70, 25, -1, 15, -1, DT_PHYS, "", 22, 750, 1, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_RESIST_POIS | PMF_RESIST_NECR
+ "vampire", "vampires", 'V', Gcol_red, 55, 18, 70, 25, -1, 15, -1, DT_PHYS, "", 22, 750, 1, PMF_SMART | PMF_UNDEAD | PMF_RESIST_COLD | PMF_RESIST_POIS | PMF_RESIST_NECR
},
{
/* Demons summon more demons if you don't kill them
* quickly. */
- "demon", "demons", '&', DBCLR_RED, 60, 18, 40, 25, -1, 20, -1, DT_PHYS, "", 15, 500, 1, PMF_SMART | PMF_DEMONIC | PMF_RESIST_FIRE
+ "demon", "demons", '&', Gcol_red, 60, 18, 40, 25, -1, 20, -1, DT_PHYS, "", 15, 500, 1, PMF_SMART | PMF_DEMONIC | PMF_RESIST_FIRE
},
{
/* Defilers use sorcery (mostly curses) against you. */
- "defiler", "defilers", '&', DBCLR_L_GREEN, 65, 27, 120, 30, 30, 20, 30, DT_FIRE, "", 25, 2000, 1, PMF_SMART | PMF_DEMONIC | PMF_RESIST_FIRE | PMF_MAGICIAN | PMF_RESIST_POIS
+ "defiler", "defilers", '&', Gcol_l_green, 65, 27, 120, 30, 30, 20, 30, DT_FIRE, "", 25, 2000, 1, PMF_SMART | PMF_DEMONIC | PMF_RESIST_FIRE | PMF_MAGICIAN | PMF_RESIST_POIS
},
{
- "centaur", "centaurs", 'C', DBCLR_BROWN, 30, 9, 40, 15, -1, 10, -1, DT_PHYS, "", 10, 50, 2, 0
+ "centaur", "centaurs", 'C', Gcol_brown, 30, 9, 40, 15, -1, 10, -1, DT_PHYS, "", 10, 50, 2, 0
},
{
/* Fires ice blasts. */
- "ice monster", "ice monsters", 'I', DBCLR_WHITE, 50, 6, 40, 10, 20, 15, 15, DT_COLD, "launches a blast of", 10, 35, 0, PMF_RESIST_COLD | PMF_ARCHER
+ "ice monster", "ice monsters", 'I', Gcol_white, 50, 6, 40, 10, 20, 15, 15, DT_COLD, "launches a blast of", 10, 35, 0, PMF_RESIST_COLD | PMF_ARCHER
},
{
/* Breathes fire. */
- "dragon", "dragons", 'D', DBCLR_RED, 50, 15, 80, 20, 20, 20, 20, DT_FIRE, "breathes", 18, 300, 1, PMF_RESIST_FIRE | PMF_ARCHER
+ "dragon", "dragons", 'D', Gcol_red, 50, 15, 80, 20, 20, 20, 20, DT_FIRE, "breathes", 18, 300, 1, PMF_RESIST_FIRE | PMF_ARCHER
},
{
/* Breathes eldritchness represented as cold. I should work on that. */
- "moondrake", "moondrakes", 'D', DBCLR_L_CYAN, 50, 15, 80, 20, 20, 20, 20, DT_COLD, "breathes", 24, 500, 1, PMF_RESIST_FIRE | PMF_RESIST_COLD | PMF_RESIST_NECR | PMF_ARCHER
+ "moondrake", "moondrakes", 'D', Gcol_l_cyan, 50, 15, 80, 20, 20, 20, 20, DT_COLD, "breathes", 24, 500, 1, PMF_RESIST_FIRE | PMF_RESIST_COLD | PMF_RESIST_NECR | PMF_ARCHER
},
};