This commit is contained in:
ExcessiveUseOfCobblestone
2020-01-09 22:29:50 -05:00
parent ff77eff6eb
commit fe40dfea6e
3 changed files with 4 additions and 4 deletions

View File

@@ -43,5 +43,5 @@ PROCESSING_SUBSYSTEM_DEF(quirks)
cli.prefs.save_character()
// Assign wayfinding pinpointer granting quirk if they're new
if(cli.calc_exp_type(EXP_TYPE_LIVING) < 1200 && !user.has_quirk(/datum/quirk/needswayfinder))
if(cli.get_exp_living(TRUE) < 1200 && !user.has_quirk(/datum/quirk/needswayfinder))
user.add_quirk(/datum/quirk/needswayfinder, TRUE)

View File

@@ -31,7 +31,7 @@
body += " played by <b>[M.client]</b> "
body += "\[<A href='?_src_=holder;[HrefToken()];editrights=[(GLOB.admin_datums[M.client.ckey] || GLOB.deadmins[M.client.ckey]) ? "rank" : "add"];key=[M.key]'>[M.client.holder ? M.client.holder.rank : "Player"]</A>\]"
if(CONFIG_GET(flag/use_exp_tracking))
body += "\[<A href='?_src_=holder;[HrefToken()];getplaytimewindow=[REF(M)]'>" + M.client.get_exp_living() + "</a>\]"
body += "\[<A href='?_src_=holder;[HrefToken()];getplaytimewindow=[REF(M)]'>" + M.client.get_exp_living(FALSE) + "</a>\]"
if(isnewplayer(M))
body += " <B>Hasn't Entered Game</B> "

View File

@@ -122,11 +122,11 @@ GLOBAL_PROTECT(exp_to_update)
return return_text
/client/proc/get_exp_living()
/client/proc/get_exp_living(pure_numeric = FALSE)
if(!prefs.exp)
return "No data"
var/exp_living = text2num(prefs.exp[EXP_TYPE_LIVING])
return get_exp_format(exp_living)
return pure_numeric ? exp_living : get_exp_format(exp_living)
/proc/get_exp_format(expnum)
if(expnum > 60)