1
0
Fork 0
taleweave-ai/taleweave/systems/environment/temperature/triggers.py

24 lines
513 B
Python
Raw Normal View History

from taleweave.models.entity import Attributes, Room
2024-05-06 01:17:32 +00:00
def hot_room(room: Room, attributes: Attributes):
"""
If the room is hot, characters should get hotter.
2024-05-06 01:17:32 +00:00
"""
for character in room.characters:
character.attributes["hot"] = "hot"
2024-05-06 01:17:32 +00:00
return attributes
def cold_room(room: Room, attributes: Attributes):
"""
If the room is cold, characters should get colder.
2024-05-06 01:17:32 +00:00
"""
for character in room.characters:
character.attributes["cold"] = "cold"
2024-05-06 01:17:32 +00:00
return attributes