class InventoryAction

typed: true

Public Class Methods

can?(_entity, _battle) click to toggle source
# File lib/natural_20/actions/inventory_action.rb, line 3
def self.can?(_entity, _battle)
  true
end

Public Instance Methods

build_map() click to toggle source
# File lib/natural_20/actions/inventory_action.rb, line 7
def build_map
  OpenStruct.new({
                   action: self,
                   param: [
                     {
                       type: :show_inventory,
                     },
                   ],
                   next: lambda { |_path|
                     OpenStruct.new({
                                            param: nil,
                                            next: -> { self },
                                          })
                   },
                 })
end