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:
parent
2e2fea9e58
commit
4c726b079d
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue