def sanity(current_points, max_points=99): """Creates the sanity score for a character. Args: current_points (int): The number of points the character currently has. max_points (int): The maximum number of points possible. Return: dict: The sanity score for a character. """ return ar.new("sanity", current=current_points, max=max_points)
def magic_points(current_points, max_points=24): """Creates the number of magic points a character has. Args: current_points (int): The current number of points the character has. max_points (int): The maximum points possible. Return: dict: The magic points of a character. """ return ar.new("magic_points", current=current_points, max=max_points)
def hit_points(current_points, max_points=20): """Returns a character's hit points. Args: current_points (int): The current number of hit points a character has. max_points (int): The maximum points possible. Return: dict: A character's hit points. """ return ar.new("hit_points", current=current_points, max=max_points)
def luck(current_points, max_points=99): """Generates the luck score for a character. Args: current_points (int): The current luck points a character has. max_points (int): The maximum number of points possible. Return: dict: The luck score of a character. """ return ar.new("luck", current=current_points, max=max_points)
def inventory_item(name, description): """Creates an inventory item. Args: name (str): The name of the inventory item. description (str): The description of the inventory item. Return: dict: An inventory item. """ return ar.new("item", name=name, description=description)
def significant_person(npc_name, description): """Creates a new significant person/NPC for a character to know, keep track of. Args: npc_name (str): The name of the NPC. description (str): The description of the NPC. Return: dict: An NPC/Significant Person """ return ar.new("significant_person", name=npc_name, description=description)
def fellow_investigator(char_name, player_name): """Creates a new fellow investigator. Args: char_name (str): The fellow investigator character name. player_name (str): The fellow investigator player name. Return: dict: A fellow investigator """ return ar.new("fellow_investigator", character_name=char_name, player_name=player_name)
def trait(trait_name, description): return ar.new("trait", name=trait_name, description=description)
def encounter(description): return ar.new("encounter", description=description)
def meaningful_location(location_name, description): return ar.new("meaningful_location", name=location_name, description=description)
def phobia_or_mania(name, description): return ar.new("phobia_or_mania", name=name, description=description)
def arcane_item(name, description): return ar.new("arcane_item", name=name, description=description)
def treasured_possession(possession_name, description): return ar.new("treasured_possession", name=possession_name, description=description)
def injury_or_scar(description): return ar.new("injury_or_scar", description=description)