Sha256: 66f171a2376e5bde0b0e419c369d89791ec1db75eb192264f764c04282d60647
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true module Gamefic module Standard module Actions module Attack extend Gamefic::Scriptable respond :attack do |actor| 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-3.3.0 | lib/gamefic-standard/actions/attack.rb |