_std/macros/job_xp.dm ![_std/macros/job_xp.dm0](git.png)
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 ![_std/macros/job_xp.dm 36](git.png)
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 ![_std/macros/job_xp.dm 11](git.png)
Returns the level for the given amount of XP.
USR_JOB_XP ![_std/macros/job_xp.dm 29](git.png)
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 ![_std/macros/job_xp.dm 7](git.png)
Constant for scaling the XP curve.
XP_FOR_LEVEL ![_std/macros/job_xp.dm 9](git.png)
Returns XP required for the given level.
XP_GLOBAL_MOD ![_std/macros/job_xp.dm 5](git.png)
Global multiplier for xp earned. normalXP * XP_GLOBAL_MOD. For events or adjustments.
XP_ROUND_CAP ![_std/macros/job_xp.dm 3](git.png)
Hard CAP on XP earned per round, used to prevent exploiting.
XP_THROTTLE_AMT ![_std/macros/job_xp.dm 22](git.png)
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 ![_std/macros/job_xp.dm 14](git.png)
Defines the range of time that is throttled, see below. Currently very roughly one minute "game time".