class RPG::Weapon
Public Class Methods
new(hash)
click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 936 def initialize(hash) hash.each do |key, value| eval("@#{key.to_s}=value") end end
Public Instance Methods
hash()
click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 942 def hash dump = { id: @id, name: @name.force_encoding("iso-8859-1").encode("utf-8"), icon_name: @icon_name, description: @description.force_encoding("iso-8859-1").encode("utf-8"), animation1_id: @animation1_id, animation2_id: @animation2_id, price: @price, atk: @atk, pdef: @pdef, mdef: @mdef, str_plus: @str_plus, dex_plus: @dex_plus, agi_plus: @agi_plus, int_plus: @int_plus, element_set: @element_set, plus_state_set: @plus_state_set, minus_state_set: @minus_state_set, } end