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