Skip to content

Commit

Permalink
tweak - enhanced missions by adding colored messages when completing …
Browse files Browse the repository at this point in the history
…or failing missions
  • Loading branch information
OcelotWalrus committed Jan 19, 2024
1 parent a4bc4c9 commit 8502ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,7 @@ def run(play):
if fail == False:
logger_sys.log_message(f"INFO: Executing failing triggers of mission data '{current_mission_data}'")
mission_handling.execute_triggers(current_mission_data, player, 'on fail', dialog, preferences, text_replacements_generic, drinks)
print(COLOR_RED + COLOR_STYLE_BRIGHT + "You failed mission '" + current_mission_data["name"] + "'" + COLOR_RESET_ALL)
player["active missions"].remove(str(player["active missions"][count]))

count += 1
Expand Down
1 change: 1 addition & 0 deletions source/mission_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def mission_completing_checks(mission_id, missions_data, player, dialog, prefere
execute_triggers(mission_data, player, 'on complete', dialog, preferences, text_replacements_generic, drinks)

logger_sys.log_message(f"INFO: Set mission '{mission_id}' as done")
print(COLOR_CYAN + COLOR_STYLE_BRIGHT + "You completed mission '" + current_mission_data["name"] + "'" + COLOR_RESET_ALL)
player["active missions"].remove(mission_id)
player["done missions"].append(mission_id)

Expand Down

0 comments on commit 8502ec1

Please sign in to comment.