monotony Help

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

SelfPortrait

The self portrait

action_bar

ActionBar

The action bar

clock

Clock

The clock

detail_rectangle

DetailRectangle

The inventory/log panel

location_dict

Dictionary

Dictionary of Locations

location

Location

Current location

hygiene

Stat

Hygiene stat

cleaning_amount

Integer

Amount to add when finished bathing

hunger

Stat

Hunger stat

consuming_calories

Integer

Hunger to add when done eating

sleep

Stat

Sleep stat

in_bed

Boolean

Is asleep?

money

Integer

Money

hunger_decay

Integer

Hunger decay rate (Config hunger-decay, default 10)

sleep_decay

Integer

Sleep decay rate (Config sleep-decay, default 10)

sleep_boost

Integer

Sleep boost rate (Config sleep-boost, default 10)

hygiene_decay

Integer

Hygiene decay rate (Config hygiene-decay, default 10)

stats_widget

StatsWidget

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 consuming calories

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

Last modified: 31 December 2024