#include <sys/types.h> #include <stdio.h> #include <string.h> #include <time.h> #include "merc.h" #include "interp.h" #include "creatures.h" #define ptc printf_to_char const struct creature_type creature_table[] = { {"non mobile", 1, {5, 5, 5}, 20, 20, 0, 4, {1, 8, 0}, "beating", "kick dirtkick flurry", AFF_HIDE, 0, {1, 1}, ENVIRO_ALL}, {NULL, 0, {0, 0, 0}, 0, 0, 0, 0, {0, 0, 0}, NULL, NULL, 0, 0, {0, 0}, -1} }; void cmd_listmob(CHAR_DATA * ch, char *argument) { int x; ptc(ch, "%-20s %-3s %-10s %-3s %-2s %-2s\n\r", "Name", "Lvl", "Hitdice", "Spd", "AC", "BS", "BA"); ptc(ch, "----------------------------------------------------\n\r"); for (x = 0; creature_table[x].name != NULL; x++) { ptc(ch, "%-20s %-3d %-2dd%-2d + %-2d %-2d %-2d %-2d\n\r", creature_table[x].name, creature_table[x].level, creature_table[x].hitdice[0], creature_table[x].hitdice[1], creature_table[x].hitdice[2], creature_table[x].speed, creature_table[x].armor_class, creature_table[x].base_saves, creature_table[x].base_attack); } return; }