Adds a visual emote when a Give is started/offered (#12384)

This commit is contained in:
Jaraci
2021-08-27 17:58:59 +02:00
committed by GitHub
parent 07cd32c456
commit d6e647a3af
2 changed files with 43 additions and 0 deletions
+2
View File
@@ -16,6 +16,8 @@
to_chat(usr, SPAN_WARNING("You don't have anything in your hands to give to \the [target]."))
return
usr.visible_message(SPAN_NOTICE("\The [usr] holds out \the [I] to \the [target]."), SPAN_NOTICE("You hold out \the [I] to \the [target], waiting for them to accept it."))
if(alert(target,"[usr] wants to give you \a [I]. Will you accept it?",,"Yes","No") == "No")
target.visible_message("<b>[target]</b> pushes [usr]'s hand away.")
return