Class: Gamefic::What::AskForWhat
- Inherits:
-
Scene::Base
- Object
- Scene::Base
- Gamefic::What::AskForWhat
- Defined in:
- lib/gamefic/what.rb
Overview
Perform a command based on the player’s answer for what an object of the previous command should be.
Instance Method Summary collapse
Instance Method Details
#finish ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/gamefic/what.rb', line 35 def finish if command_with_answer_actions.empty? && actor.can?(props.input.keywords.first) actor.perform(props.input) else actor.perform command_with_answer end super end |