Fixed a typo and added trigedit variable armor. --Rumble

This commit is contained in:
Rumble 2009-07-04 20:11:06 +00:00
parent 1dc7d9287a
commit bf451a6ece
4 changed files with 27 additions and 3 deletions

View file

@ -1505,8 +1505,8 @@ ACMD(do_advance)
REMOVE_BIT_AR(PRF_FLAGS(victim), PRF_LOG1);
REMOVE_BIT_AR(PLR_FLAGS(victim), PRF_LOG2);
REMOVE_BIT_AR(PRF_FLAGS(victim), PRF_NOHASSLE);
REMOVE_BIT_AR(PLR_FLAGS(victim), PRF_HOLYLIGHT);
REMOVE_BIT_AR(PLR_FLAGS(victim), PRF_SHOWVNUMS);
REMOVE_BIT_AR(PRF_FLAGS(victim), PRF_HOLYLIGHT);
REMOVE_BIT_AR(PRF_FLAGS(victim), PRF_SHOWVNUMS);
if (!PLR_FLAGGED(victim, PLR_NOWIZLIST))
run_autowiz();
} else if (oldlevel < LVL_IMMORT && newlevel >= LVL_IMMORT) {

View file

@ -17,6 +17,7 @@
#include "handler.h"
#include "dg_event.h"
#include "db.h"
#include "fight.h"
#include "screen.h"
#include "constants.h"
#include "spells.h"
@ -558,8 +559,10 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
int addition = atoi(subfield);
GET_ALIGNMENT(c) = MAX(-1000, MIN(addition, 1000));
}
snprintf(str, slen, "%d", GET_ALIGNMENT(c));
snprintf(str, slen, "%d", GET_ALIGNMENT(c));
}
else if (!str_cmp(field, "armor"))
snprintf(str, slen, "%d", compute_armor_class(c));
break;
case 'c':
if (!str_cmp(field, "canbeseen")) {