MAJOR UPDATE: Admin Levels split from Mortal Levels
This commit is contained in:
@@ -278,10 +278,10 @@ int valid_dg_target(struct char_data *ch, int bitvector)
|
||||
return TRUE; /* all npcs are allowed as targets */
|
||||
else if (ch->desc && (STATE(ch->desc) != CON_PLAYING))
|
||||
return FALSE; /* Only PC's who are playing can be targetted */
|
||||
else if (GET_LEVEL(ch) < LVL_IMMORT)
|
||||
else if (!IS_ADMIN(ch, ADMLVL_IMMORT))
|
||||
return TRUE; /* as well as all mortals */
|
||||
else if (!IS_SET(bitvector, DG_ALLOW_GODS) &&
|
||||
GET_LEVEL(ch) >= LVL_GRGOD) /* LVL_GOD has the advance command. Can't allow them to be forced. */
|
||||
IS_ADMIN(ch, ADMLVL_GOD)) /* ADMLVL_GOD has the advance command. Can't allow them to be forced. */
|
||||
return FALSE; /* but not always the highest gods */
|
||||
else if (!PRF_FLAGGED(ch, PRF_NOHASSLE))
|
||||
return TRUE; /* the ones in between as allowed as long as they have no-hassle off. */
|
||||
@@ -291,7 +291,7 @@ int valid_dg_target(struct char_data *ch, int bitvector)
|
||||
|
||||
void script_damage(struct char_data *vict, int dam)
|
||||
{
|
||||
if (GET_LEVEL(vict)>=LVL_IMMORT && (dam > 0)) {
|
||||
if (IS_ADMIN(vict, ADMLVL_IMMORT) && (dam > 0)) {
|
||||
send_to_char(vict, "Being the cool immortal you are, you sidestep a trap, "
|
||||
"obviously placed to kill you.\r\n");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user