Player
Inherits from Notifier
Holds all the player-related information.
Variables
Name | Type | Description |
---|---|---|
font | TextFont | Font to use for rendering text |
drawn_square | NodePath | Image for buttons |
notes | List | List of collected notes |
able | Boolean | Able to act? |
self_portrait | The self portrait | |
action_bar | The action bar | |
clock | The clock | |
detail_rectangle | The inventory/log panel | |
location_dict | Dictionary | Dictionary of Locations |
location | Current location | |
hygiene | Hygiene stat | |
cleaning_amount | Integer | Amount to add when finished bathing |
hunger | Hunger stat | |
consuming_calories | Integer | Hunger to add when done eating |
sleep | Sleep stat | |
in_bed | Boolean | Is asleep? |
money | Integer | Money |
hunger_decay | Integer | Hunger decay rate (Config |
sleep_decay | Integer | Sleep decay rate (Config |
sleep_boost | Integer | Sleep boost rate (Config |
hygiene_decay | Integer | Hygiene decay rate (Config |
stats_widget | StatsWidget |
Functions
Name | Description |
---|---|
head_to_location(destination, stage=0) | Head to destination (Integer), option stage integer |
deteriorate | Deteriorates stats |
bathe(duration=2, effect=80, after=None) | Bathe for duration, give effect, what function (if any) to run after |
finish_bathing(task) | Done bathing; adds to the hygiene stat |
feed(calories=20, daze_time=2, after=None) | Feed calories to hunger, how long to eat for, and function to run after |
finish_eating(task) | Add to the hunger stat/change portrait/reset |
daze(duration=5) | Hide the action bar for the duration |
undaze | Show the action bar |
add_note_(title, text) | Adds a note with the title and text to the player's inventory |
enable_actions | Starts clock and enables actions |
disable_actions | Pauses clock and disables actions |