mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-22 04:36:53 +01:00
Merge pull request #9043 from Ilysen/interact-message
Add interact_message proc for more flexible visible messages between two parties
This commit is contained in:
@@ -216,18 +216,34 @@
|
||||
sleep(5)
|
||||
qdel(animation)
|
||||
|
||||
var/datum/gender/TT = gender_datums[M.get_visible_gender()]
|
||||
if(!flashfail)
|
||||
flick("flash2", src)
|
||||
if(!issilicon(M))
|
||||
|
||||
user.visible_message("<span class='disarm'>[user] blinds [M] with the flash!</span>")
|
||||
M.interact_message(user,
|
||||
SPAN_DANGER("\The [user] blinds \the [M] with \the [src]!"),
|
||||
SPAN_DANGER("\The [user] blinds you with \the [src]!"),
|
||||
SPAN_DANGER("You blind \the [M] with \the [src]!"),
|
||||
SPAN_DANGER("\The [user] blinds [TT.himself] with \the [src]!"),
|
||||
SPAN_DANGER("You blind yourself with \the [src]! Why?")
|
||||
)
|
||||
else
|
||||
|
||||
user.visible_message("<span class='notice'>[user] overloads [M]'s sensors with the flash!</span>")
|
||||
M.interact_message(user,
|
||||
SPAN_DANGER("\The [user] overloads \the [M]'s sensors with \the [src]!"),
|
||||
SPAN_DANGER("\The [user] overloads your sensors with \the [src]!"),
|
||||
SPAN_DANGER("You overload \the [M]'s sensors with \the [src]!"),
|
||||
SPAN_DANGER("\The [user] overloads [TT.his] own sensors with \the [src]!"),
|
||||
SPAN_DANGER("You overload your own sensors with \the [src]! Why?")
|
||||
)
|
||||
M.Weaken(rand(5,10))
|
||||
else
|
||||
|
||||
user.visible_message("<span class='notice'>[user] fails to blind [M] with the flash!</span>")
|
||||
M.interact_message(user,
|
||||
SPAN_DANGER("\The [user] fails to blind \the [M] with \the [src]!"),
|
||||
SPAN_DANGER("\The [user] fails to blind you with \the [src]!"),
|
||||
SPAN_DANGER("You fail to blind \the [M] with \the [src]!"),
|
||||
SPAN_DANGER("\The [user] fails to blind [TT.himself] with \the [src]!"),
|
||||
SPAN_DANGER("You fail to blind yourself with \the [src]!"),
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user