Merge pull request #6481 from Citadel-Station-13/upstream-merge-37339

[MIRROR] Fixes a lack of feedback when entering too many points for the gulag.
This commit is contained in:
LetterJay
2018-04-22 22:23:07 -05:00
committed by GitHub

View File

@@ -106,6 +106,8 @@
return
if(!new_goal)
new_goal = default_goal
if (new_goal > 1000)
to_chat(usr, "The entered amount of points is too large. Points have instead been set to the maximum allowed amount.")
id.goal = CLAMP(new_goal, 0, 1000) //maximum 1000 points
if("toggle_open")
if(teleporter.locked)