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

Commit a103250

Browse files
committed
move fraud check up
1 parent e4cd906 commit a103250

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

code/modules/economy/healthcare.dm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@
112112
if(!victim || !istype(victim))
113113
return FALSE
114114

115+
if(!victim.registered_account.has_money(-1050))
116+
victim.registered_account.bank_card_talk("Severe debt fraud detected! This ID will now self-destruct. Please contact a member of command to be issued a new ID.", TRUE)
117+
qdel(victim)
118+
playsound(src.loc, 'sound/items/pshred.ogg', 75, TRUE)
119+
return
120+
115121
victim.registered_account._adjust_money(-current_price) // can't pay? it's ok, you'll just go into debt
116122
. = TRUE
117123

@@ -138,13 +144,7 @@
138144
selected_care = null
139145

140146
say("Thank you for your patronage, [victim.registered_account.account_holder]! Medical staff have been paid and notified. You are entitled to the following: [care]")
141-
142-
if(!victim.registered_account.has_money(-950)) // fraud prevention. id is shredded, debt remains on account
143-
victim.registered_account.bank_card_talk("Severe debt fraud detected! This ID will now self-destruct. Please contact a member of command to be issued a new ID.", TRUE)
144-
qdel(victim)
145-
playsound(src.loc, 'sound/items/pshred.ogg', 75, TRUE)
146-
else
147-
playsound(src.loc, 'sound/effects/cashregister.ogg', 20, TRUE)
147+
playsound(src.loc, 'sound/effects/cashregister.ogg', 20, TRUE)
148148

149149
#undef CARE_BASIC_CHECKUP
150150
#undef CARE_VACCINATION

0 commit comments

Comments
 (0)