I found that builder will make items +2 damroll, +2 damroll, +2 damroll,
+2 damroll....
Hope this comes in handy for someone :)
To prevent this, I added to oedit.c:
case OEDIT_APPLY:
if ((number = atoi(arg)) == 0) {
OLC_OBJ(d)->affected[OLC_VAL(d)].location = 0;
OLC_OBJ(d)->affected[OLC_VAL(d)].modifier = 0;
oedit_disp_prompt_apply_menu(d);
} else if (number < 0 || number >= NUM_APPLIES)
oedit_disp_apply_menu(d);
else {
+ /* add in check here if already applied.. deny builders another */
+ if (GET_LEVEL(d->character) < LVL_IMPL) {
+ for (counter = 0; counter < MAX_OBJ_AFFECT; counter++) {
+ if (OLC_OBJ(d)->affected[counter].location == number) {
+ SEND_TO_Q("Object already has that apply.", d);
+ return;
+ }
+ }
+ }
+ /* end of check */
OLC_OBJ(d)->affected[OLC_VAL(d)].location = number;
SEND_TO_Q("Modifier : ", d);
OLC_MODE(d) = OEDIT_APPLYMOD;
}
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT