class Point
def initialize(point)
@point = point
@group = ["騎士","圣骑士","圣骑士","龙骑士","贤者","指引者","天使","元素天使",
"六翼天使","光明天使","大天使","天使长","天国守护","神之意志","神","众神之首",
"万物创造者"]
@point2 = 7
@stage = 0
if @point >= 7
point_cal
@daymax = @onemax * 2
p "目前有" + @point.to_s + "分," + "可以進行評分,"
p "一次上限為" + @onemax.to_s + ",一天上限為" + @daymax.to_s
p "用戶組為" + @group[@stage].to_s
else
@point = 0
@daymax = 0
@onemax = 0
p "目前有" + @point.to_s + "分," + "不可以進行評分"
p "一次上限為" + @onemax.to_s + ",一天上限為" + @daymax.to_s
end
end
def point_cal
while @point2 != @point
@point2 += 1
case @point2
when 7
@stage += 1
@onemax = 7
when 12
@stage += 1
@onemax = 12
when 20
@stage += 1
@onemax = 20
when 30
@stage += 1
@onemax = 30
when 45
@stage += 1
@onemax = 45
when 60
@stage += 1
@onemax = 60
when 85
@stage += 1
@onemax = 85
when 100
@stage += 1
@onemax = 100
when 140
@stage += 1
@onemax = 140
when 160
@stage += 1
@onemax = 160
when 180
@stage += 1
@onemax = 180
when 200
@stage += 1
@onemax = 200
when 220
@stage += 1
@onemax = 220
when 250
@stage += 1
@onemax = 250
when 300
@stage += 1
@onemax = 300
when 400
@stage += 1
@onemax = 400
when 500
@stage += 1
@onemax = 500
end
end
end
end
Point.new(800)#x寫入自己的積分
class Point
def initialize(point)
@point = point
@group = ["騎士","圣骑士","圣骑士","龙骑士","贤者","指引者","天使","元素天使",
"六翼天使","光明天使","大天使","天使长","天国守护","神之意志","神","众神之首",
"万物创造者"]
@point2 = 7
@stage = 0
if @point >= 7
point_cal
@daymax = @onemax * 2
p "目前有" + @point.to_s + "分," + "可以進行評分,"
p "一次上限為" + @onemax.to_s + ",一天上限為" + @daymax.to_s
p "用戶組為" + @group[@stage].to_s
else
@point = 0
@daymax = 0
@onemax = 0
p "目前有" + @point.to_s + "分," + "不可以進行評分"
p "一次上限為" + @onemax.to_s + ",一天上限為" + @daymax.to_s
end
end
def point_cal
while @point2 != @point
@point2 += 1
case @point2
when 7
@stage += 1
@onemax = 7
when 12
@stage += 1
@onemax = 12
when 20
@stage += 1
@onemax = 20
when 30
@stage += 1
@onemax = 30
when 45
@stage += 1
@onemax = 45
when 60
@stage += 1
@onemax = 60
when 85
@stage += 1
@onemax = 85
when 100
@stage += 1
@onemax = 100
when 140
@stage += 1
@onemax = 140
when 160
@stage += 1
@onemax = 160
when 180
@stage += 1
@onemax = 180
when 200
@stage += 1
@onemax = 200
when 220
@stage += 1
@onemax = 220
when 250
@stage += 1
@onemax = 250
when 300
@stage += 1
@onemax = 300
when 400
@stage += 1
@onemax = 400
when 500
@stage += 1
@onemax = 500
end
end
end
end
Point.new(800)#x寫入自己的積分