Crossfire Server, Trunk
lockable_doors Namespace Reference

Functions

def check_picked (door, who)
 
def get_attempts (door, who)
 
def get_door (me, direction)
 
def get_exp (door, who)
 
def get_success_chance (door, who, level)
 
def give_properties (who, lock)
 
def handle_key ()
 
def handle_lockpick ()
 

Variables

 event = Crossfire.WhatIsEvent()
 

Function Documentation

◆ check_picked()

def lockable_doors.check_picked (   door,
  who 
)
Check if the lock was picked, and inform the player if this is the case.

Definition at line 75 of file lockable_doors.py.

Referenced by handle_key().

+ Here is the caller graph for this function:

◆ get_attempts()

def lockable_doors.get_attempts (   door,
  who 
)
Get how many attempts to pick a lock a player did

Definition at line 118 of file lockable_doors.py.

References make_face_from_files.int.

Referenced by get_exp(), get_success_chance(), and handle_lockpick().

+ Here is the caller graph for this function:

◆ get_door()

def lockable_doors.get_door (   me,
  direction 
)
Find the first item in the specified direction

Definition at line 38 of file lockable_doors.py.

Referenced by handle_key().

+ Here is the caller graph for this function:

◆ get_exp()

def lockable_doors.get_exp (   door,
  who 
)
Return the experience for lockpicking the door

Definition at line 134 of file lockable_doors.py.

References get_attempts().

Referenced by handle_lockpick().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_success_chance()

def lockable_doors.get_success_chance (   door,
  who,
  level 
)
Return the chance of successfully picking the lock for the player

Definition at line 125 of file lockable_doors.py.

References get_attempts(), and say.max.

Referenced by handle_lockpick().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ give_properties()

def lockable_doors.give_properties (   who,
  lock 
)
Give properties from either the archetype or the other archetype.

Definition at line 62 of file lockable_doors.py.

Referenced by handle_key(), and handle_lockpick().

+ Here is the caller graph for this function:

◆ handle_key()

def lockable_doors.handle_key ( )
Handle applying a locking key.

Definition at line 81 of file lockable_doors.py.

References check_picked(), get_door(), and give_properties().

+ Here is the call graph for this function:

◆ handle_lockpick()

def lockable_doors.handle_lockpick ( )
Handle lockpicking a door.

Definition at line 142 of file lockable_doors.py.

References get_attempts(), get_exp(), get_success_chance(), give_properties(), and make_face_from_files.str.

+ Here is the call graph for this function:

Variable Documentation

◆ event

lockable_doors.event = Crossfire.WhatIsEvent()

Definition at line 171 of file lockable_doors.py.