mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes table flipping sound/alert spam (#92648)
## About The Pull Request Closes #92627 by restricting users to a single do_after at a time per table ## Changelog 🆑 fix: Fixed table flipping sound/alert spam /🆑
This commit is contained in:
@@ -283,14 +283,17 @@
|
||||
if(!can_flip)
|
||||
return
|
||||
|
||||
var/interaction_key = "table_flip_[REF(src)]"
|
||||
if(!is_flipped)
|
||||
user.balloon_alert_to_viewers("flipping table...")
|
||||
if(do_after(user, max_integrity * 0.25))
|
||||
if(!LAZYACCESS(user.do_afters, interaction_key)) // To avoid balloon alert spam
|
||||
user.balloon_alert_to_viewers("flipping table...")
|
||||
if(do_after(user, max_integrity * 0.25, src, interaction_key = interaction_key))
|
||||
flip_table(get_dir(user, src))
|
||||
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
|
||||
|
||||
user.balloon_alert_to_viewers("flipping table upright...")
|
||||
if(do_after(user, max_integrity * 0.25, src))
|
||||
if(!LAZYACCESS(user.do_afters, interaction_key)) // To avoid balloon alert spam
|
||||
user.balloon_alert_to_viewers("flipping table upright...")
|
||||
if(do_after(user, max_integrity * 0.25, src, interaction_key = interaction_key))
|
||||
unflip_table()
|
||||
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user