Skip to content

Commit

Permalink
Merge pull request TempusMUD#496 from origintempus/manually-revert-42…
Browse files Browse the repository at this point in the history
…1-and-407

Manually revert 421 and 407
  • Loading branch information
wishgit committed Jan 8, 2015
2 parents 136b48e + c90dfd6 commit 66aad1b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 39 deletions.
10 changes: 0 additions & 10 deletions sample_lib/etc/spells.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1064,16 +1064,6 @@ To answer the mysteries one's life can bring.</lyrics>
<skill id="668" name="drag">
<granted class="barbarian" level="40"/>
</skill>
<spell id="162" name="dragons breath">
<manacost initial="0" level_dec="0" minimum="0"/>
<position minimum="fighting"/>
<target type="creature" scope="room"/>
<target type="creature" scope="fighting"/>
<flag value="violent"/>
<flag value="damage"/>
<flag value="nowater"/>
<flag value="magic"/>
</spell>
<spell id="365" name="drifters ditty">
<granted class="bard" level="4"/>
<manacost initial="30" level_dec="2" minimum="15"/>
Expand Down
16 changes: 0 additions & 16 deletions sample_lib/misc/messages
Original file line number Diff line number Diff line change
Expand Up @@ -472,22 +472,6 @@ Thorns pop out of $n's skin effortlessly.
#
$n chuckles as thorns effortlessly pop out of $s skin.

* Dragons Breath
M
162
You blast $N's body into ash with your fiery breath!
Your body is blasted to ash by the fiery breath of $n!
$n blasts $N to ash with $s fiery breath!
$N dodges your jet of fiery breath!
$n breathes fire at you, but you leap aside!
$N dodges a jet of fiery breath from $n!
You blast $N with a jet of fiery breath.
$n blasts you full force with $s fiery breath!
$N staggers under a blast of flame as $n breathes on $M!
$N sneers at your offensive breath.
$n warms you with a breath of fire.
$n warms $N with $s fiery breath.

* Psychic Surge
M
224
Expand Down
1 change: 0 additions & 1 deletion src/combat/combat_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,6 @@ make_corpse(struct creature *ch, struct creature *killer, int attacktype)
case SPELL_LIGHTNING_BOLT:
case SPELL_MICROWAVE:
case SPELL_FIRE_BREATH:
case SPELL_DRAGONS_BREATH:
case SPELL_LIGHTNING_BREATH:
case SPELL_FIRE_ELEMENTAL:
case TYPE_ABLAZE:
Expand Down
2 changes: 0 additions & 2 deletions src/combat/fight.c
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,6 @@ damage(struct creature *ch, struct creature *victim,
case SPELL_FLAME_STRIKE:
case SPELL_FIRE_ELEMENTAL:
case SPELL_FIRE_BREATH:
case SPELL_DRAGONS_BREATH:
case TYPE_ABLAZE:
case SPELL_FIRE_SHIELD:
case TYPE_FLAMETHROWER:
Expand Down Expand Up @@ -1936,7 +1935,6 @@ damage(struct creature *ch, struct creature *victim,
if (!AFF2_FLAGGED(victim, AFF2_ABLAZE) &&
(attacktype == SPELL_FIREBALL ||
attacktype == SPELL_FIRE_BREATH ||
attacktype == SPELL_DRAGONS_BREATH ||
attacktype == SPELL_HELL_FIRE ||
attacktype == SPELL_FLAME_STRIKE ||
attacktype == SPELL_METEOR_STORM ||
Expand Down
1 change: 0 additions & 1 deletion src/include/spells.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ enum spell {
SPELL_FROST_BREATHING = 159,
SPELL_FLAME_OF_FAITH = 160,
SPELL_ABLAZE = 161, // Only here to allow an ablaze affect
SPELL_DRAGONS_BREATH = 162,

/************************** Psionic Triggers ***************/
SPELL_POWER = 201, /* Strength */
Expand Down
4 changes: 0 additions & 4 deletions src/magic/magic.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,10 +761,6 @@ mag_damage(int level, struct creature *ch, struct creature *victim,
audible = true;
dam = dice(level, 15) + level;
break;
case SPELL_DRAGONS_BREATH:
audible = true;
dam = dice(level, 8) + (level / 2);
break;
case SPELL_FROST_BREATH:
audible = true;
dam = dice(level, 7) + level;
Expand Down
14 changes: 9 additions & 5 deletions src/mobiles/mobact.c
Original file line number Diff line number Diff line change
Expand Up @@ -4213,19 +4213,23 @@ ACMD(do_breathe)

if (IS_PC(ch)) {
if (fire != NULL) {
if (GET_SKILL(ch, SPELL_DRAGONS_BREATH) < GET_SKILL(ch, SPELL_FIRE_BREATHING))
SET_SKILL(ch, SPELL_DRAGONS_BREATH, GET_SKILL(ch, SPELL_FIRE_BREATHING));
call_magic(ch, vict, NULL, NULL, SPELL_DRAGONS_BREATH, GET_LEVEL(ch),
call_magic(ch, vict, NULL, NULL, SPELL_FIRE_BREATH, GET_LEVEL(ch),
CAST_BREATH);
fire = affected_by_spell(ch, SPELL_FIRE_BREATHING);
if (fire) {
fire->duration -= 5;
if (fire->duration <= 0)
affect_remove(ch, fire);
}
WAIT_STATE(ch, 1 RL_SEC);
} else if (frost != NULL) {
send_to_char(ch, "ERROR: Frost breath not found.\r\n");
call_magic(ch, vict, NULL, NULL, SPELL_FROST_BREATH, GET_LEVEL(ch),
CAST_BREATH);
frost = affected_by_spell(ch, SPELL_FROST_BREATH);
if (frost) {
frost->duration -= 5;
if (frost->duration <= 0)
affect_remove(ch, frost);
}
} else {
send_to_char(ch, "ERROR: No breath type found.\r\n");
}
Expand Down

0 comments on commit 66aad1b

Please sign in to comment.