Update TextGen/gemini.py
Browse files- TextGen/gemini.py +3 -1
TextGen/gemini.py
CHANGED
@@ -34,13 +34,15 @@ 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, "stength": 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
|
41 |
NPC = {{"name": str, "persona": str, "placement": int}}
|
42 |
# The Boss monster of this level.
|
43 |
BOSS = {{"name": str, "placement": int}}
|
|
|
|
|
44 |
|
45 |
All fields are not necessarily required; if null, don't add it. it should make sense with the crafted story.
|
46 |
Items can only be weapons or objects that can be useful for a special quest. "stength" 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.
|
|
|
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, "stength": 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
|
41 |
NPC = {{"name": str, "persona": str, "placement": int}}
|
42 |
# The Boss monster of this level.
|
43 |
BOSS = {{"name": str, "placement": int}}
|
44 |
+
|
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. "stength" 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.
|