class Goby::Torso

Can be worn in the Player's outfit.

Attributes

stat_change[R]
type[R]

Public Class Methods

new(name: "Torso", price: 0, consumable: false, disposable: true, stat_change: {}) click to toggle source

@param [String] name the name. @param [Integer] price the cost in a shop. @param [Boolean] consumable determines whether the item is lost when used. @param [Boolean] disposable allowed to sell or drop item when true. @param [Hash] stat_change the change in stats for when the item is equipped.

Calls superclass method Goby::Item::new
# File lib/goby/item/torso.rb, line 14
def initialize(name: "Torso", price: 0, consumable: false, disposable: true, stat_change: {})
  super(name: name, price: price, consumable: consumable, disposable: disposable)
  @type = :torso
  @stat_change = stat_change
end