| 
 
| 赞 | 7 |  
| VIP | 0 |  
| 好人卡 | 1 |  
| 积分 | 18 |  
| 经验 | 34644 |  
| 最后登录 | 2025-10-25 |  
| 在线时间 | 956 小时 |  
 Lv3.寻梦者 
	梦石0 星屑1845 在线时间956 小时注册时间2012-7-5帖子248 | 
| F1帮助文件--游戏库里面: class RPG::BaseItem
 def initialize
 @id = 0
 @name = ''
 @icon_index = 0
 @description = ''
 @features = []
 @note = ''
 end
 attr_accessor :id
 attr_accessor :name
 attr_accessor :icon_index
 attr_accessor :description
 attr_accessor :features
 attr_accessor :note
 end
 
 class RPG::EquipItem < RPG::BaseItem
 def initialize
 super
 @price = 0
 @etype_id = 0
 @params = [0] * 8
 end
 attr_accessor :price
 attr_accessor :etype_id
 attr_accessor :params
 end
 其中
 0 : 最大HP
 1 : 最大MP
 2 : 攻撃力
 3 : 防御力
 4 : 魔法力
 5 : 魔法防御
 6 : 敏捷性
 7 : 運                           #好吧 这个字我也不知道是什么,从F1帮助里复制来的
 武器:
 class RPG::Weapon < RPG::EquipItem
 def initialize
 super
 @wtype_id = 0
 @animation_id = 0
 @features.push(RPG::BaseItem::Feature.new(31, 1, 0))
 @features.push(RPG::BaseItem::Feature.new(22, 0, 0))
 end
 def performance
 params[2] + params[4] + params.inject(0) {|r, v| r += v }
 end
 attr_accessor :wtype_id
 attr_accessor :animation_id
 end
 防具:
 class RPG::Armor < RPG::EquipItem
 def initialize
 super
 @atype_id = 0
 @etype_id = 1
 @features.push(RPG::BaseItem::Feature.new(22, 1, 0))
 end
 def performance
 params[3] + params[5] + params.inject(0) {|r, v| r += v }
 end
 attr_accessor :atype_id
 end
 找到了这3个与装备属性有关的,但装备属性貌似早被定义好了(那个params[0]~params[7]),十分怀疑装备属性这东西被放到
 Data/Weapons.rvdata2
 Data/Armors.rvdata2     里了
 
 | 
 |