Skip to content

Commit

Permalink
move fraud check up
Browse files Browse the repository at this point in the history
  • Loading branch information
ynot01 committed Jan 8, 2025
1 parent e4cd906 commit a103250
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/modules/economy/healthcare.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
if(!victim || !istype(victim))
return FALSE

if(!victim.registered_account.has_money(-1050))
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)
qdel(victim)
playsound(src.loc, 'sound/items/pshred.ogg', 75, TRUE)
return

victim.registered_account._adjust_money(-current_price) // can't pay? it's ok, you'll just go into debt
. = TRUE

Expand All @@ -138,13 +144,7 @@
selected_care = null

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]")

if(!victim.registered_account.has_money(-950)) // fraud prevention. id is shredded, debt remains on account
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)
qdel(victim)
playsound(src.loc, 'sound/items/pshred.ogg', 75, TRUE)
else
playsound(src.loc, 'sound/effects/cashregister.ogg', 20, TRUE)
playsound(src.loc, 'sound/effects/cashregister.ogg', 20, TRUE)

#undef CARE_BASIC_CHECKUP
#undef CARE_VACCINATION
Expand Down

0 comments on commit a103250

Please sign in to comment.