2024-05-27 13:10:24 +00:00
|
|
|
from taleweave.models.entity import Attributes, Room
|
2024-05-06 01:17:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
def hot_room(room: Room, attributes: Attributes):
|
|
|
|
"""
|
2024-05-27 01:32:03 +00:00
|
|
|
If the room is hot, characters should get hotter.
|
2024-05-06 01:17:32 +00:00
|
|
|
"""
|
|
|
|
|
2024-05-27 01:32:03 +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):
|
|
|
|
"""
|
2024-05-27 01:32:03 +00:00
|
|
|
If the room is cold, characters should get colder.
|
2024-05-06 01:17:32 +00:00
|
|
|
"""
|
|
|
|
|
2024-05-27 01:32:03 +00:00
|
|
|
for character in room.characters:
|
|
|
|
character.attributes["cold"] = "cold"
|
2024-05-06 01:17:32 +00:00
|
|
|
|
|
|
|
return attributes
|