还有下面这段
class RPG::BaseItem
def mdf #魔抗
m = 0
self.note.split(/{\r\n}+/).each { |line|
m = $1.to_i if line =~ /\<MDF (\d+)\>/
}
return m
end
end
class RPG::State
def mdf_rate #魔抗改变比率
m = 100
self.note.split(/{\r\n}+/).each { |line|
m = $1.to_i if line =~ /\<MDFR (\d+)\>/
}
return m
end
end
中
self.note.split(/{\r\n}+/).each { |line|
m = $1.to_i if line =~ /\<MDF (\d+)\>/
}
这句什么意思? dsu_plus_rewardpost_czw