~habnabit/tunnelhack/master

« back to all changes in this revision

Viewing changes to th/regions/HoboRegion.py

  • Committer: Aaron Gallagher
  • Date: 2013-07-08 03:48:45 UTC
  • Revision ID: habnabit@gmail.com-20130708034845-tajsarg7079fyngt
pyflakes fixes; trailing whitespace; typos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from .. import Region, Ifc, Utl, Map, Node, Monster, g
 
1
from .. import Region, Ifc, Utl, Map, Node, Monster
2
2
from ..data import Species, Items
3
3
 
4
4
def HoboRegion(origin, region, direction):
6
6
    origin.name = "Gaping Hole"
7
7
    origin.color = Ifc.BRIGHT_CYAN
8
8
    origin.unique = True
9
 
    
 
9
 
10
10
    oldnode, newnode = None, origin
11
11
    size, phase = Utl.d(8, 6), 1
12
12
    curdir = direction
30
30
        self.tunnel = True
31
31
        self.spawn_chance = 1
32
32
        self.spawn = Species.cavern_mons
33
 
        
 
33
 
34
34
        for x in xrange(Utl.rn_seq(mons_spawn_chance)):
35
35
            self.add(Utl.rn_seq(Species.cavern_mons).make(ai=Monster.SLEEPING))
36
36
        for x in xrange(Utl.rn_seq(item_spawn_chance)):
40
40
    def xinit(self):
41
41
        self.color = Ifc.MAJOR_CYAN
42
42
        self.name = "Throne Room"
43
 
        self.description = """You have entered the infamous dwelling of the the local hobo monarch. 
 
43
        self.description = """You have entered the infamous dwelling of the the local hobo monarch.
44
44
Except for a throne carved from rock, this room looks very spartan."""
45
45
        self.unique = True
46
46
        self.tunnel = False
47
47
        self.locked = True
48
 
        
49
 
        self.add(Species.hobo_leader.make())
 
 
b'\\ No newline at end of file'
 
48
 
 
49
        self.add(Species.hobo_leader.make())