mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-17 06:35:28 +01:00
Fixed a typo and added trigedit variable armor. --Rumble
This commit is contained in:
parent
1dc7d9287a
commit
bf451a6ece
4 changed files with 27 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue