Sha256: de0be4725fce2ce5aa8bef67355dcdf0d95d3ccc21f3190e63a8eaa489658128

Contents?: true

Size: 224 Bytes

Versions: 7

Compression:

Stored size: 224 Bytes

Contents

assert_action :has_enough_light do |actor, action|
  if !actor.nil? or actor.room.is? :lighted
    true
  else
    if action == :go
      true
    else
      actor.tell "It's too dark in here."
      false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gamefic-sdk-1.4.1 scripts/standard/rules/has-enough-light.plot.rb
gamefic-sdk-1.4.0 scripts/standard/rules/has-enough-light.plot.rb
gamefic-sdk-1.3.1 scripts/standard/rules/has-enough-light.plot.rb
gamefic-sdk-1.3.0 scripts/standard/rules/has-enough-light.plot.rb
gamefic-sdk-1.2.0 scripts/standard/rules/has-enough-light.plot.rb
gamefic-sdk-1.1.0 scripts/standard/rules/has-enough-light.plot.rb
gamefic-sdk-1.0.1 scripts/standard/rules/has-enough-light.plot.rb