Skip to content

Commit

Permalink
fix g-lover accessibility issues reported by vinny
Browse files Browse the repository at this point in the history
  • Loading branch information
docrostov committed Aug 20, 2023
1 parent 7d7e794 commit ff6ab4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/relay/TourGuide/Items of the Month/2022/Autumnaton.ash
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
RegisterTaskGenerationFunction("IOTMAutumnatonGenerateTasks");
void IOTMAutumnatonGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries)
{
#if (!__misc_state["in run"]) return;
if (!get_property_boolean("hasAutumnaton")) return;
if (my_path() == $path[Legacy of Loathing]) return;
# if (!__misc_state["in run"]) return; // Turned off because TES likes this tile to appear in aftercore
if (!get_property_boolean("hasAutumnaton")) return; // Don't show if they don't actually have Fall-E
if (my_path() == $path[Legacy of Loathing]) return; // Cannot use fall-e in LoL
if (my_path().id == PATH_G_LOVER) return; // Cannot use fall-e in G-Lover

int autobotsToday = get_property_int("_autumnatonQuests");
int turncountWhereAutobotReturns = get_property_int("autumnatonQuestTurn");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ void IOTMSITCertificateGenerateTasks(ChecklistEntry [int] task_entries, Checklis
// Don't generate a tile if the user doesn't have SIT.
if (!lookupItem("S.I.T. Course Completion Certificate").have()) return;

// Cannot use S.I.T. in G-Lover
if (my_path().id == PATH_G_LOVER) return;

boolean completedSITToday = get_property_boolean("_sitCourseCompleted");

// Don't generate a tile if the user has completed SIT already today.
Expand Down

0 comments on commit ff6ab4c

Please sign in to comment.