miron / NeonCore

Terminal based Cyberpunk Tabletop RPG with Nostr as database and openAI API compatible commands
3 stars 1 forks source link

Notes #28

Open miron opened 1 year ago

miron commented 1 year ago
class Character:
    def __init__(self, character_data):
        self.handle = character_data['handle']
        self.role = character_data['role']
        # ...
        self.notes = ''

    def add_note(self, note):
        self.notes += note + '\n'
char = Character(character_data)
char.add_note('Remember to pick up some ammo before the next mission.')
char.add_note('Talk to Bob about the new plan.')
print(char.notes)

# Output:
# Remember to pick up some ammo before the next mission.
# Talk to Bob about the new plan.