Locations
When the player is picking a mortal to visit, there are tabs for the Suburbs and Downtown and the like. These are locations. They group together the archetypes for a range of difficulty levels.
Making a new Location
If your mod is going to introduce characters that are on a new difficulty level, you’ll need to make a location for them. Here we make a new location that’s immediately available to the player, but has the Pit’s archetype difficulty levels:
from faust.Constant import get_constant, del_constant
from faust.Locations import Location, default_locations
def init():
def can_unlock(location, player):
return True
my_location = Location('loc_armpit', "Giant Armpit",
desc=" It's bad, basically.", # sorry 2 armpit fetishists worldwide
scavenge_pool=get_constant('droppool.occult_bookshop'), # RandomDropPool for tome drops
min_level=0, # Minimum experience level
archetype_levels=[7, 8], # Which archetype difficulty levels to populate with
unlock_fn=can_unlock) # Optional: Will always be unlocked if you leave parameter out
default_locations.append(my_location)
def deinit():
del_constant('location.loc_armpit')