#NEWLINE# def func( self ) : #NEWLINE# #INDENT# 'Looking around, including a chance to fall.' #NEWLINE# caller = self . caller #NEWLINE# bridge_position = self . caller . db . tutorial_bridge_position #NEWLINE# location = self . obj #NEWLINE# message = ( '{c%s{n\n%s\n%s' % ( location . key , BRIDGE_POS_MESSAGES [ bridge_position ] , random . choice ( BRIDGE_MOODS ) ) ) #NEWLINE# chars = [ obj for obj in self . obj . contents_get ( exclude = caller ) if caller . has_player ] #NEWLINE# if chars : #NEWLINE# #INDENT# message += ( '\n You see: %s' % ', ' . join ( ( ( '{c%s{n' % char . key ) for char in chars ) ) ) #NEWLINE# #UNINDENT# self . caller . msg ( message ) #NEWLINE# if ( ( bridge_position < 3 ) and ( random . random ( ) < 0.05 ) and ( not self . caller . is_superuser ) ) : #NEWLINE# #INDENT# fall_exit = search_object ( self . obj . db . fall_exit ) #NEWLINE# if fall_exit : #NEWLINE# #INDENT# self . caller . msg ( ( '{r%s{n' % FALL_MESSAGE ) ) #NEWLINE# self . caller . move_to ( fall_exit [ 0 ] , quiet = True ) #NEWLINE# self . obj . msg_contents ( ( "A plank gives way under %s's feet and they fall from the bridge!" % self . caller . key ) )