mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-08 17:04:20 +01:00
[Oct 17 2009] - Rumble
Added Ultima Zone 555 and 556. Originally by Casret, rebuilt by Parna. Made MEDIT column menu's consistent with other OLC menu's. added TEDIT access to bugs, typos, and ideas file. [Oct 09 2009] - Rumble Added connected_type "Preference Edit" (thanks Maoliosa)
This commit is contained in:
parent
9f5b893ec5
commit
44722575ea
31 changed files with 6848 additions and 328 deletions
30
src/medit.c
30
src/medit.c
|
|
@ -341,32 +341,34 @@ static void medit_disp_attack_types(struct descriptor_data *d)
|
|||
/* Display mob-flags menu. */
|
||||
static void medit_disp_mob_flags(struct descriptor_data *d)
|
||||
{
|
||||
char buf[MAX_STRING_LENGTH];
|
||||
int i, columns = 0;
|
||||
char flags[MAX_STRING_LENGTH];
|
||||
|
||||
get_char_colors(d->character);
|
||||
clear_screen(d);
|
||||
|
||||
column_list(d->character, 2, action_bits, NUM_MOB_FLAGS, TRUE);
|
||||
|
||||
sprintbitarray(MOB_FLAGS(OLC_MOB(d)), action_bits, AF_ARRAY_MAX, buf);
|
||||
write_to_output(d, "\r\nCurrent flags : %s%s%s\r\nEnter mob flags (0 to quit) : ",
|
||||
cyn, buf, nrm);
|
||||
for (i = 0; i < NUM_MOB_FLAGS; i++) {
|
||||
write_to_output(d, "%s%2d%s) %-20.20s %s", grn, i + 1, nrm, action_bits[i],
|
||||
!(++columns % 2) ? "\r\n" : "");
|
||||
}
|
||||
sprintbitarray(MOB_FLAGS(OLC_MOB(d)), action_bits, AF_ARRAY_MAX, flags);
|
||||
write_to_output(d, "\r\nCurrent flags : %s%s%s\r\nEnter mob flags (0 to quit) : ", cyn, flags, nrm);
|
||||
}
|
||||
|
||||
/* Display affection flags menu. */
|
||||
static void medit_disp_aff_flags(struct descriptor_data *d)
|
||||
{
|
||||
char buf[MAX_STRING_LENGTH];
|
||||
int i, columns = 0;
|
||||
char flags[MAX_STRING_LENGTH];
|
||||
|
||||
get_char_colors(d->character);
|
||||
clear_screen(d);
|
||||
|
||||
/* +1 since AFF_FLAGS don't start at 0. */
|
||||
column_list(d->character, 2, affected_bits + 1, NUM_AFF_FLAGS, TRUE);
|
||||
|
||||
sprintbitarray(AFF_FLAGS(OLC_MOB(d)), affected_bits, AF_ARRAY_MAX, buf);
|
||||
for (i = 0; i < NUM_AFF_FLAGS; i++) {
|
||||
write_to_output(d, "%s%2d%s) %-20.20s %s", grn, i + 1, nrm, affected_bits[i+1],
|
||||
!(++columns % 2) ? "\r\n" : "");
|
||||
}
|
||||
sprintbitarray(AFF_FLAGS(OLC_MOB(d)), affected_bits, AF_ARRAY_MAX, flags);
|
||||
write_to_output(d, "\r\nCurrent flags : %s%s%s\r\nEnter aff flags (0 to quit) : ",
|
||||
cyn, buf, nrm);
|
||||
cyn, flags, nrm);
|
||||
}
|
||||
|
||||
/* Display main menu. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue