class Skill
def name
name = @name.split(/,/)[0]
return name != nil ? name : ''
end
def type
type = @name.split(/,/)[1]
return type != nil ? type : 0
end
def att
case @id
when 1,2,3,4,5,6,7,8,9,10 #地
return 1
when 1,2,3,4,5,6,7,8,9,10 #水
return 2
when 1,2,3,4,5,6,7,8,9,10 #火
return 3
when 1,2,3,4,5,6,7,8,9,10 #风
return 4
when 1,2,3,4,5,6,7,8,9,10 #雷
return 5
when 1,2,3,4,5,6,7,8,9,10 #光
return 6
when 1,2,3,4,5,6,7,8,9,10 #暗
return 7
else
return 8 #默认是返回8,无属性是0;所有无属性都不激发按键增强
end
end