sapling.rb: Modify start options

- Reduce some LOC by moving some assignments into the initialize functions of
  both Dialogue and Planter
This commit is contained in:
Bill Niblock 2017-05-13 19:42:42 -04:00
parent 2e2fea9e58
commit 4c726b079d

View file

@ -41,8 +41,7 @@ module Sapling
end
puts "Welcome to Sapling, a Dialogue Tree Utility.\n"
speaker = Dialogue::Speaker.new
speaker.file = YAML.load_file(ARGV[0])
speaker = Dialogue::Speaker.new(YAML.load_file(ARGV[0]),false)
speaker.conversation
end
@ -62,8 +61,7 @@ module Sapling
end
puts "Welcome to Sapling, a Dialogue Tree Utility.\n"
gardner = Planter::Spade.new
gardner.file = tree
gardner = Planter::Spade.new(tree)
gardner.plant
end