Crossfire Server, Trunk
|
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() | |
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().
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().
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().
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().
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().
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().
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().
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.
lockable_doors.event = Crossfire.WhatIsEvent() |
Definition at line 171 of file lockable_doors.py.