Update TextGen/gemini.py
Browse files- TextGen/gemini.py +2 -2
TextGen/gemini.py
CHANGED
|
@@ -34,7 +34,7 @@ def place_objects(available_items,story,myMap):
|
|
| 34 |
{{"objective": str, "objects":list[OBJECT], "enemies":list[ENEMIES], "boss":list[BOSS],"npcs": list[NPC]}}
|
| 35 |
In all of the following example, placement is the id of the room to place the object in.
|
| 36 |
# The Objects that should be placed in the treasure chests
|
| 37 |
-
OBJECT = {{"name": str, "description": str,"placement": int, "
|
| 38 |
# The infos necessary about the enemies
|
| 39 |
ENEMIES = {{"name": str, "placement": int}}
|
| 40 |
# The NPC that should be added to the map
|
|
@@ -45,7 +45,7 @@ def place_objects(available_items,story,myMap):
|
|
| 45 |
when placement is requiered, it is the id of the room on the map.
|
| 46 |
|
| 47 |
All fields are not necessarily required; if null, don't add it. it should make sense with the crafted story.
|
| 48 |
-
Items can only be weapons or objects that can be useful for a special quest. "
|
| 49 |
|
| 50 |
Important: Only return a single piece of valid JSON text.
|
| 51 |
|
|
|
|
| 34 |
{{"objective": str, "objects":list[OBJECT], "enemies":list[ENEMIES], "boss":list[BOSS],"npcs": list[NPC]}}
|
| 35 |
In all of the following example, placement is the id of the room to place the object in.
|
| 36 |
# The Objects that should be placed in the treasure chests
|
| 37 |
+
OBJECT = {{"name": str, "description": str,"placement": int, "strength": str, "speed": str}}
|
| 38 |
# The infos necessary about the enemies
|
| 39 |
ENEMIES = {{"name": str, "placement": int}}
|
| 40 |
# The NPC that should be added to the map
|
|
|
|
| 45 |
when placement is requiered, it is the id of the room on the map.
|
| 46 |
|
| 47 |
All fields are not necessarily required; if null, don't add it. it should make sense with the crafted story.
|
| 48 |
+
Items can only be weapons or objects that can be useful for a special quest. "strength" and "speed" should only be declared for weapons and can only range between 0 and 1. 0 being a rusty sword and 1 being the best sword in the game.
|
| 49 |
|
| 50 |
Important: Only return a single piece of valid JSON text.
|
| 51 |
|