赞 | 0 |
VIP | 2 |
好人卡 | 12 |
积分 | 1 |
经验 | 3805 |
最后登录 | 2012-7-25 |
在线时间 | 113 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 113 小时
- 注册时间
- 2011-10-6
- 帖子
- 45
|
这个数据库有点。。。。
亲,你太天真的以为把防具类型分开区间,却不知自己的系统是生成新防具的。
所以,亲,你在防具列表看不到防具。。。因为亲你把循环固定在了一个区间之内,然而你所拥有的物品却不在这区间之内。
好吧,我表示表达不清。。。。泪奔,小学没毕业就成我这样了。。。
还是写解决方法吧!
首先把数据库里的鞋子种类改为盾,然后把“★Window_EquipItem”里的def refresh替换掉下面的代码。-
- def refresh
- if self.contents != nil
- self.contents.dispose
- self.contents = nil
- end
- actor = $game_party.actors[$actorface_index]
- @data = []
- # 添加报务
- case $equip_class
- when 1 # 武器类
- weapon_set = $data_classes[actor.class_id].weapon_set
- for i in 1...$data_weapons.size
- if $game_party.weapon_number(i) > 0 and weapon_set.include?(i)
- @data.push($data_weapons[i])
- end
- end
- when 2 # 身体类
- armor_set = $data_classes[actor.class_id].armor_set
- for i in 1...$data_armors.size
- if $game_party.armor_number(i) > 0 and armor_set.include?(i) and
- $data_armors[i].kind == 2
- @data.push($data_armors[i])
- end
- end
- when 3 # 头部类
- armor_set = $data_classes[actor.class_id].armor_set
- for i in 1...$data_armors.size
- if $game_party.armor_number(i) > 0 and armor_set.include?(i) and
- $data_armors[i].kind == 1
- @data.push($data_armors[i])
- end
- end
- when 4 # 鞋子类
- armor_set = $data_classes[actor.class_id].armor_set
- for i in 1...$data_armors.size
- if $game_party.armor_number(i) > 0 and armor_set.include?(i) and
- $data_armors[i].kind == 0
- @data.push($data_armors[i])
- end
- end
- when 5 # 佩戴类
- armor_set = $data_classes[actor.class_id].armor_set
- for i in 1...$data_armors.size
- if $game_party.armor_number(i) > 0 and armor_set.include?(i) and
- $data_armors[i].kind == 3
- @data.push($data_armors[i])
- end
- end
- end
- # 如果项目数不是 0 就生成位图、重新描绘全部项目
- @item_max = @data.size
- if @item_max > 0
- self.contents = Bitmap.new(width - 32, row_max * 18.5)
- for i in 0...@item_max
- draw_item(i)
- end
- else
- @sprite_cursor.opacity = 0
- end
- end
复制代码 |
|