IDs show your age if you're not old enough to drink in the US. (#3586)

* IDs show your age if you're not old enough to drink.

* Update _vending.dm
This commit is contained in:
KathrinBailey
2021-02-22 12:06:02 +00:00
committed by GitHub
parent 5d9adf1d74
commit f4a487ee32
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@
if(Adjacent(user))
var/minor
if(registered_name && registered_age && registered_age < AGE_MINOR)
minor = " <b>(MINOR)</b>"
minor = " <b>[registered_age]</b>"
user.visible_message("<span class='notice'>[user] shows you: [icon2html(src, viewers(user))] [src.name][minor].</span>", "<span class='notice'>You show \the [src.name][minor].</span>")
add_fingerprint(user)
+2 -1
View File
@@ -849,7 +849,8 @@ GLOBAL_LIST_EMPTY(vending_products)
say("You are not of legal age to purchase [R.name].")
if(!(usr in GLOB.narcd_underages))
Radio.set_frequency(FREQ_SECURITY)
Radio.talk_into(src, "SECURITY ALERT: Underaged crewmember [usr] recorded attempting to purchase [R.name] in [get_area(src)]. Please watch for substance abuse.", FREQ_SECURITY)
// SKYRAT EDIT: Original - Radio.talk_into(src, "SECURITY ALERT: Underaged crewmember [usr] recorded attempting to purchase [R.name] in [get_area(src)]. Please watch for substance abuse.", FREQ_SECURITY)
Radio.talk_into(src, "SECURITY ALERT: [usr] has attempted to purchase [R.name] in [get_area(src)] whilst not of legal drinking age. Please watch for substance abuse.", FREQ_SECURITY) // SKYRAT EDIT: Just worded slightly differently.
GLOB.narcd_underages += usr
flick(icon_deny,src)
vend_ready = TRUE