Crossfire Server, Trunk
CFReputation Namespace Reference

Functions

def _get_db ()
 
def _get_sql_path (f)
 
def _init_db ()
 
def _init_schema (con, version, *schema_files)
 
def record_kill (race, region, player, fraction=0.0001, limit=0.4)
 
def reputation (player, faction=None)
 

Function Documentation

◆ _get_db()

def CFReputation._get_db ( )
private

Definition at line 45 of file __init__.py.

References _init_db().

Referenced by record_kill(), and reputation().

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

◆ _get_sql_path()

def CFReputation._get_sql_path (   f)
private

Definition at line 29 of file __init__.py.

◆ _init_db()

def CFReputation._init_db ( )
private

Definition at line 33 of file __init__.py.

References _init_schema(), disinfect.map, and CFBank.open().

Referenced by _get_db().

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

◆ _init_schema()

def CFReputation._init_schema (   con,
  version,
schema_files 
)
private

Definition at line 6 of file __init__.py.

References CFBank.open().

Referenced by _init_db().

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

◆ record_kill()

def CFReputation.record_kill (   race,
  region,
  player,
  fraction = 0.0001,
  limit = 0.4 
)

Definition at line 71 of file __init__.py.

References _get_db().

Referenced by reputation.on_kill().

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

◆ reputation()

def CFReputation.reputation (   player,
  faction = None 
)
Return tuple with the name and reputation of the player with the given
faction. If faction is None, return all known reputations.

Definition at line 48 of file __init__.py.

References _get_db().

Referenced by reputation_trigger_connect.check(), and reputation.show_reputation().

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