mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-22 10:10:13 +01:00
Changed mob flag NOBASH to NOKILL --Rumble
This commit is contained in:
parent
73ecd212a0
commit
1779f7a30a
7 changed files with 40 additions and 32 deletions
|
|
@ -36,6 +36,8 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
||||||
(lots of major bugfixes too)
|
(lots of major bugfixes too)
|
||||||
@
|
@
|
||||||
tbaMUD 3.61
|
tbaMUD 3.61
|
||||||
|
[Dec 25 2009] - Rumble
|
||||||
|
Changed mob flag NOBASH to NOKILL.
|
||||||
[Dec 23 2009] - Rumble
|
[Dec 23 2009] - Rumble
|
||||||
Added zone flags and min/max level to show zone # and stat zone #.
|
Added zone flags and min/max level to show zone # and stat zone #.
|
||||||
Changed show zone # reset mode from a # to the actual string description.
|
Changed show zone # reset mode from a # to the actual string description.
|
||||||
|
|
|
||||||
|
|
@ -294,12 +294,13 @@ ACMD(do_bash)
|
||||||
send_to_char(ch, "Aren't we funny today...\r\n");
|
send_to_char(ch, "Aren't we funny today...\r\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (MOB_FLAGGED(vict, MOB_NOKILL)) {
|
||||||
|
send_to_char(ch, "This mob is protected.\r\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
percent = rand_number(1, 101); /* 101% is a complete failure */
|
percent = rand_number(1, 101); /* 101% is a complete failure */
|
||||||
prob = GET_SKILL(ch, SKILL_BASH);
|
prob = GET_SKILL(ch, SKILL_BASH);
|
||||||
|
|
||||||
if (MOB_FLAGGED(vict, MOB_NOBASH))
|
|
||||||
percent = 101;
|
|
||||||
|
|
||||||
if (percent > prob) {
|
if (percent > prob) {
|
||||||
damage(ch, vict, 0, SKILL_BASH);
|
damage(ch, vict, 0, SKILL_BASH);
|
||||||
GET_POS(ch) = POS_SITTING;
|
GET_POS(ch) = POS_SITTING;
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ const char *action_bits[] = {
|
||||||
"NO_CHARM",
|
"NO_CHARM",
|
||||||
"NO_SUMMN",
|
"NO_SUMMN",
|
||||||
"NO_SLEEP",
|
"NO_SLEEP",
|
||||||
"NO_BASH",
|
"NO_KILL",
|
||||||
"NO_BLIND",
|
"NO_BLIND",
|
||||||
"DEAD", /* You should never see this. */
|
"DEAD", /* You should never see this. */
|
||||||
"\n"
|
"\n"
|
||||||
|
|
|
||||||
|
|
@ -857,8 +857,8 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'q':
|
case 'q':
|
||||||
if (!str_cmp(field, "questpoints") ||
|
if (!IS_NPC(c) && (!str_cmp(field, "questpoints") ||
|
||||||
!str_cmp(field, "qp") || !str_cmp(field, "qpnts"))
|
!str_cmp(field, "qp") || !str_cmp(field, "qpnts")))
|
||||||
{
|
{
|
||||||
if (subfield && *subfield) {
|
if (subfield && *subfield) {
|
||||||
int addition = atoi(subfield);
|
int addition = atoi(subfield);
|
||||||
|
|
|
||||||
|
|
@ -682,8 +682,9 @@ int damage(struct char_data *ch, struct char_data *victim, int dam, int attackty
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* shopkeeper protection */
|
/* shopkeeper and MOB_NOKILL protection */
|
||||||
if (!ok_damage_shopkeeper(ch, victim))
|
if (!ok_damage_shopkeeper(ch, victim) || MOB_FLAGGED(victim, MOB_NOKILL))
|
||||||
|
send_to_char(ch, "This mob is protected.\r\n");
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
/* You can't damage an immortal! */
|
/* You can't damage an immortal! */
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,10 @@ int call_magic(struct char_data *caster, struct char_data *cvict,
|
||||||
act("White light from no particular source suddenly fills the room, then vanishes.", FALSE, caster, 0, 0, TO_ROOM);
|
act("White light from no particular source suddenly fills the room, then vanishes.", FALSE, caster, 0, 0, TO_ROOM);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
if (MOB_FLAGGED(cvict, MOB_NOKILL)) {
|
||||||
|
send_to_char(caster, "This mob is protected.\r\n");
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
/* determine the type of saving throw */
|
/* determine the type of saving throw */
|
||||||
switch (casttype) {
|
switch (casttype) {
|
||||||
case CAST_STAFF:
|
case CAST_STAFF:
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@
|
||||||
#define MOB_NOCHARM 13 /**< Mob can't be charmed */
|
#define MOB_NOCHARM 13 /**< Mob can't be charmed */
|
||||||
#define MOB_NOSUMMON 14 /**< Mob can't be summoned */
|
#define MOB_NOSUMMON 14 /**< Mob can't be summoned */
|
||||||
#define MOB_NOSLEEP 15 /**< Mob can't be slept */
|
#define MOB_NOSLEEP 15 /**< Mob can't be slept */
|
||||||
#define MOB_NOBASH 16 /**< Mob can't be bashed (e.g. trees) */
|
#define MOB_NOKILL 16 /**< Mob can't be bashed (e.g. trees) */
|
||||||
#define MOB_NOBLIND 17 /**< Mob can't be blinded */
|
#define MOB_NOBLIND 17 /**< Mob can't be blinded */
|
||||||
#define MOB_NOTDEADYET 18 /**< (R) Mob being extracted */
|
#define MOB_NOTDEADYET 18 /**< (R) Mob being extracted */
|
||||||
/** Total number of Mob Flags; it should be 1 less than MOB_NOT_DEADYET */
|
/** Total number of Mob Flags; it should be 1 less than MOB_NOT_DEADYET */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue