lib/demiurge/action_item.rb
def cancel_notification
      # "Silent" notifications are things like an agent's action queue
      # being empty so it cancels its intention.  These are normal
      # operation and nobody is likely to need notification every
      # tick that they didn't ask to do anything so they didn't.
      return if @cancelled_info && @cancelled_info["silent"]
      item = @engine.item_by_name(@name)
      @engine.send_notification({ reason: @cancelled_reason, by: @cancelled_by, id: @intention_id, intention_type: self.class.to_s },
                                type: Demiurge::Notifications::IntentionCancelled, zone: item.zone_name, location: item.location_name, actor: item.name,
                                include_context: true)
    end
# Shouldn't normally happen, but just in case...
Shouldn't normally happen, but just in case
Shouldn ' t normally happen but just in case
def cancel_notification
      return if @cancelled_info && @cancelled_info["silent"]
      item = @engine.item_by_name(@name)
      @engine.send_notification({ reason: @cancelled_reason, by: @cancelled_by, id: @intention_id, intention_type: self.class.to_s },
                                type: Demiurge::Notifications::IntentionCancelled, zone: item.zone_name, location: item.location_name, actor: item.name,
                                include_context: true)
    end
def cancel_notification return if @cancelled_info && @cancelled_info [ "silent" ] item = @engine . item_by_name ( @name ) @engine . send_notification ( { reason : @cancelled_reason , by : @cancelled_by , id : @intention_id , intention_type : self . class . to_s } , type : Demiurge :: Notifications :: IntentionCancelled , zone : item . zone_name , location : item . location_name , actor : item . name , include_context : true ) end
Shouldn't normally happen, but just in case...
Shouldn ' t normally happen but just in case ...
# "Silent" notifications are things like an agent's action queue # being empty so it cancels its intention.  These are normal # operation and nobody is likely to need notification every # tick that they didn't ask to do anything so they didn't.