mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Fixed new medit stats menu so that it uses the the Advanced/Standard cedit toggle
This commit is contained in:
parent
ac7b71c4ca
commit
2f47416576
2 changed files with 78 additions and 26 deletions
|
@ -35,6 +35,8 @@ export (QQ's a zone into a tarball)t
|
|||
Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
||||
(lots of major bugfixes too)
|
||||
tbaMUD 3.59
|
||||
[Feb 25 2009] - Jamdog
|
||||
Fixed new medit stats menu so that it uses the the Advanced/Standard cedit toggle
|
||||
[Feb 24 2009] - Jamdog
|
||||
Bug-Fix: Fixed levels command, so it only shows immortal level if it's in the specified range
|
||||
Bug-Fix: write_mobile_espec now saves CON and CHA values for mobiles in world files
|
||||
|
|
50
src/medit.c
50
src/medit.c
|
@ -467,6 +467,7 @@ static void medit_disp_stats_menu(struct descriptor_data *d)
|
|||
cyn, nrm, cyn, yel, GET_GOLD(mob), cyn, nrm
|
||||
);
|
||||
|
||||
if (CONFIG_MEDIT_ADVANCED) {
|
||||
/* Bottom section - non-standard stats, togglable in cedit */
|
||||
write_to_output(d,
|
||||
"(%sF%s) Str: %s[%s%2d/%3d%s]%s Saving Throws\r\n"
|
||||
|
@ -482,6 +483,7 @@ static void medit_disp_stats_menu(struct descriptor_data *d)
|
|||
cyn, nrm, cyn, yel, GET_CON(mob), cyn, nrm, cyn, nrm, cyn, yel, GET_SAVE(mob, SAVING_BREATH), cyn, nrm,
|
||||
cyn, nrm, cyn, yel, GET_CHA(mob), cyn, nrm, cyn, nrm, cyn, yel, GET_SAVE(mob, SAVING_SPELL), cyn, nrm
|
||||
);
|
||||
}
|
||||
|
||||
/* Quit to previous menu option */
|
||||
write_to_output(d, "(%sQ%s) Quit to main menu\r\nEnter choice : ", cyn, nrm);
|
||||
|
@ -695,56 +697,100 @@ void medit_parse(struct descriptor_data *d, char *arg)
|
|||
break;
|
||||
case 'f':
|
||||
case 'F':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_STR;
|
||||
i++;
|
||||
break;
|
||||
case 'g':
|
||||
case 'G':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_INT;
|
||||
i++;
|
||||
break;
|
||||
case 'h':
|
||||
case 'H':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_WIS;
|
||||
i++;
|
||||
break;
|
||||
case 'i':
|
||||
case 'I':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_DEX;
|
||||
i++;
|
||||
break;
|
||||
case 'j':
|
||||
case 'J':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_CON;
|
||||
i++;
|
||||
break;
|
||||
case 'k':
|
||||
case 'K':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_CHA;
|
||||
i++;
|
||||
break;
|
||||
case 'l':
|
||||
case 'L':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_PARA;
|
||||
i++;
|
||||
break;
|
||||
case 'm':
|
||||
case 'M':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_ROD;
|
||||
i++;
|
||||
break;
|
||||
case 'n':
|
||||
case 'N':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_PETRI;
|
||||
i++;
|
||||
break;
|
||||
case 'o':
|
||||
case 'O':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_BREATH;
|
||||
i++;
|
||||
break;
|
||||
case 'p':
|
||||
case 'P':
|
||||
if (!CONFIG_MEDIT_ADVANCED) {
|
||||
write_to_output(d, "Invalid Choice!\r\nEnter Choice : ");
|
||||
return;
|
||||
}
|
||||
OLC_MODE(d) = MEDIT_SPELL;
|
||||
i++;
|
||||
break;
|
||||
|
@ -1049,6 +1095,8 @@ void medit_autoroll_stats(struct descriptor_data *d)
|
|||
GET_GOLD(OLC_MOB(d)) = (mob_lev*10);
|
||||
GET_AC(OLC_MOB(d)) = (100-(mob_lev*6)); /* AC 94 to -80 */
|
||||
|
||||
/* 'Advanced' stats are only rolled if advanced options are enabled */
|
||||
if (CONFIG_MEDIT_ADVANCED) {
|
||||
GET_STR(OLC_MOB(d)) = LIMIT((mob_lev*2)/3, 11, 18); /* 2/3 level in range 11 to 18 */
|
||||
GET_INT(OLC_MOB(d)) = LIMIT((mob_lev*2)/3, 11, 18);
|
||||
GET_WIS(OLC_MOB(d)) = LIMIT((mob_lev*2)/3, 11, 18);
|
||||
|
@ -1062,3 +1110,5 @@ void medit_autoroll_stats(struct descriptor_data *d)
|
|||
GET_SAVE(OLC_MOB(d), SAVING_BREATH) = mob_lev / 4;
|
||||
GET_SAVE(OLC_MOB(d), SAVING_SPELL) = mob_lev / 4;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue