lib/gamefic/plot.rb in gamefic-0.0.4 vs lib/gamefic/plot.rb in gamefic-0.0.5
- old
+ new
@@ -67,9 +67,10 @@
end
end
def conclude(player, key = nil)
if key != nil and @conclusions[key]
@conclusions[key].call(player)
+ player.state = GameOverState.new(player)
end
end
def cue scene
@scenes[scene].call
end