mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 11:40:07 +01:00
Citation payments check for valid amount (#76760)
## About The Pull Request Fixes https://github.com/tgstation/tgstation/issues/76705 ## Why It's Good For The Game Citations shouldn't be exploitable for free money. ## Changelog 🆑 LT3 fix: Security records no longer accept negative values for citation payment /🆑
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
|
||||
/// Pays off a fine and attempts to fix any weird values.
|
||||
/datum/crime/citation/proc/pay_fine(amount)
|
||||
if(amount <= 0)
|
||||
return FALSE
|
||||
|
||||
paid += amount
|
||||
if(paid > fine)
|
||||
paid = fine
|
||||
|
||||
Reference in New Issue
Block a user