class Goby::Helmet
Can be worn in the Player's outfit.
Attributes
stat_change[R]
type[R]
Public Class Methods
new(name: "Helmet", 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 upon use, the item is lost when true. @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
# File lib/goby/item/helmet.rb, line 14 def initialize(name: "Helmet", price: 0, consumable: false, disposable: true, stat_change: {}) super(name: name, price: price, consumable: consumable, disposable: disposable) @type = :helmet @stat_change = stat_change end