本帖最后由 guoxiaomi 于 2017-3-19 20:50 编辑
接着往下写啊~
def draw_item(index) item = @data[index] ... ... if item.is_a?(RPG::Weapon) if number >= 1 self.contents.font.color = disabled_color else if number == 0 $game_party.actors.each do |actor| next if actor.weapon_id != item.id self.contents.font.color = disabled_color end end end ...
def draw_item(index)
item = @data[index]
...
...
if item.is_a?(RPG::Weapon)
if number >= 1
self.contents.font.color = disabled_color
else if number == 0
$game_party.actors.each do |actor|
next if actor.weapon_id != item.id
self.contents.font.color = disabled_color
end
end
end
...
手写了一段也没测试,反正意思是到了吧~ |