_std/macros/job_xp.dm
XP_ROUND_CAP | Hard CAP on XP earned per round, used to prevent exploiting. |
---|---|
XP_GLOBAL_MOD | Global multiplier for xp earned. normalXP * XP_GLOBAL_MOD. For events or adjustments. |
XP_CONSTANT | Constant for scaling the XP curve. |
XP_FOR_LEVEL | Returns XP required for the given level. |
LEVEL_FOR_XP | Returns the level for the given amount of XP. |
XP_THROTTLE_TICKS | Defines the range of time that is throttled, see below. Currently very roughly one minute "game time". |
XP_THROTTLE_AMT | This much XP is allowed per XP_THROTTLE_TICKS. Should prevent people from exploiting certain things. This cap is ignored if a person if awarded XP in excess of this cap in one burst. |
USR_JOB_XP | Gives USR in the current context XP amount if they have the appropriate job. |
JOB_XP | Gives TRG, XP amount if they have the appropriate job. |
Define Details
JOB_XP
Gives TRG, XP amount if they have the appropriate job.
JOB_XP(someMobHere, "Clown", 5)
would give someMobHere 5xp if they are a clown.
LEVEL_FOR_XP
Returns the level for the given amount of XP.
USR_JOB_XP
Gives USR in the current context XP amount if they have the appropriate job.
USR_JOB_XP("Clown", 5)
would give usr 5xp if they are a clown.
XP_CONSTANT
Constant for scaling the XP curve.
XP_FOR_LEVEL
Returns XP required for the given level.
XP_GLOBAL_MOD
Global multiplier for xp earned. normalXP * XP_GLOBAL_MOD. For events or adjustments.
XP_ROUND_CAP
Hard CAP on XP earned per round, used to prevent exploiting.
XP_THROTTLE_AMT
This much XP is allowed per XP_THROTTLE_TICKS. Should prevent people from exploiting certain things. This cap is ignored if a person if awarded XP in excess of this cap in one burst.
Roughly 2 times the expected XP per minute, currently.
XP_THROTTLE_TICKS
Defines the range of time that is throttled, see below. Currently very roughly one minute "game time".