Skip to content

Commit

Permalink
Update tome.lic
Browse files Browse the repository at this point in the history
1. Added new "penultimate page" definitions for the 2 new MT tomes, so that the script knows when to quit for optimal learning.
2. Added a new optional second_to_last_page YAML setting, so that people can override the page to stop reading at, or provide a missing one (for new books that don't get added to the script, alterations, etc.)
  • Loading branch information
urbaj-dr authored Sep 25, 2024
1 parent eba58e1 commit f406c84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tome.lic
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Tome

@@tome = @tome_settings['tome_name']
@quit_early = @tome_settings['quit_early']
@penultimate_page = @tome_settings['second_to_last_page']
@scholarship_limit = @tome_settings['scholarship_limit'] || 34
@passive_scripts = @tome_settings['passive_scripts']
@passive = args.active ? false : @tome_settings['passive']
Expand All @@ -45,10 +46,13 @@ class Tome
'brinewood book' => "While Merelew observed the stars and the moons crown,",
'kuwinite codex' => "But, she is a great warrior with the fury of a mother",
'smokewood codex' => "Rumor also has it that the Empire had great powers of magic or technology",
'togball manual' => "A team may not enter the opposing team's Blood Zone"
'weathered book' => "\"There he is!\" Grundgy turned to see half a dozen of the guards hacking through the briars and reed",
'worn book' => "I was unsure a little of whether dragons drank wine,"
}

if @quit_early
if @quit_early && @penultimate_page
Flags.add('study-complete', Regexp.new(@penultimate_page))
elsif @quit_early
Flags.add('study-complete', Regexp.new(@penultimate_pages[@@tome]))
else
Flags.add('study-complete', /^Having finished your studies,/)
Expand Down

0 comments on commit f406c84

Please sign in to comment.