mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 21:10:30 +01:00
Fixes the runtime of mob/visible_message not having a range arg (#5100)
This commit is contained in:
@@ -109,10 +109,10 @@
|
||||
// self_message (optional) is what the src mob sees e.g. "You do something!"
|
||||
// blind_message (optional) is what blind people will hear e.g. "You hear something!"
|
||||
|
||||
/mob/visible_message(var/message, var/self_message, var/blind_message)
|
||||
/mob/visible_message(var/message, var/self_message, var/blind_message, var/range = world.view)
|
||||
var/list/messageturfs = list()//List of turfs we broadcast to.
|
||||
var/list/messagemobs = list()//List of living mobs nearby who can hear it, and distant ghosts who've chosen to hear it
|
||||
for (var/turf in view(world.view, get_turf(src)))
|
||||
for (var/turf in view(range, get_turf(src)))
|
||||
messageturfs += turf
|
||||
|
||||
for(var/A in player_list)
|
||||
|
||||
Reference in New Issue
Block a user