Sha256: d36b37fb9856b69ef5c4b120affcf9a225b140ed402dc73e4d76f20bc25fca13

Contents?: true

Size: 804 Bytes

Versions: 7

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

module Gamefic
  module Standard
    script do
      respond :attack do |actor, thing|
        actor.tell "Violence is not the answer here."
      end

      respond :attack, Thing do |actor, _thing|
        actor.execute :attack
      end

      interpret 'fight', 'attack'
      interpret 'battle', 'attack'
      interpret 'kill', 'attack'
      interpret 'punch', 'attack'
      interpret 'kick', 'attack'
      interpret 'hit', 'attack'
      interpret 'fight :thing', 'attack :thing'
      interpret 'battle :thing', 'attack :thing'
      interpret 'kill :thing', 'attack :thing'
      interpret 'punch :thing', 'attack :thing'
      interpret 'kick :thing', 'attack :thing'
      interpret 'hit :thing', 'attack :thing'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gamefic-standard-3.2.4 lib/gamefic-standard/actions/attack.rb
gamefic-standard-3.2.3 lib/gamefic-standard/actions/attack.rb
gamefic-standard-3.2.2 lib/gamefic-standard/actions/attack.rb
gamefic-standard-3.2.1 lib/gamefic-standard/actions/attack.rb
gamefic-standard-3.2.0 lib/gamefic-standard/actions/attack.rb
gamefic-standard-3.1.0 lib/gamefic-standard/actions/attack.rb
gamefic-standard-3.0.0 lib/gamefic-standard/actions/attack.rb