class Point
def initialize(point)
@point = point
point_cal
@daymax = @onemax * 2
if @point >= 7
p "目前有" + @point.to_s + "分," + "可以進行評分,"
p "一次上限為" + @onemax.to_s + ",一天上限為" + @daymax.to_s
p "用戶組為" + @cal
else
@point = 0
@daymax = 0
p "目前有" + @point.to_s + "分," + "不可以進行評分"
p "一次上限為" + @onemax.to_s + ",一天上限為" + @daymax.to_s
end
end
def point_cal
if @point <= 6
@onemax = 0
end
if @point >= 7 and @point <= 11
@cal = "騎士"
@onemax = 7
end
if @point >= 12 and @point <= 19
@cal = "圣骑士"
@onemax = 12
end
if @point >= 20 and @point <= 29
@cal = "圣骑士"
@onemax = 20
end
if @point >= 30 and @point <= 44
@cal = "龙骑士"
@onemax = 30
end
if @point >= 45 and @point <= 59
@cal = "贤者"
@onemax = 45
end
if @point >= 60 and @point <= 84
@cal = "指引者"
@onemax = 60
end
if @point >= 85 and @point <= 99
@cal = "天使"
@onemax = 85
end
if @point >= 100 and @point <= 139
@cal = "元素天使"
@onemax = 100
end
if @point >= 140 and @point <= 159
@cal = "六翼天使"
@onemax = 140
end
if @point >= 160 and @point <= 179
@cal = "光明天使"
@onemax = 160
end
if @point >= 180 and @point <= 199
@cal = "大天使"
@onemax = 180
end
if @point >= 200 and @point <= 219
@cal = "天使长"
@onemax = 200
end
if @point >= 220 and @point <= 249
@cal = "天国守护"
@onemax = 220
end
if @point >= 250 and @point <= 299
@cal = "神之意志"
@onemax = 250
end
if @point >= 300 and @point <= 399
@cal = "神"
@onemax = 300
end
if @point >= 400 and @point <= 499
@cal = "众神之首"
@onemax = 400
end
if @point >= 500
@cal = "万物创造者"
@onemax = 500
end
end
end
Point.new(x)#x寫入自己的積分