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

Commit b95448f

Browse files
exploit fixed
1 parent 64399ef commit b95448f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/_onclick/hud/screen_objects.dm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@
188188
if("allocate")
189189
if(allocated_points + params["amount"] > user.mind.skill_points)
190190
return TRUE
191+
if(allocated_points + params["amount"] < user.get_skill(params["skill"]))
192+
return TRUE
193+
if(allocated_skills[params["skill"]] + params["amount"] > (4 + HAS_TRAIT(user, TRAIT_EXCEPTIONAL_SKILL)))
194+
return TRUE
195+
if(allocated_skills[params["skill"]] + params["amount"] < user.get_skill(params["skill"]))
196+
return TRUE
191197
allocated_skills[params["skill"]] += params["amount"]
192198
allocated_points += params["amount"]
193199
return TRUE

0 commit comments

Comments
 (0)