Add proc set_viewsize() to allow hooking actions when client.view is changed.

- Proc is on mob to simplify the standard use case; maybe someday actually save it there too if desired.
This commit is contained in:
Leshana
2020-03-14 16:26:56 -04:00
parent 0d7f59242e
commit 73c4809d26
6 changed files with 17 additions and 10 deletions
+2
View File
@@ -837,10 +837,12 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!holder)
return
var/view = src.view
if(view == world.view)
view = input("Select view range:", "FUCK YE", 7) in list(1,2,3,4,5,6,7,8,9,10,11,12,13,14,128)
else
view = world.view
mob.set_viewsize(view)
log_admin("[key_name(usr)] changed their view range to [view].")
//message_admins("<font color='blue'>[key_name_admin(usr)] changed their view range to [view].</font>", 1) //why? removed by order of XSI