X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2FUser.java;h=96e0a111670a6161bc55b428efc3216f007a078e;hp=2dba0c5c7f4d72c3f2b79565a031f4beef30fe8a;hb=f5d307e518fe8bbe3bf2b52aef9faf61fda6ae77;hpb=7f4a02fc53f56a5507d1d059c5c0636ed977ae62 diff --git a/src/org/cacert/gigi/User.java b/src/org/cacert/gigi/User.java index 2dba0c5c..96e0a111 100644 --- a/src/org/cacert/gigi/User.java +++ b/src/org/cacert/gigi/User.java @@ -156,4 +156,24 @@ public class User { return name.equals(s.name) && email.equals(s.email) && dob.equals(s.dob); } + public int getMaxAssurePoints() throws SQLException { + int exp = getExperiencePoints(); + int points = 10; + if (exp >= 10) { + points += 5; + } + if (exp >= 20) { + points += 5; + } + if (exp >= 30) { + points += 5; + } + if (exp >= 40) { + points += 5; + } + if (exp >= 50) { + points += 5; + } + return points; + } }