Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 4675a1a

Browse files
remove exploit
1 parent 97dc170 commit 4675a1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/datums/mind.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,8 @@
808808
/mob/proc/add_exp(skill, amount)
809809
if(!mind)
810810
return FALSE
811+
if(mind.skill_points > 0)
812+
return FALSE
811813
var/exp_required = EXPERIENCE_PER_LEVEL * (2**mind.skills[skill]) // exp required scales exponentially
812814
if(mind.exp_progress[skill] + amount >= exp_required)
813815
var/levels_gained = round(log(2, 1 + (mind.exp_progress[skill] + amount) / exp_required)) // in case you gained so much you go up more than one level

0 commit comments

Comments
 (0)