[MIRROR] fixes buying shuttle insurance while the shuttle is docked (#6605)

* fixes buying shuttle insurance while the shuttle is docked (#59879)

* ok

* ??

* fixes buying shuttle insurance while the shuttle is docked

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-06-30 10:31:26 +01:00
committed by GitHub
co-authored by tralezab
parent 745eb3adda
commit efd27e59f5
+1
View File
@@ -40,6 +40,7 @@
/datum/round_event/shuttle_insurance/proc/answered()
if(EMERGENCY_AT_LEAST_DOCKED)
priority_announce("You are definitely too late to purchase insurance, my friends. Our agents don't work on site.",sender_override = ship_name)
return
if(insurance_message && insurance_message.answered == 1)
var/datum/bank_account/station_balance = SSeconomy.get_dep_account(ACCOUNT_CAR)
if(!station_balance?.adjust_money(-insurance_evaluation))