def generate_boss( basemon, target_rank, team=None ):
    boss = basemon(team=team)
    if boss.ENC_LEVEL < target_rank:
        boss.levels.append( base.Terror( int((target_rank-boss.ENC_LEVEL)*1.5), boss ))
    boss.ENC_LEVEL = max(target_rank,boss.ENC_LEVEL)
    name = gen_monster_name( boss )
    boss.monster_name, boss.name = boss.name, name
    for t in range( target_rank + 3 ):
        boss.statline[ random.choice( stats.PRIMARY_STATS ) ] += 1
    if hasattr( boss, "gold" ):
        gp = boss.gold
    else:
        gp = 0
    boss.gold = gp + treasuretype.gold_for_rank( target_rank , 10 )
    return boss
Example #2
0
 def init_monster( self ):
     self.levels.append( base.Terror( 10, self ) )
     self.condition.append( enchantments.PermaMegaRegeneration() )
Example #3
0
 def init_monster( self ):
     self.levels.append( base.Terror( 9, self ) )
 def init_monster(self):
     self.levels.append(base.Terror(5, self))
     self.levels.append(base.Spellcaster(5, self))