喵呜喵5 发表于 2016-9-29 15:14
未测试
@data.collect{|i| i.note.include?('')}
QQ蚊子湯 发表于 2016-9-29 16:57
不知道有沒有理解錯誤
七重醬這個功能應該是這個方法吧?
def all_items_TYPE_A a = items.size e = 0 c = 0 d = [] loop do b = items[e] if b.note.include?("<TYPE_A>") d[c] = b c += 1 end e += 1 if e == a break end end p e p c return d end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |