Mostly Mudlog (#42)

* Added %log%, and made %send%, %echo%, etc. not force capitalization.

* Fixed Previous Commit

* Really fixed this time.

* Fixed look 2.mail

Also reverted CMMAND_TERMS, was increased in previous commit when it didn't need to be due to the removed of marena.

* Fixed add_to_lookup_table

Fixed as per  Welcor https://www.tbamud.com/forum/2-general/4307-crash-bug-need-assistance-with-gdb?start=20#7390

* Fixed two crash bugs

Fixed tw crash bugs Welcor found here https://www.tbamud.com/forum/4-development/4300-simple-list-forced-to-reset-itself

* wizhelp changes

Cleared buf in columns_list that was getting garbage data in it. Removed wizhelp subcommand from do_commands, and removed buf and sprintf line that were never sent to anyone and replaced it with a send_to_char. Removed arg capability from do_commands as it's no longer useful without the wizhelp subcommand. Replaced wizhelp subcommand with separate do_wizhelp command that sorts commands by their level and shows all imms all imm commands regardless of their level.

* Fix

Fixed previous commit

* Trigedit Mostly

Changed attributes to persist across logout when changed in trigedit. Made strength now loer for GRGOD and above when wearing equipment. Added npcflag field to trigedit. Fixed %actor.vnum()%

* Log Files

Fixed Farbled Data in Logfiles. Fix from Prool on forums.

* Mudlog, Trigedit, New Pref Toggle

Skimmed every call of mudlog for missing GET_INVIS_LEV and other obvious inconsistencies. Added affect_total() cals to dg_variables so stats adjust properly. Added zoneresets toggle to prefedit because syslog complete is super spammy as a result of zone resets so tey're now separate from other syslog options.
This commit is contained in:
Nauzhror
2018-02-15 10:55:18 -05:00
committed by wyld-sw
parent 34b7f5b00c
commit 79e7ab10ea
31 changed files with 114 additions and 51 deletions

View File

@@ -635,6 +635,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.cha += addition;
if (c->real_abils.cha > max) c->real_abils.cha = max;
if (c->real_abils.cha < 3) c->real_abils.cha = 3;
affect_total(c);
}
snprintf(str, slen, "%d", GET_CHA(c));
}
@@ -657,6 +658,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.con += addition;
if (c->real_abils.con > max) c->real_abils.con = max;
if (c->real_abils.con < 3) c->real_abils.con = 3;
affect_total(c);
}
snprintf(str, slen, "%d", GET_CON(c));
}
@@ -675,6 +677,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.dex += addition;
if (c->real_abils.dex > max) c->real_abils.dex = max;
if (c->real_abils.dex < 3) c->real_abils.dex = 3;
affect_total(c);
}
snprintf(str, slen, "%d", GET_DEX(c));
}
@@ -799,6 +802,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.intel += addition;
if (c->real_abils.intel > max) c->real_abils.intel = max;
if (c->real_abils.intel < 3) c->real_abils.intel = 3;
affect_total(c);
}
snprintf(str, slen, "%d", GET_INT(c));
}
@@ -1059,6 +1063,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.str += addition;
if (c->real_abils.str > max) c->real_abils.str = max;
if (c->real_abils.str < 3) c->real_abils.str = 3;
affect_total(c);
}
snprintf(str, slen, "%d", GET_STR(c));
}
@@ -1069,6 +1074,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.str_add += addition;
if (c->real_abils.str_add > 100) c->real_abils.str_add = 100;
if (c->real_abils.str_add < 0) c->real_abils.str_add = 0;
affect_total(c);
}
snprintf(str, slen, "%d", GET_ADD(c));
}
@@ -1131,6 +1137,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
c->real_abils.wis += addition;
if (c->real_abils.wis > max) c->real_abils.wis = max;
if (c->real_abils.wis < 3) c->real_abils.wis = 3;
affect_total(c);
}
snprintf(str, slen, "%d", GET_WIS(c));
}