예제 #1
0
class Avoral(base.Monster):
    name = "Avoral"
    statline = { stats.STRENGTH: 15, stats.TOUGHNESS: 20, stats.REFLEXES: 23, \
        stats.INTELLIGENCE: 15, stats.PIETY: 16, stats.CHARISMA: 16, \
        stats.AWARENESS: 65, stats.MAGIC_DEFENSE: 25 }
    SPRITENAME = "monster_celestial.png"
    FRAME = 12
    TEMPLATES = (stats.CELESTIAL, stats.AIR)
    MOVE_POINTS = 16
    HABITAT = (context.SET_EVERY, context.DES_SOLAR, context.DES_AIR,
               context.MTY_HUMANOID, context.MTY_CELESTIAL)
    ENC_LEVEL = 12
    COMBAT_AI = aibrain.ArcherAI()
    TREASURE = treasuretype.Standard()
    TECHNIQUES = (invocations.Invocation("Avoral Missile",
                                         effects.HealthDamage(
                                             (1, 8, 0),
                                             stat_bonus=stats.INTELLIGENCE,
                                             element=stats.RESIST_LUNAR,
                                             anim=animobs.PurpleExplosion),
                                         com_tar=targetarea.SingleTarget(),
                                         shot_anim=animobs.WizardMissile,
                                         ai_tar=invocations.TargetEnemy()),
                  invocations.Invocation(
                      "Hold Person",
                      effects.OpposedRoll(
                          att_modifier=20,
                          on_success=(effects.Paralyze(max_duration=3), ),
                          on_failure=(effects.NoEffect(
                              anim=animobs.SmallBoom), )),
                      com_tar=targetarea.SingleTarget(),
                      shot_anim=animobs.BlueComet,
                      ai_tar=invocations.TargetMobileEnemy()),
                  invocations.MPInvocation(
                      "Thunder Strike",
                      effects.OpposedRoll(on_success=(effects.HealthDamage(
                          (3, 6, 0),
                          stat_bonus=stats.INTELLIGENCE,
                          element=stats.RESIST_LIGHTNING,
                          anim=animobs.Spark), ),
                                          on_failure=(effects.HealthDamage(
                                              (1, 8, 0),
                                              stat_bonus=None,
                                              element=stats.RESIST_LIGHTNING,
                                              anim=animobs.Spark), )),
                      mp_cost=16,
                      com_tar=targetarea.Line(),
                      ai_tar=invocations.TargetEnemy()))
    ATTACK = items.Attack((2, 8, 0), element=stats.RESIST_SLASHING)

    def init_monster(self):
        self.levels.append(base.Terror(7, self))
예제 #2
0
class Spark(base.Monster):
    name = "Spark"
    statline = { stats.STRENGTH: 13, stats.TOUGHNESS: 8, stats.REFLEXES: 14, \
        stats.INTELLIGENCE: 12, stats.PIETY: 6, stats.CHARISMA: 14,
        stats.RESIST_PIERCING: 50, stats.RESIST_CRUSHING: 50, stats.RESIST_SLASHING: 50 }
    SPRITENAME = "monster_by_Joe.png"
    FRAME = 4
    TEMPLATES = (stats.ELEMENTAL, stats.FIRE)
    MOVE_POINTS = 12
    HABITAT = (context.HAB_BUILDING, context.SET_EVERY, context.GEN_IGNAN,
               context.DES_FIRE, context.DES_SOLAR, context.MTY_ELEMENTAL,
               context.MTY_CELESTIAL)
    ENC_LEVEL = 3
    COMBAT_AI = aibrain.ArcherAI(approach_allies=0, technique_chance=75)
    ATTACK = items.Attack((1, 6, 0),
                          element=stats.RESIST_SOLAR,
                          hit_anim=animobs.OrangeExplosion,
                          extra_effect=abilities.BURN_ATTACK)
    TECHNIQUES = (invocations.Invocation(
        "Fire Bolt",
        effects.OpposedRoll(
            att_modifier=10,
            att_stat=stats.REFLEXES,
            def_stat=stats.REFLEXES,
            on_success=(effects.HealthDamage((1, 6, 0),
                                             stat_bonus=None,
                                             element=stats.RESIST_FIRE,
                                             anim=animobs.OrangeExplosion), ),
            on_failure=(effects.NoEffect(anim=animobs.SmallBoom), )),
        com_tar=targetarea.SingleTarget(reach=5),
        shot_anim=animobs.FireBolt,
        ai_tar=invocations.TargetEnemy()), )

    def init_monster(self):
        self.levels.append(base.Spellcaster(3, self))
예제 #3
0
class SkeletonHunter( base.Monster ):
    name = "Skeleton Hunter"
    statline = { stats.STRENGTH: 14, stats.TOUGHNESS: 12, stats.REFLEXES: 16, \
        stats.INTELLIGENCE: 12, stats.PIETY: 12, stats.CHARISMA: 10,
        stats.NATURAL_DEFENSE: 10, stats.PHYSICAL_ATTACK: 5 }
    SPRITENAME = "monster_skeletons.png"
    FRAME = 9
    TEMPLATES = (stats.UNDEAD,stats.BONE)
    MOVE_POINTS = 8
    VOICE = None
    HABITAT = ( context.HAB_EVERY, context.SET_EVERY, context.SET_RENFAN,
     context.MTY_UNDEAD, context.MTY_HUMANOID, context.MTY_FIGHTER, context.MTY_BOSS, 
     context.DES_EARTH, context.GEN_UNDEAD )
    ENC_LEVEL = 6
    TREASURE = treasuretype.High((items.BOW,items.ARROW,items.ARROW))
    LONER = True
    COMPANIONS = (Shade,Ghast,SkeletonMage,SkeletonFighter,SkeletonThief,SkeletalHound)
    COMBAT_AI = aibrain.SteadyAI()
    ATTACK = items.Attack( (2,6,0), element = stats.RESIST_CRUSHING )
    TECHNIQUES = ( invocations.Invocation( "Arrow",
      effects.PhysicalAttackRoll( att_stat=stats.REFLEXES, on_success = (
        effects.HealthDamage( (1,8,0), stat_bonus=None, element=stats.RESIST_PIERCING, anim=animobs.RedBoom ),
        effects.TargetIs( effects.ANIMAL, on_true=(
            effects.PercentRoll( roll_skill=stats.MAGIC_ATTACK, roll_stat=None, 
            roll_modifier=-5, target_affects=True, on_success=(
                effects.InstaKill( anim=animobs.CriticalHit )
            ,) )
        ,) ) 
      ), on_failure = (
        effects.NoEffect( anim=animobs.SmallBoom )
      ,) ), com_tar=targetarea.SingleTarget(reach=8), shot_anim=animobs.Arrow, ai_tar=invocations.TargetEnemy()
    ), )

    def init_monster( self ):
        self.levels.append( base.Humanoid( 5, self ) )
예제 #4
0
class CloudGiant( base.Monster ):
    name = "Cloud Giant"
    statline = { stats.STRENGTH: 31, stats.TOUGHNESS: 21, stats.REFLEXES: 9, \
        stats.INTELLIGENCE: 10, stats.PIETY: 14, stats.CHARISMA: 11 }
    SPRITENAME = "monster_giants.png"
    FRAME = 11
    TEMPLATES = (stats.FIRE,)
    MOVE_POINTS = 14
    HABITAT = ( context.HAB_EVERY,
     context.SET_EVERY,
     context.DES_FIRE,
     context.MTY_HUMANOID, context.MTY_FIGHTER, context.GEN_GIANT )
    ENC_LEVEL = 13
    TREASURE = treasuretype.HighItems()
    ATTACK = items.Attack( (4,6,0), element = stats.RESIST_CRUSHING )
    TECHNIQUES = ( invocations.Invocation( "Rock",
      effects.PhysicalAttackRoll( att_stat=stats.REFLEXES, on_success = (
        effects.HealthDamage( (2,8,0), stat_bonus=stats.STRENGTH, element=stats.RESIST_CRUSHING, anim=animobs.RedBoom ),
      ), on_failure = (
        effects.NoEffect( anim=animobs.SmallBoom )
      ,) ), com_tar=targetarea.SingleTarget(reach=10), shot_anim=animobs.SlingStone, ai_tar=invocations.TargetEnemy()
    ), )

    def init_monster( self ):
        self.levels.append( base.Humanoid( 15, self ) )
예제 #5
0
class OgreLeader( base.Monster ):
    name = "Ogre Leader"
    statline = { stats.STRENGTH: 18, stats.TOUGHNESS: 18, stats.REFLEXES: 10, \
        stats.INTELLIGENCE: 10, stats.PIETY: 10, stats.CHARISMA: 5 }
    SPRITENAME = "monster_giants.png"
    FRAME = 4
    TEMPLATES = ()
    MOVE_POINTS = 10
    HABITAT = ( context.HAB_EVERY, context.HAB_FOREST,
     context.SET_EVERY, context.SET_RENFAN,
     context.MTY_HUMANOID, context.MTY_BOSS, context.MTY_LEADER, context.GEN_GIANT )
    ENC_LEVEL = 8
    TREASURE = treasuretype.High()
    LONER = True
    TECHNIQUES = ( invocations.Invocation( "Rock",
      effects.PhysicalAttackRoll( att_stat=stats.REFLEXES, on_success = (
        effects.HealthDamage( (1,10,2), stat_bonus=None, element=stats.RESIST_CRUSHING, anim=animobs.RedBoom )
      ,), on_failure = (
        effects.NoEffect( anim=animobs.SmallBoom )
      ,) ), com_tar=targetarea.SingleTarget(reach=6), shot_anim=animobs.SlingStone, ai_tar=invocations.TargetEnemy()
    ), )
    COMPANIONS = ( Ogre, OgreChamp, OgreShaman )
    ATTACK = items.Attack( (4,4,0), element = stats.RESIST_CRUSHING )
    def init_monster( self ):
        self.levels.append( base.Leader( 9, self ) )
class GemOfSeeing(Consumable):
    true_name = "Gem of Seeing"
    true_desc = "You can peer into this gem for an overview of the surrounding area."
    itemtype = GEM
    mass_per_q = 3
    cost_per_q = 150
    tech = invocations.Invocation("Scry",
                                  effects.MagicMap(anim=animobs.BlueSparkle),
                                  com_tar=targetarea.SelfOnly(),
                                  exp_tar=targetarea.SelfOnly())
class GemOfHolograms(Consumable):
    true_name = "Gem of Holograms"
    true_desc = "This gem may be used to summon an illusory monster to aid you in combat."
    itemtype = GEM
    mass_per_q = 3
    cost_per_q = 600
    tech = invocations.Invocation(
        "Create Illusion",
        effects.CallMonster({(context.HAB_EVERY, context.SET_EVERY): True},
                            5,
                            anim=animobs.BlueSparkle),
        com_tar=targetarea.SingleTarget(reach=5),
        ai_tar=invocations.TargetEmptySpot(),
        exp_tar=None)
예제 #8
0
class Umbull( base.Monster ):
    name = "Umbull"    
    statline = { stats.STRENGTH: 23, stats.TOUGHNESS: 19, stats.REFLEXES: 13, \
        stats.INTELLIGENCE: 9, stats.PIETY: 11, stats.CHARISMA: 13 }
    SPRITENAME = "monster_default.png"
    FRAME = 4
    TEMPLATES = ()
    MOVE_POINTS = 8
    HABITAT = ( context.HAB_CAVE, context.SET_EVERY,
     context.MAP_DUNGEON, context.DES_EARTH )
    ENC_LEVEL = 9
    COMBAT_AI = aibrain.BruiserAI()
    TREASURE = treasuretype.Standard()
    ATTACK = items.Attack( (3,6,0), element = stats.RESIST_SLASHING )
    TECHNIQUES = (invocations.Invocation( "Freezing Gaze",
        effects.OpposedRoll( att_modifier=20, on_success = (
            effects.Paralyze( max_duration = 6 )
        ,), on_failure =(
            effects.NoEffect( anim=animobs.SmallBoom )
        ,) ), com_tar=targetarea.SingleTarget(), shot_anim=animobs.PurpleVortex,
        ai_tar=invocations.TargetMobileEnemy() ),
    )
    def init_monster( self ):
        self.levels.append( base.Defender( 9, self ) )
예제 #9
0
class FireGlove(Enhancer):
    NAMEPAT = "{0} of Fire"
    DESCPAT = "{0} The user may project an arc of fire from the fingertips."
    PLUSRANK = 4
    AFFECTS = (GLOVE, GAUNTLET)
    BONUSES_PER_RANK = stats.StatMod({stats.RESIST_FIRE: 15})
    TYPE = ET_PRIMARY
    TECH = (invocations.Invocation("Flamethrower",
                                   effects.OpposedRoll(
                                       att_skill=stats.PHYSICAL_ATTACK,
                                       att_stat=stats.REFLEXES,
                                       def_stat=stats.REFLEXES,
                                       on_success=(effects.HealthDamage(
                                           (2, 5, 0),
                                           stat_bonus=stats.TOUGHNESS,
                                           element=stats.RESIST_FIRE,
                                           anim=animobs.RedCloud), ),
                                       on_failure=(effects.HealthDamage(
                                           (1, 6, 0),
                                           stat_bonus=None,
                                           element=stats.RESIST_FIRE,
                                           anim=animobs.RedCloud), )),
                                   com_tar=targetarea.Cone(reach=4),
                                   ai_tar=invocations.TargetEnemy()), )
예제 #10
0
import invocations
import effects
import stats
import animobs
import targetarea
import enchantments

# Techniques

SHORTBOW = invocations.Invocation(
    "Arrow",
    effects.PhysicalAttackRoll(
        att_stat=stats.REFLEXES,
        att_modifier=5,
        on_success=(effects.HealthDamage((1, 6, 0),
                                         stat_bonus=None,
                                         element=stats.RESIST_PIERCING,
                                         anim=animobs.RedBoom), ),
        on_failure=(effects.NoEffect(anim=animobs.SmallBoom), )),
    com_tar=targetarea.SingleTarget(reach=7),
    shot_anim=animobs.Arrow,
    ai_tar=invocations.TargetEnemy())

LONGBOW = invocations.Invocation(
    "Arrow",
    effects.PhysicalAttackRoll(
        att_stat=stats.REFLEXES,
        att_modifier=5,
        on_success=(effects.HealthDamage((1, 8, 0),
                                         stat_bonus=None,
                                         element=stats.RESIST_PIERCING,
예제 #11
0
class CentaurHero(base.Monster):
    name = "Centaur Hero"
    statline = { stats.STRENGTH: 18, stats.TOUGHNESS: 18, stats.REFLEXES: 16, \
        stats.INTELLIGENCE: 13, stats.PIETY: 15, stats.CHARISMA: 13 }
    SPRITENAME = "monster_chaos.png"
    FRAME = 23
    TEMPLATES = ()
    MOVE_POINTS = 10
    VOICE = dialogue.voice.GREEK
    HABITAT = (context.HAB_EVERY, context.SET_EVERY, context.MAP_WILDERNESS,
               context.DES_SOLAR, context.MTY_HUMANOID, context.MTY_FIGHTER,
               context.MTY_LEADER, context.MTY_BOSS, context.GEN_CHAOS)
    ENC_LEVEL = 11
    TREASURE = treasuretype.Standard((items.ARROW, items.POLEARM, items.BOW))
    COMBAT_AI = aibrain.ArcherAI()
    LONER = True
    COMPANIONS = (CentaurKnight, CentaurChampion)
    ATTACK = items.Attack((2, 6, 0),
                          element=stats.RESIST_SLASHING,
                          extra_effect=effects.OpposedRoll(
                              att_stat=None,
                              def_stat=stats.TOUGHNESS,
                              on_success=(
                                  effects.HealthDamage(
                                      (1, 6, 0),
                                      stat_bonus=None,
                                      element=stats.RESIST_POISON,
                                      anim=animobs.PoisonCloud),
                                  effects.Enchant(enchantments.PoisonClassic),
                              )))
    TECHNIQUES = (invocations.Invocation(
        "Arrow 23",
        effects.PhysicalAttackRoll(
            att_stat=stats.REFLEXES,
            on_success=(
                effects.HealthDamage((2, 8, 0),
                                     stat_bonus=stats.STRENGTH,
                                     element=stats.RESIST_PIERCING,
                                     anim=animobs.RedBoom),
                effects.OpposedRoll(
                    att_stat=None,
                    att_modifier=5,
                    on_success=(
                        effects.HealthDamage((1, 6, 0),
                                             stat_bonus=None,
                                             element=stats.RESIST_FIRE,
                                             anim=animobs.RedCloud),
                        effects.Enchant(enchantments.BurnLowEn),
                    )),
            ),
            on_failure=(effects.HealthDamage((1, 8, 0),
                                             stat_bonus=None,
                                             element=stats.RESIST_PIERCING,
                                             anim=animobs.RedBoom), )),
        com_tar=targetarea.SingleTarget(reach=9),
        shot_anim=animobs.Arrow,
        ai_tar=invocations.TargetEnemy()), spells.solarspells.MAJOR_CURE,
                  spells.solarspells.CURE_POISON)

    def init_monster(self):
        self.levels.append(base.Leader(15, self))