feat(narrative): set status=alive on new characters
This commit is contained in:
parent
1a73b7f672
commit
16b7ef7521
|
|
@ -33,6 +33,7 @@ def create_initial_character(
|
||||||
"backstory": backstory,
|
"backstory": backstory,
|
||||||
"motivations": motivations or [],
|
"motivations": motivations or [],
|
||||||
"personality_traits": personality or [],
|
"personality_traits": personality or [],
|
||||||
|
"status": "alive",
|
||||||
"emotional_state": {
|
"emotional_state": {
|
||||||
"current": dict(INITIAL_EMOTIONAL_STATE),
|
"current": dict(INITIAL_EMOTIONAL_STATE),
|
||||||
"history": [],
|
"history": [],
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,8 @@ def test_dislike_post_increases_anger():
|
||||||
char = create_initial_character(char_id="x", name="X")
|
char = create_initial_character(char_id="x", name="X")
|
||||||
apply_action_emotional_delta(char, "DISLIKE_POST")
|
apply_action_emotional_delta(char, "DISLIKE_POST")
|
||||||
assert char["emotional_state"]["current"]["anger"] > 0.0
|
assert char["emotional_state"]["current"]["anger"] > 0.0
|
||||||
|
|
||||||
|
|
||||||
|
def test_create_initial_character_sets_status_alive():
|
||||||
|
char = create_initial_character(char_id="x", name="X")
|
||||||
|
assert char["status"] == "alive"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue