Skip to content

Commit

Permalink
Merge pull request #121 from adventureboss/fix_cat_bug
Browse files Browse the repository at this point in the history
fix cat and event coordinator
  • Loading branch information
josejulio authored Jun 1, 2022
2 parents 972816d + fa85c15 commit 65c1fb2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
27 changes: 18 additions & 9 deletions Dialogs/event_coordinator.tres
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ do remove_item(\"laser_pointer\")
do handle_turnin(1)
<Laser pointer removed from inventory>
Coordinator: Most impressive, young Skywalker. Thanks!
if get_dialog_state(\"eventc\", \"items\", 7)
if get_dialog_state(\"eventc\", \"items\") == 7
=> items
else
=> END
Expand All @@ -187,7 +187,7 @@ do remove_item(\"floppy\")
do handle_turnin(2)
<Floppy removed from inventory>
Coordinator: Great!
if get_dialog_state(\"eventc\", \"items\", 7)
if get_dialog_state(\"eventc\", \"items\") == 7
=> items
else
=> END
Expand All @@ -198,7 +198,7 @@ do remove_item(\"password\")
do handle_turnin(4)
<Password removed from inventory>
Coordinator: Well done!
if get_dialog_state(\"eventc\", \"items\", 7)
if get_dialog_state(\"eventc\", \"items\") == 7
=> items
else
=> END"
Expand Down Expand Up @@ -1048,10 +1048,13 @@ lines = {
} ], [ {
"type": "string",
"value": "items"
} ], [ {
} ] ]
}, {
"type": "comparison",
"value": "=="
}, {
"type": "number",
"value": 7
} ] ]
} ]
},
"next_conditional_id": "173",
Expand Down Expand Up @@ -1157,10 +1160,13 @@ lines = {
} ], [ {
"type": "string",
"value": "items"
} ], [ {
} ] ]
}, {
"type": "comparison",
"value": "=="
}, {
"type": "number",
"value": 7
} ] ]
} ]
},
"next_conditional_id": "184",
Expand Down Expand Up @@ -1263,10 +1269,13 @@ lines = {
} ], [ {
"type": "string",
"value": "items"
} ], [ {
} ] ]
}, {
"type": "comparison",
"value": "=="
}, {
"type": "number",
"value": 7
} ] ]
} ]
},
"next_conditional_id": "195",
Expand Down
2 changes: 2 additions & 0 deletions Scripts/game_state.gd
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func _init():
# npc default states when necessary
set_dialog_state("nerds", "present", true)
set_dialog_state("cat", "complete", false)
set_dialog_state("cat", "sleeping", 0)
set_dialog_state("cat", "feral", 0)
set_dialog_state("robot", "finished", false)

func _add_global_item(resource, name, display_name, add_to_inventory = false):
Expand Down

0 comments on commit 65c1fb2

Please sign in to comment.