mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-06 21:01:26 +02:00
Fixed unit-tests for RST parsing.
This commit is contained in:
@@ -2,27 +2,30 @@ from dungeonsheets.spells.spells import Spell
|
||||
|
||||
|
||||
class CallLightning(Spell):
|
||||
"""A storm cloud appears in the shape of a cylinder that is 10 feet tall with a
|
||||
60-foot radius, centered on a point you can see 100 feet directly above you. The
|
||||
spell fails if you can't see a point in the air where the storm cloud could
|
||||
appear (for example, if you are in a room that can't accommodate the cloud).
|
||||
|
||||
|
||||
When you cast the spell, choose a point you can see within range. A bolt of
|
||||
lightning flashes down from the cloud to that point. Each creature within 5 feet
|
||||
of that point must make a Dexterity saving throw. A creature takes 3d10
|
||||
lightning damage on a failed save, or half as much damage on a successful one.
|
||||
On each of your turns until the spell ends, you can use your action to call down
|
||||
lightning in this way again, targeting the same point or a different one.
|
||||
|
||||
If
|
||||
you are outdoors in stormy conditions when you cast this spell, the spell gives
|
||||
you control over the existing storm instead of creating a new one. Under such
|
||||
conditions, the spell's damage increases by 1d10.
|
||||
|
||||
**At Higher Levels:** When you
|
||||
cast this spell using a spell slot of 4th or higher level, the damage increases
|
||||
by 1d10 for each slot level above 3rd.
|
||||
"""A storm cloud appears in the shape of a cylinder that is 10 feet
|
||||
tall with a 60-foot radius, centered on a point you can see 100
|
||||
feet directly above you. The spell fails if you can't see a point
|
||||
in the air where the storm cloud could appear (for example, if you
|
||||
are in a room that can't accommodate the cloud).
|
||||
|
||||
When you cast the spell, choose a point you can see within
|
||||
range. A bolt of lightning flashes down from the cloud to that
|
||||
point. Each creature within 5 feet of that point must make a
|
||||
Dexterity saving throw. A creature takes 3d10 lightning damage on
|
||||
a failed save, or half as much damage on a successful one. On
|
||||
each of your turns until the spell ends, you can use your action
|
||||
to call down lightning in this way again, targeting the same point
|
||||
or a different one.
|
||||
|
||||
If you are outdoors in stormy conditions when you cast this spell,
|
||||
the spell gives you control over the existing storm instead of
|
||||
creating a new one. Under such conditions, the spell's damage
|
||||
increases by 1d10.
|
||||
|
||||
**At Higher Levels:** When you cast this spell using a spell slot
|
||||
of 4th or higher level, the damage increases by 1d10 for each slot
|
||||
level above 3rd.
|
||||
|
||||
"""
|
||||
name = "Call Lightning"
|
||||
level = 3
|
||||
@@ -37,20 +40,21 @@ class CallLightning(Spell):
|
||||
|
||||
|
||||
class CalmEmotions(Spell):
|
||||
"""You attempt to suppress strong emotions in a group of people.
|
||||
Each humanoid in
|
||||
a 20-foot-radius sphere centered on a point you choose within range must make a
|
||||
Charisma saving throw; a creature can choose to fail this saving throw if it
|
||||
wishes. If a creature fails its saving throw, choose one of the following two
|
||||
effects. You can suppress any effect causing a target to be charmed or
|
||||
frightened. When this spell ends, any suppressed effect resumes, provided that
|
||||
its duration has not expired in the meantime.
|
||||
|
||||
Alternatively, you can make a
|
||||
target indifferent about creatures of your choice that it is hostile toward.
|
||||
This indifference ends if the target is attacked or harmed by a spell or if it
|
||||
witnesses any of its friends being harmed. When the spell ends, the creature
|
||||
"""You attempt to suppress strong emotions in a group of people. Each
|
||||
humanoid in a 20-foot-radius sphere centered on a point you choose
|
||||
within range must make a Charisma saving throw; a creature can
|
||||
choose to fail this saving throw if it wishes. If a creature fails
|
||||
its saving throw, choose one of the following two effects. You can
|
||||
suppress any effect causing a target to be charmed or
|
||||
frightened. When this spell ends, any suppressed effect resumes,
|
||||
provided that its duration has not expired in the meantime.
|
||||
|
||||
Alternatively, you can make a target indifferent about creatures
|
||||
of your choice that it is hostile toward. This indifference ends
|
||||
if the target is attacked or harmed by a spell or if it witnesses
|
||||
any of its friends being harmed. When the spell ends, the creature
|
||||
becomes hostile again, unless the DM rules otherwise.
|
||||
|
||||
"""
|
||||
name = "Calm Emotions"
|
||||
level = 2
|
||||
@@ -65,17 +69,20 @@ class CalmEmotions(Spell):
|
||||
|
||||
|
||||
class Catapult(Spell):
|
||||
"""Choose one object weighing 1 to 5 pounds within range that isn't being worn or
|
||||
carried. The object flies in a straight line up to 90 feet in a direction you
|
||||
choose before falling to the ground, stopping early if it impacts against a
|
||||
solid surface. If the object would strike a creature, that creature must make a
|
||||
Dexterity saving throw. On a failed save, the object strikes the target and
|
||||
stops moving. In either case, both the object and the creature or solid surface
|
||||
take 3d8 bludgeoning damage.
|
||||
At Higher Levels. When you cast this spell using a
|
||||
spell slot of 2nd level or higher, the maximum weight of objects that you can
|
||||
target with this spell increases by 5 pounds, and the damage increases by 1d8,
|
||||
for each slot level above 1st.
|
||||
"""Choose one object weighing 1 to 5 pounds within range that isn't
|
||||
being worn or carried. The object flies in a straight line up to
|
||||
90 feet in a direction you choose before falling to the ground,
|
||||
stopping early if it impacts against a solid surface. If the
|
||||
object would strike a creature, that creature must make a
|
||||
Dexterity saving throw. On a failed save, the object strikes the
|
||||
target and stops moving. In either case, both the object and the
|
||||
creature or solid surface take 3d8 bludgeoning damage.
|
||||
|
||||
**At Higher Levels:** When you cast this spell using a spell slot
|
||||
of 2nd level or higher, the maximum weight of objects that you can
|
||||
target with this spell increases by 5 pounds, and the damage
|
||||
increases by 1d8, for each slot level above 1st.
|
||||
|
||||
"""
|
||||
name = "Catapult"
|
||||
level = 1
|
||||
@@ -90,16 +97,18 @@ class Catapult(Spell):
|
||||
|
||||
|
||||
class Catnap(Spell):
|
||||
"""You make a calming gesture, and up to three willing creatures of your choice
|
||||
that you can see within range fall unconscious for the spell's duration. The
|
||||
spell ends on a target early if it takes damage or someone uses an action to
|
||||
shake or slap it awake. If a target remains unconscious for the full duration,
|
||||
that target gains the benefit of a short rest, and it can't be affected by this
|
||||
spell again until it finishes a long rest.
|
||||
|
||||
**At Higher Levels:** When you cast this
|
||||
spell using a spell slot of 4th level or higher, you can target one additional
|
||||
willing creature for each slot level above 3rd.
|
||||
"""You make a calming gesture, and up to three willing creatures of
|
||||
your choice that you can see within range fall unconscious for the
|
||||
spell's duration. The spell ends on a target early if it takes
|
||||
damage or someone uses an action to shake or slap it awake. If a
|
||||
target remains unconscious for the full duration, that target
|
||||
gains the benefit of a short rest, and it can't be affected by
|
||||
this spell again until it finishes a long rest.
|
||||
|
||||
**At Higher Levels:** When you cast this spell using a spell slot
|
||||
of 4th level or higher, you can target one additional willing
|
||||
creature for each slot level above 3rd.
|
||||
|
||||
"""
|
||||
name = "Catnap"
|
||||
level = 3
|
||||
|
||||
Reference in New Issue
Block a user