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
|
end
|
||||||
|
|
||||||
puts "Welcome to Sapling, a Dialogue Tree Utility.\n"
|
puts "Welcome to Sapling, a Dialogue Tree Utility.\n"
|
||||||
speaker = Dialogue::Speaker.new
|
speaker = Dialogue::Speaker.new(YAML.load_file(ARGV[0]),false)
|
||||||
speaker.file = YAML.load_file(ARGV[0])
|
|
||||||
speaker.conversation
|
speaker.conversation
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -62,8 +61,7 @@ module Sapling
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "Welcome to Sapling, a Dialogue Tree Utility.\n"
|
puts "Welcome to Sapling, a Dialogue Tree Utility.\n"
|
||||||
gardner = Planter::Spade.new
|
gardner = Planter::Spade.new(tree)
|
||||||
gardner.file = tree
|
|
||||||
gardner.plant
|
gardner.plant
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue